[PD-cvs] pd/src main.c, NONE, 1.1.2.1 desire.c, 1.1.2.217.2.18, 1.1.2.217.2.19

Mathieu Bouchard matju at users.sourceforge.net
Mon Dec 4 21:59:54 CET 2006


Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13996

Modified Files:
      Tag: desiredata
	desire.c 
Added Files:
      Tag: desiredata
	main.c 
Log Message:
libpd.so


--- NEW FILE: main.c ---
/* this file is separate because it is outside of libpd.so */

extern "C" int sys_main(int argc, char **argv);
#if defined(_WIN32) && !defined(_CONSOLE)
#include <windows.h>
#include <stdio.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
    __try {
        sys_main(__argc,__argv);
    } __finally {
        printf("caught an exception; stopping\n");
    }
}
#else /* not MSVC */
int main(int argc, char **argv) {return sys_main(argc, argv);}
#endif


Index: desire.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/Attic/desire.c,v
retrieving revision 1.1.2.217.2.18
retrieving revision 1.1.2.217.2.19
diff -C2 -d -r1.1.2.217.2.18 -r1.1.2.217.2.19
*** desire.c	3 Dec 2006 16:45:49 -0000	1.1.2.217.2.18
--- desire.c	4 Dec 2006 20:59:49 -0000	1.1.2.217.2.19
***************
*** 8001,8020 ****
  };
  
- /* In MSW, this is all there is to pd; the rest sits in a "pdlib" dll so
- that externs can link back to functions defined in pd. */
- 
- extern "C" int sys_main(int argc, char **argv);
- #if defined(_WIN32) && !defined(_CONSOLE)
- #include <windows.h>
- #include <stdio.h>
- int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
-     __try {
-         sys_main(__argc,__argv);
-     } __finally {
-         printf("caught an exception; stopping\n");
-     }
- }
- #else /* not MSVC */
- int main(int argc, char **argv) {return sys_main(argc, argv);}
- #endif
- 
--- 8001,8002 ----





More information about the Pd-cvs mailing list