Changeset

4033:17e299137287

util.encodings: Switch comment styles to build ok as ANSI C
author Matthew Wild <mwild1@gmail.com>
date Sun, 26 Dec 2010 05:45:35 +0000
parents 4032:ee7f2aa5dc3b
children 4034:bd8afa00a7f4
files util-src/encodings.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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 <string.h>
@@ -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