Update of /cvsroot/pure-data/externals/zexy/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10890
Modified Files:
0x3c0x7e.c 0x3d0x3d0x7e.c fifop.c index.c lifop.c lpt.c
msgfile.c noish~.c noisi~.c regex.c relay.c sort.c tabdump.c
tabminmax.c tabset.c zexy.c
Log Message:
cleaned up code so we get hardly any warnings when compiling with "-Wall"
Index: tabminmax.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/tabminmax.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** tabminmax.c 19 May 2005 09:42:55 -0000 1.2
--- tabminmax.c 23 Jan 2006 17:56:42 -0000 1.3
***************
*** 138,141 ****
--- 138,142 ----
class_addmethod(tabminmax_class, (t_method)tabminmax_helper, gensym("help"), 0);
class_sethelpsymbol(tabminmax_class, gensym("zexy/tabminmax"));
+ zexy_register("tabminmax");
}
Index: index.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/index.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** index.c 21 Dec 2005 09:15:20 -0000 1.10
--- index.c 23 Jan 2006 17:56:42 -0000 1.11
***************
*** 126,130 ****
{
int newentry=(int)f;
- int ok = 0;
if (! (find_item(s, x->names, x->maxentries)+1) ) {
--- 126,129 ----
***************
*** 292,296 ****
int maxentries = 0, automod=0;
- int i;
if (argc--) {
--- 291,294 ----
Index: sort.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/sort.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** sort.c 19 May 2005 09:42:55 -0000 1.3
--- sort.c 23 Jan 2006 17:56:42 -0000 1.4
***************
*** 53,57 ****
{
int n = argc;
! t_float *buf, *idx;
t_atom *atombuf = argv;
--- 53,57 ----
{
int n = argc;
! t_float *buf;
t_atom *atombuf = argv;
Index: lpt.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/lpt.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** lpt.c 29 Nov 2005 17:29:04 -0000 1.8
--- lpt.c 23 Jan 2006 17:56:42 -0000 1.9
***************
*** 48,55 ****
--- 48,57 ----
# ifdef HAVE_LINUX_PPDEV_H
+ # include <unistd.h>
# include <sys/ioctl.h>
# include <linux/ppdev.h>
# include <linux/parport.h>
# include <fcntl.h>
+ # include <stdio.h>
# endif /* HAVE_LINUX_PPDEV_H */
***************
*** 193,197 ****
LATER think about this
*/
- int bla;
x->device=-1;
x->port=strtol(devname, 0, 16);
--- 195,198 ----
Index: 0x3c0x7e.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/0x3c0x7e.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** 0x3c0x7e.c 20 Jan 2006 10:28:50 -0000 1.1
--- 0x3c0x7e.c 23 Jan 2006 17:56:42 -0000 1.2
***************
*** 130,134 ****
while (n--) {
! __m128 xmm0, xmm1, xmm2;
xmm0 = _mm_cmplt_ps(in1[0], in2[0]);
out[0] = _mm_and_ps (xmm0 , one);
--- 130,134 ----
while (n--) {
! __m128 xmm0, xmm1;
xmm0 = _mm_cmplt_ps(in1[0], in2[0]);
out[0] = _mm_and_ps (xmm0 , one);
Index: regex.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/regex.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** regex.c 29 Nov 2005 17:29:04 -0000 1.2
--- regex.c 23 Jan 2006 17:56:42 -0000 1.3
***************
*** 117,122 ****
char*result=0;
int length=0;
- t_atom*ap=argv;
- int i=argc;
int flags = 0;
flags |= REG_EXTENDED;
--- 117,120 ----
Index: fifop.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/fifop.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** fifop.c 21 Dec 2005 09:15:20 -0000 1.9
--- fifop.c 23 Jan 2006 17:56:42 -0000 1.10
***************
*** 58,62 ****
static t_fifop_prioritylist*fifop_genprioritylist(t_fifop*x, t_float priority)
{
- int i;
t_fifop_prioritylist*result=0, *dummy=0;
--- 58,61 ----
***************
*** 102,106 ****
static int add2fifo(t_fifop_prioritylist*fifoprio, int argc, t_atom *argv)
{
- t_atom*buffer=0;
t_fifop_list*fifo=0;
t_fifop_list*entry=0;
--- 101,104 ----
Index: tabset.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/tabset.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** tabset.c 19 May 2005 09:42:55 -0000 1.2
--- tabset.c 23 Jan 2006 17:56:42 -0000 1.3
***************
*** 100,103 ****
--- 100,104 ----
class_addmethod(tabset_class, (t_method)tabset_helper, gensym("help"), 0);
class_sethelpsymbol(tabset_class, gensym("zexy/tabset"));
+ zexy_register("tabset");
}
Index: zexy.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/zexy.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** zexy.c 29 Sep 2005 08:03:16 -0000 1.10
--- zexy.c 23 Jan 2006 17:56:42 -0000 1.11
***************
*** 142,144 ****
--- 142,146 ----
zexy_class = class_new(gensym("zexy"), zexy_new, 0, sizeof(t_zexy), 0, 0);
class_addmethod(zexy_class, zexy_help, gensym("help"), 0);
+
+ zexy_register("zexy");
}
Index: tabdump.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/tabdump.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** tabdump.c 19 May 2005 09:42:55 -0000 1.2
--- tabdump.c 23 Jan 2006 17:56:42 -0000 1.3
***************
*** 115,118 ****
--- 115,119 ----
class_addmethod(tabdump_class, (t_method)tabdump_helper, gensym("help"), 0);
class_sethelpsymbol(tabdump_class, gensym("zexy/tabdump"));
+ zexy_register("tabdump");
}
Index: relay.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/relay.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** relay.c 21 Jun 2005 13:23:29 -0000 1.1
--- relay.c 23 Jan 2006 17:56:42 -0000 1.2
***************
*** 176,179 ****
--- 176,180 ----
class_addlist(relay_class, relay_list);
class_addanything(relay_class, relay_anything);
+ zexy_register("relay");
}
void z_relay_setup(void)
Index: noish~.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/noish~.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** noish~.c 19 May 2005 09:42:55 -0000 1.2
--- noish~.c 23 Jan 2006 17:56:42 -0000 1.3
***************
*** 182,185 ****
--- 182,186 ----
class_addmethod(noish_class, (t_method)noish_helper, gensym("help"), 0);
class_sethelpsymbol(noish_class, gensym("zexy/noish~"));
+ zexy_register("noish~");
}
Index: lifop.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/lifop.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** lifop.c 21 Dec 2005 09:15:20 -0000 1.7
--- lifop.c 23 Jan 2006 17:56:42 -0000 1.8
***************
*** 97,102 ****
static int add2lifo(t_lifop_prioritylist*lifoprio, int argc, t_atom *argv)
{
- t_atom*buffer=0;
- t_lifop_list*lifo=0;
t_lifop_list*entry=0;
--- 97,100 ----
Index: noisi~.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/noisi~.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** noisi~.c 19 May 2005 09:42:55 -0000 1.2
--- noisi~.c 23 Jan 2006 17:56:42 -0000 1.3
***************
*** 165,168 ****
--- 165,169 ----
class_addmethod(noisi_class, (t_method)noisi_helper, gensym("help"), 0);
class_sethelpsymbol(noisi_class, gensym("zexy/noisi~"));
+ zexy_register("noisi~");
}
Index: msgfile.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/msgfile.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** msgfile.c 2 Oct 2005 16:07:44 -0000 1.5
--- msgfile.c 23 Jan 2006 17:56:42 -0000 1.6
***************
*** 426,430 ****
static void msgfile_find(t_msgfile *x, t_symbol *s, int ac, t_atom *av)
{
- int searching = 1;
t_msglist *found = 0;
t_msglist *cur=x->current;
--- 426,429 ----
***************
*** 533,537 ****
filename->s_name, "", buf, &bufptr, MAXPDSTRING, 0)) < 0) {
! if(fd=open(filename->s_name, rmode) < 0) {
error("%s: can't open in %s", filename->s_name, dirname);
return;
--- 532,536 ----
filename->s_name, "", buf, &bufptr, MAXPDSTRING, 0)) < 0) {
! if((fd=open(filename->s_name, rmode)) < 0) {
error("%s: can't open in %s", filename->s_name, dirname);
return;
Index: 0x3d0x3d0x7e.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/0x3d0x3d0x7e.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** 0x3d0x3d0x7e.c 20 Jan 2006 10:28:50 -0000 1.1
--- 0x3d0x3d0x7e.c 23 Jan 2006 17:56:42 -0000 1.2
***************
*** 128,132 ****
while (n--) {
! __m128 xmm0, xmm1, xmm2;
xmm0 = _mm_cmpeq_ps(in1[0], in2[0]);
out[0] = _mm_and_ps (xmm0 , one);
--- 128,132 ----
while (n--) {
! __m128 xmm0, xmm1;
xmm0 = _mm_cmpeq_ps(in1[0], in2[0]);
out[0] = _mm_and_ps (xmm0 , one);