mirror of
https://github.com/NixOS/nix
synced 2025-06-29 19:03:16 +02:00
demoing other error levels than warn/error; rename line and file fields in errPos
This commit is contained in:
parent
3d5b1032a1
commit
4697552948
4 changed files with 103 additions and 31 deletions
|
@ -22,16 +22,16 @@ typedef enum {
|
|||
|
||||
struct ErrPos
|
||||
{
|
||||
int lineNumber;
|
||||
int line;
|
||||
int column;
|
||||
string nixFile;
|
||||
string file;
|
||||
|
||||
template <class P>
|
||||
ErrPos& operator=(const P &pos)
|
||||
{
|
||||
lineNumber = pos.line;
|
||||
line = pos.line;
|
||||
column = pos.column;
|
||||
nixFile = pos.file;
|
||||
file = pos.file;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue