Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258846
b: refs/heads/master
c: f0f3ca8
h: refs/heads/master
v: v3
  • Loading branch information
Jesper Juhl authored and Jiri Kosina committed Jun 16, 2011
1 parent cf4331d commit 8800b01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1c5454eed85af71df9c01ab923e0c1b841b2e99b
refs/heads/master: f0f3ca8d967462dafb815412b14ca3339b9817a6
17 changes: 5 additions & 12 deletions trunk/scripts/docproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ static void find_export_symbols(char * filename)
PATH_MAX - strlen(real_filename));
sym = add_new_file(filename);
fp = fopen(real_filename, "r");
if (fp == NULL)
{
if (fp == NULL) {
fprintf(stderr, "docproc: ");
perror(real_filename);
exit(1);
Expand Down Expand Up @@ -487,8 +486,7 @@ static void parse_file(FILE *infile)
default:
defaultline(line);
}
}
else {
} else {
defaultline(line);
}
}
Expand Down Expand Up @@ -519,8 +517,7 @@ int main(int argc, char *argv[])
exit(2);
}

if (strcmp("doc", argv[1]) == 0)
{
if (strcmp("doc", argv[1]) == 0) {
/* Need to do this in two passes.
* First pass is used to collect all symbols exported
* in the various files;
Expand Down Expand Up @@ -556,9 +553,7 @@ int main(int argc, char *argv[])
fprintf(stderr, "Warning: didn't use docs for %s\n",
all_list[i]);
}
}
else if (strcmp("depend", argv[1]) == 0)
{
} else if (strcmp("depend", argv[1]) == 0) {
/* Create first part of dependency chain
* file.tmpl */
printf("%s\t", argv[2]);
Expand All @@ -571,9 +566,7 @@ int main(int argc, char *argv[])
findall = adddep;
parse_file(infile);
printf("\n");
}
else
{
} else {
fprintf(stderr, "Unknown option: %s\n", argv[1]);
exit(1);
}
Expand Down

0 comments on commit 8800b01

Please sign in to comment.