From 019c4cb42cec699fcdb4bc649410c76e8c4ab4c7 Mon Sep 17 00:00:00 2001 From: "zik.saleeba" Date: Sat, 16 Mar 2013 07:42:55 +0000 Subject: [PATCH] Patch from christophe.foucher added. Issue #168 git-svn-id: http://picoc.googlecode.com/svn/trunk@600 21eae674-98b7-11dd-bd71-f92a316d2d60 --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.c b/parse.c index 32b182f..4533a46 100644 --- a/parse.c +++ b/parse.c @@ -75,7 +75,7 @@ struct Value *ParseFunctionDefinition(struct ParseState *Parser, struct ValueTyp ParserCopy(&ParamParser, Parser); ParamCount = ParseCountParams(Parser); if (ParamCount > PARAMETER_MAX) - ProgramFail(Parser, "too many parameters"); + ProgramFail(Parser, "too many parameters (%d allowed)", PARAMETER_MAX); FuncValue = VariableAllocValueAndData(pc, Parser, sizeof(struct FuncDef) + sizeof(struct ValueType *) * ParamCount + sizeof(const char *) * ParamCount, FALSE, NULL, TRUE); FuncValue->Typ = &pc->FunctionType;