1 --- audacity-1.2.1.orig/lib-src/libnyquist/nyx/nyx.c
2 +++ audacity-1.2.1/lib-src/libnyquist/nyx/nyx.c
8 cmd = (unsigned char *)getstring(xlgastring());
9 - fprintf(stderr, "Will not execute system command: %s\n", cmd);
10 + //fprintf(stderr, "Will not execute system command: %s\n", cmd);
14 + "the command \n %s \n exited with the error %d\n",
19 --- audacity-1.2.1.orig/lib-src/libnyquist/xlisp/xlftab.c
20 +++ audacity-1.2.1/lib-src/libnyquist/xlisp/xlftab.c
22 xgetlambda(void),xmacroexpand(void),x1macroexpand(void),
23 xinfo(void), //Added by Ning Hu Apr.2001
24 xsetdir(void), //Added by Ning Hu May.2001
25 + xatof(void), xftoa(void), //Added by PiemBrossier Jul.2004
26 xtrace(void),xuntrace(void),xprofile(void),xstrsearch(void), xsetupconsole(void);
30 { "WRITE-INT", S, xwrint }, /* 292 */
31 { "WRITE-FLOAT", S, xwrfloat }, /* 293 */
32 { "INFO", S, xinfo }, /* 294 */ /* Ning Hu, Apr 2001 */
33 -{ NULL, S, xnotimp }, /* 295 */
34 -{ NULL, S, xnotimp }, /* 296 */
36 +{ "ATOF", S, xatof }, /* 295 */ /* Paul Brossier <piem@altern.org> */
37 +{ "FTOA", S, xftoa }, /* 296 */ /* Jul. 2004 */
38 { NULL, S, xnotimp }, /* 297 */
39 { NULL, S, xnotimp }, /* 298 */
40 { NULL, S, xnotimp }, /* 299 */
41 --- audacity-1.2.1.orig/lib-src/libnyquist/xlisp/xlstr.c
42 +++ audacity-1.2.1/lib-src/libnyquist/xlisp/xlstr.c
47 +/* on the NeXT, atof is a macro in stdlib.h */
49 +extern double atof();
52 /* external variables */
53 extern LVAL k_start,k_end,k_1start,k_1end,k_2start,k_2end;
56 return (icmp ? s_true : NIL);
59 +/* functions added by Paul Brossier <piem@altern.org> */
60 +LVAL xatof() /* converts a string to a float */
63 + unsigned char *astring = NULL;
65 + astring = (unsigned char *)getstring(xlgastring());
67 + afloat = atof(astring);
68 + return cvflonum(afloat);
73 +LVAL xftoa() /* converts a float to a string */
79 + /* get the first argument */
83 + /* set the type of the first argument */
85 + ival = getfixnum(arg);
86 + snprintf(buf,STRMAX,"%d",ival);
88 + else if (floatp(arg)) {
89 + fval = getflonum(arg);
90 + snprintf(buf,STRMAX,"%f",fval);
93 + return cvstring(buf);