GCC Middle and Back End API Reference
gengtype-lex.l File Reference
#include "bconfig.h"
#include "system.h"
#include "gengtype.h"

Macros

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

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-2024 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 ( )    return EOF_TOKEN

Function Documentation

◆ update_lineno()

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

References lexer_line, and fileloc::line.

◆ yybegin()

void yybegin ( const char * fname)

◆ yyend()

void yyend ( void )

References ggc_alloc().

Referenced by parse_file().

◆ yylex()

int yylex ( void )

Referenced by token().

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().