X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg_console.h;h=1024b82ac468b0b6e6c08d557e7561e965ffc387;hb=3b841cc427adddeeb5b624d254587a45622d506d;hp=25bad63d3c37186534f201ae40dceaed5876ad76;hpb=3013df439a15c3c4b4078ea9724f15d6a1cb3820;p=vg.git diff --git a/vg_console.h b/vg_console.h index 25bad63..1024b82 100644 --- a/vg_console.h +++ b/vg_console.h @@ -73,29 +73,29 @@ struct vg_console{ } static vg_console; -VG_STATIC void _vg_console_draw( void ); +static void _vg_console_draw( void ); void _vg_console_println( const char *str ); -VG_STATIC int _vg_console_list( int argc, char const *argv[] ); -VG_STATIC void _vg_console_init(void); -VG_STATIC void _vg_console_write_persistent(void); -VG_STATIC void _vg_console_free(void); -VG_STATIC void vg_execute_console_input( const char *cmd ); +static int _vg_console_list( int argc, char const *argv[] ); +static void _vg_console_init(void); +static void _vg_console_write_persistent(void); +static void _vg_console_free(void); +static void vg_execute_console_input( const char *cmd ); /* * Console interface */ -VG_STATIC void console_history_get( char* buf, int entry_num ); -VG_STATIC int _vg_console_enabled(void); -VG_STATIC void console_proc_key( SDL_Keysym ev ); +static void console_history_get( char* buf, int entry_num ); +static int _vg_console_enabled(void); +static void console_proc_key( SDL_Keysym ev ); /* * Implementation */ -VG_STATIC int _vg_console_enabled(void){ +static int _vg_console_enabled(void){ return vg_console.enabled; } -VG_STATIC +static void vg_console_reg_var( const char *alias, void *ptr, enum vg_var_dtype type, u32 flags ) { @@ -115,7 +115,7 @@ void vg_console_reg_var( const char *alias, void *ptr, enum vg_var_dtype type, vg_info( "Console variable '%s' registered\n", alias ); } -VG_STATIC +static void vg_console_reg_cmd( const char *alias, int (*function)(int argc, const char *argv[]), void (*poll_suggest)(int argc, const char *argv[]) ) @@ -132,7 +132,7 @@ void vg_console_reg_cmd( const char *alias, vg_info( "Console function '%s' registered\n", alias ); } -VG_STATIC int _vg_console_list( int argc, char const *argv[] ){ +static int _vg_console_list( int argc, char const *argv[] ){ for( int i=0; iname ); @@ -194,7 +194,7 @@ int _ccmd_vg_console_defaults( int argc, const char *argv[] ){ return 0; } -VG_STATIC void _vg_console_init(void){ +static void _vg_console_init(void){ vg_console_reg_cmd( "list", _vg_console_list, NULL ); vg_console_reg_cmd( "crash", _test_break, NULL ); vg_console_reg_cmd( "exec", _vg_console_exec, NULL ); @@ -208,11 +208,11 @@ VG_STATIC void _vg_console_init(void){ ); } -VG_STATIC void vg_console_load_autos(void){ +static void vg_console_load_autos(void){ _vg_console_exec( 1, (const char *[]){ "auto.conf" } ); } -VG_STATIC void _vg_console_write_persistent(void){ +static void _vg_console_write_persistent(void){ FILE *fp = fopen( "cfg/auto.conf", "w" ); for( int i=0; i