X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/d29ee6b1a110cf5d170a10317a96acbbd4a1c68b..aad3612f9eb7280bd4db8ee697186e75b1e82765:/src/ccl.h diff --git a/src/ccl.h b/src/ccl.h index d76038c857..cc5daf11e1 100644 --- a/src/ccl.h +++ b/src/ccl.h @@ -1,6 +1,6 @@ /* Header for CCL (Code Conversion Language) interpreter. Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, - 2005, 2006, 2007 + 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 National Institute of Advanced Industrial Science and Technology (AIST) Registration Number H14PRO021 Copyright (C) 2003 @@ -9,10 +9,10 @@ This file is part of GNU Emacs. -GNU Emacs is free software; you can redistribute it and/or modify +GNU Emacs is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 3, or (at your option) -any later version. +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. GNU Emacs is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -20,13 +20,14 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with GNU Emacs; see the file COPYING. If not, write to -the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -Boston, MA 02110-1301, USA. */ +along with GNU Emacs. If not, see . */ + #ifndef EMACS_CCL_H #define EMACS_CCL_H +#include "character.h" /* For MAX_MULTIBYTE_LENGTH */ + /* Macros for exit status of CCL program. */ #define CCL_STAT_SUCCESS 0 /* Terminated successfully. */ #define CCL_STAT_SUSPEND_BY_SRC 1 /* Terminated by empty input. */ @@ -38,7 +39,7 @@ Boston, MA 02110-1301, USA. */ /* Structure to hold information about running CCL code. Read comments in the file ccl.c for the detail of each field. */ struct ccl_program { - int idx; /* Index number of the CCL program. + ptrdiff_t idx; /* Index number of the CCL program. -1 means that the program was given by a vector, not by a program name. */ @@ -77,6 +78,9 @@ struct ccl_program { CCL_WRITE_CHAR. After execution, if no such byte is written, set this value to zero. */ + int quit_silently; /* If nonzero, don't append "CCL: + Quitted" to the generated text when + CCL program is quitted. */ }; /* This data type is used for the spec field of the structure @@ -90,37 +94,19 @@ struct ccl_spec { #define CODING_SPEC_CCL_PROGRAM(coding) ((coding)->spec.ccl.ccl) -/* Alist of fontname patterns vs corresponding CCL program. */ -extern Lisp_Object Vfont_ccl_encoder_alist; - /* Setup fields of the structure pointed by CCL appropriately for the execution of ccl program CCL_PROG (symbol or vector). */ -extern int setup_ccl_program P_ ((struct ccl_program *, Lisp_Object)); - -/* Check if CCL is updated or not. If not, re-setup members of CCL. */ -extern int check_ccl_update P_ ((struct ccl_program *)); +extern int setup_ccl_program (struct ccl_program *, Lisp_Object); -extern void ccl_driver P_ ((struct ccl_program *, int *, int *, int, int, - Lisp_Object)); - -/* Vector of CCL program names vs corresponding program data. */ -extern Lisp_Object Vccl_program_table; - -/* Symbols of ccl program have this property, a value of the property - is an index for Vccl_protram_table. */ -extern Lisp_Object Qccl_program_idx; +extern void ccl_driver (struct ccl_program *, int *, int *, int, int, + Lisp_Object); extern Lisp_Object Qccl, Qcclp; -EXFUN (Fccl_program_p, 1); - #define CHECK_CCL_PROGRAM(x) \ do { \ if (NILP (Fccl_program_p (x))) \ - x = wrong_type_argument (Qcclp, (x)); \ + wrong_type_argument (Qcclp, (x)); \ } while (0); #endif /* EMACS_CCL_H */ - -/* arch-tag: 14681df7-876d-43de-bc71-6b78e23a4e3c - (do not change this comment) */