VirtualBox

Ignore:
Timestamp:
Feb 27, 2007 1:24:42 PM (18 years ago)
Author:
vboxsync
Message:

Removed tons of ifdef VBOX conditionals to make slirp readable again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/debug.h

    r1033 r1076  
    99#define PRN_SPRINTF     2
    1010
    11 #ifdef VBOX
    1211/* Unused anyway, using VBox Log facility. */
    1312#define dfd NULL
    14 #else /* !VBOX */
    15 extern FILE *dfd;
    16 extern FILE *lfd;
    17 #endif /* !VBOX */
    1813extern int dostats;
    1914extern int slirp_debug;
     
    2318#define DBG_ERROR 0x4
    2419#define DEBUG_DEFAULT DBG_CALL|DBG_MISC|DBG_ERROR
    25 
    26 #ifndef VBOX
    27 #ifdef DEBUG
    28 #define DEBUG_CALL(x) if (slirp_debug & DBG_CALL) { fprintf(dfd, "%s...\n", x); fflush(dfd); }
    29 #define DEBUG_ARG(x, y) if (slirp_debug & DBG_CALL) { fputc(' ', dfd); fprintf(dfd, x, y); fputc('\n', dfd); fflush(dfd); }
    30 #define DEBUG_ARGS(x) if (slirp_debug & DBG_CALL) { fprintf x ; fflush(dfd); }
    31 #define DEBUG_MISC(x) if (slirp_debug & DBG_MISC) { fprintf x ; fflush(dfd); }
    32 #define DEBUG_ERROR(x) if (slirp_debug & DBG_ERROR) {fprintf x ; fflush(dfd); }
    33 
    34 
    35 #else
    36 
    37 #define DEBUG_CALL(x)
    38 #define DEBUG_ARG(x, y)
    39 #define DEBUG_ARGS(x)
    40 #define DEBUG_MISC(x)
    41 #define DEBUG_ERROR(x)
    42 
    43 #endif
    44 #else /* VBOX */
    4520
    4621#include <VBox/log.h>
     
    8762#endif  /* !LOG_ENABLED */
    8863
    89 #endif  /* VBOX */
    90 
    9164void debug_init _P((char *, int));
    9265/*void ttystats _P((struct ttys *)); */
    9366void allttystats _P((void));
    94 #ifdef VBOX
    9567void ipstats _P((PNATState));
    9668void tcpstats _P((PNATState));
     
    9971void mbufstats _P((PNATState));
    10072void sockstats _P((PNATState));
    101 #else /* !VBOX */
    102 void ipstats _P((void));
    103 void vjstats _P((void));
    104 void tcpstats _P((void));
    105 void udpstats _P((void));
    106 void icmpstats _P((void));
    107 void mbufstats _P((void));
    108 void sockstats _P((void));
    109 #endif /* VBOX */
    110 #ifndef VBOX
    111 void slirp_exit _P((int));
    112 #endif /* VBOX */
    11373
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette