Mercurial > emacs
comparison src/coding.c @ 109100:2bc9a0c04c87
Remove __P and P_ from .c and .m files and definition of P_
* lisp.h:
* atimer.h: Remove define for P_.
* alloc.c: Remove __P and P_ from .c and .m files.
* atimer.c:
* buffer.c:
* callint.c:
* category.c:
* charset.c:
* chartab.c:
* cm.c:
* coding.c:
* composite.c:
* data.c:
* dired.c:
* dispnew.c:
* doc.c:
* editfns.c:
* emacs.c:
* eval.c:
* fileio.c:
* filelock.c:
* fns.c:
* font.c:
* fontset.c:
* frame.c:
* ftfont.c:
* ftxfont.c:
* gmalloc.c:
* gtkutil.c:
* image.c:
* indent.c:
* intervals.c:
* keyboard.c:
* keymap.c:
* lread.c:
* marker.c:
* menu.c:
* minibuf.c:
* print.c:
* process.c:
* scroll.c:
* search.c:
* sound.c:
* strftime.c:
* syntax.c:
* sysdep.c:
* term.c:
* terminal.c:
* textprop.c:
* unexalpha.c:
* w32console.c:
* w32fns.c:
* w32font.c:
* w32menu.c:
* w32term.c:
* w32uniscribe.c:
* window.c:
* xdisp.c:
* xfaces.c:
* xfns.c:
* xfont.c:
* xftfont.c:
* xmenu.c:
* xselect.c:
* xterm.c: Likewise.
* ebrowse.c: Remove P_ and __P.
* etags.c:
* movemail.c:
* pop.c:
* update-game-score.c: Likewise.
| author | Jan D <jan.h.d@swipnet.se> |
|---|---|
| date | Fri, 02 Jul 2010 14:19:53 +0200 |
| parents | bef5d1738c0b |
| children | aec1143e8d85 |
comparison
equal
deleted
inserted
replaced
| 109099:e16f43875a48 | 109100:2bc9a0c04c87 |
|---|---|
| 894 EMIT_TWO_BYTES (c3, c4); \ | 894 EMIT_TWO_BYTES (c3, c4); \ |
| 895 } while (0) | 895 } while (0) |
| 896 | 896 |
| 897 | 897 |
| 898 /* Prototypes for static functions. */ | 898 /* Prototypes for static functions. */ |
| 899 static void record_conversion_result P_ ((struct coding_system *coding, | 899 static void record_conversion_result (struct coding_system *coding, |
| 900 enum coding_result_code result)); | 900 enum coding_result_code result); |
| 901 static int detect_coding_utf_8 P_ ((struct coding_system *, | 901 static int detect_coding_utf_8 (struct coding_system *, |
| 902 struct coding_detection_info *info)); | 902 struct coding_detection_info *info); |
| 903 static void decode_coding_utf_8 P_ ((struct coding_system *)); | 903 static void decode_coding_utf_8 (struct coding_system *); |
| 904 static int encode_coding_utf_8 P_ ((struct coding_system *)); | 904 static int encode_coding_utf_8 (struct coding_system *); |
| 905 | 905 |
| 906 static int detect_coding_utf_16 P_ ((struct coding_system *, | 906 static int detect_coding_utf_16 (struct coding_system *, |
| 907 struct coding_detection_info *info)); | 907 struct coding_detection_info *info); |
| 908 static void decode_coding_utf_16 P_ ((struct coding_system *)); | 908 static void decode_coding_utf_16 (struct coding_system *); |
| 909 static int encode_coding_utf_16 P_ ((struct coding_system *)); | 909 static int encode_coding_utf_16 (struct coding_system *); |
| 910 | 910 |
| 911 static int detect_coding_iso_2022 P_ ((struct coding_system *, | 911 static int detect_coding_iso_2022 (struct coding_system *, |
| 912 struct coding_detection_info *info)); | 912 struct coding_detection_info *info); |
| 913 static void decode_coding_iso_2022 P_ ((struct coding_system *)); | 913 static void decode_coding_iso_2022 (struct coding_system *); |
| 914 static int encode_coding_iso_2022 P_ ((struct coding_system *)); | 914 static int encode_coding_iso_2022 (struct coding_system *); |
| 915 | 915 |
| 916 static int detect_coding_emacs_mule P_ ((struct coding_system *, | 916 static int detect_coding_emacs_mule (struct coding_system *, |
| 917 struct coding_detection_info *info)); | 917 struct coding_detection_info *info); |
| 918 static void decode_coding_emacs_mule P_ ((struct coding_system *)); | 918 static void decode_coding_emacs_mule (struct coding_system *); |
| 919 static int encode_coding_emacs_mule P_ ((struct coding_system *)); | 919 static int encode_coding_emacs_mule (struct coding_system *); |
| 920 | 920 |
| 921 static int detect_coding_sjis P_ ((struct coding_system *, | 921 static int detect_coding_sjis (struct coding_system *, |
| 922 struct coding_detection_info *info)); | 922 struct coding_detection_info *info); |
| 923 static void decode_coding_sjis P_ ((struct coding_system *)); | 923 static void decode_coding_sjis (struct coding_system *); |
| 924 static int encode_coding_sjis P_ ((struct coding_system *)); | 924 static int encode_coding_sjis (struct coding_system *); |
| 925 | 925 |
| 926 static int detect_coding_big5 P_ ((struct coding_system *, | 926 static int detect_coding_big5 (struct coding_system *, |
| 927 struct coding_detection_info *info)); | 927 struct coding_detection_info *info); |
| 928 static void decode_coding_big5 P_ ((struct coding_system *)); | 928 static void decode_coding_big5 (struct coding_system *); |
| 929 static int encode_coding_big5 P_ ((struct coding_system *)); | 929 static int encode_coding_big5 (struct coding_system *); |
| 930 | 930 |
| 931 static int detect_coding_ccl P_ ((struct coding_system *, | 931 static int detect_coding_ccl (struct coding_system *, |
| 932 struct coding_detection_info *info)); | 932 struct coding_detection_info *info); |
| 933 static void decode_coding_ccl P_ ((struct coding_system *)); | 933 static void decode_coding_ccl (struct coding_system *); |
| 934 static int encode_coding_ccl P_ ((struct coding_system *)); | 934 static int encode_coding_ccl (struct coding_system *); |
| 935 | 935 |
| 936 static void decode_coding_raw_text P_ ((struct coding_system *)); | 936 static void decode_coding_raw_text (struct coding_system *); |
| 937 static int encode_coding_raw_text P_ ((struct coding_system *)); | 937 static int encode_coding_raw_text (struct coding_system *); |
| 938 | 938 |
| 939 static void coding_set_source P_ ((struct coding_system *)); | 939 static void coding_set_source (struct coding_system *); |
| 940 static void coding_set_destination P_ ((struct coding_system *)); | 940 static void coding_set_destination (struct coding_system *); |
| 941 static void coding_alloc_by_realloc P_ ((struct coding_system *, EMACS_INT)); | 941 static void coding_alloc_by_realloc (struct coding_system *, EMACS_INT); |
| 942 static void coding_alloc_by_making_gap P_ ((struct coding_system *, | 942 static void coding_alloc_by_making_gap (struct coding_system *, |
| 943 EMACS_INT, EMACS_INT)); | 943 EMACS_INT, EMACS_INT); |
| 944 static unsigned char *alloc_destination P_ ((struct coding_system *, | 944 static unsigned char *alloc_destination (struct coding_system *, |
| 945 EMACS_INT, unsigned char *)); | 945 EMACS_INT, unsigned char *); |
| 946 static void setup_iso_safe_charsets P_ ((Lisp_Object)); | 946 static void setup_iso_safe_charsets (Lisp_Object); |
| 947 static unsigned char *encode_designation_at_bol P_ ((struct coding_system *, | 947 static unsigned char *encode_designation_at_bol (struct coding_system *, |
| 948 int *, int *, | 948 int *, int *, |
| 949 unsigned char *)); | 949 unsigned char *); |
| 950 static int detect_eol P_ ((const unsigned char *, | 950 static int detect_eol (const unsigned char *, |
| 951 EMACS_INT, enum coding_category)); | 951 EMACS_INT, enum coding_category); |
| 952 static Lisp_Object adjust_coding_eol_type P_ ((struct coding_system *, int)); | 952 static Lisp_Object adjust_coding_eol_type (struct coding_system *, int); |
| 953 static void decode_eol P_ ((struct coding_system *)); | 953 static void decode_eol (struct coding_system *); |
| 954 static Lisp_Object get_translation_table P_ ((Lisp_Object, int, int *)); | 954 static Lisp_Object get_translation_table (Lisp_Object, int, int *); |
| 955 static Lisp_Object get_translation P_ ((Lisp_Object, int *, int *)); | 955 static Lisp_Object get_translation (Lisp_Object, int *, int *); |
| 956 static int produce_chars P_ ((struct coding_system *, Lisp_Object, int)); | 956 static int produce_chars (struct coding_system *, Lisp_Object, int); |
| 957 static INLINE void produce_charset P_ ((struct coding_system *, int *, | 957 static INLINE void produce_charset (struct coding_system *, int *, |
| 958 EMACS_INT)); | 958 EMACS_INT); |
| 959 static void produce_annotation P_ ((struct coding_system *, EMACS_INT)); | 959 static void produce_annotation (struct coding_system *, EMACS_INT); |
| 960 static int decode_coding P_ ((struct coding_system *)); | 960 static int decode_coding (struct coding_system *); |
| 961 static INLINE int *handle_composition_annotation P_ ((EMACS_INT, EMACS_INT, | 961 static INLINE int *handle_composition_annotation (EMACS_INT, EMACS_INT, |
| 962 struct coding_system *, | 962 struct coding_system *, |
| 963 int *, EMACS_INT *)); | 963 int *, EMACS_INT *); |
| 964 static INLINE int *handle_charset_annotation P_ ((EMACS_INT, EMACS_INT, | 964 static INLINE int *handle_charset_annotation (EMACS_INT, EMACS_INT, |
| 965 struct coding_system *, | 965 struct coding_system *, |
| 966 int *, EMACS_INT *)); | 966 int *, EMACS_INT *); |
| 967 static void consume_chars P_ ((struct coding_system *, Lisp_Object, int)); | 967 static void consume_chars (struct coding_system *, Lisp_Object, int); |
| 968 static int encode_coding P_ ((struct coding_system *)); | 968 static int encode_coding (struct coding_system *); |
| 969 static Lisp_Object make_conversion_work_buffer P_ ((int)); | 969 static Lisp_Object make_conversion_work_buffer (int); |
| 970 static Lisp_Object code_conversion_restore P_ ((Lisp_Object)); | 970 static Lisp_Object code_conversion_restore (Lisp_Object); |
| 971 static INLINE int char_encodable_p P_ ((int, Lisp_Object)); | 971 static INLINE int char_encodable_p (int, Lisp_Object); |
| 972 static Lisp_Object make_subsidiaries P_ ((Lisp_Object)); | 972 static Lisp_Object make_subsidiaries (Lisp_Object); |
| 973 | 973 |
| 974 static void | 974 static void |
| 975 record_conversion_result (struct coding_system *coding, | 975 record_conversion_result (struct coding_system *coding, |
| 976 enum coding_result_code result) | 976 enum coding_result_code result) |
| 977 { | 977 { |
| 3440 } \ | 3440 } \ |
| 3441 } while (0) | 3441 } while (0) |
| 3442 | 3442 |
| 3443 /* Finish the current composition as invalid. */ | 3443 /* Finish the current composition as invalid. */ |
| 3444 | 3444 |
| 3445 static int finish_composition P_ ((int *, struct composition_status *)); | 3445 static int finish_composition (int *, struct composition_status *); |
| 3446 | 3446 |
| 3447 static int | 3447 static int |
| 3448 finish_composition (charbuf, cmp_status) | 3448 finish_composition (charbuf, cmp_status) |
| 3449 int *charbuf; | 3449 int *charbuf; |
| 3450 struct composition_status *cmp_status; | 3450 struct composition_status *cmp_status; |
