From: H. Peter Anvin Date: Fri, 29 May 2009 22:10:20 +0000 (-0700) Subject: Run Nindent on com32/cmenu/libmenu/tui.h X-Git-Tag: syslinux-3.83-pre2~423 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c70547f6be05bf7f030278fb32da9e32efc135e1;p=platform%2Fupstream%2Fsyslinux.git Run Nindent on com32/cmenu/libmenu/tui.h Automatically reformat com32/cmenu/libmenu/tui.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin --- diff --git a/com32/cmenu/libmenu/tui.h b/com32/cmenu/libmenu/tui.h index 92f9386..4df1532 100644 --- a/com32/cmenu/libmenu/tui.h +++ b/com32/cmenu/libmenu/tui.h @@ -18,7 +18,6 @@ #include "com32io.h" #include "scancodes.h" - #ifndef NULL #define NULL ((void *)0) #endif @@ -31,27 +30,27 @@ void clearwindow(char top, char left, char bot, char right, char page, char fillchar, char fillattr); -void cls(void); /* Clears the entire current screen page */ +void cls(void); /* Clears the entire current screen page */ // Generic user input, // password = 0 iff chars echoed on screen // showoldvalue <> 0 iff current displayed for editing void getuserinput(char *str, unsigned int size, - unsigned int password, unsigned int showoldvalue); + unsigned int password, unsigned int showoldvalue); static inline void getstring(char *str, unsigned int size) { - getuserinput(str,size,0,0); + getuserinput(str, size, 0, 0); } static inline void editstring(char *str, unsigned int size) { - getuserinput(str,size,0,1); + getuserinput(str, size, 0, 1); } -static inline void getpwd(char * str, unsigned int size) +static inline void getpwd(char *str, unsigned int size) { - getuserinput(str,size,1,0); + getuserinput(str, size, 1, 0); } // Box drawing Chars offsets into array @@ -59,30 +58,30 @@ static inline void getpwd(char * str, unsigned int size) #define BOX_BOTLEFT 0x1 #define BOX_TOPRIGHT 0x2 #define BOX_BOTRIGHT 0x3 -#define BOX_TOP 0x4 // TOP = BOT = HORIZ +#define BOX_TOP 0x4 // TOP = BOT = HORIZ #define BOX_BOT 0x4 #define BOX_HORIZ 0x4 #define BOX_LEFT 0x5 #define BOX_RIGHT 0x5 -#define BOX_VERT 0x5 // LEFT=RIGHT=VERT +#define BOX_VERT 0x5 // LEFT=RIGHT=VERT #define BOX_LTRT 0x6 #define BOX_RTLT 0x7 #define BOX_TOPBOT 0x8 #define BOX_BOTTOP 0x9 #define BOX_MIDDLE 0xA -typedef enum {BOX_SINSIN,BOX_DBLDBL, BOX_SINDBL, BOX_DBLSIN} boxtype; +typedef enum { BOX_SINSIN, BOX_DBLDBL, BOX_SINDBL, BOX_DBLSIN } boxtype; -unsigned char * getboxchars(boxtype bt); +unsigned char *getboxchars(boxtype bt); -void drawbox(char top,char left,char bot, char right, - char page, char attr,boxtype bt); +void drawbox(char top, char left, char bot, char right, + char page, char attr, boxtype bt); // Draw a horizontal line // dumb == 1, means just draw the line // dumb == 0 means check the first and last positions and depending on what is // currently on the screen make it a LTRT and/or RTLT appropriately. void drawhorizline(char top, char left, char right, char page, char attr, - boxtype bt, char dumb); + boxtype bt, char dumb); #endif