Mercurial > emacs
comparison src/coding.c @ 39581:6d9fa06012a6
Use SYMBOL_VALUE/SET_SYMBOL_VALUE macros instead of accessing
symbols' value directly.
| author | Gerd Moellmann <gerd@gnu.org> |
|---|---|
| date | Fri, 05 Oct 2001 09:49:39 +0000 |
| parents | 883da5f3dbac |
| children | 579177964efa |
comparison
equal
deleted
inserted
replaced
| 39580:ee9c4218a600 | 39581:6d9fa06012a6 |
|---|---|
| 4108 idx = 0; | 4108 idx = 0; |
| 4109 while (mask && ! (mask & 1)) mask >>= 1, idx++; | 4109 while (mask && ! (mask & 1)) mask >>= 1, idx++; |
| 4110 if (! mask) | 4110 if (! mask) |
| 4111 idx = CODING_CATEGORY_IDX_RAW_TEXT; | 4111 idx = CODING_CATEGORY_IDX_RAW_TEXT; |
| 4112 | 4112 |
| 4113 val = XSYMBOL (XVECTOR (Vcoding_category_table)->contents[idx])->value; | 4113 val = SYMBOL_VALUE (XVECTOR (Vcoding_category_table)->contents[idx]); |
| 4114 | 4114 |
| 4115 if (coding->eol_type != CODING_EOL_UNDECIDED) | 4115 if (coding->eol_type != CODING_EOL_UNDECIDED) |
| 4116 { | 4116 { |
| 4117 Lisp_Object tmp; | 4117 Lisp_Object tmp; |
| 4118 | 4118 |
| 6879 | 6879 |
| 6880 for (i = CODING_CATEGORY_IDX_EMACS_MULE; i < CODING_CATEGORY_IDX_MAX; i++) | 6880 for (i = CODING_CATEGORY_IDX_EMACS_MULE; i < CODING_CATEGORY_IDX_MAX; i++) |
| 6881 { | 6881 { |
| 6882 Lisp_Object val; | 6882 Lisp_Object val; |
| 6883 | 6883 |
| 6884 val = XSYMBOL (XVECTOR (Vcoding_category_table)->contents[i])->value; | 6884 val = SYMBOL_VALUE (XVECTOR (Vcoding_category_table)->contents[i]); |
| 6885 if (!NILP (val)) | 6885 if (!NILP (val)) |
| 6886 { | 6886 { |
| 6887 if (! coding_system_table[i]) | 6887 if (! coding_system_table[i]) |
| 6888 coding_system_table[i] = ((struct coding_system *) | 6888 coding_system_table[i] = ((struct coding_system *) |
| 6889 xmalloc (sizeof (struct coding_system))); | 6889 xmalloc (sizeof (struct coding_system))); |
