Changeset 6600 for pymolproxy


Ignore:
Timestamp:
Nov 10, 2016 5:54:51 PM (8 years ago)
Author:
ldelgass
Message:

Remove use of TCL_VARARGS_DEF macro

Location:
pymolproxy/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pymolproxy/trunk/Makefile.in

    r6598 r6600  
    2828VPATH =         $(srcdir)
    2929
    30 SVN_VERSION     = $(shell svnversion $(srcdir) | sed 's/Unversioned directory/unknown/')
     30SVN_VERSION     = $(shell svnversion -c $(srcdir) | sed 's/Unversioned directory/unknown/')
    3131STATSDIR        = @STATSDIR@
    3232LOGDIR          = @LOGDIR@
  • pymolproxy/trunk/pymolproxy.c

    r6599 r6600  
    1212 * image rendered offscreen is returned as ppm-formatted image data.
    1313 *
    14  *  Copyright (c) 2004-2012  HUBzero Foundation, LLC
     14 *  Copyright (c) 2004-2016  HUBzero Foundation, LLC
    1515 *
    1616 *  See the file "license.terms" for information on usage and
     
    237237#if WANT_DEBUG
    238238static void
    239 PrintToLog TCL_VARARGS_DEF(const char *, arg1)
    240 {
    241     const char *format;
     239PrintToLog (const char *format, ...)
     240{
    242241    va_list args;
    243242
    244     format = TCL_VARARGS_START(const char *, arg1, args);
     243    va_start(args, format);
    245244    fprintf(stderr, "pymolproxy: ");
    246245    vfprintf(stderr, format, args);
     246    va_end(args);
    247247    fprintf(stderr, "\n");
    248248    fflush(stderr);
     
    270270    length += vsnprintf(message + length, MSG_LEN - length, fmt, lst);
    271271    message[MSG_LEN] = '\0';
     272    va_end(lst);
     273
    272274    if (debug) {
    273275        DEBUG("%s\n", message);
     
    278280
    279281static void
    280 Record TCL_VARARGS_DEF(const char *, arg1)
    281 {
    282     const char *format;
     282Record (const char *format, ...)
     283{
    283284    va_list args;
    284285
    285     format = TCL_VARARGS_START(const char *, arg1, args);
     286    va_start(args, format);
    286287    vfprintf(frecord, format, args);
     288    va_end(args);
    287289    fflush(frecord);
    288290}
Note: See TracChangeset for help on using the changeset viewer.