1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 03:40:56 -08:00
Commit graph

94 commits

Author SHA1 Message Date
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Kenichi Handa
ce03bf76b9 Copyright fixed 2005-12-19 07:04:44 +00:00
Kim F. Storm
be76226871 (check_ccl_update): Remove unused var vp. 2005-10-20 15:02:59 +00:00
Thien-Thi Nguyen
0b5538bd85 Update years in copyright notice; nfc. 2005-08-07 12:33:19 +00:00
Juanma Barranquero
2a0bd758b7 (Fregister_ccl_program): Fix typos in docstring.
(Fccl_execute_on_string): Likewise; add usage info.
2005-07-21 16:25:59 +00:00
Lute Kamstra
4fc5845fe8 Update FSF's address. 2005-07-04 16:49:24 +00:00
Kenichi Handa
2a69c66e3a Now an element of Vccl_program_table is a vector of
length 4, not 3.
(ccl_get_compiled_code): New arg idx.  Caller changed.  Adjusted
for the change of Vccl_program_table.
(setup_ccl_program): Adjusted for the change of
Vccl_program_table.
(check_ccl_update): New function.
(Fregister_ccl_program): Use ASET to set an element of a vector.
Adjusted for the change of Vccl_program_table.
2005-05-27 11:27:50 +00:00
Kenichi Handa
fd9c3a9780 (CCL_READ_CHAR): If hit EOF, set REG to -1. 2004-06-13 00:22:19 +00:00
Kenichi Handa
9eaa8e6511 (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
ccl_prog_stack_struct and update it.
(CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
(CCL_READ_CHAR): Get instruction counter from eof_ic, not from
ccl->eof_ic on EOF.
(ccl_debug_hook): New function.
(struct ccl_prog_stack): New member eof_ic.
(ccl_driver): Handle EOF in subrountine call correctly.
2004-06-12 02:33:39 +00:00
Kenichi Handa
866ebf45ca (Fccl_execute_on_string): Fix setting elements of STATUS. 2004-05-14 12:41:32 +00:00
Jan Djärv
7c40296995 Remove period at end of error message. 2003-11-16 16:17:09 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Kenichi Handa
fd40a25f71 (CCL_WRITE_CHAR): Increment extra_bytes only when it is
nonzero.
(ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
(setup_ccl_program): Initialize ccl->eight_bit_control to zero.
2003-05-30 07:56:08 +00:00
Juanma Barranquero
177c0ea743 Trailing whitespace deleted. 2003-02-04 14:56:31 +00:00
Dave Love
f9bd23fdb8 Remove `emacs' conditionals.
(ccl_backtrace_table): Fix size spec.
(ccl_driver): Fix type errors.
2002-07-17 14:39:54 +00:00
Ken Raeburn
d5db40779d Most uses of XSTRING combined with STRING_BYTES or indirection changed to
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
2002-07-15 00:01:34 +00:00
Stefan Monnier
f61cd322b2 (HASH_VALUE): Remove (it's in lisp.h now). 2002-07-09 23:00:56 +00:00
Dave Love
d80dc57e0d (Vtranslation_hash_table_vector, GET_HASH_TABLE)
(HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
(ccl_driver): Add cases for CCL_LookupIntConstTbl,
CCL_LookupCharConstTbl.
(syms_of_ccl): Defvar translation-hash-table-vector.
2002-07-05 18:54:22 +00:00
Stefan Monnier
64ef29210e Use AREF and ASIZE. 2001-11-28 07:25:03 +00:00
Pavel Janík
a89f435d63 Change macros to use do-while block instead of if-else.
Use braces to follow GNU Coding Standards.
2001-11-12 07:30:02 +00:00
Pavel Janík
b782650360 Update usage of CHECK_ macros (remove unused second argument). 2001-11-02 20:46:55 +00:00
Pavel Janík
fdb82f9337 Change doc-string comments to new style' [w/doc:' keyword]. 2001-10-20 20:56:10 +00:00
Ken Raeburn
f3fbd15535 Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimenting
with lisp system changes.
2001-10-16 09:09:51 +00:00
Gerd Moellmann
41cd7d672b Add copyright notice for FSF. 2001-05-17 09:09:14 +00:00
Gerd Moellmann
8a1ae4dd2a (ccl_driver): Don't copy remaining bytes in case
of CCL_STAT_INVALID_CMD.
2001-05-15 10:39:45 +00:00
Kenichi Handa
38b9ed6a35 (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
that the source is unibyte.
2001-03-06 02:55:30 +00:00
Dave Love
d617f6df4c (Fccl_execute): Doc fix. 2001-03-01 18:21:06 +00:00
Kenichi Handa
a8302ba35e (CCL_WRITE_MULTIBYTE_CHAR): New macro.
(ccl_driver) <CCL_WriteMultibyteChar2>: Use
CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
<ccl_finish>: Set ccl->eight_bit_control properly.
2001-02-27 03:28:48 +00:00
Kenichi Handa
0fc71a7725 (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
invalid mulitbyte sequence, treat *SRC as a character of
eight-bit-graphic.
2001-02-15 13:10:38 +00:00
Kenichi Handa
3116502899 (CCL_WRITE_CHAR): Check if CH is valid or not. If
invalid, execute CCL_INVALID_CMD.
(ccl_driver): If the CCL program is terminated because of
CCL_STAT_INVALID_CMD, copy the remaining source data to the
destination instead of throwing them away.
2001-02-05 01:20:55 +00:00
Eli Zaretskii
0fb94c7feb (ccl_driver): Fix last change. 2001-01-25 09:46:23 +00:00
Kenichi Handa
ae08ba36c9 (ccl_driver): If ccl->suppress_error is nonzeor, don't
insert error message to the output.
(setup_ccl_program): Initialize ccl->suppress_error to 0.
2001-01-24 23:29:59 +00:00
Kenichi Handa
0ee1088b3e (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
(CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
(ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
statement.
2001-01-24 06:53:23 +00:00
Kenichi Handa
9977c49154 (CCL_READ_CHAR): Change the argument name from r to REG
as a workaround for SunOS 4's cc.
2001-01-24 00:12:24 +00:00
Kenichi Handa
450ed22689 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed. 2001-01-16 11:11:38 +00:00
Kenichi Handa
4d247a1f57 (Fregister_ccl_program): Handle the return value of
resolve_symbol_ccl_program correctly.
2001-01-16 08:28:01 +00:00
Eli Zaretskii
b428fdfdc1 (Fccl_execute): Cast ccl_driver parameters to `unsigned
char *' instead of `char *'.
2001-01-02 14:20:09 +00:00
Kenichi Handa
a37520c676 (CCL_WRITE_CHAR): Check variable `extra_bytes'.
(ccl_driver): New local variable `extra_bytes'.
2000-12-28 07:03:05 +00:00
Kenichi Handa
17312e44d7 (CCL_WRITE_CHAR): Don't handle EOL conversion here.
(CCL_READ_CHAR): Handle EOL conversion here.
(ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
2000-12-22 00:06:52 +00:00
Kenichi Handa
be57900b62 (stack_idx_of_map_multiple): Don't use C initializier. 2000-12-04 00:46:25 +00:00
Kenichi Handa
a3d8fcf244 (Fccl_execute_on_string): Make multibyte string correctly.
If output buffer is too small, signal an appropriated error.
2000-09-19 00:14:17 +00:00
Kenichi Handa
54fa5bc13a Comment fixed.
(MAX_MAP_SET_LEVEL): Increased to 30.
(PUSH_MAPPING_STACK): Enclose with do-while block.
(POP_MAPPING_STACK): Likewise.
(stack_idx_of_map_multiple): New variable.
(CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
(ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
call the corresponding CCL program by
CCL_CALL_FOR_MAP_INSTRUCTION.
(ccl_driver) <CCL_MapSingle>: Likewise.
(ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
with the case where looking up process reaches to the end of
map-set, and call CCL programs as the above change.
2000-09-12 02:30:13 +00:00
Dave Love
ed1f9d49ba (ccl-program-p): Fix doc string. 2000-08-16 15:17:24 +00:00
Kenichi Handa
c7c386ad47 (Fccl_program_p): Docstring modified.
(Fccl_execute): Likewise.
(Fccl_execute_on_string): Likewise.
2000-08-16 10:49:31 +00:00
Kenichi Handa
904a2edd5c (CCL_WRITE_CHAR): If CH is eight-bit-control char, decrement dst_end
to avoid buffer overflow in the later call of string_as_multibyte
2000-08-16 01:36:35 +00:00
Kenichi Handa
7a837c8992 (CCL_READ_CHAR): If source is multibyte, pay attention to
the multibyte form of eight-bit-control characters.
(Fccl_execute_on_string): Initialize ccl->multibyte.
2000-08-11 05:44:50 +00:00
Dave Love
157f852b76 (Fccl_execute_on_string): Don't check xmalloc return. Use xfree, not
free.
2000-07-20 12:50:09 +00:00
Kenichi Handa
d7e1fe1f9e (Fccl_execute): Typo fixed. 2000-07-07 02:03:24 +00:00
Kenichi Handa
d3a478e2ab (ccl_driver) <CCL_End>: Decrement stack_idx only when it is greater
than 0.
2000-06-22 01:21:00 +00:00
Kenichi Handa
5b8ca8222e (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
(setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
2000-06-19 05:16:57 +00:00