aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/index.c10
-rw-r--r--src/list2symbol.c8
-rw-r--r--src/operating_system.c2
-rw-r--r--src/sgn~.c2
-rw-r--r--src/sigzero~.c2
5 files changed, 12 insertions, 12 deletions
diff --git a/src/index.c b/src/index.c
index f3a8fb6..aeb6f40 100644
--- a/src/index.c
+++ b/src/index.c
@@ -169,24 +169,24 @@ static void index_add(t_index *x, t_symbol *s, t_float f)
/* delete a symbol from the map (if it is in there) */
static void index_delete(t_index *x, t_symbol *s, int argc, t_atom*argv)
{
- int index=-1;
+ int idx=-1;
ZEXY_USEVAR(s);
if(argc!=1){
error("index :: delete what ?");
return;
} else {
if(argv->a_type==A_FLOAT){
- index=atom_getint(argv)-1;
+ idx=atom_getint(argv)-1;
} else if (argv->a_type==A_SYMBOL){
- index=find_item(atom_getsymbol(argv),x->names, x->maxentries);
+ idx=find_item(atom_getsymbol(argv),x->names, x->maxentries);
} else {
error("index :: delete what ?");
return;
}
}
- if ( index >= 0 && index < x->maxentries) {
- x->names[index]=0;
+ if ( idx >= 0 && idx < x->maxentries) {
+ x->names[idx]=0;
x->entries--;
outlet_float(x->x_obj.ob_outlet, 0.0);
} else {
diff --git a/src/list2symbol.c b/src/list2symbol.c
index 6f1a8f9..06dc4f0 100644
--- a/src/list2symbol.c
+++ b/src/list2symbol.c
@@ -62,14 +62,14 @@ static void list2symbol_bang(t_list2symbol *x)
length+=i*connlen;
while(i--){
- int len=0;
+ int len2=0;
if(A_SYMBOL==argv->a_type){
- len=strlen(argv->a_w.w_symbol->s_name);
+ len2=strlen(argv->a_w.w_symbol->s_name);
} else {
atom_string(argv, buffer, MAXPDSTRING);
- len=strlen(buffer);
+ len2=strlen(buffer);
}
- length+=len;
+ length+=len2;
argv++;
}
diff --git a/src/operating_system.c b/src/operating_system.c
index 3764330..5b190d9 100644
--- a/src/operating_system.c
+++ b/src/operating_system.c
@@ -49,7 +49,7 @@ static void operating_system_bang(t_operating_system *x)
outlet_symbol(x->x_obj.ob_outlet, s);
}
-static void *operating_system_new()
+static void *operating_system_new(void)
{
t_operating_system *x = (t_operating_system *)pd_new(operating_system_class);
outlet_new(&x->x_obj, 0);
diff --git a/src/sgn~.c b/src/sgn~.c
index c69eae2..3605cad 100644
--- a/src/sgn~.c
+++ b/src/sgn~.c
@@ -134,7 +134,7 @@ static void sgnTilde_helper(void)
post("\n%c sgn~ \t\t:: sign of a signal", HEARTSYMBOL);
}
-static void *sgnTilde_new()
+static void *sgnTilde_new(void)
{
t_sgnTilde *x = (t_sgnTilde *)pd_new(sgnTilde_class);
outlet_new(&x->x_obj, gensym("signal"));
diff --git a/src/sigzero~.c b/src/sigzero~.c
index afdbe70..734cb21 100644
--- a/src/sigzero~.c
+++ b/src/sigzero~.c
@@ -87,7 +87,7 @@ static void sigzero_tilde_helper(void)
post("outlet :: 1/0\t: signal turned to non-zero/zero\n");
}
-static void *sigzero_new()
+static void *sigzero_new(void)
{
t_sigzero *x = (t_sigzero *)pd_new(sigzero_class);
outlet_new(&x->x_obj, &s_float);