From 4d59ebf6a33329d799a26563afbf6cfc79f9cf93 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Fri, 13 Mar 2009 00:35:03 +0100
Subject: [PATCH] Enabled the syntax checker (still no type checking) for
 %[]-syntax.

Rev: src/modules/sprintf/sprintf.c:1.156
---
 src/modules/sprintf/sprintf.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/modules/sprintf/sprintf.c b/src/modules/sprintf/sprintf.c
index 84bc46085f..3c0c65d4cf 100644
--- a/src/modules/sprintf/sprintf.c
+++ b/src/modules/sprintf/sprintf.c
@@ -2,7 +2,7 @@
 || This file is part of Pike. For copyright information see COPYRIGHT.
 || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
 || for more information.
-|| $Id: sprintf.c,v 1.155 2009/03/12 17:30:33 grubba Exp $
+|| $Id: sprintf.c,v 1.156 2009/03/12 23:35:03 grubba Exp $
 */
 
 /* TODO: use ONERROR to cleanup fsp */
@@ -2021,8 +2021,6 @@ static int push_sprintf_argument_types(PCHARP format, ptrdiff_t format_len,
       case '[':
 	/* FIXME: !!!!!!!!!!!!!!!!!!!!!!!!!!!!! */
 	if (ret > 0) ret = 0;	/* FAILURE! */
-	continue;
-#if 0
 	INC_PCHARP(a,1);
 	if(EXTRACT_PCHARP(a)=='*') {
 	  push_int_type(0, num_arg);
@@ -2041,7 +2039,6 @@ static int push_sprintf_argument_types(PCHARP format, ptrdiff_t format_len,
 		   0, "Not enough arguments to [%d].", tmp);
 	  ret = -1;
 	}
-#endif /* 0 */
 	/* arg = argp+tmp; */
 	continue;
 	
-- 
GitLab