OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [binutils/] [windmc.h] - Diff between revs 156 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 156 Rev 816
/* windmc.h -- header file for windmc program.
/* windmc.h -- header file for windmc program.
   Copyright 2007
   Copyright 2007
   Free Software Foundation, Inc.
   Free Software Foundation, Inc.
   Written by Kai Tietz, Onevision.
   Written by Kai Tietz, Onevision.
 
 
   This file is part of GNU Binutils.
   This file is part of GNU Binutils.
 
 
   This program is free software; you can redistribute it and/or modify
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 3 of the License, or
   the Free Software Foundation; either version 3 of the License, or
   (at your option) any later version.
   (at your option) any later version.
 
 
   This program is distributed in the hope that it will be useful,
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   GNU General Public License for more details.
 
 
   You should have received a copy of the GNU General Public License
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
   02110-1301, USA.  */
   02110-1301, USA.  */
 
 
#include "ansidecl.h"
#include "ansidecl.h"
 
 
/* This is the header file for the windmc program.  It defines
/* This is the header file for the windmc program.  It defines
   structures and declares functions used within the program.  */
   structures and declares functions used within the program.  */
 
 
#include "winduni.h"
#include "winduni.h"
 
 
#ifndef WINDMC_HXX
#ifndef WINDMC_HXX
#define WINDMC_HXX
#define WINDMC_HXX
 
 
/* Global flag variables (set by windmc.c file.  */
/* Global flag variables (set by windmc.c file.  */
extern int mcset_custom_bit;
extern int mcset_custom_bit;
extern int mcset_out_values_are_decimal;
extern int mcset_out_values_are_decimal;
extern rc_uint_type mcset_max_message_length;
extern rc_uint_type mcset_max_message_length;
extern unichar *mcset_msg_id_typedef;
extern unichar *mcset_msg_id_typedef;
 
 
/* Lexer keyword definition and internal memory structures.  */
/* Lexer keyword definition and internal memory structures.  */
 
 
typedef struct mc_keyword
typedef struct mc_keyword
{
{
  struct mc_keyword *next;
  struct mc_keyword *next;
  const char *group_name;
  const char *group_name;
  size_t len;
  size_t len;
  unichar *usz;
  unichar *usz;
  int rid;
  int rid;
  rc_uint_type nval;
  rc_uint_type nval;
  unichar *sval;
  unichar *sval;
  wind_language_t lang_info;
  wind_language_t lang_info;
} mc_keyword;
} mc_keyword;
 
 
typedef struct mc_node_lang
typedef struct mc_node_lang
{
{
  struct mc_node_lang *next;
  struct mc_node_lang *next;
  rc_uint_type vid;
  rc_uint_type vid;
  const mc_keyword *lang;
  const mc_keyword *lang;
  unichar *message;
  unichar *message;
} mc_node_lang;
} mc_node_lang;
 
 
typedef struct mc_node
typedef struct mc_node
{
{
  struct mc_node *next;
  struct mc_node *next;
  unichar *user_text;
  unichar *user_text;
  const mc_keyword *facility;
  const mc_keyword *facility;
  const mc_keyword *severity;
  const mc_keyword *severity;
  unichar *symbol;
  unichar *symbol;
  rc_uint_type id;
  rc_uint_type id;
  rc_uint_type vid;
  rc_uint_type vid;
  mc_node_lang *sub;
  mc_node_lang *sub;
} mc_node;
} mc_node;
 
 
extern mc_node *mc_nodes;
extern mc_node *mc_nodes;
 
 
void mc_add_keyword (unichar *, int, const char *, rc_uint_type, unichar *);
void mc_add_keyword (unichar *, int, const char *, rc_uint_type, unichar *);
const mc_keyword *enum_facility (int);
const mc_keyword *enum_facility (int);
const mc_keyword *enum_severity (int);
const mc_keyword *enum_severity (int);
 
 
mc_node_lang *mc_add_node_lang (mc_node *, const mc_keyword *, rc_uint_type);
mc_node_lang *mc_add_node_lang (mc_node *, const mc_keyword *, rc_uint_type);
mc_node *mc_add_node (void);
mc_node *mc_add_node (void);
 
 
/* Standard yacc/flex stuff.  */
/* Standard yacc/flex stuff.  */
int yyerror (const char *, ...);
int yyerror (const char *, ...);
int yylex (void);
int yylex (void);
int yyparse (void);
int yyparse (void);
 
 
/* mclex.c  */
/* mclex.c  */
void mc_set_inputfile (const char *);
void mc_set_inputfile (const char *);
void mc_set_content (const unichar *);
void mc_set_content (const unichar *);
 
 
/* Lexer control variables. Used by mcparser.y file.  */
/* Lexer control variables. Used by mcparser.y file.  */
extern bfd_boolean mclex_want_nl;
extern bfd_boolean mclex_want_nl;
extern bfd_boolean mclex_want_line;
extern bfd_boolean mclex_want_line;
extern bfd_boolean mclex_want_filename;
extern bfd_boolean mclex_want_filename;
 
 
void mc_fatal (const char *, ...);
void mc_fatal (const char *, ...);
void mc_warn (const char *, ...);
void mc_warn (const char *, ...);
 
 
#endif
#endif
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.