This is smailconf.h in view mode; [Download] [Up]
/* @(#)src/smailconf.h 1.2 24 Oct 1990 05:25:13 */ /* * Copyright (C) 1987, 1988 by Ronald S. Karr and Landon Curt Noll * * See the file COPYING, distributed with smail, for restriction * and warranty information. */ /* * smailconf.h: * interface file for routines in smailconf.c. */ /* types used in smailconf.c */ /* * attribute tables are arrays of these structures. */ struct attr_table { char *name; /* name of attribute */ /* type of attribute */ enum { t_string, /* a string attribute */ t_boolean, /* boolean, on or off, attribute */ t_char, /* single character attribute */ t_int, /* integer attribute */ t_long, /* long integer attribute */ t_double, /* double precision attribute */ t_proc, /* attribute handled by procedure */ t_infoproc, /* procedure which displays info */ } type; char *value; /* value to put in config file */ union u_attr { char *v_string; /* string variable */ int v_boolean; /* boolean variable */ char v_char; /* char variable */ int v_int; /* integer variable */ long v_long; /* long variable */ double v_double; /* double variable */ char *(*v_proc)(); /* procedure to handle attribute */ char *(*v_infoproc)(); /* procedure for info attribute */ } *uptr; /* point to configuration variable */ long offset; /* offset into data structure */ }; /* convenience typedef for use in initializing conf_form tables */ typedef union u_attr tup;
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.