[PD-dev] getting the classname in an class

2007-10-26 Thread Hans-Christoph Steiner


Ok, I've seen a number of different ideas for how to get the complete  
classname an object was instantiated with from within that class, but  
I haven't been able to get one working.


Krzysztof did this in externals/miXed/cyclone/hammer/universal.c:

t_gobj *g;
for (g = glist-gl_list; g; g = g-g_next)
if (pd_class(g-g_pd)-c_name == cname)  /* LATER rethink */
pd_bang(g-g_pd);


I tried this in my code, but got an error:

binbuf_addv(b, ssiisiiss, gensym(#X),gensym(obj),
x-x_obj.te_xpix, x-x_obj.te_ypix, pd_class(z- 
g_pd)-c_name,

x-x_width, x-x_height, x-x_bgcolour, x-x_fgcolour);

entry.c:504: error: dereferencing pointer to incomplete type


I think IOhannes recommended this, but I get the same error:

binbuf_addv(b, ssiisiiss, gensym(#X),gensym(obj),
x-x_obj.te_xpix, x-x_obj.te_ypix, (*(t_pd *)x)- 
c_name-s_name,

x-x_width, x-x_height, x-x_bgcolour, x-x_fgcolour);

entry.c:504: error: dereferencing pointer to incomplete type

Any suggestions?

.hc


 



The arc of history bends towards justice. - Dr. Martin Luther  
King, Jr.



___
PD-dev mailing list
PD-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev


Re: [PD-dev] getting the classname in an class

2007-10-26 Thread Hans-Christoph Steiner

On Oct 26, 2007, at 2:13 PM, Martin Peach wrote:

 Hans-Christoph Steiner wrote:
 Ok, I've seen a number of different ideas for how to get the  
 complete  classname an object was instantiated with from within  
 that class, but  I haven't been able to get one working.

 Krzysztof did this in externals/miXed/cyclone/hammer/universal.c:

 t_gobj *g;
 for (g = glist-gl_list; g; g = g-g_next)
  if (pd_class(g-g_pd)-c_name == cname)  /* LATER rethink */
  pd_bang(g-g_pd);


 I tried this in my code, but got an error:

 binbuf_addv(b, ssiisiiss, gensym(#X),gensym(obj),
 x-x_obj.te_xpix, x-x_obj.te_ypix, pd_class(z-  
 g_pd)-c_name,
 x-x_width, x-x_height, x-x_bgcolour, x- 
 x_fgcolour);

 entry.c:504: error: dereferencing pointer to incomplete type

 I think it's because pd_class just dereferences a pointer and a  
 t_class is just a pointer to an unspecified struct. You need to  
 specify what kind of class you're pointing at.



 I think IOhannes recommended this, but I get the same error:

 binbuf_addv(b, ssiisiiss, gensym(#X),gensym(obj),
 x-x_obj.te_xpix, x-x_obj.te_ypix, (*(t_pd *)x)-  
 c_name-s_name,
 x-x_width, x-x_height, x-x_bgcolour, x- 
 x_fgcolour);

 entry.c:504: error: dereferencing pointer to incomplete type

 Again, x is just a pointer to a struct but the compiler doesn't  
 know which kind of struct.



 Any suggestions?

 Specify the class type that x points to.

 Martin


Any specific suggestions?  You mean casting as (entry_class) or  
something like that?

.hc



 


You can't steal a gift. Bird gave the world his music, and if you can  
hear it, you can have it. - Dizzy Gillespie




___
PD-dev mailing list
PD-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev


[PD-dev] [ pure-data-Bugs-1820165 ] InnoSetup: include Asio4all as option

2007-10-26 Thread SourceForge.net
Bugs item #1820165, was opened at 2007-10-25 13:57
Message generated for change (Comment added) made by eighthave
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=478070aid=1820165group_id=55736

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: pd-extended
Group: None
Status: Open
Resolution: None
Priority: 3
Private: No
Submitted By: Josh Steiner (joschi)
Assigned to: Nobody/Anonymous (nobody)
Summary: InnoSetup: include Asio4all as option

Initial Comment:
We should include the Asio4All installer as an option in the install process, 
many other applications are doing that now, i'd propose to install by default.  
It provides a much much better user experience than pd on WME drivers

--

Comment By: Hans-Christoph Steiner (eighthave)
Date: 2007-10-26 15:21

Message:
Logged In: YES 
user_id=27104
Originator: NO

It looks like InnoSetup might not have a download-and-install feature. 
But it would be easy enough to launch the ASIO4ALL page at the end of the
installer.  But I don't think it can be included, it would be the only
exception.

As for NSIS vs. InnoSetup, if you are willing to take over active
maintainership of the Windows installer, then you can use whatever you want
:D (provided it's free, which NSIS is, right?)

--

Comment By: Josh Steiner (joschi)
Date: 2007-10-26 13:35

Message:
Logged In: YES 
user_id=69113
Originator: YES

so the InnoSetup files themselves are GPL'd ?  How many people actually
authored them? If its just you, would you consider adding a license
exception to allow ASIO4ALL? 

I know nothing about Inno unfortunately, if this were in NSIS i could hack
away at it as (sadly) i've become quite an NSIS expert.

--

Comment By: Hans-Christoph Steiner (eighthave)
Date: 2007-10-26 00:23

Message:
Logged In: YES 
user_id=27104
Originator: NO

Sounds very cool.  The ASIO4ALL license prevents it from being embedded in
the Windows package itself, (everything must be GPLv2 compatible
currently).  But I think it would be feasible to make the installer
download the package separately, in which case there would be no problem
with licenses.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=478070aid=1820165group_id=55736

___
PD-dev mailing list
PD-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev


Re: [PD-dev] getting the classname in an class

2007-10-26 Thread IOhannes m zmoelnig
Hans-Christoph Steiner wrote:
 On Oct 26, 2007, at 2:13 PM, Martin Peach wrote:

 
 Any specific suggestions?  You mean casting as (entry_class) or  
 something like that?

you have to copy the struct definitions from whereever to your file.
look at iem/iemguts/src/saveargs.c

fmasdr
IOhannes

___
PD-dev mailing list
PD-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev


[PD-dev] stuff missing from pd-extended (flext please)

2007-10-26 Thread B. Bogart
Hey all,

I'm slowly switching all my custom PD installed to pd-extended!!!

I thought it would be useful to know what I had to add manually:

ann_*
contents of abstractions/ptz-camera (depends on py)
py

I could not get my elmo pyx stuff to work, it seems one has to create a 
py object and then pyx objects work, but I can't create a pyx object 
inistially. I suppose this is a libdir side-effect?

Unfortunately that means back to the custom PD. blech!

Thomas, Any progress on flext in pd-extended?

.b.



___
PD-dev mailing list
PD-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev


[PD-dev] more frequent auto-builds?

2007-10-26 Thread Hans-Christoph Steiner

I just had a thought, it would be easy to have some auto-builds run  
more frequently, like every 2 hours.

Would people find this useful?

.hc


 


News is what people want to keep hidden and everything else is  
publicity.  - Bill Moyers



___
PD-dev mailing list
PD-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev


Re: [PD-dev] stuff missing from pd-extended (flext please)

2007-10-26 Thread Thomas Grill
B. Bogart schrieb:
 Thomas, Any progress on flext in pd-extended?

   
Hey Ben,
i'm really sorry about that, but again i have so many urgent things to 
do that i can't even think about that in the next time.
I'm afraid someone else has to do it - is there still a chance to get 
some grants for it? As already stated, building flext or flext-based 
externals is really easy using a usual makefile, the complicated thing 
(for me at least) is the integration into the pd-extended build system, 
although H.C. might say it's not.
If someone volunteers to do it i'm glad to answer any related questions.

greetings, Thomas


___
PD-dev mailing list
PD-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev


[PD-dev] [ pure-data-Bugs-1821006 ] edit mode checkbox sometime is out of sync

2007-10-26 Thread SourceForge.net
Bugs item #1821006, was opened at 2007-10-26 16:17
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=478070aid=1821006group_id=55736

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: puredata
Group: v0.39.2
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: edit mode checkbox sometime is out of sync

Initial Comment:

There are certain conditions when the checkbox on the Edit mode menu item in 
the Edit menu will not show the checkbox when in edit mode:

- when using the Put menu when in run mode, it will automatiaclly switch to 
edit mode, but the checkbox won't be checked

- for the first new window, the edit mode checkbox will never show

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=478070aid=1821006group_id=55736

___
PD-dev mailing list
PD-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev


Re: [PD-dev] getting the classname in an class

2007-10-26 Thread Mathieu Bouchard

On Fri, 26 Oct 2007, Hans-Christoph Steiner wrote:

Ok, I've seen a number of different ideas for how to get the complete 
classname an object was instantiated with from within that class, but I 
haven't been able to get one working.


why don't you use what I posted (anonymously) on sourceforge very 
recently?


... which is also pretty much what I had already told you on IRC when you 
asked me.


so, why do you ask again?

 _ _ __ ___ _  _ _ ...
| Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada___
PD-dev mailing list
PD-dev@iem.at
http://lists.puredata.info/listinfo/pd-dev