[PD-dev] how about declaring sys_load_lib() in the API?

Krzysztof Czaja czaja at chopin.edu.pl
Tue May 6 10:16:33 CEST 2003


hi Miller,

would you be willing to declare sys_load_lib call as EXTERN in
m_pd.h?

It is perfectly valid for one external to load another one?  At
least, I need this for cyclone loading hammer and sickle, also in
widget/tow combo, and xeq + friends.

Currently, I am using a copy-pasted replacement of this call, but
somehow expect, that the original implementation is going to
undergo some changes...

The call's signature itself is looking stable enough, except one
thing, perhaps -- reporting error condition in the return code:
1. no file, 2. bad file (not a dll), 3. no entry (i.e. '..._setup'
not defined).

Krzysztof

btw 1, in s_midi_oss.c line 229 should be deleted (this line is
not only redundant -- it stops compilation, because <sys/time.h>
is not included)

btw 2, in u_main.tk ``global pd_nt'' is needed after line 274.





More information about the Pd-dev mailing list