mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
break the dependency between cmd.h and dstring.h
This commit is contained in:
parent
655fe17e18
commit
5f2dea43f6
3 changed files with 6 additions and 5 deletions
|
@ -31,16 +31,15 @@
|
||||||
|
|
||||||
|
|
||||||
#include "QF/qtypes.h"
|
#include "QF/qtypes.h"
|
||||||
#include "QF/dstring.h"
|
|
||||||
|
|
||||||
typedef struct cmd_buffer_s {
|
typedef struct cmd_buffer_s {
|
||||||
dstring_t *buffer; // Actual text
|
struct dstring_s *buffer; // Actual text
|
||||||
qboolean wait; // Execution stopped until next frame
|
qboolean wait; // Execution stopped until next frame
|
||||||
qboolean legacy; // Backwards compatible with old command buffer style
|
qboolean legacy; // Backwards compatible with old command buffer style
|
||||||
unsigned int argc, maxargc; // Number of args, number of args allocated
|
unsigned int argc, maxargc; // Number of args, number of args allocated
|
||||||
dstring_t **argv; // Array of arguments
|
struct dstring_s **argv; // Array of arguments
|
||||||
dstring_t *realline; // Actual command being processed
|
struct dstring_s *realline; // Actual command being processed
|
||||||
dstring_t *line; // Tokenized and reassembled command
|
struct dstring_s *line; // Tokenized and reassembled command
|
||||||
int *args; // Array of positions of each token in above string
|
int *args; // Array of positions of each token in above string
|
||||||
int *argspace; // Amount of space before each token
|
int *argspace; // Amount of space before each token
|
||||||
struct cmd_buffer_s *prev, *next; // Next buffer in the stack
|
struct cmd_buffer_s *prev, *next; // Next buffer in the stack
|
||||||
|
|
|
@ -44,6 +44,7 @@ static const char rcsid[] =
|
||||||
#include "QF/console.h"
|
#include "QF/console.h"
|
||||||
#include "QF/cvar.h"
|
#include "QF/cvar.h"
|
||||||
#include "QF/draw.h"
|
#include "QF/draw.h"
|
||||||
|
#include "QF/dstring.h"
|
||||||
#include "QF/input.h"
|
#include "QF/input.h"
|
||||||
#include "QF/keys.h"
|
#include "QF/keys.h"
|
||||||
#include "QF/plugin.h"
|
#include "QF/plugin.h"
|
||||||
|
|
|
@ -58,6 +58,7 @@ static const char rcsid[] =
|
||||||
#include "QF/cmd.h"
|
#include "QF/cmd.h"
|
||||||
#include "QF/console.h"
|
#include "QF/console.h"
|
||||||
#include "QF/cvar.h"
|
#include "QF/cvar.h"
|
||||||
|
#include "QF/dstring.h"
|
||||||
#include "QF/keys.h"
|
#include "QF/keys.h"
|
||||||
#include "QF/plugin.h"
|
#include "QF/plugin.h"
|
||||||
#include "QF/qtypes.h"
|
#include "QF/qtypes.h"
|
||||||
|
|
Loading…
Reference in a new issue