Mercurial > urweb
comparison src/c/urweb.c @ 2209:0ca11d57c175
Cleans up interface (it's now a command line option) and renames project to "sqlcache" in the all-one-word style. Still has issues to do with concurrency, retrying transactions, and foreign function calls that either rely on state or have side effects.
author | Ziv Scully <ziv@mit.edu> |
---|---|
date | Sat, 31 May 2014 03:08:16 -0400 |
parents | cb74460f046a |
children | ef766ef6e242 |
comparison
equal
deleted
inserted
replaced
2208:cb74460f046a | 2209:0ca11d57c175 |
---|---|
1665 uw_write_unsafe(ctx, s); | 1665 uw_write_unsafe(ctx, s); |
1666 *ctx->page.front = 0; | 1666 *ctx->page.front = 0; |
1667 } | 1667 } |
1668 | 1668 |
1669 void uw_recordingStart(uw_context ctx) { | 1669 void uw_recordingStart(uw_context ctx) { |
1670 // TODO: remove following debug statement. | |
1671 uw_write(ctx, "<!--Recording started here-->"); | |
1672 ctx->recording = ctx->page.front; | 1670 ctx->recording = ctx->page.front; |
1673 } | 1671 } |
1674 | 1672 |
1675 char *uw_recordingRead(uw_context ctx) { | 1673 char *uw_recordingRead(uw_context ctx) { |
1676 char *recording = strdup(ctx->recording); | 1674 return strdup(ctx->recording); |
1677 // TODO: remove following debug statement. | |
1678 uw_write(ctx, "<!--Recording read here-->"); | |
1679 return recording; | |
1680 } | 1675 } |
1681 | 1676 |
1682 char *uw_Basis_attrifyInt(uw_context ctx, uw_Basis_int n) { | 1677 char *uw_Basis_attrifyInt(uw_context ctx, uw_Basis_int n) { |
1683 char *result; | 1678 char *result; |
1684 int len; | 1679 int len; |