1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
/* "@(#)parse.h 20.9 93/06/28 SMI */
/*
* (c) Copyright 1989 Sun Microsystems, Inc. Sun design patents
* pending in the U.S. and foreign countries. See LEGAL NOTICE
* file for terms of the license.
*/
#ifndef profile_defined
#define profile_defined
/*
* This file contains the procedure definitions for the parse.c package.
*/
/*
* parse_chr(in_file) will read in a C-style character constant from In_File.
* -1 will be returned if any error occurs.
*/
int parse_chr();
/*
* parse_comments(in_file) will skip over a C-style comment from In_File.
*/
void parse_comments();
/*
* parse_eol(in_file) will read characters from In_File until a new-line is
* encountered. TRUE will be returned when an end-of-file is encountered.
*/
Bool parse_eol();
/*
* parse_int(in_file, error) will parse an integer from In_File. *Error will
* be set to TRUE if any error occurs. If Error is NULL, an error message will
* be printed and the program will be terminated.
*/
int parse_int();
/*
* parse_string(in_file, text) will parse a C-style string from In_File and
* return the result into Text. If Text is NULL, a string will be malloc'ed
* and returned.
*/
char *parse_string();
/*
* parse_symbol(infile, symbol) will read in symbol from In_File and store
* the result into Symbol. A symbol contains an alphanumeric or an
* underscore. Storage will be malloc'ed if Symbol is NULL. -1 will be
* returned if an error occurs.
*/
char *parse_symbol();
/*
* parse_whitespace(in_file) will skip over any spaces and tabs from In_File.
* The character that terminated the whitespace is returned.
*/
int parse_whitespace();
#endif
|