Mercurial > urweb
annotate include/types.h @ 761:16b34dc2e29c
<input type='hidden'>
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 30 Apr 2009 14:48:23 -0400 |
parents | fa2019a63ea4 |
children | 7f653298dd66 |
rev | line source |
---|---|
adamc@436 | 1 #include <time.h> |
adamc@436 | 2 |
adamc@311 | 3 typedef long long uw_Basis_int; |
adamc@311 | 4 typedef double uw_Basis_float; |
adamc@311 | 5 typedef char* uw_Basis_string; |
adamc@436 | 6 typedef time_t uw_Basis_time; |
adamc@737 | 7 typedef struct { |
adamc@737 | 8 size_t size; |
adamc@737 | 9 char *data; |
adamc@737 | 10 } uw_Basis_blob; |
adamc@102 | 11 |
adamc@311 | 12 struct __uws_0 { |
adamc@102 | 13 }; |
adamc@102 | 14 |
adamc@311 | 15 typedef struct __uws_0 uw_unit; |
adamc@311 | 16 typedef uw_unit uw_Basis_unit; |
adamc@117 | 17 |
adamc@311 | 18 typedef enum uw_Basis_bool { uw_Basis_False, uw_Basis_True } uw_Basis_bool; |
adamc@186 | 19 |
adamc@311 | 20 typedef struct uw_context *uw_context; |
adamc@117 | 21 |
adamc@311 | 22 typedef uw_Basis_string uw_Basis_xhtml; |
adamc@311 | 23 typedef uw_Basis_string uw_Basis_page; |
adamc@757 | 24 typedef uw_Basis_string uw_Basis_xbody; |
adamc@721 | 25 typedef uw_Basis_string uw_Basis_css_class; |
adamc@682 | 26 |
adamc@682 | 27 typedef unsigned uw_Basis_client; |
adamc@682 | 28 typedef struct { |
adamc@682 | 29 unsigned cli, chn; |
adamc@682 | 30 } uw_Basis_channel; |
adamc@167 | 31 |
adamc@737 | 32 typedef struct uw_Basis_file { |
adamc@740 | 33 uw_Basis_string name, type; |
adamc@737 | 34 uw_Basis_blob data; |
adamc@737 | 35 } uw_Basis_file; |
adamc@737 | 36 |
adamc@741 | 37 typedef enum { SUCCESS, FATAL, BOUNDED_RETRY, UNLIMITED_RETRY, RETURN_BLOB } failure_kind; |
adamc@295 | 38 |
adamc@756 | 39 typedef struct input *uw_input; |
adamc@295 | 40 |
adamc@295 | 41 #define INTS_MAX 50 |
adamc@295 | 42 #define FLOATS_MAX 100 |
adamc@436 | 43 #define TIMES_MAX 100 |
adamc@668 | 44 |