aboutsummaryrefslogtreecommitdiffstats
path: root/src/ccl.c
Commit message (Collapse)AuthorAgeFilesLines
* (CCL_READ_CHAR): If hit EOF, set REG to -1.Kenichi Handa2004-06-131-0/+1
|
* (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic inKenichi Handa2004-06-121-3/+38
| | | | | | | | | | 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.
* (Fccl_execute_on_string): Fix setting elements of STATUS.Kenichi Handa2004-05-141-2/+2
|
* Remove period at end of error message.Jan Djärv2003-11-161-1/+1
|
* Add arch taglinesMiles Bader2003-09-011-0/+3
|
* (CCL_WRITE_CHAR): Increment extra_bytes only when it isKenichi Handa2003-05-301-3/+4
| | | | | | nonzero. (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control. (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
* Trailing whitespace deleted.Juanma Barranquero2003-02-041-18/+18
|
* Remove `emacs' conditionals.Dave Love2002-07-171-21/+9
| | | | | (ccl_backtrace_table): Fix size spec. (ccl_driver): Fix type errors.
* Most uses of XSTRING combined with STRING_BYTES or indirection changed toKen Raeburn2002-07-151-3/+3
| | | | | SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references left unchanged for now.
* (HASH_VALUE): Remove (it's in lisp.h now).Stefan Monnier2002-07-091-2/+0
|
* (Vtranslation_hash_table_vector, GET_HASH_TABLE)Dave Love2002-07-051-1/+73
| | | | | | | (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New. (ccl_driver): Add cases for CCL_LookupIntConstTbl, CCL_LookupCharConstTbl. (syms_of_ccl): Defvar translation-hash-table-vector.
* Use AREF and ASIZE.Stefan Monnier2001-11-281-73/+70
|
* Change macros to use do-while block instead of if-else.Pavel Janík2001-11-121-12/+16
| | | | Use braces to follow GNU Coding Standards.
* Update usage of CHECK_ macros (remove unused second argument).Pavel Janík2001-11-021-7/+7
|
* Change doc-string comments to `new style' [w/`doc:' keyword].Pavel Janík2001-10-201-63/+63
|
* Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimentingKen Raeburn2001-10-161-1/+1
| | | | with lisp system changes.
* Add copyright notice for FSF.Gerd Moellmann2001-05-171-0/+1
|
* (ccl_driver): Don't copy remaining bytes in caseGerd Moellmann2001-05-151-5/+14
| | | | of CCL_STAT_INVALID_CMD.
* (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the caseKenichi Handa2001-03-061-0/+16
| | | | that the source is unibyte.
* (Fccl_execute): Doc fix.Dave Love2001-03-011-8/+9
|
* (CCL_WRITE_MULTIBYTE_CHAR): New macro.Kenichi Handa2001-02-271-1/+21
| | | | | | (ccl_driver) <CCL_WriteMultibyteChar2>: Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR. <ccl_finish>: Set ccl->eight_bit_control properly.
* (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points anKenichi Handa2001-02-151-12/+18
| | | | | invalid mulitbyte sequence, treat *SRC as a character of eight-bit-graphic.
* (CCL_WRITE_CHAR): Check if CH is valid or not. IfKenichi Handa2001-02-051-1/+13
| | | | | | | 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.
* (ccl_driver): Fix last change.Eli Zaretskii2001-01-251-2/+3
|
* (ccl_driver): If ccl->suppress_error is nonzeor, don'tKenichi Handa2001-01-241-1/+3
| | | | | insert error message to the output. (setup_ccl_program): Initialize ccl->suppress_error to 0.
* (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".Kenichi Handa2001-01-241-96/+101
| | | | | | (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise. (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do" statement.
* (CCL_READ_CHAR): Change the argument name from r to REGKenichi Handa2001-01-241-8/+8
| | | | as a workaround for SunOS 4's cc.
* (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.Kenichi Handa2001-01-161-2/+2
|
* (Fregister_ccl_program): Handle the return value ofKenichi Handa2001-01-161-1/+5
| | | | resolve_symbol_ccl_program correctly.
* (Fccl_execute): Cast ccl_driver parameters to `unsignedEli Zaretskii2001-01-021-1/+1
| | | | char *' instead of `char *'.
* (CCL_WRITE_CHAR): Check variable `extra_bytes'.Kenichi Handa2000-12-281-20/+25
| | | | (ccl_driver): New local variable `extra_bytes'.
* (CCL_WRITE_CHAR): Don't handle EOL conversion here.Kenichi Handa2000-12-221-31/+57
| | | | | (CCL_READ_CHAR): Handle EOL conversion here. (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
* (stack_idx_of_map_multiple): Don't use C initializier.Kenichi Handa2000-12-041-1/+1
|
* (Fccl_execute_on_string): Make multibyte string correctly.Kenichi Handa2000-09-191-4/+10
| | | | If output buffer is too small, signal an appropriated error.
* Comment fixed.Kenichi Handa2000-09-121-100/+222
| | | | | | | | | | | | | | | (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.
* (ccl-program-p): Fix doc string.Dave Love2000-08-161-1/+1
|
* (Fccl_program_p): Docstring modified.Kenichi Handa2000-08-161-3/+8
| | | | | (Fccl_execute): Likewise. (Fccl_execute_on_string): Likewise.
* (CCL_WRITE_CHAR): If CH is eight-bit-control char, decrement dst_endKenichi Handa2000-08-161-1/+7
| | | | to avoid buffer overflow in the later call of string_as_multibyte
* (CCL_READ_CHAR): If source is multibyte, pay attention toKenichi Handa2000-08-111-1/+7
| | | | | the multibyte form of eight-bit-control characters. (Fccl_execute_on_string): Initialize ccl->multibyte.
* (Fccl_execute_on_string): Don't check xmalloc return. Use xfree, notDave Love2000-07-201-3/+1
| | | | free.
* (Fccl_execute): Typo fixed.Kenichi Handa2000-07-071-1/+1
|
* (ccl_driver) <CCL_End>: Decrement stack_idx only when it is greaterKenichi Handa2000-06-221-1/+2
| | | | than 0.
* (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.Kenichi Handa2000-06-191-1/+13
| | | | (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
* (ccl_driver): Fix previous change.Kenichi Handa2000-05-251-1/+1
|
* (ccl_driver) <CCL_ReadMultibyteChar2>Kenichi Handa2000-05-251-1/+15
| | | | | <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and eight-bit-graphic correctly.
* (CCL_WRITE_CHAR): Be sure to write single byte charactersKenichi Handa2000-05-191-10/+9
| | | | | as is. (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
* (ccl_driver) [CCL_MapMultiple]: When the mapped value isKenichi Handa2000-02-261-2/+3
| | | | | | `lambda', set reg[RRR] to the map index. (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set reg[RRR] to 0. Otherwise, set it to -1.
* (CCL_MAKE_CHAR): New macro.Kenichi Handa2000-02-091-20/+27
| | | | | | (ccl_driver) <CCL_TranslateCharacter>: Check the validity of registers by CCL_MAKE_CHAR before calling translate_char. <CCL_TranslateCharacterConstTbl> Likewise.
* (ccl_driver) <CCL_WriteExprRegister>: Set jump_addressKenichi Handa2000-02-021-1/+3
| | | | | | instead of incrementing ic directly. <CCL_WriteExprConst> Likewise. <ccl_set_expr>: Set ic to jump_address.
* (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING.Kenichi Handa1999-12-151-67/+15
| | | | (ccl_driver): Delete codes for a composite character.