diff options
author | Mark Peek <mp@FreeBSD.org> | 2007-03-11 22:33:41 +0000 |
---|---|---|
committer | Mark Peek <mp@FreeBSD.org> | 2007-03-11 22:33:41 +0000 |
commit | 45e5710bbb3676c9d945e9df78019b2c58930a59 (patch) | |
tree | 34aefea92d30b614247ef1f2671f2362f4761785 /contrib/tcsh/tc.h | |
parent | 547e75d62598e0442ceaabccc0c3388d89a5554f (diff) | |
download | src-45e5710bbb3676c9d945e9df78019b2c58930a59.tar.gz src-45e5710bbb3676c9d945e9df78019b2c58930a59.zip |
Import of tcsh-6.15.00
Notes
Notes:
svn path=/vendor/tcsh/dist/; revision=167465
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 67e46e7ffd22..99a643ff3c25 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 */ |