forked from Telodendria/Telodendria
Format source code.
This commit is contained in:
parent
a00ded6d06
commit
71fa96d10d
2 changed files with 8 additions and 3 deletions
|
@ -566,11 +566,13 @@ HeaderParse(Stream * stream, HeaderExpr * expr)
|
|||
}
|
||||
else if (c == '[')
|
||||
{
|
||||
/* Looks like we have an array. Slurp all the dimensions */
|
||||
/* Looks like we have an array. Slurp all the
|
||||
* dimensions */
|
||||
int block = 1;
|
||||
int i = wordLen;
|
||||
|
||||
expr->data.global.name[i] = '[';
|
||||
|
||||
i++;
|
||||
|
||||
while (1)
|
||||
|
@ -596,11 +598,13 @@ HeaderParse(Stream * stream, HeaderExpr * expr)
|
|||
if (c == ';')
|
||||
{
|
||||
expr->data.global.name[i] = '\0';
|
||||
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
expr->data.global.name[i] = c;
|
||||
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -300,8 +300,8 @@ main(int argc, char **argv)
|
|||
if (!isDocumented)
|
||||
{
|
||||
StreamPrintf(StreamStderr(),
|
||||
"Error: Global %s is undocumented.\n",
|
||||
expr.data.global.name);
|
||||
"Error: Global %s is undocumented.\n",
|
||||
expr.data.global.name);
|
||||
exit = EXIT_FAILURE;
|
||||
goto finish;
|
||||
}
|
||||
|
@ -309,6 +309,7 @@ main(int argc, char **argv)
|
|||
{
|
||||
global = Malloc(sizeof(DocGlobal));
|
||||
global->global = expr.data.global;
|
||||
|
||||
strncpy(global->docs, comment, sizeof(global->docs));
|
||||
ArrayAdd(globals, global);
|
||||
isDocumented = 0;
|
||||
|
|
Loading…
Reference in a new issue