h.h File Reference

#include <ctype.h>
#include <stdio.h>
#include <assert.h>

Include dependency graph for h.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  name
struct  line
struct  depend
struct  cmd
struct  macro
struct  str

Defines

#define MNOENT   ENOENT
#define uchar   unsigned char
#define bool   uchar
#define time_t   long
#define TRUE   (1)
#define FALSE   (0)
#define max(a, b)   ((a)>(b)?(a):(b))
#define TABCHAR   '\t'
#define LZ1   (2048)
#define LZ2   (256)
#define N_MARK   0x01
#define N_DONE   0x02
#define N_TARG   0x04
#define N_PREC   0x08
#define N_DOUBLE   0x10
#define N_EXISTS   0x20
#define N_ERROR   0x40
#define N_EXEC   0x80
#define M_MARK   0x01
#define M_OVERRIDE   0x02
#define M_MAKE   0x04
#define EXTERN   extern
#define INIT(x)
#define suffix(name)   strrchr(name,(int)'.')
#define mylower(x)   (islower(_ctypech=(x)) ? _ctypech :tolower(_ctypech))
#define myupper(x)   (isupper(_ctypech=(x)) ? _ctypech :toupper(_ctypech))

Functions

EXTERN bool domake INIT (TRUE)
EXTERN bool ignore INIT (FALSE)
EXTERN int sizesuffarray INIT (20)
EXTERN int maxsuffarray INIT (0)
 _PROTOTYPE (void prt,(void))
 _PROTOTYPE (void check,(struct name *np))
 _PROTOTYPE (void strrealloc,(struct str *strs))
 _PROTOTYPE (struct name *newname,(char *name))
 _PROTOTYPE (struct depend *newdep,(struct name *np, struct depend *dp))
 _PROTOTYPE (struct cmd *newcmd,(char *str, struct cmd *cp))
 _PROTOTYPE (void newline,(struct name *np, struct depend *dp, struct cmd *cp, int flag))
 _PROTOTYPE (void input,(FILE *fd))
 _PROTOTYPE (struct macro *getmp,(char *name))
 _PROTOTYPE (char *getmacro,(char *name))
 _PROTOTYPE (struct macro *setmacro,(char *name, char *val))
 _PROTOTYPE (void setDFmacro,(char *name, char *val))
 _PROTOTYPE (void doexp,(struct str *to, char *from))
 _PROTOTYPE (void main,(int argc, char **argv))
 _PROTOTYPE (void setoption,(char option))
 _PROTOTYPE (void fatal,(char *msg, char *a1, int a2))
 _PROTOTYPE (int dosh,(char *string, char *shell))
 _PROTOTYPE (int makeold,(char *name))
 _PROTOTYPE (void docmds1,(struct name *np, struct line *lp))
 _PROTOTYPE (int Tosexec,(char *string))
 _PROTOTYPE (time_t mstonix,(unsigned int date, unsigned int time))
 _PROTOTYPE (void getmdate,(int fd, struct sgtbuf *tbp))
 _PROTOTYPE (time_t cnvtime,(struct sgtbuf *tbp))
 _PROTOTYPE (int make,(struct name *np, int level))
 _PROTOTYPE (void make1,(struct name *np, struct line *lp, struct depend *qdp, char *basename, char *inputname))
 _PROTOTYPE (void implmacros,(struct name *np, struct line *lp, char **pbasename, char **pinputname))
 _PROTOTYPE (void dbgprint,(int level, struct name *np, char *comment))
 _PROTOTYPE (void error,(char *msg, char *a1))
 _PROTOTYPE (bool getline,(struct str *strs, FILE *fd))
 _PROTOTYPE (char *gettok,(char **ptr))
 _PROTOTYPE (bool dyndep,(struct name *np, char **pbasename, char **pinputname))
 _PROTOTYPE (int archive_stat,(char *name, struct stat *stp))

Variables

int errno
char ** environ
EXTERN char * myname
EXTERN struct namefirstname
EXTERN char * str1
EXTERN char * str2
EXTERN struct str str1s
EXTERN struct str str2s
EXTERN struct name ** suffparray
EXTERN struct macromacrohead
EXTERN bool expmake
EXTERN char * makefile
EXTERN int lineno
EXTERN int _ctypech


Define Documentation

#define bool   uchar
 

Definition at line 85 of file h.h.

Referenced by query().

#define EXTERN   extern
 

Definition at line 205 of file h.h.

#define FALSE   (0)
 

Definition at line 90 of file h.h.

#define INIT x   ) 
 

Definition at line 209 of file h.h.

Referenced by step().

#define LZ1   (2048)
 

Definition at line 117 of file h.h.

Referenced by init().

#define LZ2   (256)
 

