2 * gcc -shared helloworld.c -o helloworld.pd_linux
8 static t_class
*printer_class
;
10 typedef struct _printer
{
14 void printer_bang(t_printer
*x
)
16 post("Hello world !!");
20 void *printer_new(t_symbol
*s
, int argc
, t_atom
*argv
)
21 //void *printer_new(void)
24 printf("argc: %d\n", argc
);
26 for(i
= 0;i
< argc
;i
++) {
27 as
= atom_getsymbol(argv
[i
]);
28 //puts((char *)&argv[i]);
30 t_printer
*x
= (t_printer
*)pd_new(printer_class
);
35 void printer_setup(void) {
36 printer_class
= class_new(gensym("printer"),
37 (t_newmethod
)printer_new
,
40 class_addbang(printer_class
, printer_bang
);
This page took 0.318 seconds and 4 git commands to generate.