<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_1_1419365060750_18414"><span id="yui_3_16_0_1_1419365060750_18425">sys_main in s_main.c calls pd_init (from m_pd.c) which runs all the relevant *_setup functions.</span></div><div dir="ltr" id="yui_3_16_0_1_1419365060750_18414"><span><br></span></div><div dir="ltr" id="yui_3_16_0_1_1419365060750_18414"><span>-Jonathan</span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> On Tuesday, December 23, 2014 3:15 PM, Charles Z Henry <czhenry@gmail.com> wrote:<br> </font> </div>  <br><br> <div class="y_msg_container">The classes provided by Pd-vanilla are not externals.  They are<br>compiled into the pd binary itself.  The metro_setup routine will be<br>run at startup (where in the code does this occur? there are other<br>setup routines that run the *_setup functions for built-in classes )<br><br>Chuck<br><br>On Tue, Dec 23, 2014 at 1:56 PM, Jonghyun Kim <<a ymailto="mailto:agitato816@gmail.com" class="removed-link" href="">agitato816@gmail.com</a>> wrote:<br>> I have an additional question. Where is the compiled binary file?<br>><br>> I found the source code of [metro] at x_time.c, and I would to know where is<br>> the compiled binary, metro.pd_linux<br>><br>> I tried to find, but no result. Where is the metro.pd_linux?<br>><br>> <a ymailto="mailto:akntk@umi" class="removed-link" href="">akntk@umi</a>:~$ sudo find / -name metro.pd_linux<br>> <a ymailto="mailto:akntk@umi" class="removed-link" href="">akntk@umi</a>:~$<br>><br>> Thanks,<br>> akntk<br>><br>> On Wed, Dec 24, 2014 at 4:40 AM, Jonghyun Kim <<a ymailto="mailto:agitato816@gmail.com" class="removed-link" href="">agitato816@gmail.com</a>> wrote:<br>>><br>>> thanks a lot!<br>>><br>>> Now I can find and study the code :)<br>>><br>>> On Wed, Dec 24, 2014 at 4:23 AM, IOhannes m zmölnig <<a ymailto="mailto:zmoelnig@iem.at" class="removed-link" href="">zmoelnig@iem.at</a>><br>>> wrote:<br>>>><br>>>> On 12/23/2014 08:12 PM, Jonghyun Kim wrote:<br>>>> > thanks for the answer!<br>>>> ><br>>>> > I tried to find with grep, but it doesn't work...<br>>>> ><br>>>> > *<a ymailto="mailto:akntk@umi" class="removed-link" href="">akntk@umi</a>:~/Downloads/pd-0.46-4$ grep '"metro"' *.c*<br>>>> > *grep: *.c: No such file or directory*<br>>>><br>>>> all C-source files (that's all of Pd without the GUI), lives in the<br>>>> "src" folder.<br>>>><br>>>> <a ymailto="mailto:zmoelnig@XXX" class="removed-link" href="">zmoelnig@XXX</a>:~$ cd ~/src/pd/src/<br>>>> <a ymailto="mailto:zmoelnig@XXX" class="removed-link" href="">zmoelnig@XXX</a>:~/src/pd/src$ grep '"metro"' *.c<br>>>> x_time.c:    metro_class = class_new(gensym("metro"),<br>>>> (t_newmethod)metro_new,<br>>>> <a ymailto="mailto:zmoelnig@XXX" class="removed-link" href="">zmoelnig@XXX</a>:~/src/pd/src$<br>>>><br>>>> you could also use grep's "-r" flag to recursively search files in<br>>>> subdirectories, and the "-l" flag to only show the filename (and not the<br>>>> line containing the keyword).<br>>>><br>>>><br>>>><br>>>> <a ymailto="mailto:zmoelnig@XXX" class="removed-link" href="">zmoelnig@XXX</a>:~$ cd ~/src/pd/<br>>>> <a ymailto="mailto:zmoelnig@XXX" class="removed-link" href="">zmoelnig@XXX</a>:~/src/pd$  $ grep -r -l '"metro"' .<br>>>> ./doc/5.reference/timer-help.pd<br>>>> ./doc/1.manual/x5.htm<br>>>> ./src/x_time.c<br>>>> <a ymailto="mailto:zmoelnig@XXX" class="removed-link" href="">zmoelnig@XXX</a>:~/src/pd$<br>>>><br>>>> obviously there are more files containing "metro" in quotes.<br>>>> note that i now use '.' as the "file" to search (which means the current<br>>>> directory; as i do a recursive search, this will search all files in all<br>>>> subdirectories of the current dir).<br>>>><br>>>><br>>>> you might also want to have a look at the manpage of "grep" to learn<br>>>> more about it.<br>>>><br>>>> $ man grep<br>>>><br>>>><br>>>> gfdsmr<br>>>> IOhannes<br>>>><br>>>><br>>>> _______________________________________________<br>>>> <a ymailto="mailto:Pd-list@lists.iem.at" class="removed-link" href="">Pd-list@lists.iem.at</a> mailing list<br>>>> UNSUBSCRIBE and account-management -><br>>>> <a target="_blank" class="removed-link" href="">http://lists.puredata.info/listinfo/pd-list</a><br>>>><br>>><br>><br>><br>> _______________________________________________<br>> <a ymailto="mailto:Pd-list@lists.iem.at" class="removed-link" href="">Pd-list@lists.iem.at</a> mailing list<br>> UNSUBSCRIBE and account-management -><br>> <a target="_blank" class="removed-link" href="">http://lists.puredata.info/listinfo/pd-list</a><br>><br><br>_______________________________________________<br><a ymailto="mailto:Pd-list@lists.iem.at" class="removed-link" href="">Pd-list@lists.iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -> <a target="_blank" class="removed-link" href="">http://lists.puredata.info/listinfo/pd-list</a><br><br><br></div>  </div> </div>  </div> </div></body></html>