zdray/src/parse/sc_man.h

43 lines
1.1 KiB
C
Raw Normal View History

2017-08-03 18:25:54 +00:00
#pragma once
void SC_Open (const char *name);
void SC_OpenFile (const char *name);
void SC_OpenMem (const char *name, char *buffer, int size);
void SC_OpenLumpNum (int lump, const char *name);
2018-10-26 08:06:17 +00:00
void SC_Close ();
2017-08-03 18:25:54 +00:00
void SC_SetCMode (bool cmode);
void SC_SetEscape (bool esc);
2018-10-26 08:06:17 +00:00
void SC_SavePos ();
void SC_RestorePos ();
bool SC_GetString ();
void SC_MustGetString ();
2017-08-03 18:25:54 +00:00
void SC_MustGetStringName (const char *name);
bool SC_CheckString (const char *name);
2018-10-26 08:06:17 +00:00
bool SC_GetNumber ();
void SC_MustGetNumber ();
bool SC_CheckNumber ();
bool SC_CheckFloat ();
bool SC_GetFloat ();
void SC_MustGetFloat ();
void SC_UnGet ();
//boolean SC_Check();
2017-08-03 18:25:54 +00:00
bool SC_Compare (const char *text);
int SC_MatchString (const char **strings);
int SC_MustMatchString (const char **strings);
void SC_ScriptError (const char *message, ...);
void SC_SaveScriptState();
void SC_RestoreScriptState();
extern char *sc_String;
extern int sc_StringLen;
extern int sc_Number;
extern double sc_Float;
extern int sc_Line;
extern bool sc_End;
extern bool sc_Crossed;
extern bool sc_FileScripts;
extern bool sc_StringQuoted;
extern char *sc_ScriptsDir;
//extern FILE *sc_Out;