Subversion Repositories SvarDOS

Rev

Rev 1857 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1857 Rev 1859
Line 1081... Line 1081...
1081
  memguard_set(cmdlinebuf);
1081
  memguard_set(cmdlinebuf);
1082
 
1082
 
1083
  /* if last operation was ended by CTRL+C then make sure to abort any
1083
  /* if last operation was ended by CTRL+C then make sure to abort any
1084
   * ongoing BAT file or FOR loop */
1084
   * ongoing BAT file or FOR loop */
1085
  if (rmod_farptr[RMOD_OFFSET_CTRLCFLAG] != 0) {
1085
  if (rmod_farptr[RMOD_OFFSET_CTRLCFLAG] != 0) {
1086
    outputnl("<last process interrupted through CTRL+C>");
1086
    /* reset the flag */
1087
    rmod_farptr[RMOD_OFFSET_CTRLCFLAG] = 0;
1087
    rmod_farptr[RMOD_OFFSET_CTRLCFLAG] = 0;
-
 
1088
 
-
 
1089
    /* clear up the forloop node */
-
 
1090
    if (rmod->forloop != NULL) {
-
 
1091
      rmod_ffree(rmod->forloop);
-
 
1092
      rmod->forloop = NULL;
-
 
1093
    }
-
 
1094
 
-
 
1095
    /* clear up the batch linked list */
-
 
1096
    if (rmod->bat != NULL) {
-
 
1097
      while (rmod->bat != NULL) {
-
 
1098
        struct batctx far *batnode;
-
 
1099
        batnode = rmod->bat;
-
 
1100
        rmod->bat = rmod->bat->parent;
-
 
1101
        rmod_ffree(batnode);
-
 
1102
      }
-
 
1103
      rmod->flags &= ~FLAG_ECHOFLAG;
-
 
1104
      if (rmod->flags & FLAG_ECHO_BEFORE_BAT) rmod->flags |= FLAG_ECHOFLAG;
-
 
1105
    }
1088
  }
1106
  }
1089
 
1107
 
1090
  /* make COMSPEC point to myself */
1108
  /* make COMSPEC point to myself */
1091
  set_comspec_to_self(*rmod_envseg);
1109
  set_comspec_to_self(*rmod_envseg);
1092
 
1110