diff options
| author | Kenichi Handa | 2001-01-24 23:29:59 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2001-01-24 23:29:59 +0000 |
| commit | ae08ba36c9f16b0763f84cea5afdab561bd08c3f (patch) | |
| tree | 2ecfe7028bf4a1bc277c2b065b59e2b18a8ba627 | |
| parent | 64068fbfc125094db08c3263b02dcebe724153bd (diff) | |
| download | emacs-ae08ba36c9f16b0763f84cea5afdab561bd08c3f.tar.gz emacs-ae08ba36c9f16b0763f84cea5afdab561bd08c3f.zip | |
(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.
| -rw-r--r-- | src/ccl.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -1720,7 +1720,8 @@ ccl_driver (ccl, source, destination, src_bytes, dst_bytes, consumed) | |||
| 1720 | } | 1720 | } |
| 1721 | 1721 | ||
| 1722 | ccl_error_handler: | 1722 | ccl_error_handler: |
| 1723 | if (destination) | 1723 | if (ccl->suppress_error |
| 1724 | && destination) | ||
| 1724 | { | 1725 | { |
| 1725 | /* We can insert an error message only if DESTINATION is | 1726 | /* We can insert an error message only if DESTINATION is |
| 1726 | specified and we still have a room to store the message | 1727 | specified and we still have a room to store the message |
| @@ -1937,6 +1938,7 @@ setup_ccl_program (ccl, ccl_prog) | |||
| 1937 | ccl->status = 0; | 1938 | ccl->status = 0; |
| 1938 | ccl->stack_idx = 0; | 1939 | ccl->stack_idx = 0; |
| 1939 | ccl->eol_type = CODING_EOL_LF; | 1940 | ccl->eol_type = CODING_EOL_LF; |
| 1941 | ccl->suppress_error = 0; | ||
| 1940 | return 0; | 1942 | return 0; |
| 1941 | } | 1943 | } |
| 1942 | 1944 | ||