mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 18:52:07 +00:00
Remove now-unnecessary struct keyword (#1320)
C++ acts like structs are `typedef`ed by default We do have to keep `struct stat`, since there's ambiguity with the function also called `stat`.
This commit is contained in:
@@ -35,13 +35,13 @@ struct StrFmtArgList {
|
||||
std::vector<std::variant<uint32_t, char *>> *args;
|
||||
};
|
||||
|
||||
struct FormatSpec fmt_NewSpec(void);
|
||||
bool fmt_IsEmpty(struct FormatSpec const *fmt);
|
||||
bool fmt_IsValid(struct FormatSpec const *fmt);
|
||||
bool fmt_IsFinished(struct FormatSpec const *fmt);
|
||||
void fmt_UseCharacter(struct FormatSpec *fmt, int c);
|
||||
void fmt_FinishCharacters(struct FormatSpec *fmt);
|
||||
void fmt_PrintString(char *buf, size_t bufLen, struct FormatSpec const *fmt, char const *value);
|
||||
void fmt_PrintNumber(char *buf, size_t bufLen, struct FormatSpec const *fmt, uint32_t value);
|
||||
FormatSpec fmt_NewSpec(void);
|
||||
bool fmt_IsEmpty(FormatSpec const *fmt);
|
||||
bool fmt_IsValid(FormatSpec const *fmt);
|
||||
bool fmt_IsFinished(FormatSpec const *fmt);
|
||||
void fmt_UseCharacter(FormatSpec *fmt, int c);
|
||||
void fmt_FinishCharacters(FormatSpec *fmt);
|
||||
void fmt_PrintString(char *buf, size_t bufLen, FormatSpec const *fmt, char const *value);
|
||||
void fmt_PrintNumber(char *buf, size_t bufLen, FormatSpec const *fmt, uint32_t value);
|
||||
|
||||
#endif // RGBDS_FORMAT_SPEC_H
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "linkdefs.hpp"
|
||||
|
||||
struct FileStackNode {
|
||||
struct FileStackNode *parent; // Pointer to parent node, for error reporting
|
||||
FileStackNode *parent; // Pointer to parent node, for error reporting
|
||||
// Line at which the parent context was exited; meaningless for the root level
|
||||
uint32_t lineNo;
|
||||
|
||||
@@ -43,9 +43,9 @@ extern size_t maxRecursionDepth;
|
||||
|
||||
struct MacroArgs;
|
||||
|
||||
void fstk_Dump(struct FileStackNode const *node, uint32_t lineNo);
|
||||
void fstk_Dump(FileStackNode const *node, uint32_t lineNo);
|
||||
void fstk_DumpCurrent(void);
|
||||
struct FileStackNode *fstk_GetFileStack(void);
|
||||
FileStackNode *fstk_GetFileStack(void);
|
||||
// The lifetime of the returned chars is until reaching the end of that file
|
||||
char const *fstk_GetFileName(void);
|
||||
|
||||
@@ -59,7 +59,7 @@ std::string *fstk_FindFile(char const *path);
|
||||
|
||||
bool yywrap(void);
|
||||
void fstk_RunInclude(char const *path);
|
||||
void fstk_RunMacro(char const *macroName, struct MacroArgs *args);
|
||||
void fstk_RunMacro(char const *macroName, MacroArgs *args);
|
||||
void fstk_RunRept(uint32_t count, int32_t reptLineNo, char *body, size_t size);
|
||||
void fstk_RunFor(char const *symName, int32_t start, int32_t stop, int32_t step,
|
||||
int32_t reptLineNo, char *body, size_t size);
|
||||
|
||||
@@ -60,8 +60,8 @@ struct LexerState {
|
||||
// mmap()-dependent IO state
|
||||
bool isMmapped;
|
||||
union {
|
||||
struct MmappedLexerState mmap; // If mmap()ed
|
||||
struct BufferedLexerState cbuf; // Otherwise
|
||||
MmappedLexerState mmap; // If mmap()ed
|
||||
BufferedLexerState cbuf; // Otherwise
|
||||
};
|
||||
|
||||
// Common state
|
||||
@@ -73,7 +73,7 @@ struct LexerState {
|
||||
uint32_t colNo;
|
||||
int lastToken;
|
||||
|
||||
std::deque<struct IfStackEntry> ifStack;
|
||||
std::deque<IfStackEntry> ifStack;
|
||||
|
||||
bool capturing; // Whether the text being lexed should be captured
|
||||
size_t captureSize; // Amount of text captured
|
||||
@@ -84,18 +84,18 @@ struct LexerState {
|
||||
bool disableInterpolation;
|
||||
size_t macroArgScanDistance; // Max distance already scanned for macro args
|
||||
bool expandStrings;
|
||||
std::deque<struct Expansion> expansions; // Front is the innermost current expansion
|
||||
std::deque<Expansion> expansions; // Front is the innermost current expansion
|
||||
};
|
||||
|
||||
extern struct LexerState *lexerState;
|
||||
extern struct LexerState *lexerStateEOL;
|
||||
extern LexerState *lexerState;
|
||||
extern LexerState *lexerStateEOL;
|
||||
|
||||
static inline void lexer_SetState(struct LexerState *state)
|
||||
static inline void lexer_SetState(LexerState *state)
|
||||
{
|
||||
lexerState = state;
|
||||
}
|
||||
|
||||
static inline void lexer_SetStateAtEOL(struct LexerState *state)
|
||||
static inline void lexer_SetStateAtEOL(LexerState *state)
|
||||
{
|
||||
lexerStateEOL = state;
|
||||
}
|
||||
@@ -118,11 +118,10 @@ static inline void lexer_SetGfxDigits(char const digits[4])
|
||||
}
|
||||
|
||||
// `path` is referenced, but not held onto..!
|
||||
bool lexer_OpenFile(struct LexerState &state, char const *path);
|
||||
void lexer_OpenFileView(struct LexerState &state, char const *path, char *buf, size_t size,
|
||||
uint32_t lineNo);
|
||||
bool lexer_OpenFile(LexerState &state, char const *path);
|
||||
void lexer_OpenFileView(LexerState &state, char const *path, char *buf, size_t size, uint32_t lineNo);
|
||||
void lexer_RestartRept(uint32_t lineNo);
|
||||
void lexer_CleanupState(struct LexerState &state);
|
||||
void lexer_CleanupState(LexerState &state);
|
||||
void lexer_Init(void);
|
||||
void lexer_SetMode(enum LexerMode mode);
|
||||
void lexer_ToggleStringExpansion(bool enable);
|
||||
@@ -147,8 +146,8 @@ uint32_t lexer_GetLineNo(void);
|
||||
uint32_t lexer_GetColNo(void);
|
||||
void lexer_DumpStringExpansions(void);
|
||||
int yylex(void);
|
||||
bool lexer_CaptureRept(struct CaptureBody *capture);
|
||||
bool lexer_CaptureMacroBody(struct CaptureBody *capture);
|
||||
bool lexer_CaptureRept(CaptureBody *capture);
|
||||
bool lexer_CaptureMacroBody(CaptureBody *capture);
|
||||
|
||||
struct AlignmentSpec {
|
||||
uint8_t alignment;
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
|
||||
struct MacroArgs;
|
||||
|
||||
struct MacroArgs *macro_GetCurrentArgs(void);
|
||||
struct MacroArgs *macro_NewArgs(void);
|
||||
void macro_AppendArg(struct MacroArgs *args, char *s);
|
||||
void macro_UseNewArgs(struct MacroArgs *args);
|
||||
void macro_FreeArgs(struct MacroArgs *args);
|
||||
MacroArgs *macro_GetCurrentArgs(void);
|
||||
MacroArgs *macro_NewArgs(void);
|
||||
void macro_AppendArg(MacroArgs *args, char *s);
|
||||
void macro_UseNewArgs(MacroArgs *args);
|
||||
void macro_FreeArgs(MacroArgs *args);
|
||||
char const *macro_GetArg(uint32_t i);
|
||||
char const *macro_GetAllArgs(void);
|
||||
|
||||
|
||||
@@ -12,12 +12,11 @@ struct FileStackNode;
|
||||
|
||||
extern const char *objectName;
|
||||
|
||||
void out_RegisterNode(struct FileStackNode *node);
|
||||
void out_ReplaceNode(struct FileStackNode *node);
|
||||
void out_RegisterNode(FileStackNode *node);
|
||||
void out_ReplaceNode(FileStackNode *node);
|
||||
void out_SetFileName(char *s);
|
||||
void out_CreatePatch(uint32_t type, struct Expression const *expr, uint32_t ofs, uint32_t pcShift);
|
||||
void out_CreateAssert(enum AssertionType type, struct Expression const *expr,
|
||||
char const *message, uint32_t ofs);
|
||||
void out_CreatePatch(uint32_t type, Expression const *expr, uint32_t ofs, uint32_t pcShift);
|
||||
void out_CreateAssert(enum AssertionType type, Expression const *expr, char const *message, uint32_t ofs);
|
||||
void out_WriteObject(void);
|
||||
|
||||
#endif // RGBDS_ASM_OUTPUT_H
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
|
||||
#include "linkdefs.hpp"
|
||||
|
||||
struct Symbol;
|
||||
|
||||
struct Expression {
|
||||
int32_t val; // If the expression's value is known, it's here
|
||||
std::string *reason; // Why the expression is not known, if it isn't
|
||||
@@ -18,41 +20,39 @@ struct Expression {
|
||||
};
|
||||
|
||||
// Determines if an expression is known at assembly time
|
||||
static inline bool rpn_isKnown(struct Expression const *expr)
|
||||
static inline bool rpn_isKnown(Expression const *expr)
|
||||
{
|
||||
return expr->isKnown;
|
||||
}
|
||||
|
||||
// Determines if an expression is a symbol suitable for const diffing
|
||||
static inline bool rpn_isSymbol(const struct Expression *expr)
|
||||
static inline bool rpn_isSymbol(const Expression *expr)
|
||||
{
|
||||
return expr->isSymbol;
|
||||
}
|
||||
|
||||
void rpn_Symbol(struct Expression *expr, char const *symName);
|
||||
void rpn_Number(struct Expression *expr, uint32_t i);
|
||||
void rpn_LOGNOT(struct Expression *expr, const struct Expression *src);
|
||||
struct Symbol const *rpn_SymbolOf(struct Expression const *expr);
|
||||
bool rpn_IsDiffConstant(struct Expression const *src, struct Symbol const *symName);
|
||||
void rpn_BinaryOp(enum RPNCommand op, struct Expression *expr,
|
||||
const struct Expression *src1,
|
||||
const struct Expression *src2);
|
||||
void rpn_HIGH(struct Expression *expr, const struct Expression *src);
|
||||
void rpn_LOW(struct Expression *expr, const struct Expression *src);
|
||||
void rpn_ISCONST(struct Expression *expr, const struct Expression *src);
|
||||
void rpn_NEG(struct Expression *expr, const struct Expression *src);
|
||||
void rpn_NOT(struct Expression *expr, const struct Expression *src);
|
||||
void rpn_BankSymbol(struct Expression *expr, char const *symName);
|
||||
void rpn_BankSection(struct Expression *expr, char const *sectionName);
|
||||
void rpn_BankSelf(struct Expression *expr);
|
||||
void rpn_SizeOfSection(struct Expression *expr, char const *sectionName);
|
||||
void rpn_StartOfSection(struct Expression *expr, char const *sectionName);
|
||||
void rpn_SizeOfSectionType(struct Expression *expr, enum SectionType type);
|
||||
void rpn_StartOfSectionType(struct Expression *expr, enum SectionType type);
|
||||
void rpn_Free(struct Expression *expr);
|
||||
void rpn_CheckHRAM(struct Expression *expr, const struct Expression *src);
|
||||
void rpn_CheckRST(struct Expression *expr, const struct Expression *src);
|
||||
void rpn_CheckNBit(struct Expression const *expr, uint8_t n);
|
||||
int32_t rpn_GetConstVal(struct Expression const *expr);
|
||||
void rpn_Symbol(Expression *expr, char const *symName);
|
||||
void rpn_Number(Expression *expr, uint32_t i);
|
||||
void rpn_LOGNOT(Expression *expr, const Expression *src);
|
||||
Symbol const *rpn_SymbolOf(Expression const *expr);
|
||||
bool rpn_IsDiffConstant(Expression const *src, Symbol const *symName);
|
||||
void rpn_BinaryOp(enum RPNCommand op, Expression *expr, const Expression *src1, const Expression *src2);
|
||||
void rpn_HIGH(Expression *expr, const Expression *src);
|
||||
void rpn_LOW(Expression *expr, const Expression *src);
|
||||
void rpn_ISCONST(Expression *expr, const Expression *src);
|
||||
void rpn_NEG(Expression *expr, const Expression *src);
|
||||
void rpn_NOT(Expression *expr, const Expression *src);
|
||||
void rpn_BankSymbol(Expression *expr, char const *symName);
|
||||
void rpn_BankSection(Expression *expr, char const *sectionName);
|
||||
void rpn_BankSelf(Expression *expr);
|
||||
void rpn_SizeOfSection(Expression *expr, char const *sectionName);
|
||||
void rpn_StartOfSection(Expression *expr, char const *sectionName);
|
||||
void rpn_SizeOfSectionType(Expression *expr, enum SectionType type);
|
||||
void rpn_StartOfSectionType(Expression *expr, enum SectionType type);
|
||||
void rpn_Free(Expression *expr);
|
||||
void rpn_CheckHRAM(Expression *expr, const Expression *src);
|
||||
void rpn_CheckRST(Expression *expr, const Expression *src);
|
||||
void rpn_CheckNBit(Expression const *expr, uint8_t n);
|
||||
int32_t rpn_GetConstVal(Expression const *expr);
|
||||
|
||||
#endif // RGBDS_ASM_RPN_H
|
||||
|
||||
@@ -17,10 +17,10 @@ struct FileStackNode;
|
||||
struct Section;
|
||||
|
||||
struct Patch {
|
||||
struct FileStackNode const *src;
|
||||
FileStackNode const *src;
|
||||
uint32_t lineNo;
|
||||
uint32_t offset;
|
||||
struct Section *pcSection;
|
||||
Section *pcSection;
|
||||
uint32_t pcOffset;
|
||||
uint8_t type;
|
||||
std::vector<uint8_t> rpn;
|
||||
@@ -30,14 +30,14 @@ struct Section {
|
||||
char *name;
|
||||
enum SectionType type;
|
||||
enum SectionModifier modifier;
|
||||
struct FileStackNode const *src; // Where the section was defined
|
||||
FileStackNode const *src; // Where the section was defined
|
||||
uint32_t fileLine; // Line where the section was defined
|
||||
uint32_t size;
|
||||
uint32_t org;
|
||||
uint32_t bank;
|
||||
uint8_t align; // Exactly as specified in `ALIGN[]`
|
||||
uint16_t alignOfs;
|
||||
std::deque<struct Patch> patches;
|
||||
std::deque<Patch> patches;
|
||||
std::vector<uint8_t> data;
|
||||
};
|
||||
|
||||
@@ -47,17 +47,17 @@ struct SectionSpec {
|
||||
uint16_t alignOfs;
|
||||
};
|
||||
|
||||
extern std::deque<struct Section> sectionList;
|
||||
extern struct Section *currentSection;
|
||||
extern std::deque<Section> sectionList;
|
||||
extern Section *currentSection;
|
||||
|
||||
struct Section *sect_FindSectionByName(char const *name);
|
||||
Section *sect_FindSectionByName(char const *name);
|
||||
void sect_NewSection(char const *name, enum SectionType type, uint32_t org,
|
||||
struct SectionSpec const *attributes, enum SectionModifier mod);
|
||||
SectionSpec const *attributes, enum SectionModifier mod);
|
||||
void sect_SetLoadSection(char const *name, enum SectionType type, uint32_t org,
|
||||
struct SectionSpec const *attributes, enum SectionModifier mod);
|
||||
SectionSpec const *attributes, enum SectionModifier mod);
|
||||
void sect_EndLoadSection(void);
|
||||
|
||||
struct Section *sect_GetSymbolSection(void);
|
||||
Section *sect_GetSymbolSection(void);
|
||||
uint32_t sect_GetSymbolOffset(void);
|
||||
uint32_t sect_GetOutputOffset(void);
|
||||
uint32_t sect_GetAlignBytes(uint8_t alignment, uint16_t offset);
|
||||
@@ -73,11 +73,11 @@ void sect_AbsByteGroup(uint8_t const *s, size_t length);
|
||||
void sect_AbsWordGroup(uint8_t const *s, size_t length);
|
||||
void sect_AbsLongGroup(uint8_t const *s, size_t length);
|
||||
void sect_Skip(uint32_t skip, bool ds);
|
||||
void sect_RelByte(struct Expression *expr, uint32_t pcShift);
|
||||
void sect_RelBytes(uint32_t n, std::vector<struct Expression> &exprs);
|
||||
void sect_RelWord(struct Expression *expr, uint32_t pcShift);
|
||||
void sect_RelLong(struct Expression *expr, uint32_t pcShift);
|
||||
void sect_PCRelByte(struct Expression *expr, uint32_t pcShift);
|
||||
void sect_RelByte(Expression *expr, uint32_t pcShift);
|
||||
void sect_RelBytes(uint32_t n, std::vector<Expression> &exprs);
|
||||
void sect_RelWord(Expression *expr, uint32_t pcShift);
|
||||
void sect_RelLong(Expression *expr, uint32_t pcShift);
|
||||
void sect_PCRelByte(Expression *expr, uint32_t pcShift);
|
||||
void sect_BinaryFile(char const *s, int32_t startPos);
|
||||
void sect_BinaryFileSlice(char const *s, int32_t start_pos, int32_t length);
|
||||
|
||||
@@ -85,6 +85,6 @@ void sect_EndSection(void);
|
||||
void sect_PushSection(void);
|
||||
void sect_PopSection(void);
|
||||
|
||||
bool sect_IsSizeKnown(struct Section const NONNULL(name));
|
||||
bool sect_IsSizeKnown(Section const NONNULL(name));
|
||||
|
||||
#endif // RGBDS_SECTION_H
|
||||
|
||||
@@ -23,7 +23,7 @@ enum SymbolType {
|
||||
SYM_REF // Forward reference to a label
|
||||
};
|
||||
|
||||
// Only used in an anonymous union by `struct Symbol`
|
||||
// Only used in an anonymous union by `Symbol`
|
||||
struct strValue {
|
||||
size_t size;
|
||||
char *value;
|
||||
@@ -34,8 +34,8 @@ struct Symbol {
|
||||
enum SymbolType type;
|
||||
bool isExported; // Whether the symbol is to be exported
|
||||
bool isBuiltin; // Whether the symbol is a built-in
|
||||
struct Section *section;
|
||||
struct FileStackNode *src; // Where the symbol was defined
|
||||
Section *section;
|
||||
FileStackNode *src; // Where the symbol was defined
|
||||
uint32_t fileLine; // Line where the symbol was defined
|
||||
|
||||
bool hasCallback;
|
||||
@@ -44,91 +44,91 @@ struct Symbol {
|
||||
int32_t value;
|
||||
int32_t (*numCallback)(void); // If hasCallback
|
||||
// For SYM_MACRO
|
||||
struct strValue macro;
|
||||
strValue macro;
|
||||
// For SYM_EQUS
|
||||
struct strValue equs;
|
||||
strValue equs;
|
||||
char const *(*strCallback)(void); // If hasCallback
|
||||
};
|
||||
|
||||
uint32_t ID; // ID of the symbol in the object file (-1 if none)
|
||||
};
|
||||
|
||||
bool sym_IsPC(struct Symbol const *sym);
|
||||
bool sym_IsPC(Symbol const *sym);
|
||||
|
||||
static inline bool sym_IsDefined(struct Symbol const *sym)
|
||||
static inline bool sym_IsDefined(Symbol const *sym)
|
||||
{
|
||||
return sym->type != SYM_REF;
|
||||
}
|
||||
|
||||
static inline struct Section *sym_GetSection(struct Symbol const *sym)
|
||||
static inline Section *sym_GetSection(Symbol const *sym)
|
||||
{
|
||||
return sym_IsPC(sym) ? sect_GetSymbolSection() : sym->section;
|
||||
}
|
||||
|
||||
static inline bool sym_IsConstant(struct Symbol const *sym)
|
||||
static inline bool sym_IsConstant(Symbol const *sym)
|
||||
{
|
||||
if (sym->type == SYM_LABEL) {
|
||||
struct Section const *sect = sym_GetSection(sym);
|
||||
Section const *sect = sym_GetSection(sym);
|
||||
|
||||
return sect && sect->org != (uint32_t)-1;
|
||||
}
|
||||
return sym->type == SYM_EQU || sym->type == SYM_VAR;
|
||||
}
|
||||
|
||||
static inline bool sym_IsNumeric(struct Symbol const *sym)
|
||||
static inline bool sym_IsNumeric(Symbol const *sym)
|
||||
{
|
||||
return sym->type == SYM_LABEL || sym->type == SYM_EQU || sym->type == SYM_VAR;
|
||||
}
|
||||
|
||||
static inline bool sym_IsLabel(struct Symbol const *sym)
|
||||
static inline bool sym_IsLabel(Symbol const *sym)
|
||||
{
|
||||
return sym->type == SYM_LABEL || sym->type == SYM_REF;
|
||||
}
|
||||
|
||||
static inline bool sym_IsLocal(struct Symbol const *sym)
|
||||
static inline bool sym_IsLocal(Symbol const *sym)
|
||||
{
|
||||
return sym_IsLabel(sym) && strchr(sym->name, '.');
|
||||
}
|
||||
|
||||
static inline bool sym_IsExported(struct Symbol const *sym)
|
||||
static inline bool sym_IsExported(Symbol const *sym)
|
||||
{
|
||||
return sym->isExported;
|
||||
}
|
||||
|
||||
// Get a string equate's value
|
||||
static inline char const *sym_GetStringValue(struct Symbol const *sym)
|
||||
static inline char const *sym_GetStringValue(Symbol const *sym)
|
||||
{
|
||||
if (sym->hasCallback)
|
||||
return sym->strCallback();
|
||||
return sym->equs.value;
|
||||
}
|
||||
|
||||
void sym_ForEach(void (*func)(struct Symbol *));
|
||||
void sym_ForEach(void (*func)(Symbol *));
|
||||
|
||||
int32_t sym_GetValue(struct Symbol const *sym);
|
||||
int32_t sym_GetValue(Symbol const *sym);
|
||||
void sym_SetExportAll(bool set);
|
||||
struct Symbol *sym_AddLocalLabel(char const *symName);
|
||||
struct Symbol *sym_AddLabel(char const *symName);
|
||||
struct Symbol *sym_AddAnonLabel(void);
|
||||
Symbol *sym_AddLocalLabel(char const *symName);
|
||||
Symbol *sym_AddLabel(char const *symName);
|
||||
Symbol *sym_AddAnonLabel(void);
|
||||
void sym_WriteAnonLabelName(char buf[MIN_NB_ELMS(MAXSYMLEN + 1)], uint32_t ofs, bool neg);
|
||||
void sym_Export(char const *symName);
|
||||
struct Symbol *sym_AddEqu(char const *symName, int32_t value);
|
||||
struct Symbol *sym_RedefEqu(char const *symName, int32_t value);
|
||||
struct Symbol *sym_AddVar(char const *symName, int32_t value);
|
||||
Symbol *sym_AddEqu(char const *symName, int32_t value);
|
||||
Symbol *sym_RedefEqu(char const *symName, int32_t value);
|
||||
Symbol *sym_AddVar(char const *symName, int32_t value);
|
||||
uint32_t sym_GetPCValue(void);
|
||||
uint32_t sym_GetConstantSymValue(struct Symbol const *sym);
|
||||
uint32_t sym_GetConstantSymValue(Symbol const *sym);
|
||||
uint32_t sym_GetConstantValue(char const *symName);
|
||||
// Find a symbol by exact name, bypassing expansion checks
|
||||
struct Symbol *sym_FindExactSymbol(char const *symName);
|
||||
Symbol *sym_FindExactSymbol(char const *symName);
|
||||
// Find a symbol, possibly scoped, by name
|
||||
struct Symbol *sym_FindScopedSymbol(char const *symName);
|
||||
Symbol *sym_FindScopedSymbol(char const *symName);
|
||||
// Find a scoped symbol by name; do not return `@` or `_NARG` when they have no value
|
||||
struct Symbol *sym_FindScopedValidSymbol(char const *symName);
|
||||
struct Symbol const *sym_GetPC(void);
|
||||
struct Symbol *sym_AddMacro(char const *symName, int32_t defLineNo, char *body, size_t size);
|
||||
struct Symbol *sym_Ref(char const *symName);
|
||||
struct Symbol *sym_AddString(char const *symName, char const *value);
|
||||
struct Symbol *sym_RedefString(char const *symName, char const *value);
|
||||
Symbol *sym_FindScopedValidSymbol(char const *symName);
|
||||
Symbol const *sym_GetPC(void);
|
||||
Symbol *sym_AddMacro(char const *symName, int32_t defLineNo, char *body, size_t size);
|
||||
Symbol *sym_Ref(char const *symName);
|
||||
Symbol *sym_AddString(char const *symName, char const *value);
|
||||
Symbol *sym_RedefString(char const *symName, char const *value);
|
||||
void sym_Purge(std::string const &symName);
|
||||
void sym_Init(time_t now);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user