libreadline - Rework of library (less sucky now!)
[tpg/acess2.git] / Usermode / Applications / CLIShell_src / main.c
index 50c9589..33907ee 100644 (file)
@@ -59,11 +59,7 @@ int main(int argc, char *argv[], char *envp[])
        #if !USE_READLINE\r
         int    bCached = 1;\r
        #else\r
-       tReadline       readline_state = {0};\r
-       #endif\r
-       \r
-       #if USE_READLINE\r
-       readline_state.UseHistory = 1;\r
+       tReadline       *readline_state = Readline_Init(1);\r
        #endif\r
        \r
        gasEnvironment = envp;\r
@@ -97,7 +93,7 @@ int main(int argc, char *argv[], char *envp[])
                \r
                // Read Command line\r
                #if USE_READLINE\r
-               sCommandStr = Readline( &readline_state );\r
+               sCommandStr = Readline( readline_state );\r
                length = strlen(sCommandStr);\r
                #else\r
                sCommandStr = ReadCommandLine( &length );\r

UCC git Repository :: git.ucc.asn.au