Thu, 02 Feb 2012 14:17:35 +0100
added regex parser
10 | 1 | /* |
2 | * cline.c | |
3 | * | |
4 | * Created on: 23.05.2011 | |
20
43725438ac50
Changed author comments + added signatures for upcomming bfile heuristics
Mike Becker <universe@uap-core.de>
parents:
19
diff
changeset
|
5 | * Author: Mike |
10 | 6 | */ |
6
be923400164c
encapsulated suffix list in type suffix_list_t
Mike Becker <universe@uap-core.de>
parents:
5
diff
changeset
|
7 | |
10 | 8 | #include "cline.h" |
9 | #include "scanner.h" | |
10 | #include "settings.h" | |
12
902cb8d2053c
removed dynamic programm name
Mike Becker <universe@uap-core.de>
parents:
11
diff
changeset
|
11 | #include "arguments.h" |
16
bc9a0fefd892
fixed makefile to run safely on compile errors + added -V option to cline
Mike Becker <universe@uap-core.de>
parents:
14
diff
changeset
|
12 | #include "stream.h" |
27
95a958e3de88
added regexp_parser struct and compile function
Mike Becker <universe@uap-core.de>
parents:
26
diff
changeset
|
13 | #include "regex_parser.h" |
0 | 14 | |
12
902cb8d2053c
removed dynamic programm name
Mike Becker <universe@uap-core.de>
parents:
11
diff
changeset
|
15 | void printHelpText() { |
0 | 16 | const char* helpText = |
1 | 17 | "\nUsage:" |
27
95a958e3de88
added regexp_parser struct and compile function
Mike Becker <universe@uap-core.de>
parents:
26
diff
changeset
|
18 | "\n cline [Options] [Directory]" |
95a958e3de88
added regexp_parser struct and compile function
Mike Becker <universe@uap-core.de>
parents:
26
diff
changeset
|
19 | "\n cline [Options] [Directory]" |
0 | 20 | "\n\nCounts the line terminator characters (\\n) within all" |
21 | " files in the specified\ndirectory." | |
22 | "\n\nOptions:" | |
21
91e0890464b0
implemented bfile heuristics option + TODO: implement algorithm
Mike Becker <universe@uap-core.de>
parents:
20
diff
changeset
|
23 | "\n -b <level> - binary file heuristics level (default medium)" |
91e0890464b0
implemented bfile heuristics option + TODO: implement algorithm
Mike Becker <universe@uap-core.de>
parents:
20
diff
changeset
|
24 | "\n One of: ignore low medium high" |
28 | 25 | "\n -E <pattern> - Excludes any line matching the <pattern>" |
27
95a958e3de88
added regexp_parser struct and compile function
Mike Becker <universe@uap-core.de>
parents:
26
diff
changeset
|
26 | "\n -e <start> <end> - Excludes lines between <start> and <end>" |
28 | 27 | "\n You may use these options multiple times" |
0 | 28 | "\n -h, --help - this help text" |
1 | 29 | "\n -m - print information about matching files only" |
30 | "\n -s <suffixes> - only count files with these suffixes (separated" | |
0 | 31 | "\n by commas)" |
1 | 32 | "\n -S <suffixes> - count any file except those with these suffixes" |
0 | 33 | "\n (separated by commas)" |
1 | 34 | "\n -r, -R - includes subdirectories" |
14
ee9333c91dda
some minor fixes + makefile now injects revisionnumber into cline.h
Mike Becker <universe@uap-core.de>
parents:
12
diff
changeset
|
35 | "\n -v, --version - print out version information" |
16
bc9a0fefd892
fixed makefile to run safely on compile errors + added -V option to cline
Mike Becker <universe@uap-core.de>
parents:
14
diff
changeset
|
36 | "\n -V - turn verbose output off, print the result only" |
0 | 37 | "\n\n" |
1 | 38 | "The default call without any options is:" |
28 | 39 | "\n cline ./\n\n" |
7
1b55f3fa52c9
Fixed helpText and removed extra variables for default values
Mike Becker <universe@uap-core.de>
parents:
6
diff
changeset
|
40 | "So each file in the working directory is counted. If you want to count C" |
1b55f3fa52c9
Fixed helpText and removed extra variables for default values
Mike Becker <universe@uap-core.de>
parents:
6
diff
changeset
|
41 | "\nsource code in your working directory and its subdirectories, type:" |
27
95a958e3de88
added regexp_parser struct and compile function
Mike Becker <universe@uap-core.de>
parents:
26
diff
changeset
|
42 | "\n cline -rs .c\n" |
28 | 43 | "\nIf you want to exclude comment lines, you may use the -e/-E option." |
27
95a958e3de88
added regexp_parser struct and compile function
Mike Becker <universe@uap-core.de>
parents:
26
diff
changeset
|
44 | "\nAfter a line matches the regex pattern <start> any following line is" |
28 | 45 | "\nnot counted unless a line matches the <end> pattern. A line is still " |
46 | "\ncounted when it does not start or end with the respective patterns." | |
47 | "\nPlease note, that cline does not remove whitespace characters as this" | |
48 | "\nmight not be reasonable in some cases." | |
49 | "\n\nExample (C comments):" | |
50 | "\n cline -s .c,.h -E \"\\s*//\" -e \"\\s*/\\*\" \"\\*/\\s*\""; | |
1 | 51 | |
12
902cb8d2053c
removed dynamic programm name
Mike Becker <universe@uap-core.de>
parents:
11
diff
changeset
|
52 | printf(helpText); |
1 | 53 | } |
54 | ||
14
ee9333c91dda
some minor fixes + makefile now injects revisionnumber into cline.h
Mike Becker <universe@uap-core.de>
parents:
12
diff
changeset
|
55 | int exit_with_version(settings_t* settings) { |
16
bc9a0fefd892
fixed makefile to run safely on compile errors + added -V option to cline
Mike Becker <universe@uap-core.de>
parents:
14
diff
changeset
|
56 | printf("cline - Revision: %s", VERSION); |
14
ee9333c91dda
some minor fixes + makefile now injects revisionnumber into cline.h
Mike Becker <universe@uap-core.de>
parents:
12
diff
changeset
|
57 | destroy_settings_t(settings); |
ee9333c91dda
some minor fixes + makefile now injects revisionnumber into cline.h
Mike Becker <universe@uap-core.de>
parents:
12
diff
changeset
|
58 | return 0; |
ee9333c91dda
some minor fixes + makefile now injects revisionnumber into cline.h
Mike Becker <universe@uap-core.de>
parents:
12
diff
changeset
|
59 | } |
ee9333c91dda
some minor fixes + makefile now injects revisionnumber into cline.h
Mike Becker <universe@uap-core.de>
parents:
12
diff
changeset
|
60 | |
12
902cb8d2053c
removed dynamic programm name
Mike Becker <universe@uap-core.de>
parents:
11
diff
changeset
|
61 | int exit_with_help(settings_t* settings, int code) { |
902cb8d2053c
removed dynamic programm name
Mike Becker <universe@uap-core.de>
parents:
11
diff
changeset
|
62 | printHelpText(); |
8
28319b20968c
encapsulated common operations
Mike Becker <universe@uap-core.de>
parents:
7
diff
changeset
|
63 | destroy_settings_t(settings); |
28319b20968c
encapsulated common operations
Mike Becker <universe@uap-core.de>
parents:
7
diff
changeset
|
64 | return code; |
28319b20968c
encapsulated common operations
Mike Becker <universe@uap-core.de>
parents:
7
diff
changeset
|
65 | } |
28319b20968c
encapsulated common operations
Mike Becker <universe@uap-core.de>
parents:
7
diff
changeset
|
66 | |
1 | 67 | int main(int argc, char** argv) { |
0 | 68 | |
22
4508da679ffb
completed binary file heuristics
Mike Becker <universe@uap-core.de>
parents:
21
diff
changeset
|
69 | /* Settings */ |
3
510d6b198dde
Moved some functions to functions.c
Mike Becker <universe@uap-core.de>
parents:
1
diff
changeset
|
70 | settings_t *settings = new_settings_t(); |
5
9393eff3d2f9
Fixed memory leak when exiting the programm ahead of time
Mike Becker <universe@uap-core.de>
parents:
4
diff
changeset
|
71 | if (settings == NULL) { |
9393eff3d2f9
Fixed memory leak when exiting the programm ahead of time
Mike Becker <universe@uap-core.de>
parents:
4
diff
changeset
|
72 | fprintf(stderr, "Memory allocation failed.\n"); |
9393eff3d2f9
Fixed memory leak when exiting the programm ahead of time
Mike Becker <universe@uap-core.de>
parents:
4
diff
changeset
|
73 | return 1; |
9393eff3d2f9
Fixed memory leak when exiting the programm ahead of time
Mike Becker <universe@uap-core.de>
parents:
4
diff
changeset
|
74 | } |
3
510d6b198dde
Moved some functions to functions.c
Mike Becker <universe@uap-core.de>
parents:
1
diff
changeset
|
75 | |
22
4508da679ffb
completed binary file heuristics
Mike Becker <universe@uap-core.de>
parents:
21
diff
changeset
|
76 | /* Get arguments */ |
7
1b55f3fa52c9
Fixed helpText and removed extra variables for default values
Mike Becker <universe@uap-core.de>
parents:
6
diff
changeset
|
77 | char* directory = "./"; |
1b55f3fa52c9
Fixed helpText and removed extra variables for default values
Mike Becker <universe@uap-core.de>
parents:
6
diff
changeset
|
78 | char* suffix = " "; |
8
28319b20968c
encapsulated common operations
Mike Becker <universe@uap-core.de>
parents:
7
diff
changeset
|
79 | int checked = 0; |
0 | 80 | |
1 | 81 | for (int t = 1 ; t < argc ; t++) { |
82 | ||
28 | 83 | int argflags = checkArgument(argv[t], "hsSrRmvVbeE"); |
1 | 84 | |
22
4508da679ffb
completed binary file heuristics
Mike Becker <universe@uap-core.de>
parents:
21
diff
changeset
|
85 | /* s, S */ |
14
ee9333c91dda
some minor fixes + makefile now injects revisionnumber into cline.h
Mike Becker <universe@uap-core.de>
parents:
12
diff
changeset
|
86 | if ((argflags & 6) > 0) { |
8
28319b20968c
encapsulated common operations
Mike Becker <universe@uap-core.de>
parents:
7
diff
changeset
|
87 | if (registerArgument(&checked, 6)) { |
12
902cb8d2053c
removed dynamic programm name
Mike Becker <universe@uap-core.de>
parents:
11
diff
changeset
|
88 | return exit_with_help(settings, 1); |
0 | 89 | } |
14
ee9333c91dda
some minor fixes + makefile now injects revisionnumber into cline.h
Mike Becker <universe@uap-core.de>
parents:
12
diff
changeset
|
90 | settings->includeSuffixes = (argflags & 2) > 0; |
1 | 91 | t++; |
92 | if (t >= argc) { | |
12
902cb8d2053c
removed dynamic programm name
Mike Becker <universe@uap-core.de>
parents:
11
diff
changeset
|
93 | return exit_with_help(settings, 1); |
1 | 94 | } |
95 | suffix = argv[t]; | |
0 | 96 | } |
22
4508da679ffb
completed binary file heuristics
Mike Becker <universe@uap-core.de>
parents:
21
diff
changeset
|
97 | /* h */ |
1 | 98 | if ((argflags & 1) > 0 || strcmp(argv[t], "--help") == 0) { |
14
ee9333c91dda
some minor fixes + makefile now injects revisionnumber into cline.h
Mike Becker <universe@uap-core.de>
parents:
12
diff
changeset
|
99 | return exit_with_help(settings, 0); |
0 | 100 | } |
22
4508da679ffb
completed binary file heuristics
Mike Becker <universe@uap-core.de>
parents:
21
diff
changeset
|
101 | /* r, R */ |
1 | 102 | if ((argflags & 24) > 0) { |
8
28319b20968c
encapsulated common operations
Mike Becker <universe@uap-core.de>
parents:
7
diff
changeset
|
103 | if (registerArgument(&checked, 24)) { |
12
902cb8d2053c
removed dynamic programm name
Mike Becker <universe@uap-core.de>
parents:
11
diff
changeset
|
104 | return exit_with_help(settings, 1); |
0 | 105 | } |
3
510d6b198dde
Moved some functions to functions.c
Mike Becker <universe@uap-core.de>
parents:
1
diff
changeset
|
106 | settings->recursive = true; |
0 | 107 | } |
22
4508da679ffb
completed binary file heuristics
Mike Becker <universe@uap-core.de>
parents:
21
diff
changeset
|
108 | /* m */ |
1 | 109 | if ((argflags & 32) > 0) { |
8
28319b20968c
encapsulated common operations
Mike Becker <universe@uap-core.de>
parents:
7
diff
changeset
|
110 | if (registerArgument(&checked, 32)) { |
12
902cb8d2053c
removed dynamic programm name
Mike Becker <universe@uap-core.de>
parents:
11
diff
changeset
|
111 | return exit_with_help(settings, 1); |
0 | 112 | } |
3
510d6b198dde
Moved some functions to functions.c
Mike Becker <universe@uap-core.de>
parents:
1
diff
changeset
|
113 | settings->matchesOnly = true; |
0 | 114 | } |
22
4508da679ffb
completed binary file heuristics
Mike Becker <universe@uap-core.de>
parents:
21
diff
changeset
|
115 | /* v */ |
14
ee9333c91dda
some minor fixes + makefile now injects revisionnumber into cline.h
Mike Becker <universe@uap-core.de>
parents:
12
diff
changeset
|
116 | if ((argflags & 64) > 0 || strcmp(argv[t], "--version") == 0) { |
ee9333c91dda
some minor fixes + makefile now injects revisionnumber into cline.h
Mike Becker <universe@uap-core.de>
parents:
12
diff
changeset
|
117 | return exit_with_version(settings); |
ee9333c91dda
some minor fixes + makefile now injects revisionnumber into cline.h
Mike Becker <universe@uap-core.de>
parents:
12
diff
changeset
|
118 | } |
22
4508da679ffb
completed binary file heuristics
Mike Becker <universe@uap-core.de>
parents:
21
diff
changeset
|
119 | /* V */ |
16
bc9a0fefd892
fixed makefile to run safely on compile errors + added -V option to cline
Mike Becker <universe@uap-core.de>
parents:
14
diff
changeset
|
120 | if ((argflags & 128) > 0) { |
bc9a0fefd892
fixed makefile to run safely on compile errors + added -V option to cline
Mike Becker <universe@uap-core.de>
parents:
14
diff
changeset
|
121 | if (registerArgument(&checked, 128)) { |
bc9a0fefd892
fixed makefile to run safely on compile errors + added -V option to cline
Mike Becker <universe@uap-core.de>
parents:
14
diff
changeset
|
122 | return exit_with_help(settings, 1); |
bc9a0fefd892
fixed makefile to run safely on compile errors + added -V option to cline
Mike Becker <universe@uap-core.de>
parents:
14
diff
changeset
|
123 | } |
bc9a0fefd892
fixed makefile to run safely on compile errors + added -V option to cline
Mike Becker <universe@uap-core.de>
parents:
14
diff
changeset
|
124 | settings->verbose = false; |
bc9a0fefd892
fixed makefile to run safely on compile errors + added -V option to cline
Mike Becker <universe@uap-core.de>
parents:
14
diff
changeset
|
125 | } |
22
4508da679ffb
completed binary file heuristics
Mike Becker <universe@uap-core.de>
parents:
21
diff
changeset
|
126 | /* b */ |
21
91e0890464b0
implemented bfile heuristics option + TODO: implement algorithm
Mike Becker <universe@uap-core.de>
parents:
20
diff
changeset
|
127 | if ((argflags & 256) > 0) { |
91e0890464b0
implemented bfile heuristics option + TODO: implement algorithm
Mike Becker <universe@uap-core.de>
parents:
20
diff
changeset
|
128 | if (registerArgument(&checked, 256)) { |
91e0890464b0
implemented bfile heuristics option + TODO: implement algorithm
Mike Becker <universe@uap-core.de>
parents:
20
diff
changeset
|
129 | return exit_with_help(settings, 1); |
91e0890464b0
implemented bfile heuristics option + TODO: implement algorithm
Mike Becker <universe@uap-core.de>
parents:
20
diff
changeset
|
130 | } |
91e0890464b0
implemented bfile heuristics option + TODO: implement algorithm
Mike Becker <universe@uap-core.de>
parents:
20
diff
changeset
|
131 | t++; |
91e0890464b0
implemented bfile heuristics option + TODO: implement algorithm
Mike Becker <universe@uap-core.de>
parents:
20
diff
changeset
|
132 | if (t >= argc) { |
91e0890464b0
implemented bfile heuristics option + TODO: implement algorithm
Mike Becker <universe@uap-core.de>
parents:
20
diff
changeset
|
133 | return exit_with_help(settings, 1); |
91e0890464b0
implemented bfile heuristics option + TODO: implement algorithm
Mike Becker <universe@uap-core.de>
parents:
20
diff
changeset
|
134 | } |
24
3963e8800a12
replaced stricmp with strcasecmp to stay standard compliant
Mike Becker <universe@uap-core.de>
parents:
23
diff
changeset
|
135 | if (strcasecmp(argv[t], "ignore") == 0) { |
21
91e0890464b0
implemented bfile heuristics option + TODO: implement algorithm
Mike Becker <universe@uap-core.de>
parents:
20
diff
changeset
|
136 | settings->bfileHeuristics->level = BFILE_IGNORE; |
24
3963e8800a12
replaced stricmp with strcasecmp to stay standard compliant
Mike Becker <universe@uap-core.de>
parents:
23
diff
changeset
|
137 | } else if (strcasecmp(argv[t], "low") == 0) { |
21
91e0890464b0
implemented bfile heuristics option + TODO: implement algorithm
Mike Becker <universe@uap-core.de>
parents:
20
diff
changeset
|
138 | settings->bfileHeuristics->level = BFILE_LOW_ACCURACY; |
24
3963e8800a12
replaced stricmp with strcasecmp to stay standard compliant
Mike Becker <universe@uap-core.de>
parents:
23
diff
changeset
|
139 | } else if (strcasecmp(argv[t], "medium") == 0) { |
21
91e0890464b0
implemented bfile heuristics option + TODO: implement algorithm
Mike Becker <universe@uap-core.de>
parents:
20
diff
changeset
|
140 | settings->bfileHeuristics->level = BFILE_MEDIUM_ACCURACY; |
24
3963e8800a12
replaced stricmp with strcasecmp to stay standard compliant
Mike Becker <universe@uap-core.de>
parents:
23
diff
changeset
|
141 | } else if (strcasecmp(argv[t], "high") == 0) { |
21
91e0890464b0
implemented bfile heuristics option + TODO: implement algorithm
Mike Becker <universe@uap-core.de>
parents:
20
diff
changeset
|
142 | settings->bfileHeuristics->level = BFILE_HIGH_ACCURACY; |
91e0890464b0
implemented bfile heuristics option + TODO: implement algorithm
Mike Becker <universe@uap-core.de>
parents:
20
diff
changeset
|
143 | } else { |
91e0890464b0
implemented bfile heuristics option + TODO: implement algorithm
Mike Becker <universe@uap-core.de>
parents:
20
diff
changeset
|
144 | return exit_with_help(settings, 1); |
91e0890464b0
implemented bfile heuristics option + TODO: implement algorithm
Mike Becker <universe@uap-core.de>
parents:
20
diff
changeset
|
145 | } |
91e0890464b0
implemented bfile heuristics option + TODO: implement algorithm
Mike Becker <universe@uap-core.de>
parents:
20
diff
changeset
|
146 | } |
28 | 147 | /* e */ |
27
95a958e3de88
added regexp_parser struct and compile function
Mike Becker <universe@uap-core.de>
parents:
26
diff
changeset
|
148 | if ((argflags & 512) > 0) { |
95a958e3de88
added regexp_parser struct and compile function
Mike Becker <universe@uap-core.de>
parents:
26
diff
changeset
|
149 | if (t + 2 >= argc) { |
95a958e3de88
added regexp_parser struct and compile function
Mike Becker <universe@uap-core.de>
parents:
26
diff
changeset
|
150 | return exit_with_help(settings, 1); |
95a958e3de88
added regexp_parser struct and compile function
Mike Becker <universe@uap-core.de>
parents:
26
diff
changeset
|
151 | } |
95a958e3de88
added regexp_parser struct and compile function
Mike Becker <universe@uap-core.de>
parents:
26
diff
changeset
|
152 | t++; add_string(settings->regex->pattern_list, argv[t]); |
95a958e3de88
added regexp_parser struct and compile function
Mike Becker <universe@uap-core.de>
parents:
26
diff
changeset
|
153 | t++; add_string(settings->regex->pattern_list, argv[t]); |
95a958e3de88
added regexp_parser struct and compile function
Mike Becker <universe@uap-core.de>
parents:
26
diff
changeset
|
154 | } |
28 | 155 | /* E */ |
156 | if ((argflags & 1024) > 0) { | |
157 | t++; | |
158 | if (t >= argc) { | |
159 | return exit_with_help(settings, 1); | |
160 | } | |
161 | add_string(settings->regex->pattern_list, argv[t]); | |
162 | add_string(settings->regex->pattern_list, "$"); | |
163 | } | |
22
4508da679ffb
completed binary file heuristics
Mike Becker <universe@uap-core.de>
parents:
21
diff
changeset
|
164 | /* Path */ |
1 | 165 | if (argflags == 0) { |
8
28319b20968c
encapsulated common operations
Mike Becker <universe@uap-core.de>
parents:
7
diff
changeset
|
166 | if (registerArgument(&checked, 1024)) { |
12
902cb8d2053c
removed dynamic programm name
Mike Becker <universe@uap-core.de>
parents:
11
diff
changeset
|
167 | return exit_with_help(settings, 1); |
0 | 168 | } |
169 | directory = argv[t]; | |
170 | } | |
171 | } | |
172 | ||
22
4508da679ffb
completed binary file heuristics
Mike Becker <universe@uap-core.de>
parents:
21
diff
changeset
|
173 | /* Configure output */ |
16
bc9a0fefd892
fixed makefile to run safely on compile errors + added -V option to cline
Mike Becker <universe@uap-core.de>
parents:
14
diff
changeset
|
174 | if (!settings->verbose) { |
bc9a0fefd892
fixed makefile to run safely on compile errors + added -V option to cline
Mike Becker <universe@uap-core.de>
parents:
14
diff
changeset
|
175 | close_stdout(); |
bc9a0fefd892
fixed makefile to run safely on compile errors + added -V option to cline
Mike Becker <universe@uap-core.de>
parents:
14
diff
changeset
|
176 | } |
bc9a0fefd892
fixed makefile to run safely on compile errors + added -V option to cline
Mike Becker <universe@uap-core.de>
parents:
14
diff
changeset
|
177 | |
22
4508da679ffb
completed binary file heuristics
Mike Becker <universe@uap-core.de>
parents:
21
diff
changeset
|
178 | /* Find tokens */ |
6
be923400164c
encapsulated suffix list in type suffix_list_t
Mike Becker <universe@uap-core.de>
parents:
5
diff
changeset
|
179 | char* finder = strtok(suffix, ","); |
1 | 180 | while (finder != NULL) { |
19
8bac9fd0629d
generalized suffix_list to string_list
Mike Becker <universe@uap-core.de>
parents:
16
diff
changeset
|
181 | add_string(settings->suffixList, finder); |
0 | 182 | finder = strtok(NULL, ","); |
183 | } | |
184 | ||
22
4508da679ffb
completed binary file heuristics
Mike Becker <universe@uap-core.de>
parents:
21
diff
changeset
|
185 | /* Scan directory */ |
28 | 186 | if (regex_compile_all(settings->regex)) { |
187 | int lines = scanDirectory((scanner_t){directory, 0}, settings); | |
188 | destroy_settings_t(settings); | |
0 | 189 | |
28 | 190 | /* Print double line and line count */ |
191 | for (int t = 0 ; t < 79 ; t++) { | |
192 | printf("="); | |
193 | } | |
194 | printf("\n%73d lines\n", lines); | |
0 | 195 | |
28 | 196 | if (settings->confusing_lnlen && settings->regex->pattern_list->count > 0) { |
197 | printf("\nSome files contain too long lines.\n" | |
198 | "The regex parser currently supports a maximum line length of %d." | |
199 | "\nThe result might be wrong.\n", REGEX_MAX_LINELENGTH); | |
200 | } | |
25
802c5382f499
Added line buffer (and warning message - there is no regexp parser, though)
Mike Becker <universe@uap-core.de>
parents:
23
diff
changeset
|
201 | |
28 | 202 | if (!settings->verbose) { |
203 | reopen_stdout(); | |
204 | printf("%d", lines); | |
205 | } | |
16
bc9a0fefd892
fixed makefile to run safely on compile errors + added -V option to cline
Mike Becker <universe@uap-core.de>
parents:
14
diff
changeset
|
206 | } |
bc9a0fefd892
fixed makefile to run safely on compile errors + added -V option to cline
Mike Becker <universe@uap-core.de>
parents:
14
diff
changeset
|
207 | |
bc9a0fefd892
fixed makefile to run safely on compile errors + added -V option to cline
Mike Becker <universe@uap-core.de>
parents:
14
diff
changeset
|
208 | fflush(stdout); |
28 | 209 | fflush(stderr); |
0 | 210 | return 0; |
211 | } |