#include "config.h"#include "glue_types.h"Include dependency graph for glue.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | CommandsStruct |
| struct | SpecialObjectStruct |
Defines | |
| #define | VERIFY 0 |
| #define | SAVE 1 |
| #define | LOAD 2 |
| #define | XCODE_VERSION 2 |
| #define | SPECIAL_FREE 0 |
| #define | SPECIAL_ALLOC 1 |
| #define | GFLAG_ALL 0 |
| #define | GFLAG_MECH 1 |
| #define | GFLAG_GROUNDVEH 2 |
| #define | GFLAG_AERO 4 |
| #define | GFLAG_DS 8 |
| #define | GFLAG_VTOL 16 |
| #define | GFLAG_NAVAL 32 |
| #define | GFLAG_BSUIT 64 |
| #define | GFLAG_MW 128 |
| #define | Have_MechPower(a, b) (((Powers2((Owner(a))) & (b)) || Wizard(Owner(a))) && Inherits((a))) |
Functions | |
| void | send_channel (char *, const char *,...) |
| #define Have_MechPower | ( | a, | |||
| b | ) | (((Powers2((Owner(a))) & (b)) || Wizard(Owner(a))) && Inherits((a))) |
Definition at line 48 of file glue.h.
Referenced by DoSpecialObjectHelp(), and HandledCommand_sub().
| #define XCODE_VERSION 2 |
| void send_channel | ( | char * | , | |
| const char * | , | |||
| ... | ||||
| ) |
Definition at line 46 of file comsys.c.
00047 { 00048 struct channel *ch; 00049 char buf[LBUF_SIZE]; 00050 char data[LBUF_SIZE]; 00051 char *newline; 00052 va_list ap; 00053 00054 if(!(ch = select_channel(chan))) 00055 return; 00056 va_start(ap, format); 00057 vsnprintf(data, LBUF_SIZE, format, ap); 00058 va_end(ap); 00059 00060 snprintf(buf, LBUF_SIZE-1, "[%s] %s", chan, data); 00061 while ((newline = strchr(buf, '\n'))) 00062 *newline = ' '; 00063 do_comsend(ch, buf); 00064 }
1.4.7