diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-08-03 18:53:20 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-08-03 18:53:20 -0400 |
commit | f946d43f10e2f78d179db30c3c9ae8dcc10f3c10 (patch) | |
tree | 96feb9219e03b0d172f13bf75f747e6f26efdefa /include | |
parent | 3e65e1558de55a1a47a62690b48159d92a4ed072 (diff) |
bool in Basis
Diffstat (limited to 'include')
-rw-r--r-- | include/lacweb.h | 9 | ||||
-rw-r--r-- | include/types.h | 6 |
2 files changed, 12 insertions, 3 deletions
diff --git a/include/lacweb.h b/include/lacweb.h index c2853cd7..0a425a31 100644 --- a/include/lacweb.h +++ b/include/lacweb.h @@ -40,13 +40,16 @@ void lw_Basis_attrifyString_w(lw_context, lw_Basis_string); char *lw_Basis_urlifyInt(lw_context, lw_Basis_int); char *lw_Basis_urlifyFloat(lw_context, lw_Basis_float); char *lw_Basis_urlifyString(lw_context, lw_Basis_string); +char *lw_Basis_urlifyBool(lw_context, lw_Basis_bool); void lw_Basis_urlifyInt_w(lw_context, lw_Basis_int); void lw_Basis_urlifyFloat_w(lw_context, lw_Basis_float); void lw_Basis_urlifyString_w(lw_context, lw_Basis_string); +void lw_Basis_urlifyBool_w(lw_context, lw_Basis_bool); -lw_Basis_int lw_unurlifyInt(char **); -lw_Basis_float lw_unurlifyFloat(char **); -lw_Basis_string lw_unurlifyString(lw_context, char **); +lw_Basis_int lw_Basis_unurlifyInt(lw_context, char **); +lw_Basis_float lw_Basis_unurlifyFloat(lw_context, char **); +lw_Basis_string lw_Basis_unurlifyString(lw_context, char **); +lw_Basis_bool lw_Basis_unurlifyBool(lw_context, char **); lw_Basis_string lw_Basis_strcat(lw_context, lw_Basis_string, lw_Basis_string); diff --git a/include/types.h b/include/types.h index 169952cb..d5d2b202 100644 --- a/include/types.h +++ b/include/types.h @@ -8,6 +8,12 @@ struct __lws_0 { typedef struct __lws_0 lw_unit; typedef lw_unit lw_Basis_unit; +enum lw_Basis_bool_enum { lw_Basis_False, lw_Basis_True }; + +typedef struct lw_Basis_bool { + enum lw_Basis_bool_enum tag; +} *lw_Basis_bool; + typedef struct lw_context *lw_context; typedef lw_Basis_string lw_Basis_xhtml; |