Compatibility fix for old GCC versions. - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
diff options
context:
space:
mode:
authorMike Pall <mike>2013年08月03日 14:15:17 +0200
committerMike Pall <mike>2013年08月03日 14:15:17 +0200
commit99d588b06a0972f3ea84cad528004891ea8bc0e3 (patch)
tree5c32940b3b92db2650ee224bbf6cad8b6fc5c63a
parent6a878b04413b0b02412399aaa9dd8f3767a193f7 (diff)
downloadgsl-shell-99d588b06a0972f3ea84cad528004891ea8bc0e3.tar.gz
Compatibility fix for old GCC versions.
Diffstat
-rw-r--r--src/lj_cparse.c 20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lj_cparse.c b/src/lj_cparse.c
index 107c0381..8d111cc9 100644
--- a/src/lj_cparse.c
+++ b/src/lj_cparse.c
@@ -57,14 +57,22 @@ static LJ_AINLINE int cp_iseol(CPChar c)
return (c == '\n' || c == '\r');
}
-static LJ_AINLINE CPChar cp_get(CPState *cp);
-
/* Peek next raw character. */
static LJ_AINLINE CPChar cp_rawpeek(CPState *cp)
{
return (CPChar)(uint8_t)(*cp->p);
}
+static LJ_NOINLINE CPChar cp_get_bs(CPState *cp);
+
+/* Get next character. */
+static LJ_AINLINE CPChar cp_get(CPState *cp)
+{
+ cp->c = (CPChar)(uint8_t)(*cp->p++);
+ if (LJ_LIKELY(cp->c != '\\')) return cp->c;
+ return cp_get_bs(cp);
+}
+
/* Transparently skip backslash-escaped line breaks. */
static LJ_NOINLINE CPChar cp_get_bs(CPState *cp)
{
@@ -77,14 +85,6 @@ static LJ_NOINLINE CPChar cp_get_bs(CPState *cp)
return cp_get(cp);
}
-/* Get next character. */
-static LJ_AINLINE CPChar cp_get(CPState *cp)
-{
- cp->c = (CPChar)(uint8_t)(*cp->p++);
- if (LJ_LIKELY(cp->c != '\\')) return cp->c;
- return cp_get_bs(cp);
-}
-
/* Grow save buffer. */
static LJ_NOINLINE void cp_save_grow(CPState *cp, CPChar c)
{
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月15日 11:10:58 +0000

AltStyle によって変換されたページ (->オリジナル) /