diff options
Diffstat (limited to 'src/grecs-locus.h')
-rw-r--r-- | src/grecs-locus.h | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/src/grecs-locus.h b/src/grecs-locus.h deleted file mode 100644 index b5573fd..0000000 --- a/src/grecs-locus.h +++ /dev/null | |||
@@ -1,57 +0,0 @@ | |||
1 | /* grecs - Gray's Extensible Configuration System | ||
2 | Copyright (C) 2007-2016 Sergey Poznyakoff | ||
3 | |||
4 | Grecs is free software; you can redistribute it and/or modify it | ||
5 | under the terms of the GNU General Public License as published by the | ||
6 | Free Software Foundation; either version 3 of the License, or (at your | ||
7 | option) any later version. | ||
8 | |||
9 | Grecs is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License along | ||
15 | with Grecs. If not, see <http://www.gnu.org/licenses/>. */ | ||
16 | |||
17 | #define YYLTYPE grecs_locus_t | ||
18 | |||
19 | #define YYLLOC_DEFAULT(Current, Rhs, N) \ | ||
20 | do { \ | ||
21 | if (N) { \ | ||
22 | (Current).beg = YYRHSLOC(Rhs, 1).beg; \ | ||
23 | (Current).end = YYRHSLOC(Rhs, N).end; \ | ||
24 | } else { \ | ||
25 | (Current).beg = YYRHSLOC(Rhs, 0).end; \ | ||
26 | (Current).end = (Current).beg; \ | ||
27 | } \ | ||
28 | } while (0) | ||
29 | |||
30 | #define YY_LOCATION_PRINT(File, Loc) do { \ | ||
31 | if ((Loc).beg.col == 0) \ | ||
32 | fprintf(File, "%s:%u", \ | ||
33 | (Loc).beg.file, \ | ||
34 | (Loc).beg.line); \ | ||
35 | else if (strcmp((Loc).beg.file, (Loc).end.file)) \ | ||
36 | fprintf(File, "%s:%u.%u-%s:%u.%u", \ | ||
37 | (Loc).beg.file, \ | ||
38 | (Loc).beg.line, (Loc).beg.col, \ | ||
39 | (Loc).end.file, \ | ||
40 | (Loc).end.line, (Loc).end.col); \ | ||
41 | else if ((Loc).beg.line != (Loc).end.line) \ | ||
42 | fprintf(File, "%s:%u.%u-%u.%u", \ | ||
43 | (Loc).beg.file, \ | ||
44 | (Loc).beg.line, (Loc).beg.col, \ | ||
45 | (Loc).end.line, (Loc).end.col); \ | ||
46 | else if ((Loc).beg.col != (Loc).end.col) \ | ||
47 | fprintf(File, "%s:%u.%u-%u", \ | ||
48 | (Loc).beg.file, \ | ||
49 | (Loc).beg.line, (Loc).beg.col, \ | ||
50 | (Loc).end.col); \ | ||
51 | else \ | ||
52 | fprintf(File, "%s:%u.%u", \ | ||
53 | (Loc).beg.file, \ | ||
54 | (Loc).beg.line, \ | ||
55 | (Loc).beg.col); \ | ||
56 | } while (0) | ||
57 | |||