Definition at line 118 of file h.h.

Referenced by init().

#define M_MAKE   0x04
 

Definition at line 189 of file h.h.

Referenced by doexp(), and main().

#define M_MARK   0x01
 

Definition at line 187 of file h.h.

Referenced by doexp().

#define M_OVERRIDE   0x02
 

Definition at line 188 of file h.h.

Referenced by main(), and setmacro().

#define max a,
b   )     ((a)>(b)?(a):(b))
 

Definition at line 91 of file h.h.

Referenced by allocate_itemsets(), another_hunk(), default_goto(), delete_all(), dfhand(), fts_maxarglen(), inflate_table(), inflate_table9(), lunpipe(), main(), make(), match(), output_debug(), print(), Print_Duration(), recomp(), scsi_io(), set_maxrhs(), show_all(), and token_actions().

#define MNOENT   ENOENT
 

Definition at line 72 of file h.h.

Referenced by main().

#define mylower x   )     (islower(_ctypech=(x)) ? _ctypech :tolower(_ctypech))
 

Definition at line 253 of file h.h.

Referenced by main(), and setoption().

#define myupper x   )     (isupper(_ctypech=(x)) ? _ctypech :toupper(_ctypech))
 

Definition at line 254 of file h.h.

#define N_DONE   0x02
 

Definition at line 136 of file h.h.

Referenced by make().

#define N_DOUBLE   0x10
 

Definition at line 139 of file h.h.

Referenced by dbgprint(), make(), newline(), and prt().

#define N_ERROR   0x40
 

Definition at line 141 of file h.h.

Referenced by make(), and make1().

#define N_EXEC   0x80
 

Definition at line 142 of file h.h.

Referenced by make().

#define N_EXISTS   0x20
 

Definition at line 140 of file h.h.

Referenced by make(), modtime(), and testname().

#define N_MARK   0x01
 

Definition at line 135 of file h.h.

Referenced by check().

#define N_PREC   0x08
 

Definition at line 138 of file h.h.

Referenced by precious().

#define N_TARG   0x04
 

Definition at line 137 of file h.h.

Referenced by dyndep(), main(), make(), newline(), and precious().

#define suffix name   )     strrchr(name,(int)'.')
 

Definition at line 250 of file h.h.

#define TABCHAR   '\t'
 

Definition at line 114 of file h.h.

Referenced by input().

#define time_t   long
 

Definition at line 87 of file h.h.

Referenced by addreq(), announce(), arp_ioctl(), arp_ip_eth(), arp_timeout(), asyn_wait(), bcpio_rd(), bcpio_wr(), clck_expire_timers(), cleandir(), clock_time(), closeit(), conv_stamp(), copystat(), cpio_rd(), createDirCallback(), date_exp(), days2time(), delete_invite(), deliver(), difftime(), do_time(), doPASV(), dos_copydir(), doSTAT(), eth_arrive(), extract(), getrequest(), getTimeNow(), gmtime(), httpdate(), httptime(), icmp_rate_limit(), init_config(), ip_port_arrive(), ipeth_arp_reply(), ipeth_restart_send(), ipeth_send(), ipr_add_oroute(), ipr_gateway_down(), irdp_incoming(), job_read_udp(), labelit(), latest_version(), list(), logdate(), logit(), lookup(), main(), make(), make_time(), mk_entry(), mktime(), newaccess(), newname(), next_file(), open_mcwd(), opendev(), oroute_find_ent(), out_header(), parse_time(), parsetime(), passadd(), prettyprogress(), Print_Uptime(), process_arp_pkt(), processrequest(), proxy(), reassemble(), recvfile(), res_send(), sendfile(), sendreply(), september(), servxcheck(), set_timer(), sink(), syslog(), tab_find_atjob(), tab_reschedule(), tar(), tar_rd(), test16a(), test24a(), test25b(), test27a(), test28a(), test2g(), test30a(), test31a(), test32a(), test34a(), test34b(), test35a(), test35c(), test38a(), test39f(), test39j(), test40a(), test8a(), time(), timestamp(), touch(), unix_copydir(), unix_write(), update_times(), ustar_rd(), vcpio_rd(), wall(), wr_archive(), write_log(), writeit(), and wtmp().

#define TRUE   (1)
 

Definition at line 89 of file h.h.

#define uchar   unsigned char
 

Definition at line 81 of file h.h.


Function Documentation

_PROTOTYPE int  archive_stat,
(char *name, struct stat *stp) 
 

_PROTOTYPE bool  dyndep,
(struct name *np, char **pbasename, char **pinputname) 
 

