Split off the old console parser into idparse.[ch] and prepared the cbuf

struct and support functions for GIB mark III.

Oh yeah, I'm back.
This commit is contained in:
Brian Koropoff 2002-07-31 22:03:53 +00:00
parent ad8176d68c
commit a93b221272
11 changed files with 242 additions and 137 deletions

View file

@ -31,6 +31,7 @@ static const char rcsid[] =
# include "config.h"
#endif
#include "QF/cbuf.h"
#include "QF/idparse.h" // For now, use the id console parser
#include "QF/progs.h"
static cbuf_t *cbuf; //FIXME use a properly allocated cbuf rather than this hack
@ -39,7 +40,7 @@ static inline void
check_cbuf (void)
{
if (!cbuf)
cbuf = Cbuf_New ();
cbuf = Cbuf_New (COM_extract_line, COM_parse_line, NULL, NULL);
}
static void

View file

@ -39,6 +39,7 @@ static const char rcsid[] =
#endif
#include "QF/cbuf.h"
#include "QF/idparse.h"
#include "QF/keys.h"
#include "QF/progs.h"
#include "QF/zone.h"
@ -49,7 +50,7 @@ static inline void
check_cbuf (void)
{
if (!cbuf)
cbuf = Cbuf_New ();
cbuf = Cbuf_New (COM_extract_line, COM_parse_line, NULL, NULL);
}
/*