MCPcopy Create free account
hub / github.com/NetHack/NetHack / do_makedefs

Function do_makedefs

util/makedefs.c:298–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296#endif
297
298RESTORE_WARNINGS
299
300void
301do_makedefs(char *options)
302{
303 boolean more_than_one;
304
305 objects_globals_init();
306 monst_globals_init();
307
308 /* construct the current version number */
309 make_version();
310
311 more_than_one = strlen(options) > 1;
312 while (*options) {
313 if (more_than_one)
314 Fprintf(stderr, "makedefs -%c\n", *options);
315
316 switch (*options) {
317 case 'd':
318 case 'D':
319 do_data();
320 break;
321 case 'h':
322 case 'H':
323 do_oracles();
324 break;
325 case 'r':
326 case 'R':
327 do_rumors();
328 break;
329 case 's':
330 case 'S':
331 rafile('1');
332 rafile('2');
333 rafile('3');
334 break;
335 case '1':
336 case '2':
337 case '3':
338 rafile(*options);
339 break;
340#if defined(OLD_MAKEDEFS_OPTIONS)
341 case 'o':
342 case 'O':
343 do_objs();
344 break;
345 case 'e':
346 case 'E':
347 do_dungeon();
348 break;
349 case 'v':
350 case 'V':
351 do_date();
352 do_options();
353 break;
354 case 'p':
355 case 'P':

Callers 2

mainFunction · 0.85
do_ext_makedefsFunction · 0.85

Calls 15

objects_globals_initFunction · 0.85
monst_globals_initFunction · 0.85
make_versionFunction · 0.85
do_dataFunction · 0.85
do_oraclesFunction · 0.85
do_rumorsFunction · 0.85
rafileFunction · 0.85
do_objsFunction · 0.85
do_dungeonFunction · 0.85
do_dateFunction · 0.85
do_optionsFunction · 0.85
do_permonstFunction · 0.85

Tested by

no test coverage detected