sync clean up
[vg.git] / vg_console.h
index 15c605c64f01c5e0f79842bfadd1ac0cb428ff24..8d35aa286fdce8933e35b39720cd5dfd6534d850 100644 (file)
@@ -68,16 +68,16 @@ struct vg_console
 }
 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
@@ -91,13 +91,13 @@ VG_STATIC void console_to_clipboard(void);
 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; 
 }
@@ -119,7 +119,7 @@ VG_STATIC void vg_function_push( struct vg_cmd cmd )
    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;
@@ -178,7 +178,7 @@ VG_STATIC void vg_console_draw( void )
    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 ++ )
        {
@@ -201,12 +201,12 @@ int _test_break( int argc, const char *argv[] )
    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)
@@ -230,7 +230,7 @@ VG_STATIC void vg_console_load_autos(void)
 
                        if( line[0] != 0x00 )
                        {
-                               execute_console_input( line );
+                               vg_execute_console_input( line );
                        }
                }
 
@@ -238,7 +238,7 @@ VG_STATIC void vg_console_load_autos(void)
        }
 }
 
-VG_STATIC void vg_console_write_persistent(void)
+VG_STATIC void _vg_console_write_persistent(void)
 {
        FILE *fp = fopen( "cfg/auto.conf", "w" );
        
@@ -266,12 +266,12 @@ VG_STATIC void vg_console_write_persistent(void)
        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];
@@ -635,7 +635,7 @@ VG_STATIC void _console_enter(void)
    }
 
    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';