This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch] cygcheck: New function: eprintf.


Hi,

Following patch probably does not make much sense "as is", but I
intend to flesh out this function in the near future. ``eprintf''
is intended to be called by display_error.

The patch takes this shape in order to keep things trivial (I hope).


ChangeLog-entry:

2004-11-18  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>

	* cygcheck.cc (eprintf): New function.


--- src/winsup/utils/cygcheck.cc	16 Nov 2004 05:16:59 -0000	1.63
+++ src/winsup/utils/cygcheck.cc	18 Nov 2004 02:09:40 -0000
@@ -98,6 +98,15 @@ static common_apps[] = {
 static int num_paths = 0, max_paths = 0;
 static char **paths = 0;
 
+void
+eprintf (const char *format, ...)
+{
+  va_list ap;
+  va_start (ap, format);
+  vfprintf (stderr, format, ap);
+  va_end (ap);
+}
+
 /*
  * display_error() is used to report failure modes
  */


L8r,

Buzz.
-- 
  ) |  | ---/ ---/  Yes, this | This message consists of true | I do not
--  |  |   /    /   really is |   and false bits entirely.    | mail for
  ) |  |  /    /    a 72 by 4 +-------------------------------+ any1 but
--  \--| /--- /---  .sigfile. |   |perl -pe "s.u(z)\1.as."    | me. 4^re


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]