--- ray/src/cv/trans.h 1990/12/11 08:45:53 1.1 +++ ray/src/cv/trans.h 2003/11/15 17:54:06 2.4 @@ -1,13 +1,16 @@ -/* Copyright (c) 1990 Regents of the University of California */ - -/* SCCSid "$SunId$ LBL" */ - +/* RCSid: $Id: trans.h,v 2.4 2003/11/15 17:54:06 schorsch Exp $ */ /* * Translator definitions * * Greg Ward */ +#ifndef _RAD_TRANS_H_ +#define _RAD_TRANS_H_ +#ifdef __cplusplus +extern "C" { +#endif + #define MAXSTR 128 /* maximum input string length */ #define VOIDID "void" /* null modifier */ @@ -45,6 +48,20 @@ typedef struct rule { #define rulsiz(nq) (sizeof(RULEHD)+(nq)*sizeof(IDMATCH)) #define idm(rp) ((IDMATCH *)((rp)+1)) -char *malloc(), *calloc(), *realloc(); -char *savestr(); -RULEHD *getmapping(); + + /* defined in common/savestr.c - XXX one of several declarations */ +char *savestr(char *str); + /* defined in trans.c */ +RULEHD *getmapping(char *file, QLIST *qlp); + +extern int fgetid(ID *idp, char *dls, FILE *fp); +extern int findid(IDLIST *idl, ID *idp, int insert); +extern int matchid(ID *it, IDMATCH *im); +extern void write_quals(QLIST *qlp, IDLIST idl[], FILE *fp); + + +#ifdef __cplusplus +} +#endif +#endif /* _RAD_TRANS_H_ */ +