diff options
Diffstat (limited to 'contrib/tcsh/tc.h')
-rw-r--r-- | contrib/tcsh/tc.h | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/contrib/tcsh/tc.h b/contrib/tcsh/tc.h index 67e46e7..99a643f 100644 --- a/contrib/tcsh/tc.h +++ b/contrib/tcsh/tc.h @@ -1,4 +1,4 @@ -/* $Header: /src/pub/tcsh/tc.h,v 3.6 2004/08/04 17:12:31 christos Exp $ */ +/* $Header: /p/tcsh/cvsroot/tcsh/tc.h,v 3.8 2006/01/12 19:55:38 christos Exp $ */ /* * tc.h: Tcsh includes */ @@ -41,11 +41,40 @@ #include "tc.sig.h" #include "tc.decls.h" -extern int tlength; +extern size_t tlength; #define FMT_PROMPT 0 #define FMT_WHO 1 #define FMT_HISTORY 2 #define FMT_SCHED 3 +struct strbuf { + char *s; + size_t len; /* Valid characters */ + size_t size; /* Allocated characters */ +}; + +struct Strbuf { + Char *s; + size_t len; /* Valid characters */ + size_t size; /* Allocated characters */ +}; + +/* We don't have explicit initializers for variables with static storage + duration, so these values should be equivalent to default initialization. */ +#define strbuf_INIT { NULL, 0, 0 } +#define Strbuf_INIT { NULL, 0, 0 } +extern const struct strbuf strbuf_init; +extern const struct Strbuf Strbuf_init; + +/* A string vector in progress */ +struct blk_buf +{ + Char **vec; + size_t len; /* Valid strings */ + size_t size; /* Allocated space for string pointers */ +}; + +#define BLK_BUF_INIT { NULL, 0, 0 } + #endif /* _h_tc */ |