Annotation of uae/src/writelog.c, revision 1.1

1.1     ! root        1:  /*
        !             2:   * UAE - The Un*x Amiga Emulator
        !             3:   *
        !             4:   * Standard write_log that writes to the console
        !             5:   *
        !             6:   * Copyright 2001 Bernd Schmidt
        !             7:   */
        !             8: #include "sysconfig.h"
        !             9: #include "sysdeps.h"
        !            10: 
        !            11: void write_log_standard (const char *fmt, ...)
        !            12: {
        !            13:     va_list ap;
        !            14:     va_start (ap, fmt);
        !            15: #ifdef HAVE_VFPRINTF
        !            16:     vfprintf (stderr, fmt, ap);
        !            17: #else
        !            18:     /* Technique stolen from GCC.  */
        !            19:     {
        !            20:        int x1, x2, x3, x4, x5, x6, x7, x8;
        !            21:        x1 = va_arg (ap, int);
        !            22:        x2 = va_arg (ap, int);
        !            23:        x3 = va_arg (ap, int);
        !            24:        x4 = va_arg (ap, int);
        !            25:        x5 = va_arg (ap, int);
        !            26:        x6 = va_arg (ap, int);
        !            27:        x7 = va_arg (ap, int);
        !            28:        x8 = va_arg (ap, int);
        !            29:        fprintf (stderr, fmt, x1, x2, x3, x4, x5, x6, x7, x8);
        !            30:     }
        !            31: #endif
        !            32: }
        !            33: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.