Browse Source

Added some constants needed for tokenizing

Ivan Arkhipov 5 years ago
parent
commit
09820c6b94
2 changed files with 7 additions and 1 deletions
  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