<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>> Is this: "A_FLOAT" forbidden?</div>

<div> </div>

<div>I'm not sure what you mean exactly, but A_FLOAT is an atom type, so it's 100% unrelated to single/double precision.</div>

<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Dienstag, 10. Dezember 2019 um 23:37 Uhr<br/>
<b>Von:</b> "Lucas Cordiviola" <lucarda27@hotmail.com><br/>
<b>An:</b> "pd-dev@lists.iem.at" <pd-dev@lists.iem.at><br/>
<b>Betreff:</b> Re: [PD-dev] Double precision externals extensions.</div>

<div name="quoted-content">
<div style="background-color: rgb(255,255,255);">
<p>Is this: "A_FLOAT" forbidden?</p>

<p>~~~~~</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">void pddplink_setup(void)</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">{</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">t_symbol *dirsym;</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;"> </p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">pddplink_class = class_new(gensym("pddplink"),</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">(t_newmethod)pddplink_new,</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">(t_method)pddplink_free,</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">sizeof(t_pddplink),</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">CLASS_NOINLET | CLASS_PATCHABLE,</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">A_GIMME, 0);</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">class_addanything(pddplink_class, pddplink_anything);</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">class_setwidget(pddplink_class, &pddplink_widgetbehavior);</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;"> </p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">pddplinkbox_class = class_new(gensym("pddplink"), 0,</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">(t_method)pddplink_free,</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">sizeof(t_pddplink), 0, A_GIMME, 0);</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">class_addbang(pddplinkbox_class, pddplink_bang);</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">class_addanything(pddplinkbox_class, pddplink_anything);</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">class_addmethod(pddplinkbox_class, (t_method)pddplink_click,</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">gensym("click"),</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">A_FLOAT, A_FLOAT, A_FLOAT, A_FLOAT, A_FLOAT, 0);</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;"> </p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">dirsym = pddplink_class->c_externdir; /* FIXME */</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">sys_vgui("source {%s/pddplink.tcl}\n", dirsym->s_name);</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">}</p>

<p style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;"> </p>

<p>
<style type="text/css"><!--p, li {
}

--></style>
</p>

<p> </p>

<p>~~~~~</p>

<pre class="moz-signature">Mensaje telepatico asistido por maquinas.</pre>

<div class="moz-cite-prefix">On 12/10/19 7:30 PM, Lucas Cordiviola wrote:</div>

<blockquote>I get the segfault on linux (it also crashes Pd-double)<br/>
<br/>
~~~~~~~~~~~<br/>
<br/>
Program received signal SIGSEGV, Segmentation fault.<br/>
0x00007ffff6170e93 in pddplink_setup ()<br/>
   from /home/lucarda/Desktop/luclibdep/00-lucarda-external-dep/out64single/lucdep/liblucdep.so<br/>
<br/>
~~~~~~~~~~~~~~~<br/>
<br/>
<br/>
:)<br/>
<br/>
<br/>
Mensaje telepatico asistido por maquinas.<br/>
<br/>
On 12/10/19 7:06 PM, IOhannes m zmölnig wrote:
<blockquote>On 12/10/19 10:48 PM, Christof Ressi wrote:
<blockquote>I'm also interested in how this works. The following solution popped up in my head: compile the object twice, one time with -DPD_FLOATSIZE=32 and another time with -DPD_FLOATSIZE=64, with different setup functions based on -DPD_FLOATSIZE, then link it with a third file which exports the "real" setup function (which calls the other two private setup functions).<br/>
 </blockquote>
that's about the idea.<br/>
<br/>
gdsa r<br/>
IOhannes<br/>
<br/>
<br/>
_______________________________________________<br/>
Pd-dev mailing list<br/>
<a class="moz-txt-link-abbreviated" href="mailto:Pd-dev@lists.iem.at" onclick="parent.window.location.href='mailto:Pd-dev@lists.iem.at'; return false;" target="_blank">Pd-dev@lists.iem.at</a><br/>
<a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-dev" target="_blank">https://lists.puredata.info/listinfo/pd-dev</a></blockquote>
</blockquote>
_______________________________________________ Pd-dev mailing list Pd-dev@lists.iem.at <a href="https://lists.puredata.info/listinfo/pd-dev" target="_blank">https://lists.puredata.info/listinfo/pd-dev</a></div>
</div>
</div>
</div>
</div></div></body></html>