Mercurial > emacs
comparison src/coding.c @ 34591:9d5d795f9315
(setup_coding_system): Clear all members of the struct
coding_system at first.
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Fri, 15 Dec 2000 04:45:53 +0000 |
| parents | aa667988f2b0 |
| children | f727eb496b4e |
comparison
equal
deleted
inserted
replaced
| 34590:eccc63bf2540 | 34591:9d5d795f9315 |
|---|---|
| 2983 { | 2983 { |
| 2984 Lisp_Object coding_spec, coding_type, eol_type, plist; | 2984 Lisp_Object coding_spec, coding_type, eol_type, plist; |
| 2985 Lisp_Object val; | 2985 Lisp_Object val; |
| 2986 int i; | 2986 int i; |
| 2987 | 2987 |
| 2988 /* At first, zero clear all members. */ | |
| 2989 bzero (coding, sizeof (struct coding_system)); | |
| 2990 | |
| 2988 /* Initialize some fields required for all kinds of coding systems. */ | 2991 /* Initialize some fields required for all kinds of coding systems. */ |
| 2989 coding->symbol = coding_system; | 2992 coding->symbol = coding_system; |
| 2990 coding->common_flags = 0; | |
| 2991 coding->mode = 0; | |
| 2992 coding->heading_ascii = -1; | 2993 coding->heading_ascii = -1; |
| 2993 coding->post_read_conversion = coding->pre_write_conversion = Qnil; | 2994 coding->post_read_conversion = coding->pre_write_conversion = Qnil; |
| 2994 coding->composing = COMPOSITION_DISABLED; | 2995 coding->composing = COMPOSITION_DISABLED; |
| 2995 coding->cmp_data = NULL; | 2996 coding->cmp_data = NULL; |
| 2996 | 2997 |
