summaryrefslogtreecommitdiff
path: root/src/c
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2010-01-12 16:09:13 -0500
committerGravatar Adam Chlipala <adamc@hcoop.net>2010-01-12 16:09:13 -0500
commit7ed5deb4aa0f7c9a61133a489f0d00e73d95c225 (patch)
treee4130a31cf93875c66cb452ebcf893a4d2254f25 /src/c
parent3d4fdaf97e3ed4a0f1904be5079f8e71784a4cd5 (diff)
Allow escaped backslashes in literals; conversion betwixt int and char
Diffstat (limited to 'src/c')
-rw-r--r--src/c/urweb.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c
index 006e2e28..8ccecdaa 100644
--- a/src/c/urweb.c
+++ b/src/c/urweb.c
@@ -3375,6 +3375,14 @@ uw_Basis_char uw_Basis_toupper(uw_context ctx, uw_Basis_char c) {
return toupper(c);
}
+uw_Basis_int uw_Basis_ord(uw_context ctx, uw_Basis_char c) {
+ return (unsigned char)c;
+}
+
+uw_Basis_char uw_Basis_chr(uw_context ctx, uw_Basis_int n) {
+ return n;
+}
+
uw_Basis_string uw_Basis_currentUrl(uw_context ctx) {
return ctx->current_url;
}