comparison src/c/urweb.c @ 1295:929981850d9d

'tryDml' works with Postgres
author Adam Chlipala <adam@chlipala.net>
date Tue, 07 Sep 2010 09:06:13 -0400
parents b4480a56cab7
children 714e8b84221b
comparison
equal deleted inserted replaced
1294:b4480a56cab7 1295:929981850d9d
2173 ctx->heap.front += len; 2173 ctx->heap.front += len;
2174 2174
2175 return s; 2175 return s;
2176 } 2176 }
2177 2177
2178 uw_Basis_string uw_dup_and_clear_error_message(uw_context ctx) {
2179 if (ctx->error_message[0]) {
2180 char *s = uw_strdup(ctx, ctx->error_message);
2181 ctx->error_message[0] = 0;
2182 return s;
2183 } else
2184 return NULL;
2185 }
2186
2178 uw_Basis_string uw_maybe_strdup(uw_context ctx, uw_Basis_string s1) { 2187 uw_Basis_string uw_maybe_strdup(uw_context ctx, uw_Basis_string s1) {
2179 if (s1) 2188 if (s1)
2180 return uw_strdup(ctx, s1); 2189 return uw_strdup(ctx, s1);
2181 else 2190 else
2182 return NULL; 2191 return NULL;