# HG changeset patch # User Aziz K?ksal # Date 1214945574 -7200 # Node ID 55c463c57d3a2ea1b47f6c47a7268ce8409e7f29 # Parent 5b4d28d229e2d930b68f64233b568f9af03d9092 Fixed variable argument parameter issue. diff -r 5b4d28d229e2 -r 55c463c57d3a src/dil/lexer/Lexer.d --- a/src/dil/lexer/Lexer.d Sat Jun 07 14:57:14 2008 +0200 +++ b/src/dil/lexer/Lexer.d Tue Jul 01 22:52:54 2008 +0200 @@ -19,6 +19,7 @@ import tango.stdc.stdlib : strtof, strtod, strtold; import tango.stdc.errno : errno, ERANGE; +import tango.core.Vararg; public import dil.lexer.Funcs; @@ -2502,7 +2503,7 @@ /// columnPos = points to the character where the error is located. /// msg = the message. void error_(uint lineNum, char* lineBegin, char* columnPos, char[] msg, - TypeInfo[] _arguments, Arg _argptr) + TypeInfo[] _arguments, va_list _argptr) { lineNum = this.errorLineNumber(lineNum); auto errorPath = this.filePaths.setPath; diff -r 5b4d28d229e2 -r 55c463c57d3a src/dil/parser/Parser.d --- a/src/dil/parser/Parser.d Sat Jun 07 14:57:14 2008 +0200 +++ b/src/dil/parser/Parser.d Tue Jul 01 22:52:54 2008 +0200 @@ -20,6 +20,8 @@ import dil.Unicode; import common; +import tango.core.Vararg; + /// The Parser produces a full parse tree by examining /// the list of tokens provided by the Lexer. class Parser @@ -4120,7 +4122,7 @@ /// Params: /// token = used to get the location of where the error is. /// formatMsg = the compiler error message. - void error_(Token* token, char[] formatMsg, TypeInfo[] _arguments, Arg _argptr) + void error_(Token* token, char[] formatMsg, TypeInfo[] _arguments, va_list _argptr) { if (trying) {