CVSROOT: /home/x-cvs
Module name: xc
Changes by: [EMAIL PROTECTED] 02/11/14 23:01:33
Log message:
o Changed the code in xedit/lisp.c to do a better job when reading
lisp expression from the text buffer and to only return form the
callback that selects an alternate edit mode if the syntax field
is not null, that is, if the lisp file was already loaded, and
seens to be the mode in use.
o Changed VALUES to set RETURN_COUNT to -1 if no return value
exists, and all code that print expressions and handles multiple
values to understand it.
o Moved some Read* functions to read.c, for better organization.
o Extended the read code to understand the syntax #<number>= and
#<number>#, the new read code can also build circular and shared
objects.
o Changed write.c to do a better job printing circular lists, and
to also cause an error when structure or vector elements contains
circular lists.
o Made *print-circle* initialize to T.
o Changed most of the remaining code that print symbols to respect
*print-case*.
o Changed c.lsp to convert strings and characters in the same line
to a single :expression token, this is required because it parses
the file backwards, but every line is parsed forward.
o The syntax highlight definition in lisp.lsp was rewritten to be
more liberal with symbol names and to understand #<number>= and
#<number>#.
o Added some new special escape characters to the regex code, and
simplified the match of character ranges to simply use a vector
of 256 bytes. The regex code is still very limited and there are
some problems that I want to fix soon, it does not always properly
update group offsets for some patterns envolving repetitions.
I am putting in my todo list a better error diagnostic method,
probably keep the file line number in the LispFile structure, to
print a backtrace of the code read, and the corresponding line
numbers, or, if the error was generated when evaluating an expression,
print the complete expression, or at least the first bytes/line of
the expression, to allow easily locating the problem.
Modified files:
xc/programs/xedit/:
lisp.c
xc/programs/xedit/lisp/:
core.c helper.c helper.h internal.h lisp.c private.h
read.c read.h stream.c stream.h struct.c write.c xedit.c
xc/programs/xedit/lisp/modules/:
indent.lsp
xc/programs/xedit/lisp/modules/progmodes/:
c.lsp lisp.lsp
xc/programs/xedit/lisp/re/:
README re.c rec.c reo.c rep.h
Revision Changes Path
1.18 +16 -7 xc/programs/xedit/lisp.c
1.58 +9 -6 xc/programs/xedit/lisp/core.c
1.42 +3 -93 xc/programs/xedit/lisp/helper.c
1.14 +1 -7 xc/programs/xedit/lisp/helper.h
1.39 +4 -2 xc/programs/xedit/lisp/internal.h
1.70 +4 -4 xc/programs/xedit/lisp/lisp.c
1.34 +1 -3 xc/programs/xedit/lisp/private.h
1.25 +716 -404 xc/programs/xedit/lisp/read.c
1.3 +6 -1 xc/programs/xedit/lisp/read.h
1.16 +1 -183 xc/programs/xedit/lisp/stream.c
1.6 +1 -5 xc/programs/xedit/lisp/stream.h
1.19 +2 -5 xc/programs/xedit/lisp/struct.c
1.21 +143 -91 xc/programs/xedit/lisp/write.c
1.14 +7 -5 xc/programs/xedit/lisp/xedit.c
1.3 +1 -8 xc/programs/xedit/lisp/modules/indent.lsp
1.17 +16 -3 xc/programs/xedit/lisp/modules/progmodes/c.lsp
1.4 +65 -136 xc/programs/xedit/lisp/modules/progmodes/lisp.lsp
1.4 +4 -1 xc/programs/xedit/lisp/re/README
1.7 +62 -294 xc/programs/xedit/lisp/re/re.c
1.3 +47 -391 xc/programs/xedit/lisp/re/rec.c
1.9 +49 -96 xc/programs/xedit/lisp/re/reo.c
1.2 +12 -61 xc/programs/xedit/lisp/re/rep.h
_______________________________________________
Cvs-commit mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/cvs-commit