failed attempts to intercept copy command when the cursor is in the empty text field...
[LeanCalc.git] / calc / calc-ml.diff
1 diff -ru calc-2.11.10.1/Makefile calc-2.11.10.1-ml/Makefile
2 --- calc-2.11.10.1/Makefile     2004-07-29 07:18:56.000000000 +0200
3 +++ calc-2.11.10.1-ml/Makefile  2006-04-21 11:02:25.000000000 +0200
4 @@ -670,7 +670,7 @@
5  #
6  # If in doubt, use T=
7  #
8 -T=
9 +T=/tmp/calc
10  
11  # where man pages are installed
12  #
13 @@ -999,8 +999,8 @@
14  CCOPT= ${DEBUG} ${NO_SHARED}
15  CCMISC=
16  #
17 -CFLAGS= -DCALC_SRC ${CCWARN} ${CCOPT} ${CCMISC}
18 -ICFLAGS= -DCALC_SRC ${CCWARN} ${CCMISC}
19 +CFLAGS= -arch ppc -arch i386 -DHAVE_SNPRINTF -DCALC_SRC ${CCWARN} ${CCOPT} ${CCMISC}
20 +ICFLAGS= -arch ppc -arch i386 -DCALC_SRC ${CCWARN} ${CCMISC}
21  #
22  LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}
23  ILDFLAGS=
24 diff -ru calc-2.11.10.1/math_error.c calc-2.11.10.1-ml/math_error.c
25 --- calc-2.11.10.1/math_error.c 2001-03-17 22:55:52.000000000 +0100
26 +++ calc-2.11.10.1-ml/math_error.c      2006-04-21 11:01:54.000000000 +0200
27 @@ -76,7 +76,7 @@
28   */
29  jmp_buf calc_jmp_buf;
30  int calc_jmp = 0;              /* non-zero => use calc_jmp_buf */
31 -char calc_error[MAXERROR+1];   /* last calc error message */
32 +//char calc_error[MAXERROR+1]; /* last calc error message */
33  
34  
35  /*
36 diff -ru calc-2.11.10.1/math_error.h calc-2.11.10.1-ml/math_error.h
37 --- calc-2.11.10.1/math_error.h 2001-06-08 23:00:58.000000000 +0200
38 +++ calc-2.11.10.1-ml/math_error.h      2006-04-21 11:01:54.000000000 +0200
39 @@ -43,6 +43,8 @@
40  /*
41   * Global data definitions.
42   */
43 +char calc_error[MAXERROR+1]; /* last calc error message */
44 +
45  extern DLL jmp_buf jmpbuf;             /* for errors */
46  
47  
48 diff -ru calc-2.11.10.1/token.c calc-2.11.10.1-ml/token.c
49 --- calc-2.11.10.1/token.c      2001-03-17 22:55:52.000000000 +0100
50 +++ calc-2.11.10.1-ml/token.c   2006-04-21 11:01:54.000000000 +0200
51 @@ -702,6 +702,8 @@
52  }
53  
54  
55 +//extern char *calc_error;
56 +
57  /*
58   * Describe an error message.
59   * Then skip to the next specified token (or one more powerful).
60 @@ -722,8 +724,9 @@
61                 fprintf(stderr, "\"%s\", line %ld: ", name, linenumber());
62         va_start(ap, fmt);
63         vsprintf(buf, fmt, ap);
64 +       vsprintf(calc_error, fmt, ap);
65         va_end(ap);
66 -       fprintf(stderr, "%s\n", buf);
67 +//     fprintf(stderr, "%s\n", buf);
68  
69         /* bail out if continuation not permitted */
70         if ((!c_flag && !stoponerror) || stoponerror > 0)