diff options
author | 2008-01-14 02:47:47 +1000 | |
---|---|---|
committer | 2008-01-14 02:47:47 +1000 | |
commit | 87db9517e928c9007c66ed5b23836db2dad2b693 (patch) | |
tree | edfe373687a5afb9ba5360a456e3096d7bf2df85 /env_universal_common.c | |
parent | ab3502fc8b25469429af25a94306346af590428c (diff) |
Add lots of new code comments.
darcs-hash:20080113164747-75c98-9d0cefd27be7aef7ba60772616d9da7e6bb52912.gz
Diffstat (limited to 'env_universal_common.c')
-rw-r--r-- | env_universal_common.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/env_universal_common.c b/env_universal_common.c index 8c47e323..bafe25df 100644 --- a/env_universal_common.c +++ b/env_universal_common.c @@ -99,7 +99,7 @@ var_uni_entry_t; static void parse_message( wchar_t *msg, - connection_t *src ); + connection_t *src ); /** The table of all universal variables @@ -176,8 +176,10 @@ static char *iconv_wide_names_2[]= } ; - -wchar_t *utf2wcs( const char *in ) +/** + Convert utf-8 string to wide string + */ +static wchar_t *utf2wcs( const char *in ) { iconv_t cd=(iconv_t) -1; int i,j; @@ -287,7 +289,10 @@ wchar_t *utf2wcs( const char *in ) return out; } -char *wcs2utf( const wchar_t *in ) +/** + Convert wide string to utf-8 + */ +static char *wcs2utf( const wchar_t *in ) { iconv_t cd=(iconv_t) -1; int i,j; @@ -404,6 +409,9 @@ void env_universal_common_destroy() hash_destroy( &env_universal_var ); } +/** + Read one byte of date form the specified connection + */ static int read_byte( connection_t *src ) { @@ -740,6 +748,9 @@ void try_send_all( connection_t *c ) } } +/** + Escape specified string + */ static wchar_t *full_escape( const wchar_t *in ) { string_buffer_t out; |