Run Nindent on com32/lib/sys/ansi.h
authorH. Peter Anvin <hpa@zytor.com>
Fri, 29 May 2009 22:10:24 +0000 (15:10 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 29 May 2009 22:10:24 +0000 (15:10 -0700)
Automatically reformat com32/lib/sys/ansi.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/lib/sys/ansi.h

index da06903..0d1f102 100644 (file)
 #define ANSI_MAX_PARMS 16
 
 enum ansi_state {
-  st_init,
-  st_esc,
-  st_csi,
-  st_tbl,
-  st_tblc,
+    st_init,
+    st_esc,
+    st_csi,
+    st_tbl,
+    st_tblc,
 };
 
 struct curxy {
-  uint8_t x, y;
-} __attribute__((packed));
+    uint8_t x, y;
+} __attribute__ ((packed));
 
 struct term_state {
-  struct curxy xy;
-  int cindex;                  /* SOH color index */
-  int vtgraphics;              /* VT graphics on/off */
-  int intensity;
-  int underline;
-  int blink;
-  int reverse;
-  int fg;
-  int bg;
-  int autocr;
-  struct curxy saved_xy;
-  int cursor;
-  enum ansi_state state;
-  int pvt;                     /* Private code? */
-  int nparms;                  /* Number of parameters seen */
-  int parms[ANSI_MAX_PARMS];
+    struct curxy xy;
+    int cindex;                        /* SOH color index */
+    int vtgraphics;            /* VT graphics on/off */
+    int intensity;
+    int underline;
+    int blink;
+    int reverse;
+    int fg;
+    int bg;
+    int autocr;
+    struct curxy saved_xy;
+    int cursor;
+    enum ansi_state state;
+    int pvt;                   /* Private code? */
+    int nparms;                        /* Number of parameters seen */
+    int parms[ANSI_MAX_PARMS];
 };
 
-
 struct ansi_ops {
-  void (*erase)(const struct term_state *st, int x0, int y0, int x1, int y1);
-  void (*write_char)(int x, int y, uint8_t ch, const struct term_state *st);
-  void (*showcursor)(const struct term_state *st);
-  void (*scroll_up)(const struct term_state *st);
-  void (*set_cursor)(int x, int y, int visible);
-  void (*beep)(void);
+    void (*erase) (const struct term_state * st, int x0, int y0, int x1,
+                  int y1);
+    void (*write_char) (int x, int y, uint8_t ch, const struct term_state * st);
+    void (*showcursor) (const struct term_state * st);
+    void (*scroll_up) (const struct term_state * st);
+    void (*set_cursor) (int x, int y, int visible);
+    void (*beep) (void);
 };
 
 struct term_info {
-  int rows, cols;              /* Screen size */
-  int disabled;
-  struct term_state *ts;
-  const struct ansi_ops *op;
+    int rows, cols;            /* Screen size */
+    int disabled;
+    struct term_state *ts;
+    const struct ansi_ops *op;
 };
 
 void __ansi_init(const struct term_info *ti);