summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNathan Angelacos <nangel@alpinelinux.org>2008-04-14 23:05:31 +0000
committerNathan Angelacos <nangel@alpinelinux.org>2008-04-14 23:05:31 +0000
commit03b211cbcbdba92392233491439416fefcc5e9b3 (patch)
treecce02c0cc99b6cb9a7a178992de86e27c00c967d /src
parenteb2cf24032143f7a918d950dd9851291281d4138 (diff)
downloadhaserl-03b211cbcbdba92392233491439416fefcc5e9b3.tar.bz2
haserl-03b211cbcbdba92392233491439416fefcc5e9b3.tar.xz
RC2 commit
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am11
-rw-r--r--src/h_bash.c9
2 files changed, 16 insertions, 4 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 66277a8..5d38878 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -53,3 +53,14 @@ install-strip:
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+
+
+#--------- Unit Tests ----------------------
+#TESTS = utest_common
+
+#check_PROGRAMS = utest_common
+
+#utest_common: utest_common.c
+
+#--------- End Unit Tests -------------------
+
diff --git a/src/h_bash.c b/src/h_bash.c
index 46efed8..dcb371c 100644
--- a/src/h_bash.c
+++ b/src/h_bash.c
@@ -293,10 +293,10 @@ bash_case (buffer_t * buf, char *str, size_t len)
static char case_start[] = "case ";
static char case_end[] = " in\n";
/*
- create a bogus case condition, nul+esc+eof, so nl+;;+nl
- can be prepended to each when/otherwise/endcase, which
- eliminates the need for ;; or <% ;; %> in the page source
- */
+ create a bogus case condition, nul+esc+eof, so nl+;;+nl
+ can be prepended to each when/otherwise/endcase, which
+ eliminates the need for ;; or <% ;; %> in the page source
+ */
static char case_bogus[] = "\"\\000\\040\\004\") :\n";
if (len == 0)
@@ -308,6 +308,7 @@ bash_case (buffer_t * buf, char *str, size_t len)
buffer_add (buf, case_start, strlen (case_start));
buffer_add (buf, str, len);
buffer_add (buf, case_end, strlen (case_end));
+ buffer_add (buf, case_bogus, strlen (case_bogus));
}
}