<div dir="ltr">it works, thanks!<div><br></div><div>i forgot the location path.</div><div><br></div><div><div>akntk@umi:~/Downloads/pd-0.46-4/src$ grep '"metro"' *.c</div><div>x_time.c:    metro_class = class_new(gensym("metro"), (t_newmethod)metro_new,</div><div>akntk@umi:~/Downloads/pd-0.46-4/src$ </div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 24, 2014 at 4:12 AM, Jonghyun Kim <span dir="ltr"><<a href="mailto:agitato816@gmail.com" target="_blank">agitato816@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">thanks for the answer!<div><br></div><div>I tried to find with grep, but it doesn't work...</div><div><br></div><div><div><b>akntk@umi:~/Downloads/pd-0.46-4$ grep '"metro"' *.c</b></div><div><b>grep: *.c: No such file or directory</b></div></div><div><br></div><div>I'm on Ubuntu 14.04 amd64</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Dec 24, 2014 at 3:12 AM, IOhannes m zmölnig <span dir="ltr"><<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><span>On 12/23/2014 07:05 PM, Jonghyun Kim wrote:<br>
> Hi list,<br>
><br>
> I wanna see and learn the source of vanilla object, but I can't find the C<br>
> source file.<br>
><br>
> I guess the C source of [metro] is metro.c, but metro.c file doesn't exist.<br>
> I found it very difficultly named after x_time.c!<br>
><br>
> I guess:<br>
</span>> [metro] is in *metro.c*<br>
> But actually:<br>
> [metro] is in *x_time.c*<br>
<span>><br>
> How can I find the source of each object easily?<br>
<br>
</span>$ grep '"metro"' *.c<br>
<br>
"grep" is the unix-command to search a number of text-files for a given<br>
pattern.<br>
i'm using both kind of quotes to search for a string literal containing<br>
the double-quotes (<<"metro">>), as I know that each class has to be<br>
registered with it's name, which means that the C-string "metro" has to<br>
occur somewhere in the text.<br>
<span><br>
><br>
> I would to know too, why and how naming the source file name? I can't<br>
> understand...<br>
<br>
</span>part of the filename is obvious (e.g. "time" relates to things (e.g.<br>
objects) that deal with - well - time, like [metro]).<br>
there's a short explanation about the non-obvious part ("x_") in<br>
CHANGELOG.txt.<br>
<br>
<br>
gmdsr<br>
<span><font color="#888888">IOhannes<br>
<br>
</font></span><br></div></div>_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>