| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * (C) Copyright David Gibson <dwg@au1.ibm.com>, IBM Corporation. 2005. |
|---|
| 3 | | - * |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or |
|---|
| 6 | | - * modify it under the terms of the GNU General Public License as |
|---|
| 7 | | - * published by the Free Software Foundation; either version 2 of the |
|---|
| 8 | | - * License, or (at your option) any later version. |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 11 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 13 | | - * General Public License for more details. |
|---|
| 14 | | - * |
|---|
| 15 | | - * You should have received a copy of the GNU General Public License |
|---|
| 16 | | - * along with this program; if not, write to the Free Software |
|---|
| 17 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
|---|
| 18 | | - * USA |
|---|
| 19 | 4 | */ |
|---|
| 20 | 5 | |
|---|
| 21 | 6 | %option noyywrap nounput noinput never-interactive |
|---|
| .. | .. |
|---|
| 212 | 197 | <*>\&{LABEL} { /* label reference */ |
|---|
| 213 | 198 | DPRINT("Ref: %s\n", yytext+1); |
|---|
| 214 | 199 | yylval.labelref = xstrdup(yytext+1); |
|---|
| 215 | | - return DT_REF; |
|---|
| 200 | + return DT_LABEL_REF; |
|---|
| 216 | 201 | } |
|---|
| 217 | 202 | |
|---|
| 218 | 203 | <*>"&{/"{PATHCHAR}*\} { /* new-style path reference */ |
|---|
| 219 | 204 | yytext[yyleng-1] = '\0'; |
|---|
| 220 | 205 | DPRINT("Ref: %s\n", yytext+2); |
|---|
| 221 | 206 | yylval.labelref = xstrdup(yytext+2); |
|---|
| 222 | | - return DT_REF; |
|---|
| 207 | + return DT_PATH_REF; |
|---|
| 223 | 208 | } |
|---|
| 224 | 209 | |
|---|
| 225 | 210 | <BYTESTRING>[0-9a-fA-F]{2} { |
|---|