shithub: rgbds

Download patch

ref: edb562d2e576e14661860860dd321e4f6fc3933c
parent: 6d4b128611cee85bb8955dc1964e61848c3ffdca
author: ISSOtm <eldredhabert0@gmail.com>
date: Wed Jan 29 21:18:55 EST 2020

Mark a few symbol functions as `static`

--- a/src/asm/symbol.c
+++ b/src/asm/symbol.c
@@ -49,7 +49,7 @@
 static char SavedSECOND[3];
 static bool exportall;
 
-int32_t Callback_NARG(unused_ struct sSymbol *sym)
+static int32_t Callback_NARG(unused_ struct sSymbol *sym)
 {
 	uint32_t i = 0;
 
@@ -59,7 +59,7 @@
 	return i;
 }
 
-int32_t Callback__LINE__(unused_ struct sSymbol *sym)
+static int32_t Callback__LINE__(unused_ struct sSymbol *sym)
 {
 	return nLineNo;
 }
@@ -89,7 +89,7 @@
 /*
  * Update a symbol's definition filename and line
  */
-void updateSymbolFilename(struct sSymbol *nsym)
+static void updateSymbolFilename(struct sSymbol *nsym)
 {
 	if (snprintf(nsym->tzFileName, _MAX_PATH + 1, "%s",
 		     tzCurrentFileName) > _MAX_PATH) {
@@ -102,7 +102,7 @@
 /*
  * Create a new symbol by name
  */
-struct sSymbol *createsymbol(char *s)
+static struct sSymbol *createsymbol(char *s)
 {
 	struct sSymbol **ppsym;
 	uint32_t hash;
@@ -153,7 +153,7 @@
 /*
  * Find the pointer to a symbol by name and scope
  */
-struct sSymbol **findpsymbol(char *s, struct sSymbol *scope)
+static struct sSymbol **findpsymbol(char *s, struct sSymbol *scope)
 {
 	struct sSymbol **ppsym;
 	int32_t hash;
@@ -187,7 +187,7 @@
 /*
  * Find a symbol by name and scope
  */
-struct sSymbol *findsymbol(char *s, struct sSymbol *scope)
+static struct sSymbol *findsymbol(char *s, struct sSymbol *scope)
 {
 	struct sSymbol **ppsym = findpsymbol(s, scope);