Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26784
Modified Files: Tag: devel_0_39 desire.c Log Message: more C++ compatibility
Index: desire.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/desire.c,v retrieving revision 1.1.2.189 retrieving revision 1.1.2.190 diff -C2 -d -r1.1.2.189 -r1.1.2.190 *** desire.c 17 Nov 2006 03:26:12 -0000 1.1.2.189 --- desire.c 17 Nov 2006 04:11:17 -0000 1.1.2.190 *************** *** 14,19 **** --- 14,33 ---- #include "m_pd.h" #include "desire.h" + + #ifdef __cplusplus + #define EXTERNC extern "C" + #else + #define EXTERNC extern + #endif + [...2199 lines suppressed...] else { --- 8040,8044 ---- /* this proc is a big bug (hint: error string is uninitialized _and_ never initialized). who did this? what is it supposed to be? */ ! EXTERNC void glob_finderror(t_pd *dummy) { if (!error_object) post("no findable error yet."); else { *************** *** 8053,8057 ****
/* properly close all open root canvases */ ! void glob_closeall(void *dummy, t_floatarg fforce) { t_canvas *x, *y; for (x = canvas_list; x; ) { --- 8072,8076 ----
/* properly close all open root canvases */ ! EXTERNC void glob_closeall(void *dummy, t_floatarg fforce) { t_canvas *x, *y; for (x = canvas_list; x; ) {