COMPILATION LISTING OF SEGMENT probe_lang_type_ Compiled by: Multics PL/I Compiler, Release 31a, of October 12, 1988 Compiled at: Honeywell Bull, Phoenix AZ, SysM Compiled on: 10/24/88 1602.5 mst Mon Options: optimize map 1 /****^ *********************************************************** 2* * * 3* * Copyright, (C) Honeywell Bull Inc., 1988 * 4* * * 5* * Copyright, (C) Honeywell Information Systems Inc., 1982 * 6* * * 7* * Copyright (c) 1972 by Massachusetts Institute of * 8* * Technology and Honeywell Information Systems, Inc. * 9* * * 10* *********************************************************** */ 11 12 13 14 /****^ HISTORY COMMENTS: 15* 1) change(88-09-07,WAAnderson), approve(88-09-30,MCR7952), 16* audit(88-09-30,JRGray), install(88-10-24,MR12.2-1184): 17* Added format control comment to make the source more readable. 18* END HISTORY COMMENTS */ 19 20 21 /* format: style1,insnl,ifthendo,indthenelse,^indnoniterdo,^inditerdo,indcom,^indthenbegin,^indprocbody,ind2,ll78,initcol0,dclind4,idind24,struclvlind1,comcol41 */ 22 23 /**** * * * * * * * * * * * * * * * * * * * * * * * */ 24 25 probe_lang_type_: 26 proc (compiler_name) returns (fixed bin); 27 28 /* given the name of a compiler, return the PROBE language code 29* some of these names will not be found in object segments, but 30* may be typed in by user in the PROBE "Lang" request 31* 32* James R. Davis 22 June 79 33* Melanie Weaver 31 July 1981 for algol68 */ 34 /* Modified June 83 JMAthane to add PASCAL */ 35 /* Modified April 88 Hinatsu to add C */ 36 37 dcl compiler_name char (*); 38 39 if compiler_name = "PL/I" | compiler_name = "pl1" | compiler_name = "PL1" 40 then return (PL1_lang_type); 41 42 else if compiler_name = "FORTRAN" | compiler_name = "fortran" 43 | compiler_name = "fortran2" | 44 compiler_name = "FT" | compiler_name = "ft" 45 then return (FORTRAN_lang_type); 46 47 else if compiler_name = "COBOL" | compiler_name = "cobol" 48 then return (COBOL_lang_type); 49 50 else if compiler_name = "ALM" | compiler_name = "alm" 51 then return (ALM_lang_type); 52 53 else if compiler_name = "ALGOL68" | compiler_name = "Algol68" 54 | compiler_name = "algol68" | compiler_name = "a68" 55 then return (ALGOL68_lang_type); 56 57 else if compiler_name = "PASCAL" | compiler_name = "pascal" 58 then return (PASCAL_lang_type); 59 60 else if compiler_name = "C" | compiler_name = "c" 61 then return (C_lang_type); 62 63 else return (OTHER_lang_type); 64 1 1 /* BEGIN INCLUDE FILE ... probe_lang_types.incl.pl1 1 2* 1 3* JRD 26 June 79 1 4* MBW 31 July 1981 to add algol68 */ 1 5 1 6 1 7 /****^ HISTORY COMMENTS: 1 8* 1) change(88-09-20,WAAnderson), approve(88-09-20,MCR7952), 1 9* audit(88-09-30,JRGray), install(88-10-24,MR12.2-1184): 1 10* Added C Language type. 1 11* END HISTORY COMMENTS */ 1 12 1 13 1 14 /* Modified June 83 JMAthane to add PASCAL language type */ 1 15 /* Modified April 88 Hinatsu to add C language type */ 1 16 1 17 dcl (UNKNOWN_lang_type init (1), 1 18 OTHER_lang_type init (2), 1 19 PL1_lang_type init (3), 1 20 FORTRAN_lang_type init (4), 1 21 COBOL_lang_type init (5), 1 22 ALM_lang_type init (6), 1 23 ALGOL68_lang_type init (7), 1 24 PASCAL_lang_type init (8), 1 25 C_lang_type init (9)) fixed bin internal static options (constant); 1 26 1 27 dcl official_language_names (9) char (32) internal static options (constant) init 1 28 ("Unknown", "other", "PL/I", "FORTRAN", "COBOL", "ALM", "Algol 68", "Pascal", "C"); 1 29 1 30 dcl palatable_language_names (9) char (32) internal static options (constant) init 1 31 ("Unknown", "Other", "pl1", "fortran", "cobol", "alm", "algol68", "pascal", "c"); 1 32 1 33 /* END INCLUDE FILE ... probe_lang_types.incl.pl1 */ 65 66 67 end probe_lang_type_; SOURCE FILES USED IN THIS COMPILATION. LINE NUMBER DATE MODIFIED NAME PATHNAME 0 10/24/88 1342.8 probe_lang_type_.pl1 >special_ldd>install>MR12.2-1184>probe_lang_type_.pl1 65 1 10/24/88 1337.2 probe_lang_types.incl.pl1 >special_ldd>install>MR12.2-1184>probe_lang_types.incl.pl1 NAMES DECLARED IN THIS COMPILATION. IDENTIFIER OFFSET LOC STORAGE CLASS DATA TYPE ATTRIBUTES AND REFERENCES (* indicates a set context) NAMES DECLARED BY DECLARE STATEMENT. ALGOL68_lang_type constant fixed bin(17,0) initial dcl 1-17 ref 53 ALM_lang_type constant fixed bin(17,0) initial dcl 1-17 ref 50 COBOL_lang_type constant fixed bin(17,0) initial dcl 1-17 ref 47 C_lang_type constant fixed bin(17,0) initial dcl 1-17 ref 60 FORTRAN_lang_type constant fixed bin(17,0) initial dcl 1-17 ref 42 OTHER_lang_type constant fixed bin(17,0) initial dcl 1-17 ref 63 PASCAL_lang_type constant fixed bin(17,0) initial dcl 1-17 ref 57 PL1_lang_type constant fixed bin(17,0) initial dcl 1-17 ref 39 compiler_name parameter char packed unaligned dcl 37 ref 25 39 39 39 42 42 42 42 42 47 47 50 50 53 53 53 53 57 57 60 60 NAMES DECLARED BY DECLARE STATEMENT AND NEVER REFERENCED. UNKNOWN_lang_type internal static fixed bin(17,0) initial dcl 1-17 official_language_names internal static char(32) initial array packed unaligned dcl 1-27 palatable_language_names internal static char(32) initial array packed unaligned dcl 1-30 NAME DECLARED BY EXPLICIT CONTEXT. probe_lang_type_ 000040 constant entry external dcl 25 THERE WERE NO NAMES DECLARED BY CONTEXT OR IMPLICATION. STORAGE REQUIREMENTS FOR THIS PROGRAM. Object Text Link Symbol Defs Static Start 0 0 260 270 231 270 Length 460 231 10 154 26 0 BLOCK NAME STACK SIZE TYPE WHY NONQUICK/WHO SHARES STACK FRAME probe_lang_type_ 65 external procedure is an external procedure. THE FOLLOWING EXTERNAL OPERATORS ARE USED BY THIS PROGRAM. return_mac ext_entry_desc NO EXTERNAL ENTRIES ARE CALLED BY THIS PROGRAM. NO EXTERNAL VARIABLES ARE USED BY THIS PROGRAM. LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC 25 000034 39 000053 42 000074 47 000123 50 000136 53 000151 57 000174 60 000207 63 000222 ----------------------------------------------------------- Historical Background This edition of the Multics software materials and documentation is provided and donated to Massachusetts Institute of Technology by Group BULL including BULL HN Information Systems Inc. as a contribution to computer science knowledge. This donation is made also to give evidence of the common contributions of Massachusetts Institute of Technology, Bell Laboratories, General Electric, Honeywell Information Systems Inc., Honeywell BULL Inc., Groupe BULL and BULL HN Information Systems Inc. to the development of this operating system. Multics development was initiated by Massachusetts Institute of Technology Project MAC (1963-1970), renamed the MIT Laboratory for Computer Science and Artificial Intelligence in the mid 1970s, under the leadership of Professor Fernando Jose Corbato. Users consider that Multics provided the best software architecture for managing computer hardware properly and for executing programs. Many subsequent operating systems incorporated Multics principles. Multics was distributed in 1975 to 2000 by Group Bull in Europe , and in the U.S. by Bull HN Information Systems Inc., as successor in interest by change in name only to Honeywell Bull Inc. and Honeywell Information Systems Inc. . ----------------------------------------------------------- Permission to use, copy, modify, and distribute these programs and their documentation for any purpose and without fee is hereby granted,provided that the below copyright notice and historical background appear in all copies and that both the copyright notice and historical background and this permission notice appear in supporting documentation, and that the names of MIT, HIS, BULL or BULL HN not be used in advertising or publicity pertaining to distribution of the programs without specific prior written permission. Copyright 1972 by Massachusetts Institute of Technology and Honeywell Information Systems Inc. Copyright 2006 by BULL HN Information Systems Inc. Copyright 2006 by Bull SAS All Rights Reserved