Skip to content

Commit

Permalink
fix missing function def
Browse files Browse the repository at this point in the history
  • Loading branch information
fdch committed Jun 18, 2023
1 parent f3e60be commit b8dedcf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ typedef struct connect {
} t_connect;

int setcanvassym_connect(t_connect *x, t_symbol *s);
int glist_getindex(t_glist *x, t_gobj *y);

/* get the index of a gobj in a glist. If y is zero, return the
total number of objects. */
int glist_getindex(t_glist *x, t_gobj *y)
{
t_gobj *y2;
int indx;

for (y2 = x->gl_list, indx = 0; y2 && y2 != y; y2 = y2->g_next)
indx++;
return (indx);
}

int setcanvassym_connect(t_connect *x, t_symbol *s)
{
Expand Down

0 comments on commit b8dedcf

Please sign in to comment.