# HG changeset patch # User Matthew Wild # Date 1293342335 0 # Node ID 4ae4b2c0e99dff615d016f62a9207e14516d0535 # Parent 1b81df4042c00138d0bb55c2b536ef7db0401a49 util.encodings: Switch comment styles to build ok as ANSI C diff -r 1b81df4042c0 -r 4ae4b2c0e99d util-src/encodings.c --- a/util-src/encodings.c Sun Dec 26 05:37:27 2010 +0000 +++ b/util-src/encodings.c Sun Dec 26 05:45:35 2010 +0000 @@ -12,7 +12,7 @@ * Lua library for base64, stringprep and idna encodings */ -// Newer MSVC compilers deprecate strcpy as unsafe, but we use it in a safe way +/* Newer MSVC compilers deprecate strcpy as unsafe, but we use it in a safe way */ #define _CRT_SECURE_NO_DEPRECATE #include @@ -135,7 +135,7 @@ s = lua_tolstring(L, 1, &len); if (len >= 1024) { lua_pushnil(L); - return 1; // TODO return error message + return 1; /* TODO return error message */ } strcpy(string, s); ret = stringprep(string, 1024, (Stringprep_profile_flags)0, profile); @@ -144,7 +144,7 @@ return 1; } else { lua_pushnil(L); - return 1; // TODO return error message + return 1; /* TODO return error message */ } } @@ -261,7 +261,7 @@ } else { lua_pushnil(L); idn_free(output); - return 1; // TODO return error message + return 1; /* TODO return error message */ } } @@ -278,7 +278,7 @@ } else { lua_pushnil(L); idn_free(output); - return 1; // TODO return error message + return 1; /* TODO return error message */ } } #else