Update of /cvsroot/pure-data/externals/grill/dynext/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5009/src
Modified Files: main.cpp Log Message: - strip .pd from abstraction filenames documentation - open debug patcher on alt-click
Index: main.cpp =================================================================== RCS file: /cvsroot/pure-data/externals/grill/dynext/src/main.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** main.cpp 19 Jan 2005 04:59:59 -0000 1.2 --- main.cpp 8 Feb 2005 04:58:52 -0000 1.3 *************** *** 12,15 **** --- 12,17 ---- */
+ #define FLEXT_ATTRIBUTES 1 + #include <flext.h>
*************** *** 155,158 **** --- 157,161 ---- int m_inlets,s_inlets,m_outlets,s_outlets; t_canvas *canvas; + bool stripext;
private: *************** *** 170,173 **** --- 173,178 ---- FLEXT_CALLBACK_B(m_vis)
+ FLEXT_ATTRVAR_B(stripext) + static const t_symbol *sym_dot,*sym_dynsin,*sym_dynsout,*sym_dynin,*sym_dynout,*sym_dyncanvas; static const t_symbol *sym_vis,*sym_loadbang,*sym_dsp; *************** *** 240,243 **** --- 245,250 ---- FLEXT_CADDMETHOD_(c,0,"vis",m_vis);
+ FLEXT_CADDATTR_VAR1(c,"stripext",stripext); + // set up symbols k_obj = MakeSymbol("obj"); *************** *** 286,290 **** root(NULL), canvas(NULL), ! pxin(NULL),pxout(NULL) { if(argc < 4) { --- 293,298 ---- root(NULL), canvas(NULL), ! pxin(NULL),pxout(NULL), ! stripext(false) { if(argc < 4) { *************** *** 459,463 **** else { // convert abstraction filenames ! if(kind == k_obj && argc >= 3 && IsSymbol(argv[2])) { const char *c = GetString(argv[2]); int l = strlen(c); --- 467,471 ---- else { // convert abstraction filenames ! if(stripext && kind == k_obj && argc >= 3 && IsSymbol(argv[2])) { const char *c = GetString(argv[2]); int l = strlen(c); *************** *** 473,477 **** }
! // set selected canvas as current canvas_setcurrent(glist);
--- 481,485 ---- }
! // set selected canvas as current canvas_setcurrent(glist);