# | Line 170 | Line 170 | command(prompt) /* get/execute command */ | |
---|---|---|
170 | char *prompt; | |
171 | { | |
172 | #define badcom(s) strncmp(s, inpbuf, args-inpbuf-1) | |
173 | – | double atof(); |
173 | char inpbuf[256]; | |
174 | char *args; | |
175 | again: | |
# | Line 223 | Line 222 | again: | |
222 | break; | |
223 | case 'm': /* move camera */ | |
224 | if (badcom("move")) | |
225 | + | #ifdef MSTATS |
226 | + | { |
227 | + | if (badcom("memory")) |
228 | + | goto commerr; |
229 | + | printmemstats(stderr); |
230 | + | break; |
231 | + | } |
232 | + | #else |
233 | goto commerr; | |
234 | + | #endif |
235 | getmove(args); | |
236 | break; | |
237 | case 'r': /* rotate/repaint */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |