break the dependency between cmd.h and dstring.h

This commit is contained in:
Bill Currie 2002-03-18 16:47:04 +00:00
parent 655fe17e18
commit 5f2dea43f6
3 changed files with 6 additions and 5 deletions

View file

@ -31,16 +31,15 @@
#include "QF/qtypes.h"
#include "QF/dstring.h"
typedef struct cmd_buffer_s {
dstring_t *buffer; // Actual text
struct dstring_s *buffer; // Actual text
qboolean wait; // Execution stopped until next frame
qboolean legacy; // Backwards compatible with old command buffer style
unsigned int argc, maxargc; // Number of args, number of args allocated
dstring_t **argv; // Array of arguments
dstring_t *realline; // Actual command being processed
dstring_t *line; // Tokenized and reassembled command
struct dstring_s **argv; // Array of arguments
struct dstring_s *realline; // Actual command being processed
struct dstring_s *line; // Tokenized and reassembled command
int *args; // Array of positions of each token in above string
int *argspace; // Amount of space before each token
struct cmd_buffer_s *prev, *next; // Next buffer in the stack

View file

@ -44,6 +44,7 @@ static const char rcsid[] =
#include "QF/console.h"
#include "QF/cvar.h"
#include "QF/draw.h"
#include "QF/dstring.h"
#include "QF/input.h"
#include "QF/keys.h"
#include "QF/plugin.h"

View file

@ -58,6 +58,7 @@ static const char rcsid[] =
#include "QF/cmd.h"
#include "QF/console.h"
#include "QF/cvar.h"
#include "QF/dstring.h"
#include "QF/keys.h"
#include "QF/plugin.h"
#include "QF/qtypes.h"