]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Code perfectionism.
authorBruno Haible <bruno@clisp.org>
Fri, 2 Jun 2023 23:28:17 +0000 (01:28 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 2 Jun 2023 23:28:17 +0000 (01:28 +0200)
* gettext-tools/src/x-javascript.c (max): Remove unused macro.
(phase2_ungetc): Fix comment.

gettext-tools/src/x-javascript.c

index 815620861153f2e6b2b03ddad6f2bea054368145..f2807918f523914e2e3caff93f2bb1dc521cfc34 100644 (file)
@@ -56,9 +56,6 @@
 
 #define _(s) gettext(s)
 
-#undef max /* clean up after MSVC's <stdlib.h> */
-#define max(a,b) ((a) > (b) ? (a) : (b))
-
 #define SIZEOF(a) (sizeof(a) / sizeof(a[0]))
 
 /* The JavaScript aka ECMA-Script syntax is defined in ECMA-262
@@ -441,7 +438,7 @@ Please specify the source encoding through --from-code\n"),
     }
 }
 
-/* Supports max (9, UNINAME_MAX + 3) pushback characters.  */
+/* Supports 9 pushback characters.  */
 static void
 phase2_ungetc (int c)
 {