Commit 44bca7b4 authored by Nils Goroll's avatar Nils Goroll

hand-edit the auto-generated code for flexelint - part 2

parent 8bb7e90f
...@@ -94,7 +94,6 @@ enum by_e parse_by_e (const char *m) { ...@@ -94,7 +94,6 @@ enum by_e parse_by_e (const char *m) {
enum healthy_e parse_healthy_e (const char *m) { enum healthy_e parse_healthy_e (const char *m) {
int p;
enum healthy_e r; enum healthy_e r;
switch (m[0]) { switch (m[0]) {
...@@ -107,7 +106,6 @@ enum healthy_e parse_healthy_e (const char *m) { ...@@ -107,7 +106,6 @@ enum healthy_e parse_healthy_e (const char *m) {
//ALL //ALL
if ((m[1] == 'L') && (m[2] == 'L') && (term(m[3]))) { if ((m[1] == 'L') && (m[2] == 'L') && (term(m[3]))) {
r = ALL; r = ALL;
p = 3;
goto ok; goto ok;
} }
goto invalid; goto invalid;
...@@ -115,7 +113,6 @@ enum healthy_e parse_healthy_e (const char *m) { ...@@ -115,7 +113,6 @@ enum healthy_e parse_healthy_e (const char *m) {
//CHOSEN //CHOSEN
if ((m[1] == 'H') && (m[2] == 'O') && (m[3] == 'S') && (m[4] == 'E') && (m[5] == 'N') && (term(m[6]))) { if ((m[1] == 'H') && (m[2] == 'O') && (m[3] == 'S') && (m[4] == 'E') && (m[5] == 'N') && (term(m[6]))) {
r = CHOSEN; r = CHOSEN;
p = 6;
goto ok; goto ok;
} }
goto invalid; goto invalid;
...@@ -123,7 +120,6 @@ enum healthy_e parse_healthy_e (const char *m) { ...@@ -123,7 +120,6 @@ enum healthy_e parse_healthy_e (const char *m) {
//IGNORE //IGNORE
if ((m[1] == 'G') && (m[2] == 'N') && (m[3] == 'O') && (m[4] == 'R') && (m[5] == 'E') && (term(m[6]))) { if ((m[1] == 'G') && (m[2] == 'N') && (m[3] == 'O') && (m[4] == 'R') && (m[5] == 'E') && (term(m[6]))) {
r = IGNORE; r = IGNORE;
p = 6;
goto ok; goto ok;
} }
goto invalid; goto invalid;
...@@ -131,5 +127,4 @@ enum healthy_e parse_healthy_e (const char *m) { ...@@ -131,5 +127,4 @@ enum healthy_e parse_healthy_e (const char *m) {
return r; return r;
invalid: invalid:
return _HEALTHY_E_INVALID; return _HEALTHY_E_INVALID;
(void)p;
} }
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