Просмотр исходного кода

* Remove old debugging/cygwin code

Bryan Drewery 16 лет назад
Родитель
Сommit
4e946a28db
3 измененных файлов с 0 добавлено и 41 удалено
  1. 0 5
      src/common.h
  2. 0 6
      src/main.c
  3. 0 30
      src/shell.c

+ 0 - 5
src/common.h

@@ -44,11 +44,6 @@
 #endif /* WIN32 */
 #endif /* WIN32 */
 
 
 
 
-//# undef system
-int system(const char *);		
-//# define system(_run) 	my_system(_run)
-
-
 #define BIT0    (uint32_t) 0x000000001
 #define BIT0    (uint32_t) 0x000000001
 #define BIT1    (uint32_t) 0x000000002
 #define BIT1    (uint32_t) 0x000000002
 #define BIT2    (uint32_t) 0x000000004
 #define BIT2    (uint32_t) 0x000000004

+ 0 - 6
src/main.c

@@ -724,12 +724,6 @@ int main(int argc, char **argv)
 
 
   srandom(now % (mypid + getppid()) * randint(1000));
   srandom(now % (mypid + getppid()) * randint(1000));
 
 
-/*
-  char *out = NULL;
-printf("ret: %d\n", system("c:/wraith/leaf.exe"));
-  shell_exec("c:\\windows\\notepad.exe", NULL, &out, &out);
-printf("out: %s\n", out);
-*/
   setlimits();
   setlimits();
   init_debug();
   init_debug();
   init_signals();
   init_signals();

+ 0 - 30
src/shell.c

@@ -51,36 +51,6 @@
 
 
 bool clear_tmpdir = 0;
 bool clear_tmpdir = 0;
 
 
-int my_system(const char *run)
-{
-#ifdef WIN32NOFUCK
-  int ret = -1;
-
-  PROCESS_INFORMATION pinfo;
-  STARTUPINFO sinfo;
-
-  memset(&sinfo, 0, sizeof(STARTUPINFO));
-  sinfo.cb = sizeof(sinfo);
-
-  sinfo.wShowWindow = SW_HIDE;
-  sinfo.dwFlags |= STARTF_USESTDHANDLES;
-  sinfo.hStdInput =
-  sinfo.hStdOutput =
-  sinfo.hStdError =
-
-  ret =
-    CreateProcess(NULL, (char *) run, NULL, NULL, TRUE, NORMAL_PRIORITY_CLASS | DETACHED_PROCESS, NULL, NULL,
-                  (STARTUPINFO *) &sinfo, (PROCESS_INFORMATION *) &pinfo);
-
-  if (ret == 0)
-    return -1;
-  else
-    return 0;
-#else
-  return system(run);
-#endif /* WIN32 */
-}
-
 void clear_tmp()
 void clear_tmp()
 {
 {
   if (!clear_tmpdir)
   if (!clear_tmpdir)