comparison src/dil/lexer/Lexer.d @ 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 d659f7aa055c
children 451ede0105e0
comparison
equal deleted inserted replaced
828:5b4d28d229e2 829:55c463c57d3a
17 import dil.Time; 17 import dil.Time;
18 import common; 18 import common;
19 19
20 import tango.stdc.stdlib : strtof, strtod, strtold; 20 import tango.stdc.stdlib : strtof, strtod, strtold;
21 import tango.stdc.errno : errno, ERANGE; 21 import tango.stdc.errno : errno, ERANGE;
22 import tango.core.Vararg;
22 23
23 public import dil.lexer.Funcs; 24 public import dil.lexer.Funcs;
24 25
25 /// The Lexer analyzes the characters of a source text and 26 /// The Lexer analyzes the characters of a source text and
26 /// produces a doubly-linked list of tokens. 27 /// produces a doubly-linked list of tokens.
2500 /// lineNum = the line number. 2501 /// lineNum = the line number.
2501 /// lineBegin = points to the first character of the current line. 2502 /// lineBegin = points to the first character of the current line.
2502 /// columnPos = points to the character where the error is located. 2503 /// columnPos = points to the character where the error is located.
2503 /// msg = the message. 2504 /// msg = the message.
2504 void error_(uint lineNum, char* lineBegin, char* columnPos, char[] msg, 2505 void error_(uint lineNum, char* lineBegin, char* columnPos, char[] msg,
2505 TypeInfo[] _arguments, Arg _argptr) 2506 TypeInfo[] _arguments, va_list _argptr)
2506 { 2507 {
2507 lineNum = this.errorLineNumber(lineNum); 2508 lineNum = this.errorLineNumber(lineNum);
2508 auto errorPath = this.filePaths.setPath; 2509 auto errorPath = this.filePaths.setPath;
2509 auto location = new Location(errorPath, lineNum, lineBegin, columnPos); 2510 auto location = new Location(errorPath, lineNum, lineBegin, columnPos);
2510 msg = Format(_arguments, _argptr, msg); 2511 msg = Format(_arguments, _argptr, msg);