comparison src/c/urweb.c @ 488:5521bb0b4014

Get preliminary ThreadedBlog working
author Adam Chlipala <adamc@hcoop.net>
date Tue, 11 Nov 2008 15:12:24 -0500
parents c9566d49ecfe
children ae03d09043c1
comparison
equal deleted inserted replaced
487:33d5bd69da00 488:5521bb0b4014
555 ctx->page_front += len; 555 ctx->page_front += len;
556 556
557 return uw_unit_v; 557 return uw_unit_v;
558 } 558 }
559 559
560 uw_Basis_string uw_Basis_urlifyTime(uw_context ctx, uw_Basis_time t) {
561 return uw_Basis_urlifyInt(ctx, t);
562 }
563
560 uw_unit uw_Basis_urlifyString_w(uw_context ctx, uw_Basis_string s) { 564 uw_unit uw_Basis_urlifyString_w(uw_context ctx, uw_Basis_string s) {
561 uw_check(ctx, strlen(s) * 3); 565 uw_check(ctx, strlen(s) * 3);
562 566
563 for (; *s; s++) { 567 for (; *s; s++) {
564 char c = *s; 568 char c = *s;
611 uw_Basis_float r; 615 uw_Basis_float r;
612 616
613 r = atof(*s); 617 r = atof(*s);
614 *s = new_s; 618 *s = new_s;
615 return r; 619 return r;
620 }
621
622 uw_Basis_time uw_Basis_unurlifyTime(uw_context ctx, char **s) {
623 return uw_Basis_unurlifyInt(ctx, s);
616 } 624 }
617 625
618 static uw_Basis_string uw_unurlifyString_to(uw_context ctx, char *r, char *s) { 626 static uw_Basis_string uw_unurlifyString_to(uw_context ctx, char *r, char *s) {
619 char *s1, *s2; 627 char *s1, *s2;
620 int n; 628 int n;