diff options
| author | Paul Eggert | 2011-04-10 23:43:21 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-10 23:43:21 -0700 |
| commit | 127198fdc718d38078cf6abeb6f3a0862f3ac1d2 (patch) | |
| tree | f394043aa3850cb988c8f702ed9053c5fd3a71c4 /src | |
| parent | d85b608f9c151c6f6d07e12392962e02c6ce528b (diff) | |
| download | emacs-127198fdc718d38078cf6abeb6f3a0862f3ac1d2.tar.gz emacs-127198fdc718d38078cf6abeb6f3a0862f3ac1d2.zip | |
* ccl.h (check_ccl_update, Vccl_program_table): Remove decls.
* ccl.c (Vccl_program_table): Now static.
(check_ccl_update): Remove; unused.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/ccl.c | 26 | ||||
| -rw-r--r-- | src/ccl.h | 6 |
3 files changed, 5 insertions, 31 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index dd0166bd0f3..dcbab4b96b7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2011-04-11 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-04-11 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * ccl.h (check_ccl_update, Vccl_program_table): Remove decls. | ||
| 4 | * ccl.c (Vccl_program_table): Now static. | ||
| 5 | (check_ccl_update): Remove; unused. | ||
| 6 | |||
| 3 | * category.c (SET_CATEGORY_SET, set_category_set): Move here. | 7 | * category.c (SET_CATEGORY_SET, set_category_set): Move here. |
| 4 | * category.h: ... from here. | 8 | * category.h: ... from here. |
| 5 | * category.c (check_category_table, set_category_set): Now static. | 9 | * category.c (check_category_table, set_category_set): Now static. |
| @@ -56,7 +56,7 @@ static Lisp_Object Qccl_program_idx; | |||
| 56 | CCL_PROG is already resolved to index numbers or not, UPDATEDP (t | 56 | CCL_PROG is already resolved to index numbers or not, UPDATEDP (t |
| 57 | or nil) is the flat to tell if the CCL program is updated after it | 57 | or nil) is the flat to tell if the CCL program is updated after it |
| 58 | was once used. */ | 58 | was once used. */ |
| 59 | Lisp_Object Vccl_program_table; | 59 | static Lisp_Object Vccl_program_table; |
| 60 | 60 | ||
| 61 | /* Return a hash table of id number ID. */ | 61 | /* Return a hash table of id number ID. */ |
| 62 | #define GET_HASH_TABLE(id) \ | 62 | #define GET_HASH_TABLE(id) \ |
| @@ -1929,30 +1929,6 @@ setup_ccl_program (struct ccl_program *ccl, Lisp_Object ccl_prog) | |||
| 1929 | } | 1929 | } |
| 1930 | 1930 | ||
| 1931 | 1931 | ||
| 1932 | /* Check if CCL is updated or not. If not, re-setup members of CCL. */ | ||
| 1933 | |||
| 1934 | int | ||
| 1935 | check_ccl_update (struct ccl_program *ccl) | ||
| 1936 | { | ||
| 1937 | Lisp_Object slot, ccl_prog; | ||
| 1938 | |||
| 1939 | if (ccl->idx < 0) | ||
| 1940 | return 0; | ||
| 1941 | slot = AREF (Vccl_program_table, ccl->idx); | ||
| 1942 | if (NILP (AREF (slot, 3))) | ||
| 1943 | return 0; | ||
| 1944 | ccl_prog = ccl_get_compiled_code (AREF (slot, 0), &ccl->idx); | ||
| 1945 | if (! VECTORP (ccl_prog)) | ||
| 1946 | return -1; | ||
| 1947 | ccl->size = ASIZE (ccl_prog); | ||
| 1948 | ccl->prog = XVECTOR (ccl_prog)->contents; | ||
| 1949 | ccl->eof_ic = XINT (AREF (ccl_prog, CCL_HEADER_EOF)); | ||
| 1950 | ccl->buf_magnification = XINT (AREF (ccl_prog, CCL_HEADER_BUF_MAG)); | ||
| 1951 | ASET (slot, 3, Qnil); | ||
| 1952 | return 0; | ||
| 1953 | } | ||
| 1954 | |||
| 1955 | |||
| 1956 | DEFUE ("ccl-program-p", Fccl_program_p, Sccl_program_p, 1, 1, 0, | 1932 | DEFUE ("ccl-program-p", Fccl_program_p, Sccl_program_p, 1, 1, 0, |
| 1957 | doc: /* Return t if OBJECT is a CCL program name or a compiled CCL program code. | 1933 | doc: /* Return t if OBJECT is a CCL program name or a compiled CCL program code. |
| 1958 | See the documentation of `define-ccl-program' for the detail of CCL program. */) | 1934 | See the documentation of `define-ccl-program' for the detail of CCL program. */) |
| @@ -96,15 +96,9 @@ struct ccl_spec { | |||
| 96 | execution of ccl program CCL_PROG (symbol or vector). */ | 96 | execution of ccl program CCL_PROG (symbol or vector). */ |
| 97 | extern int setup_ccl_program (struct ccl_program *, Lisp_Object); | 97 | extern int setup_ccl_program (struct ccl_program *, Lisp_Object); |
| 98 | 98 | ||
| 99 | /* Check if CCL is updated or not. If not, re-setup members of CCL. */ | ||
| 100 | extern int check_ccl_update (struct ccl_program *); | ||
| 101 | |||
| 102 | extern void ccl_driver (struct ccl_program *, int *, int *, int, int, | 99 | extern void ccl_driver (struct ccl_program *, int *, int *, int, int, |
| 103 | Lisp_Object); | 100 | Lisp_Object); |
| 104 | 101 | ||
| 105 | /* Vector of CCL program names vs corresponding program data. */ | ||
| 106 | extern Lisp_Object Vccl_program_table; | ||
| 107 | |||
| 108 | extern Lisp_Object Qccl, Qcclp; | 102 | extern Lisp_Object Qccl, Qcclp; |
| 109 | 103 | ||
| 110 | EXFUN (Fccl_program_p, 1); | 104 | EXFUN (Fccl_program_p, 1); |