Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/lib/libedit



Module Name:    src
Committed By:   lukem
Date:           Fri Dec  5 13:37:48 UTC 2003

Modified Files:
        src/lib/libedit: Makefile editline.3 histedit.h parse.c readline.c
            shlib_version tokenizer.c
        src/lib/libedit/TEST: Makefile test.c
Removed Files:
        src/lib/libedit: tokenizer.h

Log Message:
Tokenization function enhancements:
* Make tok_init(), tok_end(), tok_reset(), tok_line() and tok_str()
  publically available in <histedit.h>
* Documented the public functions in editline(3)
* Renamed tok_line() -> tok_str()
* Added new tok_line() which takes a "const LineInfo *" instead of
  "const char *" (the former has "cursor" information), and optionally
  return the argv index ("int *cursorc") and offset within that index
  ("int *cursorv").  This means that completion routines can use the
  tokenization code to crack the line and easily find which word the
  cursor is at.  (mmm, context sensitive completion :)
* Fixed TEST/test.c when using "continuation" lines (unmatched quote
  or \ at EOL), and added some more DEBUG messages including highlighting
  where the cursor is (with a `_').


To generate a diff of this commit:
cvs rdiff -r1.28 -r1.29 src/lib/libedit/Makefile
cvs rdiff -r1.42 -r1.43 src/lib/libedit/editline.3
cvs rdiff -r1.24 -r1.25 src/lib/libedit/histedit.h
cvs rdiff -r1.19 -r1.20 src/lib/libedit/parse.c
cvs rdiff -r1.43 -r1.44 src/lib/libedit/readline.c
cvs rdiff -r1.14 -r1.15 src/lib/libedit/shlib_version
cvs rdiff -r1.13 -r1.14 src/lib/libedit/tokenizer.c
cvs rdiff -r1.6 -r0 src/lib/libedit/tokenizer.h
cvs rdiff -r1.1 -r1.2 src/lib/libedit/TEST/Makefile
cvs rdiff -r1.13 -r1.14 src/lib/libedit/TEST/test.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index