Overview
Comment: | .tclshrc .vimrc Modified Files: Makefile.in configure.in sample.tclshrc tclreadline.c tclreadline.h.in Added Files: config.h.in |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
0d1401e9c11d4c6028ad5501a5b8a0cc |
User & Date: | johannes@zellner.org on 1999-09-13 16:33:10 |
Other Links: | manifest | tags |
Context
1999-09-14
| ||
00:00 | Modified Files: src/tclreadline/tclreadline.c src/tclreadline/tclreadlineCompleter.tcl src/tclreadline/tclreadlineSetup.tcl.in Added Files: src/csym/version check-in: 3257fb6735 user: johannes@zellner.org tags: trunk | |
1999-09-13
| ||
16:33 | .tclshrc .vimrc Modified Files: Makefile.in configure.in sample.tclshrc tclreadline.c tclreadline.h.in Added Files: config.h.in check-in: 0d1401e9c1 user: johannes@zellner.org tags: trunk | |
00:21 | tclreadline.c tclreadlineCompleter.tcl check-in: ea4e9a080f user: johannes@zellner.org tags: trunk | |
Changes
Modified Makefile.in from [a0009b0ead] to [161ae43645].
1 | 1 2 3 4 5 6 7 8 9 10 | - - + + | # -*- make -*- |
︙ | |||
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | + + + | # The information below should be usable as is. The configure # script won't modify it and you shouldn't need to modify it # either. #---------------------------------------------------------------- CC = @CC@ DEFS = @DEFS@ CC_SWITCHES = $(CFLAGS) $(SHLIB_CFLAGS) -I$(TOP_DIR) \ -I$(TCL_INCLUDE_DIR) -I$(READLINE_INCLUDE_DIR) OBJS = tclreadline.o CSRCS = $(TOP_DIR)/tclreadline.c TCLFILES = tclreadlineInit.tcl tclreadlineSetup.tcl tclreadlineCompleter.tcl SOURCES = \ GPL \ Makefile.in \ README \ configure.in \ pkgIndex.tcl.in \ sample.tclshrc \ sources \ config.h.in \ tclreadline.c \ tclreadline.h.in \ tclreadline.n.in \ tclreadlineConfig.sh.in \ tclreadlineInit.tcl.in \ tclreadlineSetup.tcl.in \ tclreadlineCompleter.tcl |
︙ | |||
239 240 241 242 243 244 245 | 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 | - + - - - - + - | clean: rm -f *.a *.o core errs *~ \#* tags* *.E a.out errors so_locations distclean: clean rm -f \ Makefile *.so *.sl pkgIndex.tcl tclreadlineInit.tcl \ |
︙ |
Added config.h.in version [79c57abe6e].
|
Modified configure.in from [0fd9b9796f] to [d9679836e4].
1 2 | 1 2 3 4 5 6 7 8 9 10 | - + | # -*- autoconf -*- # FILE: "/diska/home/joze/src/tclreadline/configure.in" |
︙ | |||
30 31 32 33 34 35 36 37 38 39 40 41 42 43 | 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | + | dnl This file is an input file used by the GNU "autoconf" program to dnl generate the file "configure", which is run during Tk installation dnl to configure the system for the local environment. AC_REVISION($Revision$) AC_INIT(tclreadline.c) AC_CONFIG_HEADER(config.h) TCLREADLINE_MAJOR_VERSION=0 TCLREADLINE_MINOR_VERSION=9 TCLREADLINE_PATCHLEVEL=3 TCLREADLINE_VERSION=$TCLREADLINE_MAJOR_VERSION.$TCLREADLINE_MINOR_VERSION TCLREADLINE_PATCHLEVEL_STR=${TCLREADLINE_VERSION}.${TCLREADLINE_PATCHLEVEL} VERSION=$TCLREADLINE_VERSION |
︙ | |||
345 346 347 348 349 350 351 | 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 | - - + + + | # --- # check, if curses or termcap is already # linked with libreadline. (on newer Linux # systems it is.) # --- |
︙ | |||
385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 | 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 | + + + + + + + + + + + + + + - + | AC_CHECK_FUNC( rl_callback_read_char, alternate=yes, alternate=no ) if test "$alternate" = "no"; then AC_MSG_ERROR(alternate interface not supported by this readline version.) fi # check for readline's (macro.c) private variable # _rl_executing_macro. AC_MSG_CHECKING([for _rl_executing_macro in -lreadline]) AC_TRY_LINK(,[ extern char* _rl_executing_macro; int main () { _rl_executing_macro = (char*) 0; return 0; }], AC_MSG_RESULT(yes); AC_DEFINE_UNQUOTED(EXECUTING_MACRO_HACK, 1), AC_MSG_RESULT(no)) AC_MSG_CHECKING([for the readline version number]) AC_TRY_RUN([ #include <stdio.h> int main () { FILE *fp = fopen ("conftestversion", "w"); extern char *rl_library_version; fprintf (fp, "%s", rl_library_version); close (fp); |
︙ |
Modified sample.tclshrc from [f07a36eb8e] to [f68b1de54f].
1 2 | 1 2 3 4 5 6 7 8 9 10 | - + | #!/bin/sh # FILE: "/diska/home/joze/src/tclreadline/sample.tclshrc" |
︙ | |||
47 48 49 50 51 52 53 | 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | - + | # store maximal this much lines in the history file # set tclreadline::historyLength 200 # disable tclreadline's script completer # |
Modified tclreadline.c from [3d6f99eaa5] to [9394d14783].
1 2 3 | 1 2 3 4 5 6 7 8 9 10 11 12 | - - + + | /* ================================================================== |
︙ | |||
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | + + + + + + + + + + + + + | You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. <johannes@zellner.org>, http://www.zellner.org/tclreadline/ ================================================================== */ #ifdef HAVE_CONFIG_H # include "config.h" #endif #include <tcl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define READLINE_LIBRARY #include <readline.h> #include <history.h> /** * this prototype is missing * in readline.h */ void rl_extend_line_buffer(int len); #ifdef EXECUTING_MACRO_HACK /** * this prototype is private in readline's file `macro.c'. * We need it here to decide, if we should read more * characters from a macro. Dirty, but it should work. */ extern char* _rl_executing_macro; #endif #include "tclreadline.h" #define MALLOC(size) Tcl_Alloc((int) size) #define FREE(ptr) if (ptr) { Tcl_Free((char*) ptr); ptr = 0; } enum { |
︙ | |||
67 68 69 70 71 72 73 | 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | - - - - | */ char* stripleft(char* in); char* stripright(char* in); char* stripwhite(char* in); char* TclReadlineQuote(char* text, char* quotechars); int TclReadlineCmd(ClientData clientData, Tcl_Interp* interp, int argc, char** argv); |
︙ | |||
172 173 174 175 176 177 178 | 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | - - - - - - - - - - + - - - - | length = strlen(argv[1]); if (c == 'r' && strncmp(argv[1], "read", length) == 0) { char* expansion = (char*) NULL; int status; |
︙ | |||
323 324 325 326 327 328 329 | 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 | - - - - - - - - - - - - - - - - + + - - + + + - - + - - - - - - + - - - - - - - - - | Tcl_AppendResult(interp, "wrong # args: should be \"readline option ?arg ...?\"", (char*) NULL); return TCL_ERROR; } |
︙ | |||
426 427 428 429 430 431 432 | 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + + | return status; if (TCL_OK != (status = Tcl_LinkVar(interp, "tclreadline_patchLevel", (char*) &TCLRL_PATCHLEVEL, TCL_LINK_STRING | TCL_LINK_READ_ONLY))) return status; return Tcl_PkgProvide(interp, "tclreadline", TCLRL_VERSION); } |
︙ | |||
525 526 527 528 529 530 531 | 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - | } char** TclReadlineCompletion(char* text, int start, int end) { char** matches = (char**) NULL; int status; |
︙ | |||
651 652 653 654 655 656 657 | 548 549 550 551 552 553 554 555 556 557 558 559 560 561 | - - - - - - - | } Tcl_ResetResult(tclrl_interp); /* clear result space */ } if (!matches && tclrl_use_builtin_completer) { matches = completion_matches(text, TclReadline0generator); } |
︙ | |||
716 717 718 719 720 721 722 | 606 607 608 609 610 611 612 613 614 615 616 617 618 619 | - - - - | break; case _CMD_GET: local_line = strdup(rl_line_buffer); sub = TclReadlineParse(args, sizeof(args), local_line); |
︙ |
Modified tclreadline.h.in from [60998526c8] to [1247b0d625].
1 2 3 | 1 2 3 4 5 6 7 8 9 10 11 12 | - - + + | /* ================================================================== |
︙ |