Subversion Repositories SvarDOS

Rev

Rev 1852 | Rev 1855 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1852 Rev 1854
Line 1021... Line 1021...
1021
  static char *cmdline;
1021
  static char *cmdline;
1022
  static struct redir_data redirprops;
1022
  static struct redir_data redirprops;
1023
  static enum cmd_result cmdres;
1023
  static enum cmd_result cmdres;
1024
  static unsigned short i; /* general-purpose variable for short-lived things */
1024
  static unsigned short i; /* general-purpose variable for short-lived things */
1025
  static unsigned char flags;
1025
  static unsigned char flags;
-
 
1026
  static unsigned char far *rmod_farptr;
1026
 
1027
 
1027
  rmod = rmod_find(BUFFER_len);
1028
  rmod = rmod_find(BUFFER_len);
1028
  if (rmod == NULL) {
1029
  if (rmod == NULL) {
1029
 
1030
 
1030
    /* look at command line parameters (in case env size if set there) */
1031
    /* look at command line parameters (in case env size if set there) */
Line 1069... Line 1070...
1069
        jmp HALT
1070
        jmp HALT
1070
      }
1071
      }
1071
    }
1072
    }
1072
  }
1073
  }
1073
 
1074
 
-
 
1075
  /* general (far) pointer to RMOD, useful to check some of its internal fields */
-
 
1076
  rmod_farptr = MK_FP(rmod->rmodseg, 0);
-
 
1077
 
1074
  /* if last operation was ended by CTRL+C then make sure to abort any
1078
  /* if last operation was ended by CTRL+C then make sure to abort any
1075
   * ongoing BAT file or FOR loop */
1079
   * ongoing BAT file or FOR loop */
1076
  {
-
 
1077
    char far *ctrlcflag = MK_FP(rmod->rmodseg, RMOD_OFFSET_CTRLCFLAG);
1080
  if (rmod_farptr[RMOD_OFFSET_CTRLCFLAG] != 0) {
1078
    if (*ctrlcflag != 0) {
-
 
1079
      outputnl("<last process interrupted through CTRL+C>");
1081
    outputnl("<last process interrupted through CTRL+C>");
1080
      *ctrlcflag = 0;
1082
    rmod_farptr[RMOD_OFFSET_CTRLCFLAG] = 0;
1081
    }
-
 
1082
  }
1083
  }
1083
 
1084
 
1084
  /* install a few guardvals in memory to detect some cases of overflows */
1085
  /* install a few guardvals in memory to detect some cases of overflows */
1085
  memguard_set(cmdlinebuf);
1086
  memguard_set(cmdlinebuf);
1086
 
1087