Kaydet (Commit) 7b53cf05 authored tarafından Nick Treleaven's avatar Nick Treleaven

Fix prefix for 2 nesting level functions.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@3787 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 76a36690
...@@ -22,13 +22,13 @@ ...@@ -22,13 +22,13 @@
* FUNCTION DEFINITIONS * FUNCTION DEFINITIONS
*/ */
extern NestingLevels *newNestingLevels(void) extern NestingLevels *nestingLevelsNew(void)
{ {
NestingLevels *nls = xCalloc (1, NestingLevels); NestingLevels *nls = xCalloc (1, NestingLevels);
return nls; return nls;
} }
extern void freeNestingLevels(NestingLevels *nls) extern void nestingLevelsFree(NestingLevels *nls)
{ {
int i; int i;
for (i = 0; i < nls->allocated; i++) for (i = 0; i < nls->allocated; i++)
......
...@@ -42,8 +42,8 @@ struct NestingLevels ...@@ -42,8 +42,8 @@ struct NestingLevels
/* /*
* FUNCTION PROTOTYPES * FUNCTION PROTOTYPES
*/ */
extern NestingLevels *newNestingLevels(void); extern NestingLevels *nestingLevelsNew(void);
extern void freeNestingLevels(NestingLevels *nls); extern void nestingLevelsFree(NestingLevels *nls);
extern void nestingLevelsPush(NestingLevels *nls, extern void nestingLevelsPush(NestingLevels *nls,
const vString *name, int type); const vString *name, int type);
extern void nestingLevelsPop(NestingLevels *nls); extern void nestingLevelsPop(NestingLevels *nls);
......
...@@ -432,7 +432,7 @@ static void findPythonTags (void) ...@@ -432,7 +432,7 @@ static void findPythonTags (void)
vString *const name = vStringNew (); vString *const name = vStringNew ();
vString *const parent = vStringNew(); vString *const parent = vStringNew();
NestingLevels *const nesting_levels = newNestingLevels(); NestingLevels *const nesting_levels = nestingLevelsNew();
const char *line; const char *line;
int line_skip = 0; int line_skip = 0;
...@@ -549,7 +549,7 @@ static void findPythonTags (void) ...@@ -549,7 +549,7 @@ static void findPythonTags (void)
vStringDelete (parent); vStringDelete (parent);
vStringDelete (name); vStringDelete (name);
vStringDelete (continuation); vStringDelete (continuation);
freeNestingLevels (nesting_levels); nestingLevelsFree (nesting_levels);
} }
extern parserDefinition *PythonParser (void) extern parserDefinition *PythonParser (void)
......
...@@ -130,7 +130,7 @@ static void findRestTags (void) ...@@ -130,7 +130,7 @@ static void findRestTags (void)
const unsigned char *line; const unsigned char *line;
memset(kindchars, 0, sizeof kindchars); memset(kindchars, 0, sizeof kindchars);
nestingLevels = newNestingLevels(); nestingLevels = nestingLevelsNew();
while ((line = fileReadLine ()) != NULL) while ((line = fileReadLine ()) != NULL)
{ {
...@@ -156,7 +156,7 @@ static void findRestTags (void) ...@@ -156,7 +156,7 @@ static void findRestTags (void)
vStringTerminate(name); vStringTerminate(name);
} }
vStringDelete (name); vStringDelete (name);
freeNestingLevels(nestingLevels); nestingLevelsFree(nestingLevels);
} }
extern parserDefinition* RestParser (void) extern parserDefinition* RestParser (void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment