"Fossies" - the Fresh Open Source Software Archive

Member "heaplayers-351/benchmarks/mudlle/mudio.h" (15 Oct 2003, 510 Bytes) of package /linux/misc/old/heaplayers_3_5_1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "mudio.h" see the Fossies "Dox" file reference documentation.

    1 #ifndef MUDIO_H
    2 #define MUDIO_H
    3 
    4 #include "print.h"
    5 
    6 /* Warning: mprint/mprintf/mputs may cause gc */
    7 
    8 #ifdef MUME
    9 
   10 typedef struct char_data *Muser;
   11 #define EOL "\n\r"
   12 
   13 #else
   14 
   15 typedef int Muser;      /* Unused. */
   16 #define EOL "\n"
   17 
   18 #endif
   19 
   20 typedef struct oport *Mio;
   21 #define mprintf pprintf
   22 #define mputs pputs
   23 #define mflush pflush
   24 #define mprint output_value
   25 
   26 #include "context.h"
   27 
   28 #define mudout session_context->_mudout
   29 #define muduser session_context->_muduser
   30 #define muderr session_context->_muderr
   31 
   32 #endif