|
|
1.1 ! root 1: /* ! 2: * Mach Operating System ! 3: * Copyright (c) 1991,1990 Carnegie Mellon University ! 4: * All Rights Reserved. ! 5: * ! 6: * Permission to use, copy, modify and distribute this software and its ! 7: * documentation is hereby granted, provided that both the copyright ! 8: * notice and this permission notice appear in all copies of the ! 9: * software, derivative works or modified versions, and any portions ! 10: * thereof, and that both notices appear in supporting documentation. ! 11: * ! 12: * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS ! 13: * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR ! 14: * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. ! 15: * ! 16: * Carnegie Mellon requests users of this software to return to ! 17: * ! 18: * Software Distribution Coordinator or [email protected] ! 19: * School of Computer Science ! 20: * Carnegie Mellon University ! 21: * Pittsburgh PA 15213-3890 ! 22: * ! 23: * any improvements or extensions that they make and grant Carnegie the ! 24: * rights to redistribute these changes. ! 25: */ ! 26: ! 27: #include "error.h" ! 28: #include "global.h" ! 29: ! 30: boolean_t BeQuiet = FALSE; ! 31: boolean_t BeVerbose = FALSE; ! 32: boolean_t UseMsgRPC = TRUE; ! 33: boolean_t GenSymTab = FALSE; ! 34: ! 35: boolean_t IsKernelUser = FALSE; ! 36: boolean_t IsKernelServer = FALSE; ! 37: ! 38: const_string_t RCSId = strNULL; ! 39: ! 40: const_string_t SubsystemName = strNULL; ! 41: u_int SubsystemBase = 0; ! 42: ! 43: const_string_t MsgOption = strNULL; ! 44: const_string_t WaitTime = strNULL; ! 45: const_string_t ErrorProc = "MsgError"; ! 46: const_string_t ServerPrefix = ""; ! 47: const_string_t UserPrefix = ""; ! 48: const_string_t ServerDemux = strNULL; ! 49: const_string_t SubrPrefix = ""; ! 50: const_string_t RoutinePrefix = ""; ! 51: ! 52: string_t yyinname; ! 53: ! 54: const char LintLib[] = "defined(LINTLIBRARY)"; ! 55: ! 56: void ! 57: init_global(void) ! 58: { ! 59: yyinname = strmake("<no name yet>"); ! 60: } ! 61: ! 62: string_t UserFilePrefix = strNULL; ! 63: string_t UserHeaderFileName = strNULL; ! 64: string_t ServerHeaderFileName = strNULL; ! 65: string_t InternalHeaderFileName = strNULL; ! 66: string_t UserFileName = strNULL; ! 67: string_t ServerFileName = strNULL; ! 68: ! 69: void ! 70: more_global(void) ! 71: { ! 72: if (SubsystemName == strNULL) ! 73: fatal("no SubSystem declaration"); ! 74: ! 75: if (UserHeaderFileName == strNULL) ! 76: UserHeaderFileName = strconcat(SubsystemName, ".h"); ! 77: else if (streql(UserHeaderFileName, "/dev/null")) ! 78: UserHeaderFileName = strNULL; ! 79: ! 80: if (UserFileName == strNULL) ! 81: UserFileName = strconcat(SubsystemName, "User.c"); ! 82: else if (streql(UserFileName, "/dev/null")) ! 83: UserFileName = strNULL; ! 84: ! 85: if (ServerFileName == strNULL) ! 86: ServerFileName = strconcat(SubsystemName, "Server.c"); ! 87: else if (streql(ServerFileName, "/dev/null")) ! 88: ServerFileName = strNULL; ! 89: ! 90: if (ServerDemux == strNULL) ! 91: ServerDemux = strconcat(SubsystemName, "_server"); ! 92: if (RoutinePrefix != NULL) ! 93: ServerDemux = strconcat (RoutinePrefix, ServerDemux); ! 94: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.