Parcourir la source

Added some constants needed for tokenizing

Ivan Arkhipov il y a 5 ans
Parent
commit
09820c6b94
2 fichiers modifiés avec 7 ajouts et 1 suppressions
  1. 5 1
      esh_init.c
  2. 2 0
      esh_init.h

+ 5 - 1
esh_init.c

@@ -64,7 +64,11 @@ void EShInitInfo(int argc, char** argv) {
 
 	esh_info_global->max_jobs_number = 64;
 
-	esh_info_global->max_command_length = 1024;
+	esh_info_global->max_command_length = 4096;
+
+	esh_info_global->max_command_tokens = 256;
+
+	esh_info_global->max_command_token_size = 256;
 
 	esh_info_global->jobs_number = 0;
 

+ 2 - 0
esh_init.h

@@ -9,4 +9,6 @@ void EShParseCommandLineArgs(int argc, char** argv);
 
 void EShProcessConfigFile();
 
+void EShProcessHistoryFile();
+
 #endif // ESH_INIT_H