expr.c File Reference

#include "mdef.h"
#include <setjmp.h>

Include dependency graph for expr.c:

Go to the source code of this file.

Defines

#define TRUE   1
#define FALSE   0
#define EOS   (char) 0
#define EQL   0
#define NEQ   1
#define LSS   2
#define LEQ   3
#define GTR   4
#define GEQ   5
#define ungetch()   nxtch--
#define getch()   *nxtch++

Functions

int expr (char *expbuf)
int query ()
int lor ()
int land ()
int bor ()
int bxor ()
int band ()
int eql ()
int relat ()
int shift ()
int primary ()
int term ()
int unary ()
int factor ()
int constant ()
int num ()
int geteql ()
int getrel ()
int skipws ()
int experr (char *msg)

Variables

static char * nxtch
static jmp_buf expjump


Define Documentation

#define EOS   (char) 0
 

Definition at line 57 of file expr.c.

Referenced by catsub(), egets(), expr(), ins(), inspect(), is(), macro(), main(), num(), optpat(), set(), and skipws().

#define EQL   0
 

Definition at line 58 of file expr.c.

Referenced by eql(), and geteql().

#define FALSE   0
 

Definition at line 56 of file expr.c.

#define GEQ   5
 

Definition at line 63 of file expr.c.

Referenced by getrel(), and relat().

#define getch void   )     *nxtch++
 

Definition at line 80 of file expr.c.

Referenced by band(), bor(), constant(), execute(), GetChar(), getcomm(), geteql(), getrel(), land(), lor(), num(), readline(), ret_to_continue(), shift(), and skipws().

#define GTR   4
 

Definition at line 62 of file expr.c.

Referenced by getrel(), and relat().

#define LEQ   3
 

Definition at line 61 of file expr.c.

Referenced by getrel(), and relat().

#define LSS   2
 

Definition at line 60 of file expr.c.

Referenced by getrel(), and relat().

#define NEQ   1
 

Definition at line 59 of file expr.c.

Referenced by eql(), and geteql().

#define TRUE   1
 

Definition at line 55 of file expr.c.

 
#define ungetch  )     nxtch--
 

Definition at line 79 of file expr.c.

Referenced by band(), bor(), bxor(), constant(), factor(), geteql(), getrel(), land(), lor(), primary(), query(), shift(), term(), and unary().


Function Documentation

int band  ) 
 

Definition at line 203 of file expr.c.

References c, eql(), getch, skipws(), and ungetch.

Referenced by bxor().

int bor  ) 
 

Definition at line 164 of file expr.c.

References bxor(), c, getch, skipws(), and ungetch.

Referenced by land().

int bxor  ) 
 

Definition at line 185 of file expr.c.

References band(), skipws(), and ungetch.

Referenced by bor().

int constant  ) 
 

Definition at line 397 of file expr.c.

References c, getch, i, int(), num(), skipws(), and ungetch.

int eql  ) 
 

Definition at line 224 of file expr.c.

References EQL, geteql(), NEQ, and relat().

Referenced by band().

int experr char *  msg  ) 
 

Definition at line 582 of file expr.c.

References expjump, and printf.

Referenced by expr(), factor(), and query().

int expr char *  expbuf  ) 
 

Definition at line 82 of file expr.c.

References EOS, experr(), expjump, FALSE, nxtch, query(), setjmp, and skipws().

int factor  ) 
 

Definition at line 378 of file expr.c.

References constant(), experr(), query(), skipws(), ungetch, and val.

Referenced by frexp(), ldexp(), str2size(), and unary().

int geteql  ) 
 

Definition at line 506 of file expr.c.

References EQL, getch, NEQ, skipws(), and ungetch.

Referenced by eql().

int getrel  ) 
 

Definition at line 538 of file expr.c.

References GEQ, getch, GTR, LEQ, LSS, skipws(), and ungetch.

Referenced by relat().

int land  ) 
 

Definition at line 144 of file expr.c.

References bor(), c, getch, skipws(), and ungetch.

Referenced by lor().

int lor  ) 
 

Definition at line 124 of file expr.c.

References c, getch, land(), skipws(), and ungetch.

Referenced by query().

int num  ) 
 

Definition at line 462 of file expr.c.

References base, c, getch, isdigit, islower, isupper, and skipws().

Referenced by alloc_inode(), ask_partition(), ckglob(), constant(), cutfree(), doformat(), dump_stack(), efun(), exec_one(), find(), getlst(), linespec(), main(), num(), OpenRoot(), option(), pbnum(), putd(), rcmd(), rd_num(), set_min_tim(), set_saved_settings(), setup_term(), sprintf(), str_offt(), ul2a(), upd_wind(), and varvalue().

int primary  ) 
 

Definition at line 304 of file expr.c.

References c, skipws(), term, and ungetch.

Referenced by distribute(), expr(), geometry(), primary(), and shift().

int query  ) 
 

Definition at line 102 of file expr.c.

References bool, experr(), lor(), skipws(), and ungetch.

Referenced by expr(), factor(), and start_relay().

int relat  ) 
 

Definition at line 249 of file expr.c.

References GEQ, getrel(), GTR, LEQ, LSS, and shift.

Referenced by eql().

int shift  ) 
 

Definition at line 280 of file expr.c.

References c, getch, primary(), skipws(), and ungetch.

int skipws  ) 
 

Definition at line 569 of file expr.c.

References c, EOS, and getch.

Referenced by band(), bor(), bxor(), constant(), expr(), factor(), geteql(), getrel(), land(), lor(), num(), primary(), query(), shift(), term(), and unary().

int term  ) 
 

Definition at line 325 of file expr.c.

References c, skipws(), unary(), and ungetch.

int unary  ) 
 

Definition at line 353 of file expr.c.

References c, factor(), skipws(), ungetch, and val.

Referenced by term().


Variable Documentation

jmp_buf expjump [static]
 

Definition at line 71 of file expr.c.

Referenced by experr(), and expr().

char* nxtch [static]
 

Definition at line 65 of file expr.c.

Referenced by expr().


Generated on Fri Apr 14 22:58:24 2006 for minix by  doxygen 1.4.6