Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • jwilkes/purr-data
  • aggraef/purr-data
  • samthursfield/purr-data
  • prakhar/purr-data
  • yadu05/purr-data
  • NegiAkash890/purr-data
  • prateekpardeshi/purr-data
  • Shruti3004/purr-data
  • hidimpu/purr-data
  • Atseosi/purr-data
  • piyushjasaiwal/purr-data
  • deveshprasad/purr-data
  • skm_7/purr-data
  • sankt/purr-data
  • ashim_tom/purr-data
  • dineshsoni02/purr-data
  • chaitanya1-coder/purr-data
  • Nitish0007/purr-data
  • nitin/purr-data
  • shuvam09/purr-data
  • gabrielabittencourt/purr-data
  • sivasai/purr-data
  • flachyjoe/purr-data
  • ishankaler/purr-data
  • prateek/purr-data
  • RukshanJS/purr-data
  • rajatshrm648/purr-data
  • Srashti/purr-data
  • Paarth/purr-data
  • AniruddhaGawali/purr-data
  • brittneyjuliet/purr-data
  • prakharagarwal1/purr-data
  • Shreyanshpaliwalcmsmn/purr-data
  • k_amrut/purr-data
  • AyushAnand/purr-data
  • Va16hav07/purr-data
36 results
Show changes
Showing
with 37 additions and 39 deletions
...@@ -57,8 +57,8 @@ pd_darwin: $(NAME).pd_darwin ...@@ -57,8 +57,8 @@ pd_darwin: $(NAME).pd_darwin
DARWINCFLAGS = -DPD -O2 -Wall -W DARWINCFLAGS = -DPD -O2 -Wall -W
DARWININCLUDE = -I../../src -I$(pd_src)/src -I/sw/include DARWININCLUDE = -I../../src -I$(pd_src)/src
DARWINLIBS = -L/sw/lib -lusb DARWINLIBS = -lusb
.c.pd_darwin: .c.pd_darwin:
$(CC) $(DARWINCFLAGS) $(DARWININCLUDE) -o $*.o -c $*.c $(CC) $(DARWINCFLAGS) $(DARWININCLUDE) -o $*.o -c $*.c
......
#!/bin/sh #!/bin/sh
PATH=/sw/bin:$PATH
PWD=${0%/*} PWD=${0%/*}
......
...@@ -83,7 +83,7 @@ ORIGDIR=pd-$(LIBRARY_NAME:~=)_$(LIBRARY_VERSION) ...@@ -83,7 +83,7 @@ ORIGDIR=pd-$(LIBRARY_NAME:~=)_$(LIBRARY_VERSION)
UNAME := $(shell uname -s) UNAME := $(shell uname -s)
ifeq ($(UNAME),Darwin) ifeq ($(UNAME),Darwin)
CPU := $(shell uname -p) CPU := $(shell uname -p)
ifeq ($(CPU),arm) # iPhone/iPod Touch ifeq ($(CPU),arm-iphone) # iPhone/iPod Touch
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
EXTENSION = pd_darwin EXTENSION = pd_darwin
SHARED_EXTENSION = dylib SHARED_EXTENSION = dylib
...@@ -116,10 +116,10 @@ ifeq ($(UNAME),Darwin) ...@@ -116,10 +116,10 @@ ifeq ($(UNAME),Darwin)
FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target)
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
endif endif
ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include ALL_CFLAGS += $(FAT_FLAGS) -fPIC
# if the 'pd' binary exists, check the linking against it to aid with stripping # if the 'pd' binary exists, check the linking against it to aid with stripping
BUNDLE_LOADER = $(shell test ! -e $(PD_PATH)/bin/pd || echo -bundle_loader $(PD_PATH)/bin/pd) BUNDLE_LOADER = $(shell test ! -e $(PD_PATH)/bin/pd || echo -bundle_loader $(PD_PATH)/bin/pd)
ALL_LDFLAGS += $(FAT_FLAGS) -bundle $(BUNDLE_LOADER) -undefined dynamic_lookup -L/sw/lib ALL_LDFLAGS += $(FAT_FLAGS) -bundle $(BUNDLE_LOADER) -undefined dynamic_lookup
SHARED_LDFLAGS += $(FAT_FLAGS) -dynamiclib -undefined dynamic_lookup \ SHARED_LDFLAGS += $(FAT_FLAGS) -dynamiclib -undefined dynamic_lookup \
-install_name @loader_path/$(SHARED_LIB) -compatibility_version 1 -current_version 1.0 -install_name @loader_path/$(SHARED_LIB) -compatibility_version 1 -current_version 1.0
ALL_LIBS += -lc $(LIBS_macosx) ALL_LIBS += -lc $(LIBS_macosx)
......
...@@ -18,7 +18,7 @@ typedef struct _canvas_name ...@@ -18,7 +18,7 @@ typedef struct _canvas_name
static t_symbol* make_canvas_symbol(t_canvas* canvas) static t_symbol* make_canvas_symbol(t_canvas* canvas)
{ {
char buf[MAXPDSTRING]; char buf[MAXPDSTRING];
snprintf(buf, MAXPDSTRING, ".x%lx.c", (long unsigned int)canvas); snprintf(buf, MAXPDSTRING, ".x%zx.c", (t_uint)canvas);
return gensym(buf); return gensym(buf);
} }
......
...@@ -80,7 +80,7 @@ static void *colorpanel_new( void) ...@@ -80,7 +80,7 @@ static void *colorpanel_new( void)
{ {
char buf[MAXPDSTRING]; char buf[MAXPDSTRING];
t_colorpanel *x = (t_colorpanel *)pd_new(colorpanel_class); t_colorpanel *x = (t_colorpanel *)pd_new(colorpanel_class);
sprintf(buf, "#%lx", (t_int)x); sprintf(buf, "#%zx", (t_uint)x);
x->x_s = gensym(buf); x->x_s = gensym(buf);
pd_bind(&x->x_obj.ob_pd, x->x_s); pd_bind(&x->x_obj.ob_pd, x->x_s);
outlet_new(&x->x_obj, &s_list); outlet_new(&x->x_obj, &s_list);
......
...@@ -110,7 +110,7 @@ static void *cursor_new(void) ...@@ -110,7 +110,7 @@ static void *cursor_new(void)
x->parent_canvas = canvas_getcurrent(); x->parent_canvas = canvas_getcurrent();
sprintf(buf, "#%lx", (t_int)x); sprintf(buf, "#%zx", (t_uint)x);
x->receive_symbol = gensym(buf); x->receive_symbol = gensym(buf);
pd_bind(&x->x_obj.ob_pd, x->receive_symbol); pd_bind(&x->x_obj.ob_pd, x->receive_symbol);
x->data_outlet = outlet_new(&x->x_obj, 0); x->data_outlet = outlet_new(&x->x_obj, 0);
......
...@@ -29,7 +29,7 @@ static void *screensize_new(void) ...@@ -29,7 +29,7 @@ static void *screensize_new(void)
char buf[MAXPDSTRING]; char buf[MAXPDSTRING];
t_screensize *x = (t_screensize *)pd_new(screensize_class); t_screensize *x = (t_screensize *)pd_new(screensize_class);
sprintf(buf, "#%lx", (t_int)x); sprintf(buf, "#%zx", (t_uint)x);
x->receive_symbol = gensym(buf); x->receive_symbol = gensym(buf);
pd_bind(&x->x_obj.ob_pd, x->receive_symbol); pd_bind(&x->x_obj.ob_pd, x->receive_symbol);
......
...@@ -65,7 +65,7 @@ static void *sys_gui_new(t_symbol *s) ...@@ -65,7 +65,7 @@ static void *sys_gui_new(t_symbol *s)
x->x_outlet = outlet_new(&x->x_obj, &s_anything); x->x_outlet = outlet_new(&x->x_obj, &s_anything);
char buf[MAXPDSTRING]; char buf[MAXPDSTRING];
sprintf(buf, "#%lx", (t_int)x); sprintf(buf, "#%zx", (t_uint)x);
x->x_receive_symbol = gensym(buf); x->x_receive_symbol = gensym(buf);
pd_bind(&x->x_obj.ob_pd, x->x_receive_symbol); pd_bind(&x->x_obj.ob_pd, x->x_receive_symbol);
......
...@@ -59,7 +59,7 @@ ALLSOURCES := $(SOURCES) $(SOURCES_android) $(SOURCES_cygwin) $(SOURCES_macosx) ...@@ -59,7 +59,7 @@ ALLSOURCES := $(SOURCES) $(SOURCES_android) $(SOURCES_cygwin) $(SOURCES_macosx)
UNAME := $(shell uname -s) UNAME := $(shell uname -s)
ifeq ($(UNAME),Darwin) ifeq ($(UNAME),Darwin)
CPU := $(shell uname -p) CPU := $(shell uname -p)
ifeq ($(CPU),arm) # iPhone/iPod Touch ifeq ($(CPU),arm-iphone) # iPhone/iPod Touch
SOURCES += $(SOURCES_macosx) SOURCES += $(SOURCES_macosx)
EXTENSION = pd_darwin EXTENSION = pd_darwin
OS = iphoneos OS = iphoneos
...@@ -83,9 +83,9 @@ ifeq ($(UNAME),Darwin) ...@@ -83,9 +83,9 @@ ifeq ($(UNAME),Darwin)
OS = macosx OS = macosx
OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast
FAT_FLAGS = -arch i386 -arch ppc -mmacosx-version-min=$(macos_target) FAT_FLAGS = -arch i386 -arch ppc -mmacosx-version-min=$(macos_target)
CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include \ CFLAGS += $(FAT_FLAGS) -fPIC \
-I/Applications/Pd-extended.app/Contents/Resources/include -I/Applications/Pd-extended.app/Contents/Resources/include
LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup -L/sw/lib LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup
# if the 'pd' binary exists, check the linking against it to aid with stripping # if the 'pd' binary exists, check the linking against it to aid with stripping
LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd) LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd)
LIBS += -lc LIBS += -lc
......
...@@ -18,7 +18,7 @@ typedef struct _window_name ...@@ -18,7 +18,7 @@ typedef struct _window_name
static t_symbol* make_canvas_symbol(t_canvas* canvas) static t_symbol* make_canvas_symbol(t_canvas* canvas)
{ {
char buf[MAXPDSTRING]; char buf[MAXPDSTRING];
snprintf(buf, MAXPDSTRING, ".x%lx", (long unsigned int)canvas); snprintf(buf, MAXPDSTRING, ".x%zx", (t_uint)canvas);
return gensym(buf); return gensym(buf);
} }
......
...@@ -82,7 +82,7 @@ unsigned char HIDConfigureAction (pRecDevice * ppDevice, pRecElement * ppElement ...@@ -82,7 +82,7 @@ unsigned char HIDConfigureAction (pRecDevice * ppDevice, pRecElement * ppElement
pDevice = HIDGetNextDevice (pDevice); pDevice = HIDGetNextDevice (pDevice);
} }
saveValueArray = (long *) malloc (sizeof (long) * numDevices * maxElements); // 2D array to save values saveValueArray = (long *) malloc (sizeof (long) * numDevices * maxElements); // 2D array to save values
bzero(saveValueArray,sizeof (long) * numDevices * maxElements); // clear array memset(saveValueArray,0,sizeof (long) * numDevices * maxElements); // clear array
// store current values // store current values
deviceNum = 0; deviceNum = 0;
...@@ -168,7 +168,7 @@ void HIDSaveElementConfig (FILE * fileRef, pRecDevice pDevice, pRecElement pElem ...@@ -168,7 +168,7 @@ void HIDSaveElementConfig (FILE * fileRef, pRecDevice pDevice, pRecElement pElem
if (HIDIsValidElement(pDevice,pElement)) if (HIDIsValidElement(pDevice,pElement))
{ {
// clear rec // clear rec
bzero(&saveRec,sizeof(recSaveHID)); memset(&saveRec,0,sizeof(recSaveHID));
saveRec.actionCookie = actionCookie; saveRec.actionCookie = actionCookie;
......
...@@ -290,7 +290,7 @@ static void hid_AddElement (CFTypeRef refElement, pRecElement * ppElementCurrent ...@@ -290,7 +290,7 @@ static void hid_AddElement (CFTypeRef refElement, pRecElement * ppElementCurrent
// it preserves the structure of the lements as collections have children and elements are siblings to each other // it preserves the structure of the lements as collections have children and elements are siblings to each other
// clear record // clear record
bzero(pElement,sizeof(recElement)); memset(pElement,0,sizeof(recElement));
// get element info // get element info
pElement->type = elementType; pElement->type = elementType;
...@@ -587,7 +587,7 @@ static pRecDevice hid_BuildDevice (io_object_t hidDevice) ...@@ -587,7 +587,7 @@ static pRecDevice hid_BuildDevice (io_object_t hidDevice)
kern_return_t result = IORegistryEntryCreateCFProperties (hidDevice, &hidProperties, kCFAllocatorDefault, kNilOptions); kern_return_t result = IORegistryEntryCreateCFProperties (hidDevice, &hidProperties, kCFAllocatorDefault, kNilOptions);
// clear record // clear record
bzero(pDevice, sizeof(recDevice)); memset(pDevice, 0, sizeof(recDevice));
if ((result == KERN_SUCCESS) && (NULL != hidProperties)) if ((result == KERN_SUCCESS) && (NULL != hidProperties))
{ {
......
...@@ -71,7 +71,7 @@ ORIGDIR=pd-$(LIBRARY_NAME)_$(LIBRARY_VERSION) ...@@ -71,7 +71,7 @@ ORIGDIR=pd-$(LIBRARY_NAME)_$(LIBRARY_VERSION)
UNAME := $(shell uname -s) UNAME := $(shell uname -s)
ifeq ($(UNAME),Darwin) ifeq ($(UNAME),Darwin)
CPU := $(shell uname -p) CPU := $(shell uname -p)
ifeq ($(CPU),arm) # iPhone/iPod Touch ifeq ($(CPU),arm-iphone) # iPhone/iPod Touch
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
EXTENSION = pd_darwin EXTENSION = pd_darwin
OS = iphoneos OS = iphoneos
...@@ -101,8 +101,8 @@ ifeq ($(UNAME),Darwin) ...@@ -101,8 +101,8 @@ ifeq ($(UNAME),Darwin)
FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target)
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
endif endif
CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include CFLAGS += $(FAT_FLAGS) -fPIC
LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup -L/sw/lib LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup
# if the 'pd' binary exists, check the linking against it to aid with stripping # if the 'pd' binary exists, check the linking against it to aid with stripping
LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd) LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd)
LIBS += -lc LIBS += -lc
......
...@@ -874,13 +874,13 @@ static void room_sim_2d__motionhook(t_scalehandle *sh, ...@@ -874,13 +874,13 @@ static void room_sim_2d__motionhook(t_scalehandle *sh,
scalehandle_unclick_scale(sh); scalehandle_unclick_scale(sh);
} }
int properties = gfxstub_haveproperties((void *)x); //int properties = gfxstub_haveproperties((void *)x);
if (properties) //if (properties)
{ //{
/* No properties for room_sim externals atm */ /* No properties for room_sim externals atm */
//properties_set_field_int(properties,"width",new_w); //properties_set_field_int(properties,"width",new_w);
//properties_set_field_int(properties,"height",new_h); //properties_set_field_int(properties,"height",new_h);
} //}
} }
scalehandle_dragon_label(sh,mouse_x, mouse_y); scalehandle_dragon_label(sh,mouse_x, mouse_y);
} }
......
...@@ -1008,13 +1008,13 @@ static void room_sim_3d__motionhook(t_scalehandle *sh, ...@@ -1008,13 +1008,13 @@ static void room_sim_3d__motionhook(t_scalehandle *sh,
scalehandle_unclick_scale(sh); scalehandle_unclick_scale(sh);
} }
int properties = gfxstub_haveproperties((void *)x); //int properties = gfxstub_haveproperties((void *)x);
if (properties) //if (properties)
{ //{
/* No properties for room_sim externals atm */ /* No properties for room_sim externals atm */
//properties_set_field_int(properties,"width",new_w); //properties_set_field_int(properties,"width",new_w);
//properties_set_field_int(properties,"height",new_h); //properties_set_field_int(properties,"height",new_h);
} //}
} }
scalehandle_dragon_label(sh,mouse_x, mouse_y); scalehandle_dragon_label(sh,mouse_x, mouse_y);
} }
......
...@@ -121,7 +121,7 @@ ORIGDIR=pd-$(LIBRARY_NAME)_$(LIBRARY_VERSION) ...@@ -121,7 +121,7 @@ ORIGDIR=pd-$(LIBRARY_NAME)_$(LIBRARY_VERSION)
UNAME := $(shell uname -s) UNAME := $(shell uname -s)
CPU := $(shell uname -p) CPU := $(shell uname -p)
ifeq ($(UNAME),Darwin) ifeq ($(UNAME),Darwin)
ifeq ($(CPU),arm) # iPhone/iPod Touch ifeq ($(CPU),arm-iphone) # iPhone/iPod Touch
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
EXTENSION = pd_darwin EXTENSION = pd_darwin
OS = iphoneos OS = iphoneos
...@@ -150,9 +150,9 @@ ifeq ($(UNAME),Darwin) ...@@ -150,9 +150,9 @@ ifeq ($(UNAME),Darwin)
FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target) FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=$(macos_target)
SOURCES += $(SOURCES_iphoneos) SOURCES += $(SOURCES_iphoneos)
endif endif
CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include \ CFLAGS += $(FAT_FLAGS) -fPIC \
-I/Applications/Pd-extended.app/Contents/Resources/include -I/Applications/Pd-extended.app/Contents/Resources/include
LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup -L/sw/lib LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup
# if the 'pd' binary exists, check the linking against it to aid with stripping # if the 'pd' binary exists, check the linking against it to aid with stripping
LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd) LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd)
LIBS += -lc LIBS += -lc
......
...@@ -164,7 +164,7 @@ void autoabstraction_setup(void) ...@@ -164,7 +164,7 @@ void autoabstraction_setup(void)
iemguts_boilerplate("automatic abstraction creator", 0); iemguts_boilerplate("automatic abstraction creator", 0);
#ifdef AUTOABSTRACTION_ENABLED #ifdef AUTOABSTRACTION_ENABLED
autoabstraction_initialize(); autoabstraction_initialize();
sys_register_loader(autoabstraction_loader); sys_register_loader((loader_t)autoabstraction_loader);
#warning FIXME loader-0.47 mode! #warning FIXME loader-0.47 mode!
#else #else
error("autoabstraction needs to be compiled against Pd 0.40 or higher,\n"); error("autoabstraction needs to be compiled against Pd 0.40 or higher,\n");
......
...@@ -48,7 +48,7 @@ static void canvasdelete_doit(t_canvasdelete *x) ...@@ -48,7 +48,7 @@ static void canvasdelete_doit(t_canvasdelete *x)
else { else {
t_atom ap[1]; t_atom ap[1];
SETFLOAT(ap, 1); SETFLOAT(ap, 1);
typedmess(x->x_gobj, gensym("menuclose"), 1, ap); typedmess((t_pd*)x->x_gobj, gensym("menuclose"), 1, ap);
} }
...@@ -83,7 +83,7 @@ static void *canvasdelete_new(t_floatarg f) ...@@ -83,7 +83,7 @@ static void *canvasdelete_new(t_floatarg f)
depth--; depth--;
} }
x->x_glist = x->x_gobj = NULL; x->x_glist = NULL; x->x_gobj = NULL;
if (!depth) { if (!depth) {
x->x_glist = canvas; x->x_glist = canvas;
x->x_gobj=obj; x->x_gobj=obj;
......
...@@ -100,7 +100,7 @@ static void fbo_iterate(t_findbrokenobjects*x, t_canvas*cnv, int verbose) { ...@@ -100,7 +100,7 @@ static void fbo_iterate(t_findbrokenobjects*x, t_canvas*cnv, int verbose) {
cls=pd_class(&g->g_pd); cls=pd_class(&g->g_pd);
if (cls == canvas_class) { if (cls == canvas_class) {
// this is just another abstraction, recurse into it // this is just another abstraction, recurse into it
fbo_iterate(x, ob, verbose); fbo_iterate(x, (t_canvas*)ob, verbose);
} else if (cls == text_class) { } else if (cls == text_class) {
t_binbuf*bb=ob->te_binbuf; t_binbuf*bb=ob->te_binbuf;
t_atom*argv=binbuf_getvec(bb); t_atom*argv=binbuf_getvec(bb);
......
...@@ -122,7 +122,7 @@ static void *receivecanvas_new(t_floatarg f) ...@@ -122,7 +122,7 @@ static void *receivecanvas_new(t_floatarg f)
if(canvas) { if(canvas) {
char buf[MAXPDSTRING]; char buf[MAXPDSTRING];
snprintf(buf, MAXPDSTRING-1, "x%lx", (long unsigned int)canvas); snprintf(buf, MAXPDSTRING-1, "x%zx", (t_uint)canvas);
buf[MAXPDSTRING-1]=0; buf[MAXPDSTRING-1]=0;
x->x_proxy=receivecanvas_proxy_new(x, gensym(buf)); x->x_proxy=receivecanvas_proxy_new(x, gensym(buf));
......