GCC Middle and Back End API Reference
gengtype-lex.l File Reference
#include "bconfig.h"
#include "system.h"
#include "gengtype.h"
Include dependency graph for gengtype-lex.l:

Macros

#define malloc   xmalloc
 
#define realloc   xrealloc
 
#define YY_DECL   int yylex (const char **yylval)
 
#define yyterminate()
 

Functions

static void update_lineno (const char *l, size_t len)
 
int yylex (void)
 
void yybegin (const char *fname)
 
void yyend (void)
 

Variables

struct fileloc lexer_line
 
int lexer_toplevel_done
 

Macro Definition Documentation

◆ malloc

#define malloc   xmalloc
-*- indented-text -*-
Process source files and output type information. Copyright (C) 2002-2025 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>.

◆ realloc

#define realloc   xrealloc

Referenced by init_num_threads().

◆ YY_DECL

#define YY_DECL   int yylex (const char **yylval)

◆ yyterminate

#define yyterminate ( )
Value:
return EOF_TOKEN
@ EOF_TOKEN
Definition gengtype.h:465

Function Documentation

◆ update_lineno()

static void update_lineno ( const char * l,
size_t len )
static

References lexer_line.

◆ yybegin()

void yybegin ( const char * fname)

References fopen, input_file_by_name(), lexer_line, and NULL.

Referenced by parse_file(), and yylex().

◆ yyend()

void yyend ( void )

Referenced by parse_file(), and yylex().

◆ yylex()

int yylex ( void )

Referenced by token(), and yylex().

Variable Documentation

◆ lexer_line

◆ lexer_toplevel_done

int lexer_toplevel_done
Variables used to communicate between the lexer and the parser.

Referenced by parse_file().