X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=rpcgen_int.h;fp=rpcgen_int.h;h=e37229581f97a01ac811f735e49e239e8da52f84;hb=e9558f1dd242f2eb6a528c5509f1f8911fffe5d7;hp=0000000000000000000000000000000000000000;hpb=0fb3d920a44476495cd4537d22dc2debd0c4512f;p=portablexdr.git diff --git a/rpcgen_int.h b/rpcgen_int.h new file mode 100644 index 0000000..e372295 --- /dev/null +++ b/rpcgen_int.h @@ -0,0 +1,37 @@ +/* -*- C -*- + * rpcgen - Generate XDR bindings automatically. + * Copyright (C) 2008 Red Hat Inc. + * + * 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 of the License, 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., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +#ifndef RPCGEN_INT_H +#define RPCGEN_INT_H + +extern char *input_filename; + +/* Global functions used by the scanner. */ +extern void start_string (void); +extern char *end_string (void); +extern void add_char (int); +extern void add_string (const char *); + +/* These functions print an error and then exit. */ +extern void error (const char *, ...) + __attribute__((noreturn, format(printf,1,2))); +extern void perrorf (const char *, ...) + __attribute__((noreturn, format(printf,1,2))); + +#endif /* RPCGEN_INT_H */