changeset 829:55c463c57d3a

Fixed variable argument parameter issue.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Tue, 01 Jul 2008 22:52:54 +0200
parents 5b4d28d229e2
children aad6aeb5d12b
files src/dil/lexer/Lexer.d src/dil/parser/Parser.d
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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)
     {