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