/[cvs]/eggdrop1.4/src/tcl.c
ViewVC logotype

Contents of /eggdrop1.4/src/tcl.c

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Wed Jun 23 19:51:32 1999 UTC (20 years, 5 months ago) by segfault
Branch: MAIN
Branch point for: eggdev
File MIME type: text/x-chdr
Initial revision

1 /*
2 * tcl.c -- handles:
3 * the code for every command eggdrop adds to Tcl
4 * Tcl initialization
5 * getting and setting Tcl/eggdrop variables
6 *
7 * dprintf'ized, 4feb1996
8 */
9 /*
10 * This file is part of the eggdrop source code
11 * copyright (c) 1997 Robey Pointer
12 * and is distributed according to the GNU general public license.
13 * For full details, read the top of 'main.c' or the file called
14 * COPYING that was distributed with this code.
15 */
16
17 #include "main.h"
18
19 /* used for read/write to internal strings */
20 typedef struct {
21 char *str; /* pointer to actual string in eggdrop */
22 int max; /* max length (negative: read-only var when protect is on) */
23 /* (0: read-only ALWAYS) */
24 int flags; /* 1 = directory */
25 } strinfo;
26
27 typedef struct {
28 int *var;
29 int ro;
30 } intinfo;
31
32 int protect_readonly = 0; /* turn on/off readonly protection */
33 char whois_fields[121] = ""; /* fields to display in a .whois */
34 Tcl_Interp *interp; /* eggdrop always uses the same interpreter */
35
36 /* 1/2 of these arent even here anymore, one day I'll clean them up */
37 /* done - arthur2 */
38 extern int backgrd, flood_telnet_thr, flood_telnet_time;
39 extern int shtime, share_greet, require_p, keep_all_logs;
40 extern int use_stderr, allow_new_telnets, stealth_telnets;
41 extern int default_flags, conmask, switch_logfiles_at, connect_timeout;
42 extern int firewallport, reserved_port, notify_users_at;
43 extern int flood_thr, ignore_time;
44 extern char origbotname[], botuser[], motdfile[], admin[], userfile[],
45 firewall[], helpdir[], notify_new[], hostname[], myip[], moddir[],
46 tempdir[], owner[], network[], botnetnick[];
47 extern int die_on_sighup, die_on_sigterm, max_logs, max_logsize, enable_simul;
48 extern int dcc_total, debug_output, identtimeout, protect_telnet;
49 extern int egg_numver, share_unlinks, dcc_sanitycheck, sort_users;
50 extern struct dcc_t *dcc;
51 extern char egg_version[];
52 extern tcl_timer_t *timer, *utimer;
53 extern time_t online_since;
54 extern log_t *logs;
55 extern int tands;
56 extern int resolve_timeout;
57 extern char natip[];
58
59 /* confvar patch by aaronwl */
60 extern char configfile[];
61 int dcc_flood_thr = 3;
62 int debug_tcl = 0;
63 int use_silence = 0;
64 int remote_boots = 2;
65 int allow_dk_cmds = 1;
66 int must_be_owner = 1;
67 int max_dcc = 20; /* needs at least 4 or 5 just to get started
68 * 20 should be enough */
69 int min_dcc_port = 1024; /* dcc-portrange, min port - dw/guppy */
70 int max_dcc_port = 65535; /* dcc-portrange, max port - dw/guppy */
71 int quick_logs = 0; /* quick write logs?
72 * flush em every min instead of every 5 */
73 /* prototypes for tcl */
74 Tcl_Interp *Tcl_CreateInterp();
75 int strtot = 0;
76
77 int expmem_tcl()
78 {
79 int i, tot = 0;
80
81 context;
82 for (i = 0; i < max_logs; i++)
83 if (logs[i].filename != NULL) {
84 tot += strlen(logs[i].filename) + 1;
85 tot += strlen(logs[i].chname) + 1;
86 }
87 return tot + strtot;
88 }
89
90 /***********************************************************************/
91
92 /* logfile [<modes> <channel> <filename>] */
93 static int tcl_logfile STDVAR
94 {
95 int i;
96 char s[151];
97
98 BADARGS(1, 4, " ?logModes channel logFile?");
99 if (argc == 1) {
100 /* they just want a list of the logfiles and modes */
101 for (i = 0; i < max_logs; i++)
102 if (logs[i].filename != NULL) {
103 strcpy(s, masktype(logs[i].mask));
104 strcat(s, " ");
105 strcat(s, logs[i].chname);
106 strcat(s, " ");
107 strcat(s, logs[i].filename);
108 Tcl_AppendElement(interp, s);
109 }
110 return TCL_OK;
111 }
112 BADARGS(4, 4, " ?logModes channel logFile?");
113 for (i = 0; i < max_logs; i++)
114 if ((logs[i].filename != NULL) && (!strcmp(logs[i].filename, argv[3]))) {
115 logs[i].mask = logmodes(argv[1]);
116 nfree(logs[i].chname);
117 logs[i].chname = NULL;
118 if (!logs[i].mask) {
119 /* ending logfile */
120 nfree(logs[i].filename);
121 logs[i].filename = NULL;
122 if (logs[i].f != NULL) {
123 fclose(logs[i].f);
124 logs[i].f = NULL;
125 }
126 } else {
127 logs[i].chname = (char *) nmalloc(strlen(argv[2]) + 1);
128 strcpy(logs[i].chname, argv[2]);
129 }
130 Tcl_AppendResult(interp, argv[3], NULL);
131 return TCL_OK;
132 }
133 for (i = 0; i < max_logs; i++)
134 if (logs[i].filename == NULL) {
135 logs[i].mask = logmodes(argv[1]);
136 logs[i].filename = (char *) nmalloc(strlen(argv[3]) + 1);
137 strcpy(logs[i].filename, argv[3]);
138 logs[i].chname = (char *) nmalloc(strlen(argv[2]) + 1);
139 strcpy(logs[i].chname, argv[2]);
140 Tcl_AppendResult(interp, argv[3], NULL);
141 return TCL_OK;
142 }
143 Tcl_AppendResult(interp, "reached max # of logfiles", NULL);
144 return TCL_ERROR;
145 }
146
147 int findidx(int z)
148 {
149 int j;
150
151 for (j = 0; j < dcc_total; j++)
152 if ((dcc[j].sock == z) && (dcc[j].type->flags & DCT_VALIDIDX))
153 return j;
154 return -1;
155 }
156
157 static void botnet_change(char *new)
158 {
159 if (strcasecmp(botnetnick, new) != 0) {
160 /* trying to change bot's nickname */
161 if (tands > 0) {
162 putlog(LOG_MISC, "*", "* Tried to change my botnet nick, but I'm still linked to a botnet.");
163 putlog(LOG_MISC, "*", "* (Unlink and try again.)");
164 return;
165 } else {
166 if (botnetnick[0])
167 putlog(LOG_MISC, "*", "* IDENTITY CHANGE: %s -> %s", botnetnick, new);
168 strcpy(botnetnick, new);
169 }
170 }
171 }
172
173 /**********************************************************************/
174
175 int init_dcc_max(), init_misc();
176
177 /* used for read/write to integer couplets */
178 typedef struct {
179 int *left; /* left side of couplet */
180 int *right; /* right side */
181 } coupletinfo;
182
183 /* read/write integer couplets (int1:int2) */
184 static char *tcl_eggcouplet(ClientData cdata, Tcl_Interp * irp, char *name1,
185 char *name2, int flags)
186 {
187 char *s, s1[41];
188 coupletinfo *cp = (coupletinfo *) cdata;
189
190 if (flags & (TCL_TRACE_READS | TCL_TRACE_UNSETS)) {
191 sprintf(s1, "%d:%d", *(cp->left), *(cp->right));
192 Tcl_SetVar2(interp, name1, name2, s1, TCL_GLOBAL_ONLY);
193 } else { /* writes */
194 s = Tcl_GetVar2(interp, name1, name2, TCL_GLOBAL_ONLY);
195 if (s != NULL) {
196 int nr1, nr2;
197
198 if (strlen(s) > 40)
199 s[40] = 0;
200 sscanf(s, "%d%*c%d", &nr1, &nr2);
201 *(cp->left) = nr1;
202 *(cp->right) = nr2;
203 }
204 }
205 return NULL;
206 }
207
208 /* read/write normal integer */
209 static char *tcl_eggint(ClientData cdata, Tcl_Interp * irp, char *name1,
210 char *name2, int flags)
211 {
212 char *s, s1[40];
213 long l;
214 intinfo *ii = (intinfo *) cdata;
215
216 if (flags & (TCL_TRACE_READS | TCL_TRACE_UNSETS)) {
217 /* special cases */
218 if ((int *) ii->var == &conmask)
219 strcpy(s1, masktype(conmask));
220 else if ((int *) ii->var == &default_flags) {
221 struct flag_record fr =
222 {FR_GLOBAL, 0, 0, 0, 0, 0};
223 fr.global = default_flags;
224
225 build_flags(s1, &fr, 0);
226 } else
227 sprintf(s1, "%d", *(int *) ii->var);
228 Tcl_SetVar2(interp, name1, name2, s1, TCL_GLOBAL_ONLY);
229 return NULL;
230 } else { /* writes */
231 s = Tcl_GetVar2(interp, name1, name2, TCL_GLOBAL_ONLY);
232 if (s != NULL) {
233 if ((int *) ii->var == &conmask) {
234 if (s[0])
235 conmask = logmodes(s);
236 else
237 conmask = LOG_MODES | LOG_MISC | LOG_CMDS;
238 } else if ((int *) ii->var == &default_flags) {
239 struct flag_record fr =
240 {FR_GLOBAL, 0, 0, 0, 0, 0};
241
242 break_down_flags(s, &fr, 0);
243 default_flags = fr.global;
244 } else if ((ii->ro == 2) || ((ii->ro == 1) && protect_readonly)) {
245 return "read-only variable";
246 } else {
247 if (Tcl_ExprLong(interp, s, &l) == TCL_ERROR)
248 return interp->result;
249 if ((int *) ii->var == &max_dcc) {
250 if (l < max_dcc)
251 return "you can't DECREASE max-dcc";
252 max_dcc = l;
253 init_dcc_max();
254 } else if ((int *) ii->var == &max_logs) {
255 if (l < max_logs)
256 return "you can't DECREASE max-logs";
257 max_logs = l;
258 init_misc();
259 } else
260 *(ii->var) = (int) l;
261 }
262 }
263 return NULL;
264 }
265 }
266
267 /* read/write normal string variable */
268 static char *tcl_eggstr(ClientData cdata, Tcl_Interp * irp, char *name1,
269 char *name2, int flags)
270 {
271 char *s;
272 strinfo *st = (strinfo *) cdata;
273
274 if (flags & (TCL_TRACE_READS | TCL_TRACE_UNSETS)) {
275 if ((st->str == firewall) && (firewall[0])) {
276 char s1[161];
277
278 sprintf(s1, "%s:%d", firewall, firewallport);
279 Tcl_SetVar2(interp, name1, name2, s1, TCL_GLOBAL_ONLY);
280 } else
281 Tcl_SetVar2(interp, name1, name2, st->str, TCL_GLOBAL_ONLY);
282 if (st->max <= 0) {
283 if ((flags & TCL_TRACE_UNSETS) && (protect_readonly || (st->max == 0))) {
284 /* no matter what we do, it won't return the error */
285 Tcl_SetVar2(interp, name1, name2, st->str, TCL_GLOBAL_ONLY);
286 Tcl_TraceVar(interp, name1, TCL_TRACE_READS | TCL_TRACE_WRITES |
287 TCL_TRACE_UNSETS, tcl_eggstr, (ClientData) st);
288 return "read-only variable";
289 }
290 }
291 return NULL;
292 } else { /* writes */
293 if ((st->max <= 0) && (protect_readonly || (st->max == 0))) {
294 Tcl_SetVar2(interp, name1, name2, st->str, TCL_GLOBAL_ONLY);
295 return "read-only variable";
296 }
297 s = Tcl_GetVar2(interp, name1, name2, TCL_GLOBAL_ONLY);
298 if (s != NULL) {
299 if (strlen(s) > abs(st->max))
300 s[abs(st->max)] = 0;
301 if (st->str == botnetnick)
302 botnet_change(s);
303 else if (st->str == firewall) {
304 splitc(firewall, s, ':');
305 if (!firewall[0])
306 strcpy(firewall, s);
307 else
308 firewallport = atoi(s);
309 } else
310 strcpy(st->str, s);
311 if ((st->flags) && (s[0])) {
312 if (st->str[strlen(st->str) - 1] != '/')
313 strcat(st->str, "/");
314 }
315 }
316 return NULL;
317 }
318 }
319
320 /* add/remove tcl commands */
321 void add_tcl_commands(tcl_cmds * tab)
322 {
323 int i;
324
325 for (i = 0; tab[i].name; i++)
326 Tcl_CreateCommand(interp, tab[i].name, tab[i].func, NULL, NULL);
327 }
328
329 void rem_tcl_commands(tcl_cmds * tab)
330 {
331 int i;
332
333 for (i = 0; tab[i].name; i++)
334 Tcl_DeleteCommand(interp, tab[i].name);
335 }
336
337 static tcl_strings def_tcl_strings[] =
338 {
339 {"botnet-nick", botnetnick, HANDLEN, 0},
340 {"userfile", userfile, 120, STR_PROTECT},
341 {"motd", motdfile, 120, STR_PROTECT},
342 {"admin", admin, 120, 0},
343 {"help-path", helpdir, 120, STR_DIR | STR_PROTECT},
344 {"temp-path", tempdir, 120, STR_DIR | STR_PROTECT},
345 #ifndef STATIC
346 {"mod-path", moddir, 120, STR_DIR | STR_PROTECT},
347 #endif
348 {"notify-newusers", notify_new, 120, 0},
349 {"owner", owner, 120, STR_PROTECT},
350 {"my-hostname", hostname, 120, 0},
351 {"my-ip", myip, 120, 0},
352 {"network", network, 40, 0},
353 {"whois-fields", whois_fields, 120, 0},
354 {"nat-ip", natip, 120, 0},
355 {"username", botuser, 10, 0},
356 {"version", egg_version, 0, 0},
357 {"firewall", firewall, 120, 0},
358 /* confvar patch by aaronwl */
359 {"config", configfile, 0, 0},
360 {0, 0, 0, 0}
361 };
362
363 /* ints */
364
365 static tcl_ints def_tcl_ints[] =
366 {
367 {"ignore-time", &ignore_time, 0},
368 {"dcc-flood-thr", &dcc_flood_thr, 0},
369 {"hourly-updates", &notify_users_at, 0},
370 {"switch-logfiles-at", &switch_logfiles_at, 0},
371 {"connect-timeout", &connect_timeout, 0},
372 {"reserved-port", &reserved_port, 0},
373 /* booleans (really just ints) */
374 {"require-p", &require_p, 0},
375 {"keep-all-logs", &keep_all_logs, 0},
376 {"open-telnets", &allow_new_telnets, 0},
377 {"stealth-telnets", &stealth_telnets, 0},
378 {"uptime", (int *) &online_since, 2},
379 {"console", &conmask, 0},
380 {"default-flags", &default_flags, 0},
381 /* moved from eggdrop.h */
382 {"numversion", &egg_numver, 2},
383 {"debug-tcl", &debug_tcl, 1},
384 {"die-on-sighup", &die_on_sighup, 1},
385 {"die-on-sigterm", &die_on_sigterm, 1},
386 {"remote-boots", &remote_boots, 1},
387 {"max-dcc", &max_dcc, 0},
388 {"max-logs", &max_logs, 0},
389 {"max-logsize", &max_logsize, 0},
390 {"quick-logs", &quick_logs, 0},
391 {"enable-simul", &enable_simul, 1},
392 {"debug-output", &debug_output, 1},
393 {"protect-telnet", &protect_telnet, 0},
394 {"dcc-sanitycheck", &dcc_sanitycheck, 0},
395 {"sort-users", &sort_users, 0},
396 {"ident-timeout", &identtimeout, 0},
397 {"share-unlinks", &share_unlinks, 0},
398 {"log-time", &shtime, 0},
399 {"allow-dk-cmds", &allow_dk_cmds, 0},
400 {"resolve-timeout", &resolve_timeout, 0},
401 {"must-be-owner", &must_be_owner, 1},
402 {"use-silence", &use_silence, 0}, /* arthur2 */
403 {0, 0, 0} /* arthur2 */
404 };
405
406 static tcl_coups def_tcl_coups[] =
407 {
408 {"telnet-flood", &flood_telnet_thr, &flood_telnet_time},
409 {"dcc-portrange", &min_dcc_port, &max_dcc_port}, /* dw */
410 {0, 0, 0}
411 };
412
413 /* set up Tcl variables that will hook into eggdrop internal vars via */
414 /* trace callbacks */
415 static void init_traces()
416 {
417 add_tcl_coups(def_tcl_coups);
418 add_tcl_strings(def_tcl_strings);
419 add_tcl_ints(def_tcl_ints);
420 }
421
422 void kill_tcl()
423 {
424 rem_tcl_coups(def_tcl_coups);
425 rem_tcl_strings(def_tcl_strings);
426 rem_tcl_ints(def_tcl_ints);
427 kill_bind();
428 Tcl_DeleteInterp(interp);
429 }
430
431 extern tcl_cmds tcluser_cmds[], tcldcc_cmds[], tclmisc_cmds[];
432
433 /* not going through Tcl's crazy main() system (what on earth was he
434 * smoking?!) so we gotta initialize the Tcl interpreter */
435 void init_tcl()
436 {
437 char pver[25];
438
439 /* initialize the interpreter */
440 context;
441 interp = Tcl_CreateInterp();
442 Tcl_Init(interp);
443 init_bind();
444 init_traces();
445 /* add new commands */
446 /* isnt this much neater :) */
447 add_tcl_commands(tcluser_cmds);
448 add_tcl_commands(tcldcc_cmds);
449 add_tcl_commands(tclmisc_cmds);
450
451 #define Q(A,B) Tcl_CreateCommand(interp,A,B,NULL,NULL)
452 Q("logfile", tcl_logfile);
453 sscanf(egg_version, "%s", pver);
454 Tcl_PkgProvide(interp, "eggdrop", pver);
455 }
456
457 /**********************************************************************/
458
459 void do_tcl(char *whatzit, char *script)
460 {
461 int code;
462 FILE *f = 0;
463
464 if (debug_tcl) {
465 f = fopen("DEBUG.TCL", "a");
466 if (f != NULL)
467 fprintf(f, "eval: %s\n", script);
468 }
469 set_tcl_vars();
470 context;
471 code = Tcl_Eval(interp, script);
472 if (debug_tcl && (f != NULL)) {
473 fprintf(f, "done eval, result=%d\n", code);
474 fclose(f);
475 }
476 if (code != TCL_OK) {
477 putlog(LOG_MISC, "*", "Tcl error in script for '%s':", whatzit);
478 putlog(LOG_MISC, "*", "%s", interp->result);
479 }
480 }
481
482 /* read and interpret the configfile given */
483 /* return 1 if everything was okay */
484 int readtclprog(char *fname)
485 {
486 int code;
487 FILE *f;
488
489 set_tcl_vars();
490 f = fopen(fname, "r");
491 if (f == NULL)
492 return 0;
493 fclose(f);
494 if (debug_tcl) {
495 f = fopen("DEBUG.TCL", "a");
496 if (f != NULL) {
497 fprintf(f, "Sourcing file %s ...\n", fname);
498 fclose(f);
499 }
500 }
501 code = Tcl_EvalFile(interp, fname);
502 if (code != TCL_OK) {
503 if (use_stderr) {
504 dprintf(DP_STDERR, "Tcl error in file '%s':\n", fname);
505 dprintf(DP_STDERR, "%s\n",
506 Tcl_GetVar(interp, "errorInfo", TCL_GLOBAL_ONLY));
507 } else {
508 putlog(LOG_MISC, "*", "Tcl error in file '%s':", fname);
509 putlog(LOG_MISC, "*", "%s\n",
510 Tcl_GetVar(interp, "errorInfo", TCL_GLOBAL_ONLY));
511 }
512 /* try to go on anyway (shrug) */
513 /* no dont it's to risky now */
514 return 0;
515 }
516 /* refresh internal variables */
517 return 1;
518 }
519
520 void add_tcl_strings(tcl_strings * list)
521 {
522 int i;
523 strinfo *st;
524
525 for (i = 0; list[i].name; i++) {
526 if (list[i].length > 0) {
527 char *p = Tcl_GetVar(interp, list[i].name, TCL_GLOBAL_ONLY);
528
529 if (p != NULL) {
530 strncpy(list[i].buf, p, list[i].length);
531 list[i].buf[list[i].length] = 0;
532 if (list[i].flags & STR_DIR) {
533 int x = strlen(list[i].buf);
534
535 if ((x > 0) && (x < (list[i].length - 1)) &&
536 (list[i].buf[x - 1] != '/')) {
537 list[i].buf[x++] = '/';
538 list[i].buf[x] = 0;
539 }
540 }
541 }
542 }
543 st = (strinfo *) nmalloc(sizeof(strinfo));
544 strtot += sizeof(strinfo);
545 st->max = list[i].length - (list[i].flags & STR_DIR);
546 if (list[i].flags & STR_PROTECT)
547 st->max = -st->max;
548 st->str = list[i].buf;
549 st->flags = (list[i].flags & STR_DIR);
550 Tcl_TraceVar(interp, list[i].name, TCL_TRACE_READS | TCL_TRACE_WRITES |
551 TCL_TRACE_UNSETS, tcl_eggstr, (ClientData) st);
552 }
553 }
554
555 void rem_tcl_strings(tcl_strings * list)
556 {
557 int i;
558 strinfo *st;
559
560 for (i = 0; list[i].name; i++) {
561 st = (strinfo *) Tcl_VarTraceInfo(interp, list[i].name,
562 TCL_TRACE_READS |
563 TCL_TRACE_WRITES |
564 TCL_TRACE_UNSETS,
565 tcl_eggstr, NULL);
566 Tcl_UntraceVar(interp, list[i].name,
567 TCL_TRACE_READS | TCL_TRACE_WRITES | TCL_TRACE_UNSETS,
568 tcl_eggstr, st);
569 if (st != NULL) {
570 strtot -= sizeof(strinfo);
571 nfree(st);
572 }
573 }
574 }
575
576 void add_tcl_ints(tcl_ints * list)
577 {
578 int i;
579 intinfo *ii;
580
581 for (i = 0; list[i].name; i++) {
582 char *p = Tcl_GetVar(interp, list[i].name, TCL_GLOBAL_ONLY);
583
584 if (p != NULL)
585 *(list[i].val) = atoi(p);
586 ii = nmalloc(sizeof(intinfo));
587 strtot += sizeof(intinfo);
588 ii->var = list[i].val;
589 ii->ro = list[i].readonly;
590 Tcl_TraceVar(interp, list[i].name,
591 TCL_TRACE_READS | TCL_TRACE_WRITES | TCL_TRACE_UNSETS,
592 tcl_eggint, (ClientData) ii);
593 }
594
595 }
596
597 void rem_tcl_ints(tcl_ints * list)
598 {
599 int i;
600 intinfo *ii;
601
602 for (i = 0; list[i].name; i++) {
603 ii = (intinfo *) Tcl_VarTraceInfo(interp, list[i].name,
604 TCL_TRACE_READS |
605 TCL_TRACE_WRITES |
606 TCL_TRACE_UNSETS,
607 tcl_eggint, NULL);
608 Tcl_UntraceVar(interp, list[i].name,
609 TCL_TRACE_READS | TCL_TRACE_WRITES | TCL_TRACE_UNSETS,
610 tcl_eggint, (ClientData) ii);
611 if (ii) {
612 strtot -= sizeof(intinfo);
613 nfree(ii);
614 }
615 }
616 }
617
618 /* allocate couplet space for tracing couplets */
619 void add_tcl_coups(tcl_coups * list)
620 {
621 coupletinfo *cp;
622 int i;
623
624 for (i = 0; list[i].name; i++) {
625 cp = (coupletinfo *) nmalloc(sizeof(coupletinfo));
626 strtot += sizeof(coupletinfo);
627 cp->left = list[i].lptr;
628 cp->right = list[i].rptr;
629 Tcl_TraceVar(interp, list[i].name,
630 TCL_TRACE_READS | TCL_TRACE_WRITES | TCL_TRACE_UNSETS,
631 tcl_eggcouplet, (ClientData) cp);
632 }
633 }
634
635 void rem_tcl_coups(tcl_coups * list)
636 {
637 coupletinfo *cp;
638 int i;
639
640 for (i = 0; list[i].name; i++) {
641 cp = (coupletinfo *) Tcl_VarTraceInfo(interp, list[i].name,
642 TCL_TRACE_READS |
643 TCL_TRACE_WRITES |
644 TCL_TRACE_UNSETS,
645 tcl_eggcouplet, NULL);
646 strtot -= sizeof(coupletinfo);
647 Tcl_UntraceVar(interp, list[i].name,
648 TCL_TRACE_READS | TCL_TRACE_WRITES | TCL_TRACE_UNSETS,
649 tcl_eggcouplet, (ClientData) cp);
650 nfree(cp);
651 }
652 }

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23