ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-UUlib/uulib/uulib.c
(Generate patch)

Comparing Convert-UUlib/uulib/uulib.c (file contents):
Revision 1.25 by root, Sat Dec 12 03:55:00 2020 UTC vs.
Revision 1.26 by root, Sat Sep 24 06:02:04 2022 UTC

80#include <uuint.h> 80#include <uuint.h>
81#include <fptools.h> 81#include <fptools.h>
82#include <uustring.h> 82#include <uustring.h>
83 83
84#include "safealloc.c" 84#include "safealloc.c"
85
86char * uulib_id = "$Id: uulib.c,v 1.25 2020/12/12 03:55:00 root Exp $";
87 85
88#ifdef SYSTEM_WINDLL 86#ifdef SYSTEM_WINDLL
89BOOL _export WINAPI 87BOOL _export WINAPI
90DllEntryPoint (HINSTANCE hInstance, DWORD seginfo, 88DllEntryPoint (HINSTANCE hInstance, DWORD seginfo,
91 LPVOID lpCmdLine) 89 LPVOID lpCmdLine)
266 264
267/* 265/*
268 * Handle the printing of messages. Works like printf. 266 * Handle the printing of messages. Works like printf.
269 */ 267 */
270 268
271#if defined(STDC_HEADERS) || defined(HAVE_STDARG_H)
272int 269int
273UUMessage (char *file, int line, int level, char *format, ...) 270UUMessage_ (char *file, int line, int level, char *format, ...)
274#else
275int
276UUMessage (va_alist)
277 va_dcl
278#endif
279{ 271{
280 int msgofs; 272 int msgofs;
281#if defined(STDC_HEADERS) || defined(HAVE_STDARG_H)
282 va_list ap; 273 va_list ap;
283
284 va_start (ap, format); 274 va_start (ap, format);
285#else
286 char *file, *format;
287 int line, level;
288 va_list ap;
289
290 va_start (ap);
291 file = va_arg (ap, char *);
292 line = va_arg (ap, int);
293 level = va_arg (ap, int);
294 format = va_arg (ap, char *);
295#endif
296 275
297 if (uu_debug) { 276 if (uu_debug) {
298 snprintf (uulib_msgstring, 1024, "%s(%d): %s", file, line, msgnames[level]); 277 snprintf (uulib_msgstring, 1024, "%s(%d): %s", file, line, msgnames[level]);
299 msgofs = strlen (uulib_msgstring); 278 msgofs = strlen (uulib_msgstring);
300 } 279 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines