/[grub]/grub/stage2/builtins.c
ViewVC logotype

Diff of /grub/stage2/builtins.c

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

revision 1.149 by okuji, Sun Jun 20 13:48:46 2004 UTC revision 1.150 by okuji, Tue Feb 1 21:00:42 2005 UTC
# Line 141  blocklist_func (char *arg, int flags) Line 141  blocklist_func (char *arg, int flags)
141    int num_entries = 0;    int num_entries = 0;
142    int last_length = 0;    int last_length = 0;
143    
144      auto void disk_read_blocklist_func (int sector, int offset, int length);
145      
146    /* Collect contiguous blocks into one entry as many as possible,    /* Collect contiguous blocks into one entry as many as possible,
147       and print the blocklist notation on the screen.  */       and print the blocklist notation on the screen.  */
148    static void disk_read_blocklist_func (int sector, int offset, int length)    auto void disk_read_blocklist_func (int sector, int offset, int length)
149      {      {
150        if (num_sectors > 0)        if (num_sectors > 0)
151          {          {
# Line 589  color_func (char *arg, int flags) Line 591  color_func (char *arg, int flags)
591      "white"      "white"
592    };    };
593    
594      auto int color_number (char *str);
595      
596    /* Convert the color name STR into the magical number.  */    /* Convert the color name STR into the magical number.  */
597    static int color_number (char *str)    auto int color_number (char *str)
598      {      {
599        char *ptr;        char *ptr;
600        int i;        int i;
# Line 1774  install_func (char *arg, int flags) Line 1778  install_func (char *arg, int flags)
1778    char *stage2_os_file = 0;    char *stage2_os_file = 0;
1779  #endif /* GRUB_UTIL */  #endif /* GRUB_UTIL */
1780        
1781      auto void disk_read_savesect_func (int sector, int offset, int length);
1782      auto void disk_read_blocklist_func (int sector, int offset, int length);
1783      
1784    /* Save the first sector of Stage2 in STAGE2_SECT.  */    /* Save the first sector of Stage2 in STAGE2_SECT.  */
1785    static void disk_read_savesect_func (int sector, int offset, int length)    auto void disk_read_savesect_func (int sector, int offset, int length)
1786      {      {
1787        if (debug)        if (debug)
1788          printf ("[%d]", sector);          printf ("[%d]", sector);
# Line 1791  install_func (char *arg, int flags) Line 1798  install_func (char *arg, int flags)
1798    
1799    /* Write SECTOR to INSTALLLIST, and update INSTALLADDR and    /* Write SECTOR to INSTALLLIST, and update INSTALLADDR and
1800       INSTALLSECT.  */       INSTALLSECT.  */
1801    static void disk_read_blocklist_func (int sector, int offset, int length)    auto void disk_read_blocklist_func (int sector, int offset, int length)
1802      {      {
1803        if (debug)        if (debug)
1804          printf("[%d]", sector);          printf("[%d]", sector);
# Line 3610  setkey_func (char *arg, int flags) Line 3617  setkey_func (char *arg, int flags)
3617    int to_code, from_code;    int to_code, from_code;
3618    int map_in_interrupt = 0;    int map_in_interrupt = 0;
3619        
3620    static int find_key_code (char *key)    auto int find_key_code (char *key);
3621      auto int find_ascii_code (char *key);
3622      
3623      auto int find_key_code (char *key)
3624      {      {
3625        int i;        int i;
3626    
# Line 3627  setkey_func (char *arg, int flags) Line 3637  setkey_func (char *arg, int flags)
3637        return 0;        return 0;
3638      }      }
3639        
3640    static int find_ascii_code (char *key)    auto int find_ascii_code (char *key)
3641      {      {
3642        int i;        int i;
3643                

Legend:
Removed from v.1.149  
changed lines
  Added in v.1.150

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