summaryrefslogtreecommitdiffstats
path: root/scilab/modules/shell
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre.ledru@scilab.org>2010-03-16 18:19:44 +0100
committerSylvestre Ledru <sylvestre.ledru@scilab.org>2010-03-16 18:19:44 +0100
commit27a4a094e1a07780249a20ead94544e43861bb98 (patch)
tree5632e808d2d906269bcfc42256a240a2bf489f1d /scilab/modules/shell
parentfcf094440a0507cc049d1be4444ff9a81b0af748 (diff)
downloadscilab-27a4a094e1a07780249a20ead94544e43861bb98.zip
scilab-27a4a094e1a07780249a20ead94544e43861bb98.tar.gz
identation
Diffstat (limited to 'scilab/modules/shell')
-rw-r--r--scilab/modules/shell/src/c/GetCommandLine.c38
1 files changed, 22 insertions, 16 deletions
diff --git a/scilab/modules/shell/src/c/GetCommandLine.c b/scilab/modules/shell/src/c/GetCommandLine.c
index bf244a1..01f7b31 100644
--- a/scilab/modules/shell/src/c/GetCommandLine.c
+++ b/scilab/modules/shell/src/c/GetCommandLine.c
@@ -189,30 +189,36 @@ void C2F(zzledt)(char *buffer,int *buf_size,int *len_line,int * eof,
189 189
190 __LockSignal(&ReadyForLaunch); 190 __LockSignal(&ReadyForLaunch);
191 191
192 if (__CommandLine) { FREE(__CommandLine); __CommandLine = NULL;} 192 if (__CommandLine)
193 {
194 FREE(__CommandLine);
195 __CommandLine = NULL;
196 }
193 __CommandLine = strdup(""); 197 __CommandLine = strdup("");
194 198
195 if (ismenu() == 0) 199 if (ismenu() == 0)
196 { 200 {
197 if (!WatchGetCmdLineThreadAlive) 201 if (!WatchGetCmdLineThreadAlive)
198 { 202 {
199 if (WatchGetCmdLineThread) { 203 if (WatchGetCmdLineThread)
200 __WaitThreadDie(WatchGetCmdLineThread); 204 {
205 __WaitThreadDie(WatchGetCmdLineThread);
206 }
207 __CreateThread(&WatchGetCmdLineThread, &watchGetCommandLine);
208 WatchGetCmdLineThreadAlive = TRUE;
201 } 209 }
202 __CreateThread(&WatchGetCmdLineThread, &watchGetCommandLine);
203 WatchGetCmdLineThreadAlive = TRUE;
204 }
205 if (!WatchStoreCmdThreadAlive) 210 if (!WatchStoreCmdThreadAlive)
206 { 211 {
207 if (WatchStoreCmdThread) { 212 if (WatchStoreCmdThread)
208 __WaitThreadDie(WatchStoreCmdThread); 213 {
214 __WaitThreadDie(WatchStoreCmdThread);
215 }
216 __CreateThread(&WatchStoreCmdThread, &watchStoreCommand);
217 WatchStoreCmdThreadAlive = TRUE;
209 } 218 }
210 __CreateThread(&WatchStoreCmdThread, &watchStoreCommand);
211 WatchStoreCmdThreadAlive = TRUE;
212 }
213 219
214 __Wait(&TimeToWork, &ReadyForLaunch); 220 __Wait(&TimeToWork, &ReadyForLaunch);
215 } 221 }
216 __UnLockSignal(&ReadyForLaunch); 222 __UnLockSignal(&ReadyForLaunch);
217 223
218 /* 224 /*