Remove 'inline' from functions not in headers

This commit is contained in:
Rangi
2021-04-13 10:27:08 -04:00
parent 25a8518fbf
commit c08cf783c8
9 changed files with 24 additions and 26 deletions

View File

@@ -106,8 +106,7 @@ static void processLinkerScript(void)
* @param section The section to assign
* @param location The location to assign the section to
*/
static inline void assignSection(struct Section *section,
struct MemoryLocation const *location)
static void assignSection(struct Section *section, struct MemoryLocation const *location)
{
section->org = location->address;
section->bank = location->bank;

View File

@@ -452,7 +452,7 @@ static void readAssertion(FILE *file, struct Assertion *assert,
fileName);
}
static inline struct Section *getMainSection(struct Section *section)
static struct Section *getMainSection(struct Section *section)
{
if (section->modifier != SECTION_NORMAL)
section = sect_GetSection(section->name);

View File

@@ -37,7 +37,7 @@ struct RPNStack {
size_t capacity;
} stack;
static inline void initRPNStack(void)
static void initRPNStack(void)
{
stack.capacity = 64;
stack.values = malloc(sizeof(*stack.values) * stack.capacity);
@@ -46,7 +46,7 @@ static inline void initRPNStack(void)
err(1, "Failed to init RPN stack");
}
static inline void clearRPNStack(void)
static void clearRPNStack(void)
{
stack.size = 0;
}
@@ -92,7 +92,7 @@ static int32_t popRPN(struct FileStackNode const *node, uint32_t lineNo)
return stack.values[stack.size];
}
static inline void freeRPNStack(void)
static void freeRPNStack(void)
{
free(stack.values);
free(stack.errorFlags);

View File

@@ -78,12 +78,12 @@ static bool popFile(void)
return true;
}
static inline bool isWhiteSpace(int c)
static bool isWhiteSpace(int c)
{
return c == ' ' || c == '\t';
}
static inline bool isNewline(int c)
static bool isNewline(int c)
{
return c == '\r' || c == '\n';
}