140 curdef = comm; |
140 curdef = comm; |
141 } |
141 } |
142 numCommDefs++; |
142 numCommDefs++; |
143 } |
143 } |
144 |
144 |
145 /* |
|
146 CommandDef* c; |
|
147 ITERATE_COMMANDS (c) { |
|
148 printf ("[%u] %s: %d, %d arguments, return type %d\n", |
|
149 c->number, c->name.chars(), c->numargs, c->maxargs, c->returnvalue); |
|
150 } |
|
151 */ |
|
152 |
|
153 delete r; |
145 delete r; |
|
146 |
|
147 if (!numCommDefs) |
|
148 error ("error: no commands defined!\n"); |
154 printf ("%d command definitions read.\n", numCommDefs); |
149 printf ("%d command definitions read.\n", numCommDefs); |
155 } |
150 } |
156 |
151 |
157 // urgh long name |
152 // urgh long name |
158 int GetReturnTypeByString (str t) { |
153 int GetReturnTypeByString (str t) { |