mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Replace RGBLINK non-null pointers with references
This commit is contained in:
@@ -12,11 +12,6 @@
|
||||
*/
|
||||
void obj_ReadFile(char const *fileName, unsigned int i);
|
||||
|
||||
/*
|
||||
* Perform validation on the object files' contents
|
||||
*/
|
||||
void obj_DoSanityChecks();
|
||||
|
||||
/*
|
||||
* Evaluate all assertions
|
||||
*/
|
||||
|
||||
@@ -12,14 +12,14 @@
|
||||
* Registers a section for output.
|
||||
* @param section The section to add
|
||||
*/
|
||||
void out_AddSection(Section const *section);
|
||||
void out_AddSection(Section const §ion);
|
||||
|
||||
/*
|
||||
* Finds an assigned section overlapping another one.
|
||||
* @param section The section that is being overlapped
|
||||
* @return A section overlapping it
|
||||
*/
|
||||
Section const *out_OverlappingSection(Section const *section);
|
||||
Section const *out_OverlappingSection(Section const §ion);
|
||||
|
||||
/*
|
||||
* Writes all output (bin, sym, map) files.
|
||||
|
||||
@@ -10,6 +10,6 @@
|
||||
struct FileStackNode;
|
||||
struct Symbol;
|
||||
|
||||
void sdobj_ReadFile(FileStackNode const *fileName, FILE *file, std::vector<Symbol> &fileSymbols);
|
||||
void sdobj_ReadFile(FileStackNode const &where, FILE *file, std::vector<Symbol> &fileSymbols);
|
||||
|
||||
#endif // RGBDS_LINK_SDAS_OBJ_H
|
||||
|
||||
@@ -58,13 +58,13 @@ struct Section {
|
||||
* This is to avoid exposing the data structure in which sections are stored.
|
||||
* @param callback The function to call for each structure.
|
||||
*/
|
||||
void sect_ForEach(void (*callback)(Section *));
|
||||
void sect_ForEach(void (*callback)(Section &));
|
||||
|
||||
/*
|
||||
* Registers a section to be processed.
|
||||
* @param section The section to register.
|
||||
*/
|
||||
void sect_AddSection(Section *section);
|
||||
void sect_AddSection(Section §ion);
|
||||
|
||||
/*
|
||||
* Finds a section by its name.
|
||||
|
||||
@@ -31,7 +31,7 @@ struct Symbol {
|
||||
Section *section;
|
||||
};
|
||||
|
||||
void sym_AddSymbol(Symbol *symbol);
|
||||
void sym_AddSymbol(Symbol &symbol);
|
||||
|
||||
/*
|
||||
* Finds a symbol in all the defined symbols.
|
||||
|
||||
Reference in New Issue
Block a user