lib: Make some functions static
authorDavid Schleef <ds@schleef.org>
Thu, 18 Mar 2010 23:42:29 +0000 (16:42 -0700)
committerDavid Schleef <ds@schleef.org>
Thu, 18 Mar 2010 23:42:29 +0000 (16:42 -0700)
There's still several functions that don't have an orc_ prefix
that are leaked into the global namespace, but these were the
worst.  Fixes: #27102.

orc/orcprogram-c.c
orc/orcprogram-c64x-c.c

index 4590a93..6457388 100644 (file)
@@ -65,7 +65,7 @@ orc_compiler_c_get_default_flags (void)
   return 0;
 }
 
-const char *varnames[] = {
+static const char *varnames[] = {
   "d1", "d2", "d3", "d4",
   "s1", "s2", "s3", "s4",
   "s5", "s6", "s7", "s8",
index 4efd5c7..a7f319a 100644 (file)
@@ -12,7 +12,7 @@
 
 void orc_c_init (void);
 
-void emit_loop (OrcCompiler *compiler, int prefix);
+static void emit_loop (OrcCompiler *compiler, int prefix);
 
 void
 orc_compiler_c64x_c_init (OrcCompiler *compiler)
@@ -104,7 +104,7 @@ static const char *varnames[] = {
   "t13", "t14", "t15", "t16"
 };
 
-void
+static void
 output_prototype (OrcCompiler *compiler)
 {
   OrcProgram *p = compiler->program;
@@ -459,7 +459,7 @@ orc_compiler_c64x_c_assemble (OrcCompiler *compiler)
   }
 }
 
-void
+static void
 emit_loop (OrcCompiler *compiler, int prefix)
 {
   int j;