}
vg_console;
-VG_STATIC void vg_convar_push( struct vg_convar cv );
-VG_STATIC void vg_function_push( struct vg_cmd cmd );
+VG_STATIC void vg_convar_push( struct vg_convar cv );
+VG_STATIC void vg_function_push( struct vg_cmd cmd );
-VG_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 execute_console_input( const char *cmd );
+VG_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 );
/*
* Console interface
VG_STATIC void console_clipboard_paste(void);
VG_STATIC void console_put_char( char c );
VG_STATIC void console_history_get( char* buf, int entry_num );
-VG_STATIC int vg_console_enabled(void);
+VG_STATIC int _vg_console_enabled(void);
VG_STATIC void console_proc_key( SDL_Keysym ev );
/*
* Implementation
*/
-VG_STATIC int vg_console_enabled(void)
+VG_STATIC int _vg_console_enabled(void)
{
return vg_console.enabled;
}
vg_console.functions[ vg_console.function_count ++ ] = cmd;
}
-VG_STATIC void vg_console_draw( void )
+VG_STATIC void _vg_console_draw( void )
{
if( !vg_console.enabled )
return;
SDL_AtomicUnlock( &log_print_sl );
}
-VG_STATIC int vg_console_list( int argc, char const *argv[] )
+VG_STATIC int _vg_console_list( int argc, char const *argv[] )
{
for( int i=0; i<vg_console.function_count; i ++ )
{
return 0;
}
-VG_STATIC void vg_console_init(void)
+VG_STATIC void _vg_console_init(void)
{
vg_function_push( (struct vg_cmd)
{
.name = "list",
- .function = vg_console_list
+ .function = _vg_console_list
});
vg_function_push( (struct vg_cmd)
if( line[0] != 0x00 )
{
- execute_console_input( line );
+ vg_execute_console_input( line );
}
}
}
}
-VG_STATIC void vg_console_write_persistent(void)
+VG_STATIC void _vg_console_write_persistent(void)
{
FILE *fp = fopen( "cfg/auto.conf", "w" );
fclose( fp );
}
-VG_STATIC void vg_console_free(void)
+VG_STATIC void _vg_console_free(void)
{
- vg_console_write_persistent();
+ _vg_console_write_persistent();
}
-VG_STATIC void execute_console_input( const char *cmd )
+VG_STATIC void vg_execute_console_input( const char *cmd )
{
char temp[512];
char const *args[9];
}
vg_console.history_pos = -1;
- execute_console_input( vg_console.input );
+ vg_execute_console_input( vg_console.input );
console_move_cursor( &vg_console.cursor_user,
&vg_console.cursor_pos, -10000, 1 );
vg_console.input[0] = '\0';