Run Nindent on com32/menu/menu.h
authorH. Peter Anvin <hpa@zytor.com>
Fri, 29 May 2009 22:10:28 +0000 (15:10 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 29 May 2009 22:10:28 +0000 (15:10 -0700)
Automatically reformat com32/menu/menu.h using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/menu/menu.h

index 98b6fa9..1d7dee8 100644 (file)
@@ -37,136 +37,136 @@ struct menu;
 /* Note: the _UNRES variants must always be immediately after their
    "normal" versions. */
 enum menu_action {
-  MA_NONE,                     /* Undefined value */
-  MA_CMD,                      /* Execute a command */
-  MA_DISABLED,                 /* Disabled menu entry */
-  MA_SUBMENU,                  /* This is a submenu entry */
-  MA_GOTO,                     /* Go to another menu */
-  MA_GOTO_UNRES,               /* Unresolved go to */
-  MA_QUIT,                     /* Quit to CLI */
-  MA_EXIT,                     /* Exit to higher-level menu */
-  MA_EXIT_UNRES,               /* Unresolved exit */
+    MA_NONE,                   /* Undefined value */
+    MA_CMD,                    /* Execute a command */
+    MA_DISABLED,               /* Disabled menu entry */
+    MA_SUBMENU,                        /* This is a submenu entry */
+    MA_GOTO,                   /* Go to another menu */
+    MA_GOTO_UNRES,             /* Unresolved go to */
+    MA_QUIT,                   /* Quit to CLI */
+    MA_EXIT,                   /* Exit to higher-level menu */
+    MA_EXIT_UNRES,             /* Unresolved exit */
 };
 
 struct menu_entry {
-  struct menu *menu;           /* Parent menu */
-  const char *displayname;
-  const char *label;
-  const char *passwd;
-  char *helptext;
-  const char *cmdline;
-  struct menu *submenu;
-  struct menu_entry *next;     /* Linked list of all labels across menus */
-  int entry;                   /* Entry number inside menu */
-  enum menu_action action;
-  unsigned char hotkey;
-  bool save;                   /* Save this entry if selected */
+    struct menu *menu;         /* Parent menu */
+    const char *displayname;
+    const char *label;
+    const char *passwd;
+    char *helptext;
+    const char *cmdline;
+    struct menu *submenu;
+    struct menu_entry *next;   /* Linked list of all labels across menus */
+    int entry;                 /* Entry number inside menu */
+    enum menu_action action;
+    unsigned char hotkey;
+    bool save;                 /* Save this entry if selected */
 };
 
 static inline bool is_disabled(struct menu_entry *me)
 {
-  return me->action == MA_DISABLED;
+    return me->action == MA_DISABLED;
 }
 
 enum kernel_type {
-  /* Meta-types for internal use */
-  KT_NONE,
-  KT_LOCALBOOT,
-
-  /* The ones we can pass off to SYSLINUX, in order */
-  KT_KERNEL,                   /* Undefined type */
-  KT_LINUX,                    /* Linux kernel */
-  KT_BOOT,                     /* Bootstrap program */
-  KT_BSS,                      /* Boot sector with patch */
-  KT_PXE,                      /* PXE NBP */
-  KT_FDIMAGE,                  /* Floppy disk image */
-  KT_COMBOOT,                  /* COMBOOT image */
-  KT_COM32,                    /* COM32 image */
-  KT_CONFIG,                   /* Configuration file */
+    /* Meta-types for internal use */
+    KT_NONE,
+    KT_LOCALBOOT,
+
+    /* The ones we can pass off to SYSLINUX, in order */
+    KT_KERNEL,                 /* Undefined type */
+    KT_LINUX,                  /* Linux kernel */
+    KT_BOOT,                   /* Bootstrap program */
+    KT_BSS,                    /* Boot sector with patch */
+    KT_PXE,                    /* PXE NBP */
+    KT_FDIMAGE,                        /* Floppy disk image */
+    KT_COMBOOT,                        /* COMBOOT image */
+    KT_COM32,                  /* COM32 image */
+    KT_CONFIG,                 /* Configuration file */
 };
 
-extern const char * const kernel_types[];
+extern const char *const kernel_types[];
 
 /* Configurable integer parameters */
 enum parameter_number {
-  P_WIDTH,
-  P_MARGIN,
-  P_PASSWD_MARGIN,
-  P_MENU_ROWS,
-  P_TABMSG_ROW,
-  P_CMDLINE_ROW,
-  P_END_ROW,
-  P_PASSWD_ROW,
-  P_TIMEOUT_ROW,
-  P_HELPMSG_ROW,
-  P_HELPMSGEND_ROW,
-  P_HSHIFT,
-  P_VSHIFT,
-  P_HIDDEN_ROW,
-
-  NPARAMS
+    P_WIDTH,
+    P_MARGIN,
+    P_PASSWD_MARGIN,
+    P_MENU_ROWS,
+    P_TABMSG_ROW,
+    P_CMDLINE_ROW,
+    P_END_ROW,
+    P_PASSWD_ROW,
+    P_TIMEOUT_ROW,
+    P_HELPMSG_ROW,
+    P_HELPMSGEND_ROW,
+    P_HSHIFT,
+    P_VSHIFT,
+    P_HIDDEN_ROW,
+
+    NPARAMS
 };
 
 /* Configurable messages */
 enum message_number {
-  MSG_TITLE,
-  MSG_AUTOBOOT,
-  MSG_TAB,
-  MSG_NOTAB,
-  MSG_PASSPROMPT,
+    MSG_TITLE,
+    MSG_AUTOBOOT,
+    MSG_TAB,
+    MSG_NOTAB,
+    MSG_PASSPROMPT,
 
-  MSG_COUNT
+    MSG_COUNT
 };
 
 struct messages {
-  const char *name;            /* Message configuration name */
-  const char *defmsg;          /* Default message text */
+    const char *name;          /* Message configuration name */
+    const char *defmsg;                /* Default message text */
 };
 
 struct menu_parameter {
-  const char *name;
-  int value;
+    const char *name;
+    int value;
 };
 
 extern const struct menu_parameter mparm[NPARAMS];
 
 struct fkey_help {
-  const char *textname;
-  const char *background;
+    const char *textname;
+    const char *background;
 };
 
 struct menu {
-  struct menu *next;           /* Linked list of all menus */
-  const char *label;           /* Goto label for this menu */
-  struct menu *parent;
-  struct menu_entry *parent_entry; /* Entry for self in parent */
+    struct menu *next;         /* Linked list of all menus */
+    const char *label;         /* Goto label for this menu */
+    struct menu *parent;
+    struct menu_entry *parent_entry;   /* Entry for self in parent */
 
-  struct menu_entry **menu_entries;
-  struct menu_entry *menu_hotkeys[256];
+    struct menu_entry **menu_entries;
+    struct menu_entry *menu_hotkeys[256];
 
-  const char *messages[MSG_COUNT];
-  int mparm[NPARAMS];
+    const char *messages[MSG_COUNT];
+    int mparm[NPARAMS];
 
-  int nentries;
-  int nentries_space;
-  int defentry;
-  int timeout;
+    int nentries;
+    int nentries_space;
+    int defentry;
+    int timeout;
 
-  bool allowedit;
-  bool save;                   /* MENU SAVE default for this menu */
+    bool allowedit;
+    bool save;                 /* MENU SAVE default for this menu */
 
-  int curentry;
-  int curtop;
+    int curentry;
+    int curtop;
 
-  const char *title;
-  const char *ontimeout;
-  const char *onerror;
-  const char *menu_master_passwd;
-  const char *menu_background;
+    const char *title;
+    const char *ontimeout;
+    const char *onerror;
+    const char *menu_master_passwd;
+    const char *menu_background;
 
-  struct color_table *color_table;
+    struct color_table *color_table;
 
-  struct fkey_help fkeyhelp[12];
+    struct fkey_help fkeyhelp[12];
 };
 
 extern struct menu *root_menu, *start_menu, *hide_menu, *menu_list;
@@ -184,7 +184,7 @@ int draw_background(const char *filename);
 
 static inline int my_isspace(char c)
 {
-  return (unsigned char)c <= ' ';
+    return (unsigned char)c <= ' ';
 }
 
 int my_isxdigit(char c);