<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/10909" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2006-01-20T19:17:05-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/10909</id>

		<entry>
		<author><name><![CDATA[Kappa007]]></name></author>
		<updated>2006-01-20T19:17:05-04:00</updated>

		<published>2006-01-20T19:17:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59550#p59550</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59550#p59550"/>
		<title type="html"><![CDATA[add_builtins() funcname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59550#p59550"><![CDATA[
<blockquote class="uncited"><div>it has probably been added with the idea of aliasing, but later abandoned</div></blockquote>Actually it's not abandoned at all.<br>After looking around in tclhash.c for some hours I found it at another place: It tags the function in the Tcl subsystem.<br><br>When checking ".binds" you find the string passed here<div class="codebox"><p>Code: </p><pre><code>pub  -|-      !help                   0 *pub:&lt;funcname&gt;</code></pre></div>That is only if the string is not empty otherwise the "name" of the "cmt_t" struct is passed.<br><br>It also shows up in the "tcl_cmd_t" struct as "func_name" which looks like "*&lt;table&gt;:&lt;funcname&gt;".<br>That's pretty handy if one wants to modify the arguments of a particular command (in check_tcl_bind()).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6524">Kappa007</a> — Fri Jan 20, 2006 7:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-11-30T00:11:47-04:00</updated>

		<published>2005-11-30T00:11:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57820#p57820</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57820#p57820"/>
		<title type="html"><![CDATA[add_builtins() funcname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57820#p57820"><![CDATA[
it has probably been added with the idea of aliasing, but later abandoned<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Nov 30, 2005 12:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kappa007]]></name></author>
		<updated>2005-11-29T09:41:31-04:00</updated>

		<published>2005-11-29T09:41:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57806#p57806</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57806#p57806"/>
		<title type="html"><![CDATA[add_builtins() funcname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57806#p57806"><![CDATA[
Eggdrop defines following structure:<br><div class="codebox"><p>Code: </p><pre><code>typedef struct {  char *name;  char *flags;  Function func;  char *funcname;} cmd_t;</code></pre></div><br>"name" is the command name bound to the TCL interpreter.<br>"flags" are the flags required to trigger the callback "func".<br>But what purpose does "funcname" serve?<br><br>Can you see the string defined there anywhere?<br><br><br>After a grep over all files all I could find about it was in add_builtins/rem_builtins:<div class="codebox"><p>Code: </p><pre><code>    egg_snprintf(p, sizeof p, "*%s:%s", tl-&gt;name,                 cc[i].funcname ? cc[i].funcname : cc[i].name);</code></pre></div>Which just sets it to name if it's not set.<br><br><br>Regards,<br>Kappa<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6524">Kappa007</a> — Tue Nov 29, 2005 9:41 am</p><hr />
]]></content>
	</entry>
	</feed>
