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

Subversion Repositories or1k

[/] [or1k/] [branches/] [oc/] [gdb-5.0/] [sim/] [ppc/] [table.h] - Blame information for rev 1771

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 106 markom
/*  This file is part of the program psim.
2
 
3
    Copyright (C) 1994-1995, Andrew Cagney <cagney@highland.com.au>
4
 
5
    This program is free software; you can redistribute it and/or modify
6
    it under the terms of the GNU General Public License as published by
7
    the Free Software Foundation; either version 2 of the License, or
8
    (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
13
    GNU 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, USA.
18
 
19
    */
20
 
21
 
22
/* load a table into memory */
23
 
24
typedef struct _table table;
25
 
26
typedef struct _table_model_entry table_model_entry;
27
struct _table_model_entry {
28
  table_model_entry *next;
29
  int line_nr;
30
  int nr_fields;
31
  char *fields[0];       /* User defined */
32
};
33
 
34
typedef struct _table_entry table_entry;
35
struct _table_entry {
36
  int line_nr;
37
  int nr_fields;
38
  char *file_name;
39
  table_model_entry *model_first;
40
  table_model_entry *model_last;
41
  char *annex;
42
  char *fields[0];        /* User defined */
43
};
44
 
45
 
46
extern table *table_open
47
(const char *file_name,
48
 int max_nr_fields,
49
 int max_nr_model_fields);
50
 
51
extern table_entry *table_entry_read
52
(table *file);
53
 
54
extern void dump_table_entry
55
(table_entry *entry,
56
 int indent);
57
 
58
extern void table_entry_print_cpp_line_nr
59
(lf *file,
60
 table_entry *entry);

powered by: WebSVN 2.1.0

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