diff options
author | Christopher Faylor <me@cgf.cx> | 2000-08-02 19:26:01 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-08-02 19:26:01 +0000 |
commit | 20d7f7583797512876904592d48f54d157d427af (patch) | |
tree | 07e18d4928df850cbdf27ecd9bc82037d17a9629 /winsup/cygwin/smallprint.c | |
parent | 5a7b5870ff892b6e2d8293f0453959d717e0973b (diff) | |
download | cygnal-20d7f7583797512876904592d48f54d157d427af.tar.gz cygnal-20d7f7583797512876904592d48f54d157d427af.tar.bz2 cygnal-20d7f7583797512876904592d48f54d157d427af.zip |
* strace.cc (strace::prntf): Make second argument the function name, rather
than use special format options.
(strace::vprntf): Ditto.
(getfunc): New function.
* include/sys/strace.h: Reflect above changes.
* smallprint.c (__small_vsprintf): Eliminate '%F' formatting.
* pinfo.cc (set_myself): Modify for new strace::prntf parameter.
* errno.cc (seterrno_from_win_error): Ditto.
* fhandler_tty.cc (fhandler_tty_common::__acquire_output_mutex): Ditto.
* fhandler_tty.cc (fhandler_tty_common::__release_output_mutex): Ditto.
Diffstat (limited to 'winsup/cygwin/smallprint.c')
-rw-r--r-- | winsup/cygwin/smallprint.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/winsup/cygwin/smallprint.c b/winsup/cygwin/smallprint.c index ea5bf8743..31890a6aa 100644 --- a/winsup/cygwin/smallprint.c +++ b/winsup/cygwin/smallprint.c @@ -154,32 +154,6 @@ __small_vsprintf (char *dst, const char *fmt, va_list ap) for (i = 0; *s && i < n; i++) *dst++ = *s++; break; - case 'F': - { - const char *p, *pe; - s = va_arg (ap, char *); - for (p = s; (pe = strchr (p, '(')); p = pe + 1) - if (isalnum ((int)pe[-1]) || pe[-1] == '_') - break; - else if (isspace((int)pe[-1])) - { - pe--; - break; - } - if (!pe) - pe = strchr (s, '\0'); - for (p = pe; p > s; p--) - if (p != pe && *p == ' ') - { - p++; - break; - } - if (*p == '*') - p++; - while (p < pe) - *dst++ = *p++; - break; - } default: *dst++ = '?'; *dst++ = fmt[-1]; |