openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

cint_yy.h (1081B)


      1 /* 
      2  * 
      3  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      4  * 
      5  * Copyright 2007-2019 Broadcom Inc. All rights reserved.
      6  *
      7  * File:        cint_yy.h
      8  * Purpose:     CINT parser interface
      9  */
     10 
     11 #ifndef   _CINT_YY_H_
     12 #define   _CINT_YY_H_
     13 
     14 /* STATIC and CONST are used by both the SDK build system, and the C
     15    scanner, and interacts badly. The build system definitions are not
     16    needed here. */
     17 #ifdef STATIC
     18 #undef STATIC
     19 #endif
     20 
     21 #ifdef CONST
     22 #undef CONST
     23 #endif
     24 
     25 #include "cint_ast.h"
     26 #define YYSTYPE cint_ast_t*
     27 
     28 /* FLEX interfaces */
     29 #define YY_FATAL_ERROR(msg) cint_cparser_fatal_error(msg)
     30 #define cint_c_alloc(size,scanner) cint_cparser_alloc(size)
     31 #define cint_c_free(ptr,scanner) cint_cparser_free(ptr)
     32 #define cint_c_realloc(ptr,size,scanner) cint_cparser_realloc(ptr,size)
     33 #define ECHO (void) cint_cparser_message(yytext, yyleng)
     34 
     35 
     36 /* BISON interfaces */
     37 #define YYMALLOC cint_cparser_alloc
     38 #define YYFREE cint_cparser_free
     39 #define YYCOPY cint_cparser_memcpy
     40 
     41 #endif /* _CINT_YY_H_ */