diff options
author | Nathan Angelacos <nangel@alpinelinux.org> | 2008-04-14 23:05:31 +0000 |
---|---|---|
committer | Nathan Angelacos <nangel@alpinelinux.org> | 2008-04-14 23:05:31 +0000 |
commit | 03b211cbcbdba92392233491439416fefcc5e9b3 (patch) | |
tree | cce02c0cc99b6cb9a7a178992de86e27c00c967d /src | |
parent | eb2cf24032143f7a918d950dd9851291281d4138 (diff) | |
download | haserl-03b211cbcbdba92392233491439416fefcc5e9b3.tar.bz2 haserl-03b211cbcbdba92392233491439416fefcc5e9b3.tar.xz |
RC2 commit
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 11 | ||||
-rw-r--r-- | src/h_bash.c | 9 |
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)); } } |