comparison src/regex.c @ 2286:04bc9d2f42c7

[xemacs-hg @ 2004-09-20 19:18:55 by james] Mark all unused parameters as unused. Also eliminate some unneeded local variables.
author james
date Mon, 20 Sep 2004 19:20:08 +0000
parents 8e39301eac59
children ba4677f54a05
comparison
equal deleted inserted replaced
2285:914c5afaac33 2286:04bc9d2f42c7
80 /* Converts the pointer to the char to BEG-based offset from the start. */ 80 /* Converts the pointer to the char to BEG-based offset from the start. */
81 #define PTR_TO_OFFSET(d) (MATCHING_IN_FIRST_STRING \ 81 #define PTR_TO_OFFSET(d) (MATCHING_IN_FIRST_STRING \
82 ? (d) - string1 : (d) - (string2 - size1)) 82 ? (d) - string1 : (d) - (string2 - size1))
83 83
84 #else /* not emacs */ 84 #else /* not emacs */
85
86 #include "compiler.h" /* Get compiler-specific definitions like UNUSED */
85 87
86 /* If we are not linking with Emacs proper, 88 /* If we are not linking with Emacs proper,
87 we can't use the relocating allocator 89 we can't use the relocating allocator
88 even if config.h says that we can. */ 90 even if config.h says that we can. */
89 #undef REGEX_REL_ALLOC 91 #undef REGEX_REL_ALLOC
6961 6963
6962 /* Returns a message corresponding to an error code, ERRCODE, returned 6964 /* Returns a message corresponding to an error code, ERRCODE, returned
6963 from either regcomp or regexec. We don't use PREG here. */ 6965 from either regcomp or regexec. We don't use PREG here. */
6964 6966
6965 size_t 6967 size_t
6966 regerror (int errcode, const regex_t *preg, char *errbuf, 6968 regerror (int errcode, const regex_t *UNUSED (preg), char *errbuf,
6967 size_t errbuf_size) 6969 size_t errbuf_size)
6968 { 6970 {
6969 const char *msg; 6971 const char *msg;
6970 Bytecount msg_size; 6972 Bytecount msg_size;
6971 6973