From 20d7f7583797512876904592d48f54d157d427af Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 2 Aug 2000 19:26:01 +0000 Subject: * 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. --- winsup/cygwin/smallprint.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'winsup/cygwin/smallprint.c') 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]; -- cgit v1.2.3