comparison src/c/urweb.c @ 1404:82b204f20026

Patch from Vladimir Shabanov to support implicit passing of 'time' values from server to client
author Adam Chlipala <adam@chlipala.net>
date Thu, 20 Jan 2011 10:40:40 -0500
parents d6ea63612909
children 7d963b8019e6
comparison
equal deleted inserted replaced
1403:860c245a7c4d 1404:82b204f20026
1769 return uw_unit_v; 1769 return uw_unit_v;
1770 } 1770 }
1771 1771
1772 uw_Basis_string uw_Basis_urlifyTime(uw_context ctx, uw_Basis_time t) { 1772 uw_Basis_string uw_Basis_urlifyTime(uw_context ctx, uw_Basis_time t) {
1773 return uw_Basis_urlifyInt(ctx, (uw_Basis_int)t.seconds * 1000000 + t.microseconds); 1773 return uw_Basis_urlifyInt(ctx, (uw_Basis_int)t.seconds * 1000000 + t.microseconds);
1774 }
1775
1776 uw_unit uw_Basis_urlifyTime_w(uw_context ctx, uw_Basis_time t) {
1777 return uw_Basis_urlifyInt_w(ctx, (uw_Basis_int)t.seconds * 1000000 + t.microseconds);
1774 } 1778 }
1775 1779
1776 uw_unit uw_Basis_urlifyString_w(uw_context ctx, uw_Basis_string s) { 1780 uw_unit uw_Basis_urlifyString_w(uw_context ctx, uw_Basis_string s) {
1777 if (s[0] == '\0') { 1781 if (s[0] == '\0') {
1778 uw_check(ctx, 1); 1782 uw_check(ctx, 1);