removed ckcpro.c: autogenerated
[ckermit.git] / debian / patches / 030_fix-if-else.patch
1 Backported fix from ckdaily snapshot to fix parsing of if/else constructs
2 See #323510.
3 --- ckermit-211.orig/ckuus6.c
4 +++ ckermit-211/ckuus6.c
5 @@ -6607,7 +6607,7 @@
6      if (!iftest[cmdlvl]) {              /* If IF was false do ELSE part */
7          if (maclvl > -1 || tlevel > -1) { /* In macro or command file */
8              debug(F100,"doelse pushing","",0);
9 -#ifdef COMMENT
10 +#ifndef COMMENT
11              pushcmd(NULL);              /* save rest of command. */
12  #else
13              /* This fixes certain obscure problems */
14 --- ckermit-211.orig/ckuusr.c
15 +++ ckermit-211/ckuusr.c
16 @@ -7983,8 +7983,7 @@
17             line[k++] = SP;
18             line[k] = NUL;
19             debug(F111,"XXMACRO A",line,k);
20 -           /* Defer evaluation of variables until the commands are exec'd */
21 -           if ((y = cmtxt("Braced list of commands","",&s,NULL)) < 0)
22 +           if ((y = cmtxt("Braced list of commands","",&s,xxstring)) < 0)
23               return(y);
24             k = ckstrncpy(line+k,s,LINBUFSIZ-k);
25             debug(F111,"XXMACRO B",line,k);