home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ee.lbl.gov
/
2014.05.ftp.ee.lbl.gov.tar
/
ftp.ee.lbl.gov
/
bmd-1.0beta.tar.Z
/
bmd-1.0beta.tar
/
bmd-1.0beta
/
app
/
omtd
/
readline.h
< prev
next >
Wrap
C/C++ Source or Header
|
1991-01-22
|
1KB
|
41 lines
/*
* Copyright (c) 1990 Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted
* provided that the above copyright notice and this paragraph are
* duplicated in all such forms and that any documentation,
* advertising materials, and other materials related to such
* distribution and use acknowledge that the software was developed
* by the University of California, Lawrence Berkeley Laboratory,
* Berkeley, CA. The name of the University may not be used to
* endorse or promote products derived from this software without
* specific prior written permission.
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
struct token {
int t_id;
union {
char *tu_str;
int tu_int;
float tu_real;
} t_u;
struct token *next;
#define t_int t_u.tu_int
#define t_str t_u.tu_str
#define t_real t_u.tu_real
};
#define TK_EOF 'z'
/* XXX IDENT needs to go. */
#define TK_IDENT 's'
#define TK_STR 's'
#define TK_INT 'i'
#define TK_REAL 'r'
struct token *readline();
char *intern();
char *token_string();