comparison src/mule-ccl.c @ 276:6330739388db r21-0b36

Import from CVS: tag r21-0b36
author cvs
date Mon, 13 Aug 2007 10:30:37 +0200
parents c5d627a313b1
children 90d73dddcdc4
comparison
equal deleted inserted replaced
275:a68ae4439f57 276:6330739388db
469 if (!destination) \ 469 if (!destination) \
470 CCL_INVALID_CMD; \ 470 CCL_INVALID_CMD; \
471 else \ 471 else \
472 { \ 472 { \
473 Bufbyte work[MAX_EMCHAR_LEN]; \ 473 Bufbyte work[MAX_EMCHAR_LEN]; \
474 int len = set_charptr_emchar (work, ch); \ 474 int len = ( ch < 256 ) ? \
475 simple_set_charptr_emchar (work, ch) : \
476 non_ascii_set_charptr_emchar (work, ch); \
475 Dynarr_add_many (destination, work, len); \ 477 Dynarr_add_many (destination, work, len); \
476 } \ 478 } \
477 } while (0) 479 } while (0)
478 480
479 /* Write a string at ccl_prog[IC] of length LEN to the current output 481 /* Write a string at ccl_prog[IC] of length LEN to the current output