332 |
pupa_enter_normal_mode (argv[0]); |
pupa_enter_normal_mode (argv[0]); |
333 |
} |
} |
334 |
|
|
335 |
|
|
336 |
|
#ifdef PUPA_UTIL |
337 |
|
void |
338 |
|
pupa_normal_init (void) |
339 |
|
{ |
340 |
|
/* Register a command "normal" for the rescue mode. */ |
341 |
|
pupa_rescue_register_command ("normal", pupa_rescue_cmd_normal, |
342 |
|
"enter normal mode"); |
343 |
|
|
344 |
|
/* This registers some built-in commands. */ |
345 |
|
pupa_command_init (); |
346 |
|
|
347 |
|
} |
348 |
|
|
349 |
|
void |
350 |
|
pupa_normal_fini (void) |
351 |
|
{ |
352 |
|
pupa_rescue_unregister_command ("normal"); |
353 |
|
|
354 |
|
} |
355 |
|
#else /* ! PUPA_UTIL */ |
356 |
PUPA_MOD_INIT |
PUPA_MOD_INIT |
357 |
{ |
{ |
358 |
/* Normal mode shouldn't be unloaded. */ |
/* Normal mode shouldn't be unloaded. */ |
370 |
{ |
{ |
371 |
pupa_rescue_unregister_command ("normal"); |
pupa_rescue_unregister_command ("normal"); |
372 |
} |
} |
373 |
|
#endif /* ! PUPA_UTIL */ |