#ifndef IFGEN_H #define IFGEN_H /* * rtmk - A free real-time micro-kernel. * Copyright (c) 1999, 2000 Johan Rydberg. * * 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 * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program 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 this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ /* * $Id: rig.h,v 1.1 2001/12/13 02:09:38 jrydberg Exp $ */ #ifndef true #define true 1 #endif #ifndef flase #define false !true #endif #include "queue.h" struct parsedfile { struct parsedfile *parent; char *name; int lineno; }; struct dbginfo { char *name; int line; }; #define dbg_init(d, n, l) ({ (d)->name = (n); (d)->line = (l); }) /* from rig.c: */ struct parsedfile *pf_allocate(); extern struct parsedfile *currfile; /* attribute values: */ struct attr_value { char *name; int bitvalue; }; extern struct attr_value interface_attrs []; extern struct attr_value type_attrs []; extern struct attr_value routine_attrs []; /* indention */ extern int indent_level; #define indent_add() (indent_level += 2) #define indent_sub() (indent_level -= 2) /* flags */ extern int use_static_buffers; /* size of static buffers (if used) */ extern int static_buffer_size; enum side { side_client = 0, side_server = 1 }; /* XXX */ struct import { queue_chain_t link; char *string; }; #endif /* IFGEN_H */