* coding style harmonization in servers/

- explicitely declare void arguments
  - make a few string args const
* better support for shorter displays in server screen
* make target to create top level tag file
This commit is contained in:
marschap
2007-04-02 21:29:53 +00:00
parent a63ae89eb7
commit 6a1511bb72
100 changed files with 2180 additions and 2170 deletions
+23 -23
View File
@@ -20,7 +20,7 @@ typedef struct DisplayProps {
int cellwidth, cellheight;
} DisplayProps;
extern DisplayProps * display_props;
extern DisplayProps *display_props;
#ifndef bool
# define bool short
@@ -30,72 +30,72 @@ extern DisplayProps * display_props;
int
drivers_load_driver( char * name );
drivers_load_driver(const char *name);
int
drivers_unload_all();
drivers_unload_all(void);
const char *
drivers_get_info();
drivers_get_info(void);
void
drivers_clear();
drivers_clear(void);
void
drivers_flush();
drivers_flush(void);
void
drivers_string( int x, int y, char * string );
drivers_string(int x, int y, const char *string);
void
drivers_chr( int x, int y, char c );
drivers_chr(int x, int y, char c);
void
drivers_vbar( int x, int y, int len, int promille, int pattern );
drivers_vbar(int x, int y, int len, int promille, int pattern);
void
drivers_hbar( int x, int y, int len, int promille, int pattern );
drivers_hbar(int x, int y, int len, int promille, int pattern);
void
drivers_num( int x, int num );
drivers_num(int x, int num);
void
drivers_heartbeat( int state );
drivers_heartbeat(int state);
void
drivers_icon( int x, int y, int icon );
drivers_icon(int x, int y, int icon);
void
drivers_set_char( char ch, char *dat );
drivers_set_char(char ch, char *dat);
int
drivers_get_contrast();
drivers_get_contrast(void);
void
drivers_set_contrast( int contrast );
drivers_set_contrast(int contrast);
void
drivers_cursor( int x, int y, int state );
drivers_cursor(int x, int y, int state);
void
drivers_backlight( int brightness );
drivers_backlight(int brightness);
void
drivers_output( int state );
drivers_output(int state);
const char *
drivers_get_key();
drivers_get_key(void);
/* Please don't read this list except using the following functions */
extern LinkedList * loaded_drivers;
extern LinkedList *loaded_drivers;
static inline Driver * drivers_getfirst ()
static inline Driver *drivers_getfirst(void)
{
return LL_GetFirst(loaded_drivers);
}
static inline Driver * drivers_getnext ()
static inline Driver *drivers_getnext(void)
{
return LL_GetNext(loaded_drivers);
}