/[pupa]/pupa/normal/main.c
ViewVC logotype

Diff of /pupa/normal/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by okuji, Mon Jan 20 04:13:46 2003 UTC revision 1.2 by marco_g, Mon Nov 17 18:07:08 2003 UTC
# Line 332  pupa_rescue_cmd_normal (int argc, char * Line 332  pupa_rescue_cmd_normal (int argc, char *
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.  */
# Line 349  PUPA_MOD_FINI Line 370  PUPA_MOD_FINI
370  {  {
371    pupa_rescue_unregister_command ("normal");    pupa_rescue_unregister_command ("normal");
372  }  }
373    #endif /* ! PUPA_UTIL */

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26