Permalink
Browse files

scilab: no need to use prefix "g_" for global names

  • Loading branch information...
1 parent f365f8e commit 67f0f71f1902cc1438a04a433a388e4f52984144 @smarchetto smarchetto committed Jul 21, 2014
Showing with 6 additions and 6 deletions.
  1. +6 −6 Lib/scilab/scirun.swg
View
12 Lib/scilab/scirun.swg
@@ -41,15 +41,15 @@ extern "C" {
/* Function name management functions */
#include <stdlib.h>
-static char* g_fname = NULL;
+static char* fname = NULL;
static char* SWIG_Scilab_GetFname(void) {
- return g_fname;
+ return fname;
}
-static void SWIG_Scilab_SetFname(char* fname) {
- if (g_fname != NULL) {
- free(g_fname);
+static void SWIG_Scilab_SetFname(char* _fname) {
+ if (fname != NULL) {
+ free(fname);
}
- g_fname = strdup(fname);
+ fname = strdup(_fname);
}
#if SWIG_SCILAB_VERSION >= 600
static void *pvApiCtx = NULL;

0 comments on commit 67f0f71

Please sign in to comment.