Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / nvi / common / args.h
blobb1fd8ba6869d57f7ad792dd6e15c26e402bb4a32
1 /* $NetBSD$ */
3 /*-
4 * Copyright (c) 1993, 1994
5 * The Regents of the University of California. All rights reserved.
6 * Copyright (c) 1993, 1994, 1995, 1996
7 * Keith Bostic. All rights reserved.
9 * See the LICENSE file for redistribution information.
11 * Id: args.h,v 10.2 1996/03/06 19:50:07 bostic Exp (Berkeley) Date: 1996/03/06 19:50:07
15 * Structure for building "argc/argv" vector of arguments.
17 * !!!
18 * All arguments are nul terminated as well as having an associated length.
19 * The argument vector is NOT necessarily NULL terminated. The proper way
20 * to check the number of arguments is to use the argc value in the EXCMDARG
21 * structure or to walk the array until an ARGS structure with a length of 0
22 * is found.
24 typedef struct _args {
25 CHAR_T *bp; /* Argument. */
26 size_t blen; /* Buffer length. */
27 size_t len; /* Argument length. */
29 #define A_ALLOCATED 0x01 /* If allocated space. */
30 u_int8_t flags;
31 } ARGS;