_PROTOTYPE char *  gettok,
(char **ptr
 

_PROTOTYPE bool  getline,
(struct str *strs, FILE *fd
 

_PROTOTYPE void  error,
(char *msg, char *a1) 
 

_PROTOTYPE void  dbgprint,
(int level, struct name *np, char *comment) 
 

_PROTOTYPE void  implmacros,
(struct name *np, struct line *lp, char **pbasename, char **pinputname) 
 

_PROTOTYPE void  make1,
(struct name *np, struct line *lp, struct depend *qdp, char *basename, char *inputname) 
 

_PROTOTYPE int  make,
(struct name *np, int level
 

_PROTOTYPE time_t  cnvtime,
(struct sgtbuf *tbp) 
 

_PROTOTYPE void  getmdate,
(int fd, struct sgtbuf *tbp) 
 

_PROTOTYPE time_t  mstonix,
(unsigned int date, unsigned int time) 
 

_PROTOTYPE int  Tosexec,
(char *string
 

_PROTOTYPE void  docmds1,
(struct name *np, struct line *lp) 
 

_PROTOTYPE int  makeold,
(char *name
 

_PROTOTYPE int  dosh,
(char *string, char *shell) 
 

_PROTOTYPE void  fatal,
(char *msg, char *a1, int a2) 
 

_PROTOTYPE void  setoption,
(char option) 
 

_PROTOTYPE void  main,
(int argc, char **argv) 
 

_PROTOTYPE void  doexp,
(struct str *to, char *from) 
 

_PROTOTYPE void  setDFmacro,
(char *name, char *val
 

_PROTOTYPE struct macro setmacro,
(char *name, char *val
 

_PROTOTYPE char *  getmacro,
(char *name
 

_PROTOTYPE struct macro getmp,
(char *name
 

_PROTOTYPE void  input,
(FILE *fd
 

_PROTOTYPE void  newline,
(struct name *np, struct depend *dp, struct cmd *cp, int flag
 

_PROTOTYPE struct cmd newcmd,
(char *str, struct cmd *cp
 

_PROTOTYPE struct depend newdep,
(struct name *np, struct depend *dp) 
 

_PROTOTYPE struct name newname,
(char *name
 

_PROTOTYPE void  strrealloc,
(struct str *strs) 
 

_PROTOTYPE void  check,
(struct name *np) 
 

_PROTOTYPE void  prt,
(void) 
 

EXT LINENUM last_frozen_line INIT  ) 
 

EXTERN int sizesuffarray INIT 20   ) 
 

EXT bool do_defines INIT FALSE   ) 
 

EXT bool verbose INIT TRUE   ) 
 


Variable Documentation

EXTERN int _ctypech
 

Definition at line 252 of file h.h.

char** environ
 

Definition at line 19 of file environ.c.

int errno
 

Definition at line 70 of file rcp.c.

EXTERN bool expmake
 

Definition at line 236 of file h.h.

Referenced by docmds1(), and doexp().

EXTERN struct name* firstname
 

Definition at line 227 of file h.h.

Referenced by main(), and prt().

EXTERN int lineno
 

Definition at line 238 of file h.h.

EXTERN struct macro* macrohead
 

Definition at line 235 of file h.h.

Referenced by getmp(), prt(), and setmacro().

EXTERN char* makefile
 

Definition at line 237 of file h.h.

Referenced by error(), and main().

EXTERN char* myname
 

Definition at line 215 of file h.h.

Referenced by default_action_warning(), dollar_error(), dollar_warning(), error(), fatal(), getargs(), illegal_character(), illegal_tag(), main(), make(), no_grammar(), no_space(), open_error(), over_unionized(), prec_redeclared(), reprec_warning(), restarted_warning(), retyped_warning(), revalued_warning(), syntax_error(), terminal_lhs(), terminal_start(), tokenized_start(), total_conflicts(), touch(), undefined_goal(), undefined_symbol_warning(), unexpected_EOF(), unknown_rhs(), unterminated_action(), unterminated_comment(), unterminated_string(), unterminated_text(), unterminated_union(), untyped_lhs(), untyped_rhs(), usage(), and used_reserved().

EXTERN char* str1
 

Definition at line 228 of file h.h.

Referenced by docmds1(), dyndep(), init(), input(), and make1().

EXTERN struct str str1s
 

Definition at line 230 of file h.h.

Referenced by docmds1(), dyndep(), init(), input(), and make1().

EXTERN char* str2
 

Definition at line 229 of file h.h.

Referenced by implmacros(), init(), and test39e().

EXTERN struct str str2s
 

Definition at line 231 of file h.h.

Referenced by init().

EXTERN struct name** suffparray
 

Definition at line 232 of file h.h.

Referenced by circh(), init(), newname(), and prt().


Generated on Fri Apr 14 23:05:16 2006 for minix by  doxygen 1.4.6