Skip to content

Commit

Permalink
deprivatize b/f/s/l constructors and redeclare in m_class.c
Browse files Browse the repository at this point in the history
  • Loading branch information
claudeha committed Jan 8, 2019
1 parent 545cd7b commit dcb0431
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/m_class.c
Expand Up @@ -891,6 +891,11 @@ typedef t_pd *(*t_fun5)(t_int i1, t_int i2, t_int i3, t_int i4, t_int i5,
typedef t_pd *(*t_fun6)(t_int i1, t_int i2, t_int i3, t_int i4, t_int i5, t_int i6,
t_floatarg d1, t_floatarg d2, t_floatarg d3, t_floatarg d4, t_floatarg d5);

void *bang_new(t_pd *dummy);
void *pdfloat_new(t_pd *dummy, t_float f);
void *pdsymbol_new(t_pd *dummy, t_symbol *s);
void *list_new(t_pd *dummy, t_symbol *s, int argc, t_atom *argv);

void pd_typedmess(t_pd *x, t_symbol *s, int argc, t_atom *argv)
{
t_method *f;
Expand Down
6 changes: 3 additions & 3 deletions src/x_connective.c
Expand Up @@ -69,7 +69,7 @@ typedef struct _pdfloat
they're created by short-circuited messages to the "new"
object which are handled specially in pd_typedmess(). */

static void *pdfloat_new(t_pd *dummy, t_float f)
void *pdfloat_new(t_pd *dummy, t_float f)
{
t_pdfloat *x = (t_pdfloat *)pd_new(pdfloat_class);
x->x_f = f;
Expand Down Expand Up @@ -136,7 +136,7 @@ typedef struct _pdsymbol
t_symbol *x_s;
} t_pdsymbol;

static void *pdsymbol_new(t_pd *dummy, t_symbol *s)
void *pdsymbol_new(t_pd *dummy, t_symbol *s)
{
t_pdsymbol *x = (t_pdsymbol *)pd_new(pdsymbol_class);
x->x_s = s;
Expand Down Expand Up @@ -194,7 +194,7 @@ typedef struct _bang
t_object x_obj;
} t_bang;

static void *bang_new(t_pd *dummy)
void *bang_new(t_pd *dummy)
{
t_bang *x = (t_bang *)pd_new(bang_class);
outlet_new(&x->x_obj, &s_bang);
Expand Down
2 changes: 1 addition & 1 deletion src/x_list.c
Expand Up @@ -759,7 +759,7 @@ static void list_tosymbol_setup(void)

/* ------------- list ------------------- */

static void *list_new(t_pd *dummy, t_symbol *s, int argc, t_atom *argv)
void *list_new(t_pd *dummy, t_symbol *s, int argc, t_atom *argv)
{
if (!argc || argv[0].a_type != A_SYMBOL)
pd_this->pd_newest = list_append_new(s, argc, argv);
Expand Down

0 comments on commit dcb0431

Please sign in to comment.