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
11 # where man pages are installed
14 CCOPT= ${DEBUG} ${NO_SHARED}
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}
22 LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}
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
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 */
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
41 * Global data definitions.
43 +char calc_error[MAXERROR+1]; /* last calc error message */
45 extern DLL jmp_buf jmpbuf; /* for errors */
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
55 +//extern char *calc_error;
58 * Describe an error message.
59 * Then skip to the next specified token (or one more powerful).
61 fprintf(stderr, "\"%s\", line %ld: ", name, linenumber());
63 vsprintf(buf, fmt, ap);
64 + vsprintf(calc_error, fmt, ap);
66 - fprintf(stderr, "%s\n", buf);
67 +// fprintf(stderr, "%s\n", buf);
69 /* bail out if continuation not permitted */
70 if ((!c_flag && !stoponerror) || stoponerror > 0)