1 /*	$OpenBSD: rf_options.c,v 1.3 2002/12/16 07:01:04 tdeval Exp $	*/
2 /*	$NetBSD: rf_options.c,v 1.3 1999/02/05 00:06:13 oster Exp $	*/
3 
4 /*
5  * rf_options.c
6  */
7 /*
8  * Copyright (c) 1996 Carnegie-Mellon University.
9  * All rights reserved.
10  *
11  * Author: Jim Zelenka
12  *
13  * Permission to use, copy, modify and distribute this software and
14  * its documentation is hereby granted, provided that both the copyright
15  * notice and this permission notice appear in all copies of the
16  * software, derivative works or modified versions, and any portions
17  * thereof, and that both notices appear in supporting documentation.
18  *
19  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
20  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
21  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
22  *
23  * Carnegie Mellon requests users of this software to return to
24  *
25  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
26  *  School of Computer Science
27  *  Carnegie Mellon University
28  *  Pittsburgh PA 15213-3890
29  *
30  * any improvements or extensions that they make and grant Carnegie the
31  * rights to redistribute these changes.
32  */
33 
34 
35 #include "rf_threadstuff.h"
36 #include "rf_types.h"
37 #include "rf_archs.h"
38 #include "rf_general.h"
39 #include "rf_options.h"
40 
41 #ifdef	RF_DBG_OPTION
42 #undef	RF_DBG_OPTION
43 #endif	/* RF_DBG_OPTION */
44 
45 #ifdef	__STDC__
46 #define	RF_DBG_OPTION(_option_,_defval_)				\
47 	long rf_##_option_ = _defval_;
48 #else	/* __STDC__ */
49 #define	RF_DBG_OPTION(_option_,_defval_)				\
50 	long rf_/**/_option_ = _defval_;
51 #endif	/* __STDC__ */
52 
53 #include "rf_optnames.h"
54 
55 #undef	RF_DBG_OPTION
56 
57 #ifdef	__STDC__
58 #define	RF_DBG_OPTION(_option_,_defval_)				\
59 	{RF_STRING(_option_), &rf_##_option_},
60 #else	/* __STDC__ */
61 #define	RF_DBG_OPTION(_option_,_defval_)				\
62 	{RF_STRING(_option_), &rf_/**/_option_},
63 #endif	/* __STDC__ */
64 
65 RF_DebugName_t rf_debugNames[] = {
66 #include "rf_optnames.h"
67 	{NULL, NULL}
68 };
69 #undef	RF_DBG_OPTION
70 
71 #ifdef	__STDC__
72 #define	RF_DBG_OPTION(_option_,_defval_)				\
73 	rf_##_option_  = _defval_;
74 #else	/* __STDC__ */
75 #define	RF_DBG_OPTION(_option_,_defval_)				\
76 	rf_/**/_option_ = _defval_;
77 #endif	/* __STDC__ */
78 
79 void
rf_ResetDebugOptions(void)80 rf_ResetDebugOptions(void)
81 {
82 #include "rf_optnames.h"
83 }
84