X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Fre-engine-Hooks.git;a=blobdiff_plain;f=src%2F5013007%2Fdquote_static.c;fp=src%2F5013007%2Fdquote_static.c;h=0000000000000000000000000000000000000000;hp=fbd8c3824deadfe4a0b5ffce8e94de09b54be5f6;hb=9df8f8d0e7161039f309ff2cc7c3c91367dc1f6e;hpb=3f6667898e8cbd21ca5c75f79f3fd1d27c44a96a diff --git a/src/5013007/dquote_static.c b/src/5013007/dquote_static.c deleted file mode 100644 index fbd8c38..0000000 --- a/src/5013007/dquote_static.c +++ /dev/null @@ -1,52 +0,0 @@ -/* dquote_static.c - * - * This file contains static inline functions that are related to - * parsing double-quotish expressions, but are used in more than - * one file. - * - * It is currently #included by regcomp.c and toke.c. -*/ - -/* - - regcurly - a little FSA that accepts {\d+,?\d*} - Pulled from regcomp.c. - */ - -/* embed.pl doesn't yet know how to handle static inline functions, so - manually decorate it here with gcc-style attributes. -*/ -PERL_STATIC_INLINE I32 -regcurly(register const char *s) - __attribute__warn_unused_result__ - __attribute__pure__ - __attribute__nonnull__(1); - -PERL_STATIC_INLINE I32 -regcurly(register const char *s) -{ - assert(s); - - if (*s++ != '{') - return FALSE; - if (!isDIGIT(*s)) - return FALSE; - while (isDIGIT(*s)) - s++; - if (*s == ',') { - s++; - while (isDIGIT(*s)) - s++; - } - if (*s != '}') - return FALSE; - return TRUE; -} -/* - * Local variables: - * c-indentation-style: bsd - * c-basic-offset: 4 - * indent-tabs-mode: t - * End: - * - * ex: set ts=8 sts=4 sw=4 noet: - */