Mercurial > urweb
comparison src/c/urweb.c @ 295:1afa94582275
Reading ints and floats from SQL
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 07 Sep 2008 12:56:46 -0400 |
parents | 711aad3869d1 |
children | 5dc11235129d |
comparison
equal
deleted
inserted
replaced
294:df02b09ff1ed | 295:1afa94582275 |
---|---|
222 lw_check(ctx, strlen(s) + 1); | 222 lw_check(ctx, strlen(s) + 1); |
223 lw_write_unsafe(ctx, s); | 223 lw_write_unsafe(ctx, s); |
224 *ctx->page_front = 0; | 224 *ctx->page_front = 0; |
225 } | 225 } |
226 | 226 |
227 | |
228 #define INTS_MAX 50 | |
229 #define FLOATS_MAX 100 | |
230 | 227 |
231 char *lw_Basis_attrifyInt(lw_context ctx, lw_Basis_int n) { | 228 char *lw_Basis_attrifyInt(lw_context ctx, lw_Basis_int n) { |
232 char *result; | 229 char *result; |
233 int len; | 230 int len; |
234 lw_check_heap(ctx, INTS_MAX); | 231 lw_check_heap(ctx, INTS_MAX); |