Update of /cvsroot/pure-data/externals/zexy/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21292
Modified Files: lpt.c Log Message: get the ifdef-bracketting right to have even less errors
Index: lpt.c =================================================================== RCS file: /cvsroot/pure-data/externals/zexy/src/lpt.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** lpt.c 23 Jan 2006 17:56:42 -0000 1.9 --- lpt.c 23 Jan 2006 18:11:20 -0000 1.10 *************** *** 113,118 **** static void lpt_float(t_lpt *x, t_floatarg f) { - unsigned char b = f; #ifdef Z_WANT_LPT # ifdef HAVE_LINUX_PPDEV_H if (x->device>0){ --- 113,118 ---- static void lpt_float(t_lpt *x, t_floatarg f) { #ifdef Z_WANT_LPT + unsigned char b = f; # ifdef HAVE_LINUX_PPDEV_H if (x->device>0){ *************** *** 128,131 **** --- 128,132 ---- static void lpt_control(t_lpt *x, t_floatarg f) { + #ifdef Z_WANT_LPT unsigned char b = f; # ifdef HAVE_LINUX_PPDEV_H *************** *** 134,138 **** } else # endif - #ifdef Z_WANT_LPT if (x->port) { sys_outb(b, x->port+2); --- 135,138 ---- *************** *** 143,146 **** --- 143,147 ---- static void lpt_bang(t_lpt *x) { + #ifdef Z_WANT_LPT # ifdef HAVE_LINUX_PPDEV_H if (x->device>0){ *************** *** 150,154 **** } else # endif - #ifdef Z_WANT_LPT if (x->port) { outlet_float(x->x_obj.ob_outlet, (float)sys_inb(x->port+1)); --- 151,154 ---- *************** *** 254,259 **** --- 254,262 ---- #else error("zexy has been compiled without [lpt]!"); + count_iopl=0; #endif /* Z_WANT_LPT */
+ devname=0; + return (x); }