aboutsummaryrefslogtreecommitdiffstats
path: root/com32/cmenu
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:20 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:20 -0700
commit2a5131a36d365afc37cae9306cc2a6b52fc95914 (patch)
tree48127d29641b08e9b82f4afaac04e5697fdaaede /com32/cmenu
parent62038f285ad573fc6787de83755d81d2db8e5227 (diff)
downloadsyslinux-2a5131a36d365afc37cae9306cc2a6b52fc95914.tar.gz
syslinux-2a5131a36d365afc37cae9306cc2a6b52fc95914.tar.xz
syslinux-2a5131a36d365afc37cae9306cc2a6b52fc95914.zip
Run Nindent on com32/cmenu/libmenu/com32io.h
Automatically reformat com32/cmenu/libmenu/com32io.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>
Diffstat (limited to 'com32/cmenu')
-rw-r--r--com32/cmenu/libmenu/com32io.h61
1 files changed, 31 insertions, 30 deletions
diff --git a/com32/cmenu/libmenu/com32io.h b/com32/cmenu/libmenu/com32io.h
index 78ce72fa..ba955e99 100644
--- a/com32/cmenu/libmenu/com32io.h
+++ b/com32/cmenu/libmenu/com32io.h
@@ -28,55 +28,55 @@ void cswprint(const char *str, char attr, char left);
static inline void csprint(const char *str, char attr)
{
- cswprint(str,attr,0);
+ cswprint(str, attr, 0);
}
-void cprint(char chr,char attr,unsigned int times, char disppage); // Print a char
+void cprint(char chr, char attr, unsigned int times, char disppage); // Print a char
-void setdisppage(char num); // Set the display page to specified number
+void setdisppage(char num); // Set the display page to specified number
-char getdisppage(); // Get current display page
+char getdisppage(); // Get current display page
-void gotoxy(char row,char col, char page);
+void gotoxy(char row, char col, char page);
-void getpos(char * row, char * col, char page);
+void getpos(char *row, char *col, char page);
-char inputc(char * scancode); // Return ASCII char by val, and scancode by reference
+char inputc(char *scancode); // Return ASCII char by val, and scancode by reference
static inline void putch(char x, char attr, char page)
{
- cprint(x,attr,1,page);
+ cprint(x, attr, 1, page);
}
-void setcursorshape(char start,char end); // Set cursor shape
-void getcursorshape(char *start,char *end); // Get shape for current page
+void setcursorshape(char start, char end); // Set cursor shape
+void getcursorshape(char *start, char *end); // Get shape for current page
// Get char displayed at current position in specified page
unsigned char getcharat(char page);
-static inline void cursoroff(void) /* Turns off cursor */
-{
- setcursorshape(32,33);
+static inline void cursoroff(void)
+{ /* Turns off cursor */
+ setcursorshape(32, 33);
}
-static inline void cursoron(void) /* Turns on cursor */
-{
- setcursorshape(6,7);
+static inline void cursoron(void)
+{ /* Turns on cursor */
+ setcursorshape(6, 7);
}
static inline unsigned char readbiosb(unsigned int ofs)
{
- return *((unsigned char *)MK_PTR(0,ofs));
+ return *((unsigned char *)MK_PTR(0, ofs));
}
static inline char getnumrows()
{
- return readbiosb(0x484); // Actually numrows - 1
+ return readbiosb(0x484); // Actually numrows - 1
}
static inline char getnumcols(void)
{
- return readbiosb(0x44a); // Actually numcols
+ return readbiosb(0x44a); // Actually numcols
}
static inline char getshiftflags(void)
@@ -84,29 +84,30 @@ static inline char getshiftflags(void)
return readbiosb(0x417);
}
-void scrollupwindow(char top, char left, char bot,char right,char attr,char numlines); //Scroll up given window
+void scrollupwindow(char top, char left, char bot, char right, char attr, char numlines); //Scroll up given window
-static inline void scrollup(void) //Scroll up display screen by one line
+static inline void scrollup(void) //Scroll up display screen by one line
{
- scrollupwindow(0,0,getnumrows(),getnumcols(),0x07,1);
+ scrollupwindow(0, 0, getnumrows(), getnumcols(), 0x07, 1);
}
-void setvideomode(char mode); // Set the video mode.
+void setvideomode(char mode); // Set the video mode.
-static inline char getvideomode(void) // Get the current video mode
+static inline char getvideomode(void) // Get the current video mode
{
- return readbiosb(0x449);
+ return readbiosb(0x449);
}
-unsigned char sleep(unsigned int msec); // Sleep for specified time
+unsigned char sleep(unsigned int msec); // Sleep for specified time
-void beep(); // A Bell
+void beep(); // A Bell
-unsigned char checkkbdbuf(); // Check to see if there is kbd buffer is non-empty?
+unsigned char checkkbdbuf(); // Check to see if there is kbd buffer is non-empty?
-static inline void clearkbdbuf() // Clear the kbd buffer (how many chars removed?)
+static inline void clearkbdbuf() // Clear the kbd buffer (how many chars removed?)
{
- while (checkkbdbuf()) inputc(NULL);
+ while (checkkbdbuf())
+ inputc(NULL);
}
#endif