From 6aa75ed6263d4b9c926d1e9fd352841b9b50c685 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 29 May 2009 15:10:24 -0700 Subject: [PATCH] Run Nindent on com32/lib/sys/ansi.h 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 --- com32/lib/sys/ansi.h | 68 ++++++++++++++++++++++++++-------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/com32/lib/sys/ansi.h b/com32/lib/sys/ansi.h index da06903..0d1f102 100644 --- a/com32/lib/sys/ansi.h +++ b/com32/lib/sys/ansi.h @@ -10,51 +10,51 @@ #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); -- 2.7.4