shithub: libmujs

Download patch

ref: f32bcea8f48f10357aca1e89a9068c22899c8f3e
parent: 7318098a6068e312c787eca834baef3daf03a642
author: Tor Andersson <tor.andersson@gmail.com>
date: Fri Jan 20 09:22:59 EST 2017

Avoid C++ comments.

--- a/jsdate.c
+++ b/jsdate.c
@@ -43,7 +43,7 @@
 
 static double DaylightSavingTA(double t)
 {
-	return 0; // TODO
+	return 0; /* TODO */
 }
 
 /* Helpers from the ECMA 262 specification */
@@ -303,7 +303,7 @@
 	if (H > 24 || M > 59 || S > 59) return NAN;
 	if (H == 24 && (M != 0 || S != 0 || ms != 0)) return NAN;
 
-	// TODO: DaylightSavingTA on local times
+	/* TODO: DaylightSavingTA on local times */
 	t = MakeDate(MakeDay(y, m-1, d), MakeTime(H, M, S, ms));
 	return t - tza;
 }
--- a/json.c
+++ b/json.c
@@ -98,7 +98,7 @@
 	jsY_initlex(J, "JSON", source);
 	jsonnext(J);
 	jsonvalue(J);
-	// TODO: reviver Walk()
+	/* TODO: reviver Walk() */
 }
 
 static void fmtnum(js_State *J, js_Buffer **sb, double n)
@@ -221,7 +221,7 @@
 	}
 	js_endtry(J);
 
-	// TODO: replacer()
+	/* TODO: replacer() */
 
 	if (js_isobject(J, -1) && !js_iscallable(J, -1)) {
 		js_Object *obj = js_toobject(J, -1);
@@ -272,7 +272,7 @@
 		if (n > 0) gap = buf;
 	}
 
-	// TODO: replacer
+	/* TODO: replacer */
 
 	if (js_isdefined(J, 1)) {
 		js_copy(J, 1);