[svn:parrot] r41121 - in trunk: include/parrot src/string

dukeleto at svn.parrot.org dukeleto at svn.parrot.org
Mon Sep 7 18:05:10 UTC 2009


Author: dukeleto
Date: Mon Sep  7 18:05:08 2009
New Revision: 41121
URL: https://trac.parrot.org/parrot/changeset/41121

Log:
[TT #887] Remove unused macro args in CHARSET_VALIDATE, jimmy++

Modified:
   trunk/include/parrot/charset.h
   trunk/src/string/api.c

Modified: trunk/include/parrot/charset.h
==============================================================================
--- trunk/include/parrot/charset.h	Mon Sep  7 17:50:47 2009	(r41120)
+++ trunk/include/parrot/charset.h	Mon Sep  7 18:05:08 2009	(r41121)
@@ -244,7 +244,7 @@
 #define CHARSET_COMPARE(interp, lhs, rhs) ((const CHARSET *)(lhs)->charset)->compare((interp), (lhs), (rhs))
 #define CHARSET_INDEX(interp, source, search, offset) ((source)->charset)->index((interp), (source), (search), (offset))
 #define CHARSET_RINDEX(interp, source, search, offset) ((source)->charset)->rindex((interp), (source), (search), (offset))
-#define CHARSET_VALIDATE(interp, source, offset) ((source)->charset)->validate((interp), (source))
+#define CHARSET_VALIDATE(interp, source) ((source)->charset)->validate((interp), (source))
 #define CHARSET_IS_CCLASS(interp, flags, source, offset) ((source)->charset)->is_cclass((interp), (flags), (source), (offset))
 #define CHARSET_FIND_CCLASS(interp, flags, source, offset, count) ((source)->charset)->find_cclass((interp), (flags), (source), (offset), (count))
 #define CHARSET_FIND_NOT_CCLASS(interp, flags, source, offset, count) ((source)->charset)->find_not_cclass((interp), (flags), (source), (offset), (count))

Modified: trunk/src/string/api.c
==============================================================================
--- trunk/src/string/api.c	Mon Sep  7 17:50:47 2009	(r41120)
+++ trunk/src/string/api.c	Mon Sep  7 18:05:08 2009	(r41121)
@@ -2836,7 +2836,7 @@
     if (encoding != result->encoding)
         Parrot_str_length(interp, result);
 
-    if (!CHARSET_VALIDATE(interp, result, 0))
+    if (!CHARSET_VALIDATE(interp, result))
         Parrot_ex_throw_from_c_args(interp, NULL,
             EXCEPTION_INVALID_STRING_REPRESENTATION, "Malformed string");
 


More information about the parrot-commits mailing list