COMPILATION LISTING OF SEGMENT declare_picture_temp Compiled by: Multics PL/I Compiler, Release 32c, of June 16, 1989 Compiled at: Bull HN, Phoenix AZ, System-M Compiled on: 07/31/89 1404.1 mst Mon Options: optimize map 1 /****^ *********************************************************** 2* * * 3* * Copyright, (C) Honeywell Bull Inc., 1987 * 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 15 /****^ HISTORY COMMENTS: 16* 1) change(87-04-15,RWaters), approve(87-04-15,MCR7635), 17* audit(87-04-28,Huen), install(87-05-21,MR12.1-1033): 18* Fix bug #1869 19* END HISTORY COMMENTS */ 20 21 /* Modified 86/06/21 by RW to allow do loop indexes to be picture variables 22**/ 23 declare_picture_temp: proc (pic_str, scalefac, complex_bit, unaligned_bit) returns (ptr); 24 25 26 dcl (p, s) ptr; 27 dcl p_str char (256) varying aligned; 28 dcl pl1_stat_$temporary_list external static pointer; 29 dcl pic_str char (*) aligned; 30 dcl (complex_bit, unaligned_bit) bit (1) aligned; 31 dcl scalefac fixed bin (31) aligned; 32 dcl aligned_bit bit (1); 33 dcl null builtin; 34 35 1 1 /* BEGIN INCLUDE FILE ... declare_type.incl.pl1 */ 1 2 1 3 /* Modified: 25 Apr 1979 by PCK to implement 4-bit decimal */ 1 4 1 5 dcl ( by_declare initial("001"b), 1 6 by_explicit_context initial("010"b), 1 7 by_context initial("011"b), 1 8 by_implication initial("100"b), 1 9 by_compiler initial("101"b)) int static bit(3) aligned options(constant); 1 10 1 11 /* END INCLUDE FILE ... declare_type.incl.pl1 */ 36 2 1 /* BEGIN INCLUDE FILE ... semant.incl.pl1 */ 2 2 2 3 /* Modified: 30 Aug 1979 by PCK to fix 1804 and 1823 */ 2 4 /* Modified: 26 Aug 1979 by PCK to implement by name assignment */ 2 5 2 6 2 7 declare alloc_semantics entry(pointer,pointer,pointer); 2 8 /* parameter 1: (input) block node pointer */ 2 9 /* parameter 2: (input) statement node pointer */ 2 10 /* parameter 3: (in/out) tree pointer */ 2 11 2 12 declare alloc_semantics$init_only entry(pointer,pointer,pointer); 2 13 /* parameter 1: (input) qualifier pointer */ 2 14 /* parameter 2: (input) statement node pointer */ 2 15 /* parameter 3: (input) symbol node pointer */ 2 16 2 17 declare builtin entry(pointer,pointer,pointer,pointer,pointer,bit(36) aligned) 2 18 returns(pointer); 2 19 /* parameter 1: (input) block node pointer */ 2 20 /* parameter 2: (input) statement node pointer */ 2 21 /* parameter 3: (input) tree pointer */ 2 22 /* parameter 4: (input) subscript pointer */ 2 23 /* parameter 5: (input) builtin symbol node pointer */ 2 24 /* parameter 6: (in/out) context */ 2 25 /* return: (output) tree pointer */ 2 26 2 27 declare check_star_extents entry(pointer,pointer); 2 28 /* parameter 1: (input) symbol node of procedure */ 2 29 /* parameter 2: (input) argument list pointer */ 2 30 2 31 declare compare_declaration entry(pointer,pointer,bit(1) aligned) reducible 2 32 returns(bit(1) aligned); 2 33 /* parameter 1: (input) reference or symbol node ptr */ 2 34 /* parameter 2: (input) symbol node ptr */ 2 35 /* parameter 3: (input) "1"b if aligned attribute ignored for string */ 2 36 /* return: (output) compare bit */ 2 37 2 38 declare context_processor entry(pointer,label); 2 39 /* parameter 1: (input) root block node pointer */ 2 40 2 41 declare declare entry(pointer); 2 42 /* parameter 1: (input) symbol node pointer */ 2 43 2 44 declare declare_structure entry(pointer); 2 45 /* parameter 1: (input) symbol node pointer */ 2 46 2 47 declare defined_reference entry(pointer,pointer,pointer,pointer,pointer,bit(36) aligned) 2 48 returns(pointer); 2 49 /* parameter 1: (input) block node pointer */ 2 50 /* parameter 2: (input) statement node pointer */ 2 51 /* parameter 3: (input) tree pointer */ 2 52 /* parameter 4: (input) subscript list pointer or null*/ 2 53 /* parameter 5: (input) symbol node pointer */ 2 54 /* parameter 6: (in/out) context */ 2 55 /* return: (output) tree pointer */ 2 56 2 57 declare do_semantics entry(pointer,pointer,pointer); 2 58 /* parameter 1: (input) block node pointer */ 2 59 /* parameter 2: (input) statement node pointer */ 2 60 /* parameter 3: (input) tree pointer */ 2 61 2 62 declare expand_assign entry(pointer,pointer,pointer,bit(36) aligned,pointer) 2 63 returns(pointer); 2 64 /* parameter 1: (input) block node pointer */ 2 65 /* parameter 2: (input) statement node pointer */ 2 66 /* parameter 3: (input) tree pointer */ 2 67 /* parameter 4: (in/out) context */ 2 68 /* parameter 5: (input) aggregate reference node ptr */ 2 69 /* return: (output) tree pointer */ 2 70 2 71 declare expand_by_name entry(pointer,pointer,pointer); 2 72 /* parameter 1: (input) block node pointer */ 2 73 /* parameter 2: (input) statement node pointer */ 2 74 /* parameter 3: (input/output) tree pointer */ 2 75 2 76 declare expand_infix entry(pointer,pointer,pointer,bit(36) aligned) 2 77 returns(pointer); 2 78 /* parameter 1: (input) block node pointer */ 2 79 /* parameter 2: (input) statement node pointer */ 2 80 /* parameter 3: (input) tree pointer */ 2 81 /* parameter 4: (in/out) context */ 2 82 /* return: (output) tree pointer */ 2 83 2 84 declare expand_initial entry(pointer,pointer,pointer); 2 85 /* parameter 1: (input) symbol node pointer */ 2 86 /* parameter 2: (input) statement node pointer */ 2 87 /* parameter 3: (input) locator */ 2 88 2 89 declare expand_prefix entry(pointer,pointer,pointer,bit(36) aligned) 2 90 returns(pointer); 2 91 /* parameter 1: (input) block node pointer */ 2 92 /* parameter 2: (input) statement node pointer */ 2 93 /* parameter 3: (input) tree pointer */ 2 94 /* parameter 4: (in/out) context */ 2 95 /* return: (output) tree pointer */ 2 96 2 97 declare expand_primitive entry(pointer,pointer,pointer,bit(36) aligned) 2 98 returns(pointer); 2 99 /* parameter 1: (input) block node pointer */ 2 100 /* parameter 2: (input) statement node pointer */ 2 101 /* parameter 3: (input) tree pointer */ 2 102 /* parameter 4: (input) context */ 2 103 /* return: (output) tree pointer */ 2 104 2 105 declare expression_semantics entry(pointer,pointer,pointer,bit(36) aligned) 2 106 returns(pointer); 2 107 /* parameter 1: (input) block node pointer */ 2 108 /* parameter 2: (input) statement node pointer */ 2 109 /* parameter 3: (input) tree pointer */ 2 110 /* parameter 4: (in/out) context */ 2 111 /* return: (output) tree pointer */ 2 112 2 113 declare fill_refer entry(pointer,pointer,bit(1) aligned) 2 114 returns(pointer); 2 115 /* parameter 1: (input) null,ref node,op node ptr */ 2 116 /* parameter 2: (input) null,ref node,op node ptr */ 2 117 /* parameter 3: (input) copy switch for param 2 */ 2 118 /* return: (output) ptr to processed tree */ 2 119 2 120 declare io_data_list_semantics$format_list_semantics entry(pointer,pointer,pointer); 2 121 /* parameter 1: (input) block node pointer */ 2 122 /* parameter 2: (input) statement node pointer */ 2 123 /* parameter 3: (in/out) tree pointer */ 2 124 2 125 declare function entry(pointer,pointer,pointer,pointer,bit(36) aligned) 2 126 returns(pointer); 2 127 /* parameter 1: (input) block node pointer */ 2 128 /* parameter 2: (input) statement node pointer */ 2 129 /* parameter 3: (input) tree pointer */ 2 130 /* parameter 4: (input) symbol node pointer */ 2 131 /* parameter 5: (in/out) context */ 2 132 /* return: (output) tree pointer */ 2 133 2 134 declare generic_selector entry(pointer,pointer,pointer,pointer,bit(36) aligned) 2 135 returns(pointer); 2 136 /* parameter 1: (input) block node pointer */ 2 137 /* parameter 2: (input) statement node pointer */ 2 138 /* parameter 3: (input) tree pointer */ 2 139 /* parameter 4: (input) pointer to argument list */ 2 140 /* parameter 5: (in/out) context */ 2 141 /* return: (output) tree pointer */ 2 142 2 143 declare io_data_list_semantics entry(pointer,pointer,pointer); 2 144 /* parameter 1: (input) block node pointer */ 2 145 /* parameter 2: (input) statement node pointer */ 2 146 /* parameter 3: (input) operator node pointer */ 2 147 2 148 declare io_semantics entry(pointer,pointer,pointer); 2 149 /* parameter 1: (input) block node pointer */ 2 150 /* parameter 2: (input) statement node pointer */ 2 151 /* parameter 3: (input) tree pointer */ 2 152 2 153 declare lookup entry(pointer,pointer,pointer,pointer,bit(36) aligned) 2 154 returns(bit(1) aligned); 2 155 /* parameter 1: (input) block node pointer */ 2 156 /* parameter 2: (input) stmnt|symbol node pointer */ 2 157 /* parameter 3: (input) token or reference node ptr */ 2 158 /* parameter 4: (output) symbol node pointer */ 2 159 /* parameter 5: (in/out) context */ 2 160 /* return: (output) symbol found bit */ 2 161 2 162 declare make_non_quick entry(pointer, bit (36) aligned); 2 163 /* parameter 1: (input) tree pointer */ 2 164 /* parameter 2: (input) reason why being made nonquick */ 2 165 2 166 declare match_arguments entry(pointer,pointer) reducible 2 167 returns(bit(1) aligned); 2 168 /* parameter 1: (input) reference or symbol node ptr */ 2 169 /* parameter 2: (input) reference or symbol node ptr */ 2 170 /* return: (output) compare bit */ 2 171 2 172 declare offset_adder entry(pointer,fixed binary(31),fixed binary(3),bit(1) aligned, 2 173 pointer,fixed binary(31),fixed binary(3),bit(1) aligned,bit(1)); 2 174 /* parameter 1: (in/out) tree pointer */ 2 175 /* parameter 2: (in/out) constant size */ 2 176 /* parameter 3: (in/out) units */ 2 177 /* parameter 4: (in/out) ON if units ^= word_, but tree in words */ 2 178 /* parameter 5: (input) tree pointer */ 2 179 /* parameter 6: (input) constant size */ 2 180 /* parameter 7: (input) units */ 2 181 /* parameter 8: (input) ON if units ^= word_, but tree in words */ 2 182 /* parameter 9: (input) ON if should not improve units */ 2 183 2 184 declare operator_semantics entry(pointer,pointer,pointer,bit(36) aligned) 2 185 returns(pointer); 2 186 /* parameter 1: (input) block node pointer */ 2 187 /* parameter 2: (input) statement node pointer */ 2 188 /* parameter 3: (input) tree pointer */ 2 189 /* parameter 4: (in/out) context */ 2 190 /* return: (output) tree pointer */ 2 191 2 192 declare propagate_bit entry(pointer,fixed binary(15)); 2 193 /* parameter 1: (input) symbol node pointer */ 2 194 /* parameter 2: (input) attribute number */ 2 195 2 196 declare semantic_translator$call_es entry(pointer,pointer,pointer,label,bit(1) aligned) 2 197 returns(pointer); 2 198 /* parameter 1: (input) block ptr */ 2 199 /* parameter 2: (input) statement ptr */ 2 200 /* parameter 3: (input) tree ptr */ 2 201 /* parameter 4: (input) failure label */ 2 202 /* parameter 5: (input) "1"b -- convert to integer */ 2 203 /* return: (output) tree ptr */ 2 204 2 205 declare simplify_expression entry(pointer,fixed bin,bit(1)aligned); 2 206 /* parameter 1: (in/out) tree pointer */ 2 207 /* parameter 2: (output) value of constant, if the entire tree 2 208* is simplified */ 2 209 /* parameter 3: (output) bit indicating if the tree has 2 210* been simplified */ 2 211 2 212 declare simplify_offset entry(pointer,bit(36) aligned); 2 213 /* parameter 1: (input) reference node pointer */ 2 214 /* parameter 2: (input) context */ 2 215 2 216 declare subscripter entry(pointer,pointer,pointer,pointer,pointer) 2 217 returns(pointer); 2 218 /* parameter 1: (input) block node pointer */ 2 219 /* parameter 2: (input) statement node pointer */ 2 220 /* parameter 3: (input) tree pointer */ 2 221 /* parameter 4: (in/out) subscript list pointer */ 2 222 /* parameter 5: (input) symbol node pointer */ 2 223 /* return: (output) reference node pointer */ 2 224 2 225 declare validate entry(pointer); 2 226 /* parameter 1: (input) symbol node pointer */ 2 227 3 1 /****^ ********************************************************* 3 2* * * 3 3* * Copyright, (C) BULL HN Information Systems Inc., 1989 * 3 4* * * 3 5* ********************************************************* */ 3 6 3 7 /* BEGIN INCLUDE FILE ... language_utility.incl.pl1 */ 3 8 3 9 3 10 /****^ HISTORY COMMENTS: 3 11* 1) change(89-07-10,RWaters), approve(89-07-10,MCR8118), audit(89-07-19,Vu), 3 12* install(89-07-31,MR12.3-1066): 3 13* Removed the obsolete parameter source_line from the dcl of error_(). 3 14* END HISTORY COMMENTS */ 3 15 3 16 /* Modified: 6 Jun 1979 by PG to add rank and byte 3 17* * Modified: 9 Jul 1989 by RW updated the declaration of error_ 3 18* */ 3 19 3 20 declare adjust_count entry(pointer); 3 21 /* parameter 1: (input) any node pointer */ 3 22 3 23 declare bindec entry(fixed bin(31)) reducible 3 24 returns(character(12) aligned); 3 25 /* parameter 1: (input) bin value */ 3 26 /* return: (output) character value with blanks */ 3 27 3 28 declare bindec$vs entry(fixed bin(31)) reducible 3 29 returns(character(12) aligned varying); 3 30 /* parameter 1: (input) binary value */ 3 31 /* return: (output) char value without blanks */ 3 32 3 33 declare binoct entry(fixed bin(31)) reducible 3 34 returns(char(12) aligned); 3 35 /* parameter 1: (input) binary value */ 3 36 /* return: (output) char value with blanks */ 3 37 3 38 declare binary_to_octal_string entry(fixed bin(31)) reducible 3 39 returns(char(12) aligned); 3 40 /* parameter 1: (input) binary value */ 3 41 /* return: (output) right-aligned char value */ 3 42 3 43 declare binary_to_octal_var_string entry(fixed bin(31)) reducible 3 44 returns(char(12) varying aligned); 3 45 /* parameter 1: (input) binary value */ 3 46 /* returns: (output) char value without blanks */ 3 47 3 48 declare compare_expression entry(pointer,pointer) reducible 3 49 returns(bit(1) aligned); 3 50 /* parameter 1: (input) any node pointer */ 3 51 /* parameter 2: (input) any node pointer */ 3 52 /* return: (output) compare bit */ 3 53 3 54 declare constant_length entry (pointer, fixed bin (71)) 3 55 returns (bit (1) aligned); 3 56 /* parameter 1: (input) reference node pointer */ 3 57 /* parameter 2: (input) value of constant length */ 3 58 /* return: (output) "1"b if constant length */ 3 59 3 60 declare convert entry(pointer,bit(36) aligned) 3 61 returns(pointer); 3 62 /* parameter 1: (input) any node pointer */ 3 63 /* parameter 2: (input) target type */ 3 64 /* return: (output) target value tree pointer */ 3 65 3 66 declare convert$to_integer entry(pointer,bit(36)aligned) 3 67 returns(pointer); 3 68 /* parameter 1: (input) any node pointer */ 3 69 /* parameter 2: (input) target type */ 3 70 /* return: (output) target value tree pointer */ 3 71 3 72 declare convert$from_builtin entry(pointer,bit(36) aligned) 3 73 returns(pointer); 3 74 /* parameter 1: (input) any node pointer */ 3 75 /* parameter 2: (input) target type */ 3 76 /* return: (output) target value tree pointer */ 3 77 3 78 declare convert$validate entry(pointer,pointer); 3 79 /* parameter 1: (input) source value tree pointer */ 3 80 /* parameter 2: (input) target reference node pointer */ 3 81 3 82 declare convert$to_target_fb entry(pointer,pointer) 3 83 returns(pointer); 3 84 /* parameter 1: (input) source value tree pointer */ 3 85 /* parameter 2: (input) target reference node pointer */ 3 86 /* return: (output) target value tree pointer */ 3 87 3 88 declare convert$to_target entry(pointer,pointer) 3 89 returns(pointer); 3 90 /* parameter 1: (input) source value tree pointer */ 3 91 /* parameter 2: (input) target reference node pointer */ 3 92 /* return: (output) target value tree pointer */ 3 93 3 94 declare copy_expression entry(pointer unaligned) 3 95 returns(pointer); 3 96 /* parameter 1: (input) any node pointer */ 3 97 /* return: (output) any node pointer */ 3 98 3 99 declare copy_expression$copy_sons entry(pointer,pointer); 3 100 /* parameter 1: (input) father symbol node pointer */ 3 101 /* parameter 2: (input) stepfather symbol node ptr */ 3 102 3 103 declare copy_unique_expression entry(pointer) 3 104 returns(pointer); 3 105 /* parameter 1: (input) any node pointer */ 3 106 /* return: (output) any node pointer */ 3 107 3 108 declare create_array entry() 3 109 returns(pointer); 3 110 /* return: (output) array node pointer */ 3 111 3 112 declare create_block entry(bit(9) aligned,pointer) 3 113 returns(pointer); 3 114 /* parameter 1: (input) block type */ 3 115 /* parameter 2: (input) father block node pointer */ 3 116 /* return: (output) block node pointer */ 3 117 3 118 declare create_bound entry() 3 119 returns(pointer); 3 120 /* return: (output) bound node pointer */ 3 121 3 122 declare create_context entry(pointer,pointer) 3 123 returns(pointer); 3 124 /* parameter 1: (input) block node pointer */ 3 125 /* parameter 2: (input) token pointer */ 3 126 /* return: (output) context node pointer */ 3 127 3 128 declare create_cross_reference entry() 3 129 returns(pointer); 3 130 /* return: (output) cross reference node pointer */ 3 131 3 132 declare create_default entry 3 133 returns(pointer); 3 134 /* return: (output) default node pointer */ 3 135 3 136 declare create_identifier entry() 3 137 returns(pointer); 3 138 /* return: (output) token node pointer */ 3 139 3 140 declare create_label entry(pointer,pointer,bit(3) aligned) 3 141 returns(pointer); 3 142 /* parameter 1: (input) block node pointer */ 3 143 /* parameter 2: (input) token node pointer */ 3 144 /* parameter 3: (input) declare type */ 3 145 /* return: (output) label node pointer */ 3 146 3 147 declare create_list entry(fixed bin(15)) 3 148 returns(pointer); 3 149 /* parameter 1: (input) number of list elements */ 3 150 /* return: (output) list node pointer */ 3 151 3 152 declare create_operator entry(bit(9) aligned,fixed bin(15)) 3 153 returns(pointer); 3 154 /* parameter 1: (input) operator type */ 3 155 /* parameter 2: (input) number of operands */ 3 156 /* return: (output) operator node pointer */ 3 157 3 158 declare create_reference entry(pointer) 3 159 returns(pointer); 3 160 /* parameter 1: (input) symbol node pointer */ 3 161 /* return: (output) reference node pointer */ 3 162 3 163 declare create_statement entry(bit(9) aligned,pointer,pointer,bit(12) aligned) 3 164 returns(pointer); 3 165 /* parameter 1: (input) statement type */ 3 166 /* parameter 2: (input) block node pointer */ 3 167 /* parameter 3: (input) label node pointer */ 3 168 /* parameter 4: (input) conditions */ 3 169 /* return: (output) statement node pointer */ 3 170 3 171 declare create_statement$prologue entry(bit(9) aligned,pointer,pointer,bit(12) aligned) 3 172 returns(pointer); 3 173 /* parameter 1: (input) statement type */ 3 174 /* parameter 2: (input) block node pointer */ 3 175 /* parameter 3: (input) label node pointer */ 3 176 /* parameter 4: (input) conditions */ 3 177 /* return: (output) statement node pointer */ 3 178 3 179 declare create_storage entry(fixed bin(15)) 3 180 returns(pointer); 3 181 /* parameter 1: (input) number of words */ 3 182 /* return: (output) storage block pointer */ 3 183 3 184 declare create_symbol entry(pointer,pointer,bit(3) aligned) 3 185 returns(pointer); 3 186 /* parameter 1: (input) block node pointer */ 3 187 /* parameter 2: (input) token node pointer */ 3 188 /* parameter 3: (input) declare type */ 3 189 /* return: (output) symbol node pointer */ 3 190 3 191 declare create_token entry (character (*), bit (9) aligned) 3 192 returns (ptr); 3 193 /* parameter 1: (input) token string */ 3 194 /* parameter 2: (input) token type */ 3 195 /* return: (output) token node ptr */ 3 196 3 197 declare create_token$init_hash_table entry (); 3 198 3 199 declare create_token$protected entry (char (*), bit (9) aligned, bit (18) aligned) 3 200 returns (ptr); 3 201 /* parameter 1: (input) token string */ 3 202 /* parameter 2: (input) token type */ 3 203 /* parameter 3: (input) protected flag */ 3 204 /* return: (output) token node ptr */ 3 205 3 206 declare decbin entry(character(*) aligned) reducible 3 207 returns(fixed bin(31)); 3 208 /* parameter 1: (input) decimal character string */ 3 209 /* return: (output) binary value */ 3 210 3 211 declare declare_constant entry(bit(*) aligned,bit(36) aligned,fixed bin(31),fixed bin(15)) 3 212 returns(pointer); 3 213 /* parameter 1: (input) value */ 3 214 /* parameter 2: (input) type */ 3 215 /* parameter 3: (input) size */ 3 216 /* parameter 4: (input) scale */ 3 217 /* return: (output) reference node pointer */ 3 218 3 219 declare declare_constant$bit entry(bit(*) aligned) 3 220 returns(pointer); 3 221 /* parameter 1: (input) bit */ 3 222 /* return: (output) reference node pointer */ 3 223 3 224 declare declare_constant$char entry(character(*) aligned) 3 225 returns(pointer); 3 226 /* parameter 1: (input) character */ 3 227 /* return: (output) reference node pointer */ 3 228 3 229 declare declare_constant$desc entry(bit(*) aligned) 3 230 returns(pointer); 3 231 /* parameter 1: (input) descriptor bit value */ 3 232 /* return: (output) reference node pointer */ 3 233 3 234 declare declare_constant$integer entry(fixed bin(31)) /* note...should really be fixed bin(24) */ 3 235 returns(pointer); 3 236 /* parameter 1: (input) integer */ 3 237 /* return: (output) reference node pointer */ 3 238 3 239 declare declare_descriptor entry(pointer,pointer,pointer,pointer,bit(2) aligned) 3 240 returns(pointer); 3 241 /* parameter 1: (input) block node pointer */ 3 242 /* parameter 2: (input) statement node pointer */ 3 243 /* parameter 3: (input) symbol node pointer */ 3 244 /* parameter 4: (input) loc pointer */ 3 245 /* parameter 5: (input) array descriptor bit 3 246* cross_section bit */ 3 247 /* return: (output) reference node pointer */ 3 248 3 249 declare declare_descriptor$ctl entry(pointer,pointer,pointer,pointer,bit(2) aligned) 3 250 returns(pointer); 3 251 /* parameter 1: (input) block node pointer */ 3 252 /* parameter 2: (input) statement node pointer */ 3 253 /* parameter 3: (input) symbol node pointer */ 3 254 /* parameter 4: (input) loc pointer */ 3 255 /* parameter 5: (input) array descriptor bit 3 256* cross_section bit */ 3 257 /* return: (output) reference node pointer */ 3 258 3 259 declare declare_descriptor$param entry(pointer,pointer,pointer,pointer,bit(2) aligned) 3 260 returns(pointer); 3 261 /* parameter 1: (input) block node pointer */ 3 262 /* parameter 2: (input) statement node pointer */ 3 263 /* parameter 3: (input) symbol node pointer */ 3 264 /* parameter 4: (input) loc pointer */ 3 265 /* parameter 5: (input) array descriptor bit 3 266* cross_section bit */ 3 267 /* return: (output) reference node pointer */ 3 268 3 269 declare declare_integer entry(pointer) 3 270 returns(pointer); 3 271 /* parameter 1: (input) block node pointer */ 3 272 /* return: (output) reference node pointer */ 3 273 3 274 declare declare_picture entry(char(*)aligned,pointer,fixed bin(15)); 3 275 /* parameter 1: (input) picture string */ 3 276 /* parameter 2: (input) symbol node pointer */ 3 277 /* parameter 3: (output) error code, if any */ 3 278 3 279 declare declare_picture_temp entry(char(*) aligned,fixed bin(31),bit(1) aligned,bit(1) aligned) 3 280 returns(pointer); 3 281 /* parameter 1: (input) picture string */ 3 282 /* parameter 2: (input) scalefactor of picture */ 3 283 /* parameter 3: (input) ="1"b => complex picture */ 3 284 /* parameter 4: (input) ="1"b => unaligned temp */ 3 285 /* return: (output) reference node pointer */ 3 286 3 287 declare declare_pointer entry(pointer) 3 288 returns(pointer); 3 289 /* parameter 1: (input) block node pointer */ 3 290 /* return: (output) reference node pointer */ 3 291 3 292 declare declare_temporary entry(bit(36) aligned,fixed bin(31),fixed bin(15),pointer) 3 293 returns(pointer); 3 294 /* parameter 1: (input) type */ 3 295 /* parameter 2: (input) precision */ 3 296 /* parameter 3: (input) scale */ 3 297 /* parameter 4: (input) length */ 3 298 /* return: (output) reference node pointer */ 3 299 3 300 declare decode_node_id entry(pointer,bit(1) aligned) 3 301 returns(char(120) varying); 3 302 /* parameter 1: (input) node pointer */ 3 303 /* parameter 2: (input) ="1"b => capitals */ 3 304 /* return: (output) source line id */ 3 305 3 306 declare decode_source_id entry( 4 1 1 structure unaligned, 4 2 2 /* file_number */ bit(8), 4 3 2 /* line_number */ bit(14), 4 4 2 /* stmt_number */ bit(5), 3 307 3 308 bit(1) aligned) 3 309 returns(char(120) varying); 3 310 /* parameter 1: (input) source id */ 3 311 /* parameter 2: (input) ="1"b => capitals */ 3 312 /* return: (output) source line id */ 3 313 3 314 declare error entry(fixed bin(15),pointer,pointer); 3 315 /* parameter 1: (input) error number */ 3 316 /* parameter 2: (input) statement node pointer or null*/ 3 317 /* parameter 3: (input) token node pointer */ 3 318 3 319 declare error$omit_text entry(fixed bin(15),pointer,pointer); 3 320 /* parameter 1: (input) error number */ 3 321 /* parameter 2: (input) statement node pointer or null*/ 3 322 /* parameter 3: (input) token node pointer */ 3 323 3 324 declare error_ entry(fixed bin(15), 5 1 1 structure unaligned, 5 2 2 /* file_number */ bit(8), 5 3 2 /* line_number */ bit(14), 5 4 2 /* stmt_number */ bit(5), 3 325 3 326 pointer,fixed bin(8),fixed bin(23),fixed bin(11)); 3 327 /* parameter 1: (input) error number */ 3 328 /* parameter 2: (input) statement id */ 3 329 /* parameter 3: (input) any node pointer */ 3 330 /* parameter 4: (input) source segment */ 3 331 /* parameter 5: (input) source starting character */ 3 332 /* parameter 6: (input) source length */ 3 333 3 334 declare error_$no_text entry(fixed bin(15), 6 1 1 structure unaligned, 6 2 2 /* file_number */ bit(8), 6 3 2 /* line_number */ bit(14), 6 4 2 /* stmt_number */ bit(5), 3 335 3 336 pointer); 3 337 /* parameter 1: (input) error number */ 3 338 /* parameter 2: (input) statement id */ 3 339 /* parameter 3: (input) any node pointer */ 3 340 3 341 declare error_$initialize_error entry(); 3 342 3 343 declare error_$finish entry(); 3 344 3 345 declare free_node entry(pointer); 3 346 /* parameter 1: any node pointer */ 3 347 3 348 declare get_array_size entry(pointer,fixed bin(3)); 3 349 /* parameter 1: (input) symbol node pointer */ 3 350 /* parameter 2: (input) units */ 3 351 3 352 declare get_size entry(pointer); 3 353 /* parameter 1: (input) symbol node pointer */ 3 354 3 355 declare merge_attributes external entry(pointer,pointer) 3 356 returns(bit(1) aligned); 3 357 /* parameter 1: (input) target symbol node pointer */ 3 358 /* parameter 2: (input) source symbol node pointer */ 3 359 /* return: (output) "1"b if merge was unsuccessful */ 3 360 3 361 declare optimizer entry(pointer); 3 362 /* parameter 1: (input) root pointer */ 3 363 3 364 declare parse_error entry(fixed bin(15),pointer); 3 365 /* parameter 1: (input) error number */ 3 366 /* parameter 2: (input) any node pointer */ 3 367 3 368 declare parse_error$no_text entry(fixed bin(15),pointer); 3 369 /* parameter 1: (input) error number */ 3 370 /* parameter 2: (input) any node pointer */ 3 371 3 372 declare pl1_error_print$write_out 3 373 entry(fixed bin(15), 7 1 1 structure unaligned, 7 2 2 /* file_number */ bit(8), 7 3 2 /* line_number */ bit(14), 7 4 2 /* stmt_number */ bit(5), 3 374 3 375 pointer,fixed bin(11),fixed bin(31),fixed bin(31),fixed bin(15)); 3 376 /* parameter 1: (input) error number */ 3 377 /* parameter 2: (input) statement identification */ 3 378 /* parameter 3: (input) any node pointer */ 3 379 /* parameter 4: (input) source segment */ 3 380 /* parameter 5: (input) source character index */ 3 381 /* parameter 6: (input) source length */ 3 382 /* parameter 7: (input) source line */ 3 383 3 384 declare pl1_error_print$listing_segment 3 385 entry(fixed bin(15), 8 1 1 structure unaligned, 8 2 2 /* file_number */ bit(8), 8 3 2 /* line_number */ bit(14), 8 4 2 /* stmt_number */ bit(5), 3 386 3 387 pointer); 3 388 /* parameter 1: (input) error number */ 3 389 /* parameter 2: (input) statement identification */ 3 390 /* parameter 3: (input) token node pointer */ 3 391 3 392 declare pl1_print$varying entry(character(*) aligned varying); 3 393 /* parameter 1: (input) string */ 3 394 3 395 declare pl1_print$varying_nl entry(character(*) aligned varying); 3 396 /* parameter 1: (input) string */ 3 397 3 398 declare pl1_print$non_varying entry(character(*) aligned,fixed bin(31)); 3 399 /* parameter 1: (input) string */ 3 400 /* parameter 2: (input) string length or 0 */ 3 401 3 402 declare pl1_print$non_varying_nl entry(character(*) aligned,fixed bin(31)); 3 403 /* parameter 1: (input) string */ 3 404 /* parameter 2: (input) string length or 0 */ 3 405 3 406 declare pl1_print$string_pointer entry(pointer,fixed bin(31)); 3 407 /* parameter 1: (input) string pointer */ 3 408 /* parameter 2: (input) string size */ 3 409 3 410 declare pl1_print$string_pointer_nl entry(pointer,fixed bin(31)); 3 411 /* parameter 1: (input) string pointer */ 3 412 /* parameter 2: (input) string length or 0 */ 3 413 3 414 declare pl1_print$unaligned_nl entry(character(*) unaligned,fixed bin(31)); 3 415 /* parameter 1: (input) string */ 3 416 /* parameter 2: (input) length */ 3 417 3 418 declare pl1_print$for_lex entry (ptr, fixed bin (14), fixed bin (21), fixed bin (21), bit (1) aligned, bit (1) aligned); 3 419 /* parameter 1: (input) ptr to base of source segment */ 3 420 /* parameter 2: (input) line number */ 3 421 /* parameter 3: (input) starting offset in source seg */ 3 422 /* parameter 4: (input) number of chars to copy */ 3 423 /* parameter 5: (input) ON iff shd print line number */ 3 424 /* parameter 6: (input) ON iff line begins in comment */ 3 425 3 426 declare refer_extent entry(pointer,pointer); 3 427 /* parameter 1: (input/output) null,ref node,op node pointer */ 3 428 /* parameter 2: (input) null,ref node,op node pointer */ 3 429 3 430 declare reserve$clear entry() 3 431 returns(pointer); 3 432 /* return: (output) pointer */ 3 433 3 434 declare reserve$declare_lib entry(fixed bin(15)) 3 435 returns(pointer); 3 436 /* parameter 1: (input) builtin function number */ 3 437 /* return: (output) pointer */ 3 438 3 439 declare reserve$read_lib entry(fixed bin(15)) 3 440 returns(pointer); 3 441 /* parameter 1: (input) builtin function number */ 3 442 /* return: (output) pointer */ 3 443 3 444 declare semantic_translator entry(); 3 445 3 446 declare semantic_translator$abort entry(fixed bin(15),pointer); 3 447 /* parameter 1: (input) error number */ 3 448 /* parameter 2: (input) any node pointer */ 3 449 3 450 declare semantic_translator$error entry(fixed bin(15),pointer); 3 451 /* parameter 1: (input) error number */ 3 452 /* parameter 2: (input) any node pointer */ 3 453 3 454 declare share_expression entry(ptr) 3 455 returns(ptr); 3 456 /* parameter 1: (input) usually operator node pointer */ 3 457 /* return: (output) tree pointer or null */ 3 458 3 459 declare token_to_binary entry(ptr) reducible 3 460 returns(fixed bin(31)); 3 461 /* parameter 1: (input) token node pointer */ 3 462 /* return: (output) converted binary value */ 3 463 3 464 /* END INCLUDE FILE ... language_utility.incl.pl1 */ 2 228 2 229 /* END INCLUDE FILE ... semant.incl.pl1 */ 37 9 1 /* BEGIN INCLUDE FILE ... token_types.incl.pl1 */ 9 2 9 3 dcl ( no_token initial("000000000"b), /* token types */ 9 4 identifier initial("100000000"b), 9 5 isub initial("010000000"b), 9 6 plus initial("001000001"b), 9 7 minus initial("001000010"b), 9 8 asterisk initial("001000011"b), 9 9 slash initial("001000100"b), 9 10 expon initial("001000101"b), 9 11 not initial("001000110"b), 9 12 and initial("001000111"b), 9 13 or initial("001001000"b), 9 14 cat initial("001001001"b), 9 15 eq initial("001001010"b), 9 16 ne initial("001001011"b), 9 17 lt initial("001001100"b), 9 18 gt initial("001001101"b), 9 19 le initial("001001110"b), 9 20 ge initial("001001111"b), 9 21 ngt initial("001010000"b), 9 22 nlt initial("001010001"b), 9 23 assignment initial("001010010"b), 9 24 colon initial("001010011"b), 9 25 semi_colon initial("001010100"b), 9 26 comma initial("001010101"b), 9 27 period initial("001010110"b), 9 28 arrow initial("001010111"b), 9 29 left_parn initial("001011000"b), 9 30 right_parn initial("001011001"b), 9 31 percent initial("001011100"b), 9 32 bit_string initial("000100001"b), 9 33 char_string initial("000100010"b), 9 34 bin_integer initial("000110001"b), 9 35 dec_integer initial("000110011"b), 9 36 fixed_bin initial("000110000"b), 9 37 fixed_dec initial("000110010"b), 9 38 float_bin initial("000110100"b), 9 39 float_dec initial("000110110"b), 9 40 i_bin_integer initial("000111001"b), 9 41 i_dec_integer initial("000111011"b), 9 42 i_fixed_bin initial("000111000"b), 9 43 i_fixed_dec initial("000111010"b), 9 44 i_float_bin initial("000111100"b), 9 45 i_float_dec initial("000111110"b)) bit (9) aligned internal static options (constant); 9 46 9 47 dcl ( is_identifier initial ("100000000"b), /* token type masks */ 9 48 is_isub initial ("010000000"b), 9 49 is_delimiter initial ("001000000"b), 9 50 is_constant initial ("000100000"b), 9 51 is_arith_constant initial ("000010000"b), /* N.B. not really a mask...s/b "000110000"b */ 9 52 is_arithmetic_constant initial ("000110000"b), 9 53 is_imaginary_constant initial ("000111000"b), 9 54 is_float_constant initial ("000110100"b), 9 55 is_decimal_constant initial ("000110010"b), 9 56 is_integral_constant initial ("000110001"b) 9 57 ) bit(9) internal static aligned options(constant); 9 58 9 59 /* END INCLUDE FILE ... token_types.incl.pl1 */ 38 10 1 /* BEGIN INCLUDE FILE ... picture_image.incl.pl1 10 2* 10 3* James R. Davis 12 Mar 79 10 4**/ 10 5 10 6 dcl 1 picture_image aligned based, 10 7 2 type fixed bin (8) unal, 10 8 2 prec fixed bin (8) unal, /* precision or length of associated value */ 10 9 2 scale fixed bin (8) unal, /* for both fixed and float pictures, 10 10* =ndigits after "v" - scale_factor */ 10 11 2 piclength fixed bin (8) unal, /* length of picture_constant.chars, <64 10 12* =length of normalized-picture-string */ 10 13 2 varlength fixed bin (8) unal, /* length of pictured variable in chars, <64 10 14* =length of normalized_picture_string - "k" and "v" */ 10 15 2 scalefactor fixed bin (8) unal, /* value of pict-sc-f, -256<=x<256 */ 10 16 2 explength fixed bin (8) unal, /* length of exp field for float */ 10 17 2 drift_character char (1) unal, 10 18 2 chars char (0 refer (picture_image.piclength)) aligned; 10 19 10 20 dcl ( 10 21 picture_char_type init (24), 10 22 picture_realfix_type init (25), 10 23 picture_complexfix_type 10 24 init (26), 10 25 picture_realflo_type init (27), 10 26 picture_complexflo_type 10 27 init (28) 10 28 ) fixed bin (8) unal static internal options (constant); 10 29 10 30 /* END INCLUDE FILE ... picture_image.incl.pl1 */ 39 11 1 /* BEGIN INCLUDE FILE ... symbol.incl.pl1 */ 11 2 11 3 dcl 1 symbol based aligned, 11 4 2 node_type bit(9) unal, 11 5 2 source_id structure unal, 11 6 3 file_number bit(8), 11 7 3 line_number bit(14), 11 8 3 statement_number bit(5), 11 9 2 location fixed(18) unal unsigned, 11 10 2 allocated bit(1) unal, 11 11 2 dcl_type bit(3) unal, 11 12 2 reserved bit(6) unal, 11 13 2 pix unal, 11 14 3 pic_fixed bit(1) unal, 11 15 3 pic_float bit(1) unal, 11 16 3 pic_char bit(1) unal, 11 17 3 pic_scale fixed(7) unal, 11 18 3 pic_size fixed(7) unal, 11 19 2 level fixed(8) unal, 11 20 2 boundary fixed(3) unal, 11 21 2 size_units fixed(3) unal, 11 22 2 scale fixed(7) unal, 11 23 2 runtime bit(18) unal, 11 24 2 runtime_offset bit(18) unal, 11 25 2 block_node ptr unal, 11 26 2 token ptr unal, 11 27 2 next ptr unal, 11 28 2 multi_use ptr unal, 11 29 2 cross_references ptr unal, 11 30 2 initial ptr unal, 11 31 2 array ptr unal, 11 32 2 descriptor ptr unal, 11 33 2 equivalence ptr unal, 11 34 2 reference ptr unal, 11 35 2 general ptr unal, 11 36 2 father ptr unal, 11 37 2 brother ptr unal, 11 38 2 son ptr unal, 11 39 2 word_size ptr unal, 11 40 2 bit_size ptr unal, 11 41 2 dcl_size ptr unal, 11 42 2 symtab_size ptr unal, 11 43 2 c_word_size fixed(24), 11 44 2 c_bit_size fixed(24), 11 45 2 c_dcl_size fixed(24), 11 46 11 47 2 attributes structure aligned, 11 48 3 data_type structure unal, 11 49 4 structure bit(1) , 11 50 4 fixed bit(1), 11 51 4 float bit(1), 11 52 4 bit bit(1), 11 53 4 char bit(1), 11 54 4 ptr bit(1), 11 55 4 offset bit(1), 11 56 4 area bit(1), 11 57 4 label bit(1), 11 58 4 entry bit(1), 11 59 4 file bit(1), 11 60 4 arg_descriptor bit(1), 11 61 4 storage_block bit(1), 11 62 4 explicit_packed bit(1), /* options(packed) */ 11 63 4 condition bit(1), 11 64 4 format bit(1), 11 65 4 builtin bit(1), 11 66 4 generic bit(1), 11 67 4 picture bit(1), 11 68 11 69 3 misc_attributes structure unal, 11 70 4 dimensioned bit(1), 11 71 4 initialed bit(1), 11 72 4 aligned bit(1), 11 73 4 unaligned bit(1), 11 74 4 signed bit(1), 11 75 4 unsigned bit(1), 11 76 4 precision bit(1), 11 77 4 varying bit(1), 11 78 4 local bit(1), 11 79 4 decimal bit(1), 11 80 4 binary bit(1), 11 81 4 real bit(1), 11 82 4 complex bit(1), 11 83 4 variable bit(1), 11 84 4 reducible bit(1), 11 85 4 irreducible bit(1), 11 86 4 returns bit(1), 11 87 4 position bit(1), 11 88 4 internal bit(1), 11 89 4 external bit(1), 11 90 4 like bit(1), 11 91 4 member bit(1), 11 92 4 non_varying bit(1), 11 93 4 options bit(1), 11 94 4 variable_arg_list bit(1), /* options(variable) */ 11 95 4 alloc_in_text bit(1), /* options(constant) */ 11 96 11 97 3 storage_class structure unal, 11 98 4 auto bit(1), 11 99 4 based bit(1), 11 100 4 static bit(1), 11 101 4 controlled bit(1), 11 102 4 defined bit(1), 11 103 4 parameter bit(1), 11 104 4 param_desc bit(1), 11 105 4 constant bit(1), 11 106 4 temporary bit(1), 11 107 4 return_value bit(1), 11 108 11 109 3 file_attributes structure unal, 11 110 4 print bit(1), 11 111 4 input bit(1), 11 112 4 output bit(1), 11 113 4 update bit(1), 11 114 4 stream bit(1), 11 115 4 reserved_1 bit(1), 11 116 4 record bit(1), 11 117 4 sequential bit(1), 11 118 4 direct bit(1), 11 119 4 interactive bit(1), /* env(interactive) */ 11 120 4 reserved_2 bit(1), 11 121 4 reserved_3 bit(1), 11 122 4 stringvalue bit(1), /* env(stringvalue) */ 11 123 4 keyed bit(1), 11 124 4 reserved_4 bit(1), 11 125 4 environment bit(1), 11 126 11 127 3 compiler_developed structure unal, 11 128 4 aliasable bit(1), 11 129 4 packed bit(1), 11 130 4 passed_as_arg bit(1), 11 131 4 allocate bit(1), 11 132 4 set bit(1), 11 133 4 exp_extents bit(1), 11 134 4 refer_extents bit(1), 11 135 4 star_extents bit(1), 11 136 4 isub bit(1), 11 137 4 put_in_symtab bit(1), 11 138 4 contiguous bit(1), 11 139 4 put_data bit(1), 11 140 4 overlayed bit(1), 11 141 4 error bit(1), 11 142 4 symtab_processed bit(1), 11 143 4 overlayed_by_builtin bit(1), 11 144 4 defaulted bit(1), 11 145 4 connected bit(1); 11 146 11 147 /* END INCLUDE FILE ... symbol.incl.pl1 */ 40 12 1 /* BEGIN INCLUDE FILE ... reference.incl.pl1 */ 12 2 12 3 dcl 1 reference based aligned, 12 4 2 node_type bit(9) unaligned, 12 5 2 array_ref bit(1) unaligned, 12 6 2 varying_ref bit(1) unaligned, 12 7 2 shared bit(1) unaligned, 12 8 2 put_data_sw bit(1) unaligned, 12 9 2 processed bit(1) unaligned, 12 10 2 units fixed(3) unaligned, 12 11 2 ref_count fixed(17) unaligned, 12 12 2 c_offset fixed(24), 12 13 2 c_length fixed(24), 12 14 2 symbol ptr unaligned, 12 15 2 qualifier ptr unaligned, 12 16 2 offset ptr unaligned, 12 17 2 length ptr unaligned, 12 18 2 subscript_list ptr unaligned, 12 19 /* these fields are used by the 645 code generator */ 12 20 2 address structure unaligned, 12 21 3 base bit(3), 12 22 3 offset bit(15), 12 23 3 op bit(9), 12 24 3 no_address bit(1), 12 25 3 inhibit bit(1), 12 26 3 ext_base bit(1), 12 27 3 tag bit(6), 12 28 2 info structure unaligned, 12 29 3 address_in structure, 12 30 4 b dimension(0:7) bit(1), 12 31 4 storage bit(1), 12 32 3 value_in structure, 12 33 4 a bit(1), 12 34 4 q bit(1), 12 35 4 aq bit(1), 12 36 4 string_aq bit(1), 12 37 4 complex_aq bit(1), 12 38 4 decimal_aq bit(1), 12 39 4 b dimension(0:7) bit(1), 12 40 4 storage bit(1), 12 41 4 indicators bit(1), 12 42 4 x dimension(0:7) bit(1), 12 43 3 other structure, 12 44 4 big_offset bit(1), 12 45 4 big_length bit(1), 12 46 4 modword_in_offset bit(1), 12 47 2 data_type fixed(5) unaligned, 12 48 2 bits structure unaligned, 12 49 3 padded_ref bit(1), 12 50 3 aligned_ref bit(1), 12 51 3 long_ref bit(1), 12 52 3 forward_ref bit(1), 12 53 3 ic_ref bit(1), 12 54 3 temp_ref bit(1), 12 55 3 defined_ref bit(1), 12 56 3 evaluated bit(1), 12 57 3 allocate bit(1), 12 58 3 allocated bit(1), 12 59 3 aliasable bit(1), 12 60 3 even bit(1), 12 61 3 perm_address bit(1), 12 62 3 aggregate bit(1), 12 63 3 hit_zero bit(1), 12 64 3 dont_save bit(1), 12 65 3 fo_in_qual bit(1), 12 66 3 hard_to_load bit(1), 12 67 2 relocation bit(12) unaligned, 12 68 2 more_bits structure unaligned, 12 69 3 substr bit(1), 12 70 3 padded_for_store_ref bit(1), 12 71 3 aligned_for_store_ref bit(1), 12 72 3 mbz bit(15), 12 73 2 store_ins bit(18) unaligned; 12 74 12 75 /* END INCLUDE FILE ... reference.incl.pl1 */ 41 42 43 aligned_bit = ^unaligned_bit; 44 do s = pl1_stat_$temporary_list repeat s -> symbol.multi_use while (s ^= null); 45 if s -> symbol.picture 46 then if s -> symbol.aligned = aligned_bit 47 then if s -> symbol.complex = complex_bit 48 then do; 49 if s -> symbol.general ^= null then do; 50 p = s -> symbol.general -> reference.symbol -> symbol.initial; 51 if p -> picture_image.chars = pic_str 52 then if p -> picture_image.scalefactor = scalefac 53 then return ((s -> symbol.reference)); 54 end; 55 end; 56 57 end; 58 59 s = create_symbol (null, null, by_compiler); 60 s -> symbol.aligned = aligned_bit; 61 s -> symbol.unaligned = unaligned_bit; 62 s -> symbol.complex = complex_bit; 63 s -> symbol.temporary, 64 s -> symbol.picture = "1"b; 65 if scalefac = 0 66 then s -> symbol.general = create_token ((pic_str), char_string); 67 else do; 68 p_str = pic_str; 69 p_str = p_str || "f("; 70 p_str = p_str || bindec$vs (scalefac); 71 p_str = p_str || ")"; /* this done in small increments for better concatenation code */ 72 73 s -> symbol.general = create_token ((p_str), char_string); 74 end; 75 76 call get_size (s); 77 78 s -> symbol.multi_use = pl1_stat_$temporary_list; 79 pl1_stat_$temporary_list = s; 80 81 return ((s -> symbol.reference)); 82 83 end; SOURCE FILES USED IN THIS COMPILATION. LINE NUMBER DATE MODIFIED NAME PATHNAME 0 07/31/89 1338.3 declare_picture_temp.pl1 >spec>install>MR12.3-1066>declare_picture_temp.pl1 36 1 10/25/79 1645.8 declare_type.incl.pl1 >ldd>include>declare_type.incl.pl1 37 2 07/21/80 1546.3 semant.incl.pl1 >ldd>include>semant.incl.pl1 2-228 3 07/31/89 1332.6 language_utility.incl.pl1 >spec>install>MR12.3-1066>language_utility.incl.pl1 3-307 4 05/06/74 1746.9 source_id_descriptor.incl.pl1 >ldd>include>source_id_descriptor.incl.pl1 3-325 5 05/06/74 1746.9 source_id_descriptor.incl.pl1 >ldd>include>source_id_descriptor.incl.pl1 3-335 6 05/06/74 1746.9 source_id_descriptor.incl.pl1 >ldd>include>source_id_descriptor.incl.pl1 3-374 7 05/06/74 1746.9 source_id_descriptor.incl.pl1 >ldd>include>source_id_descriptor.incl.pl1 3-386 8 05/06/74 1746.9 source_id_descriptor.incl.pl1 >ldd>include>source_id_descriptor.incl.pl1 38 9 11/30/78 1227.4 token_types.incl.pl1 >ldd>include>token_types.incl.pl1 39 10 06/28/79 1204.8 picture_image.incl.pl1 >ldd>include>picture_image.incl.pl1 40 11 12/07/83 1701.7 symbol.incl.pl1 >ldd>include>symbol.incl.pl1 41 12 07/21/80 1546.3 reference.incl.pl1 >ldd>include>reference.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. aligned 31(21) based bit(1) level 4 packed packed unaligned dcl 11-3 set ref 45 60* aligned_bit 000205 automatic bit(1) packed unaligned dcl 32 set ref 43* 45 60 attributes 31 based structure level 2 dcl 11-3 bindec$vs 000012 constant entry external dcl 3-28 ref 70 by_compiler 000001 constant bit(3) initial dcl 1-5 set ref 59* char_string 000000 constant bit(9) initial dcl 9-3 set ref 65* 73* chars 2 based char level 2 dcl 10-6 ref 51 complex 31(31) based bit(1) level 4 packed packed unaligned dcl 11-3 set ref 45 62* complex_bit parameter bit(1) dcl 30 ref 23 45 62 create_symbol 000014 constant entry external dcl 3-184 ref 59 create_token 000016 constant entry external dcl 3-191 ref 65 73 data_type 31 based structure level 3 packed packed unaligned dcl 11-3 general 16 based pointer level 2 packed packed unaligned dcl 11-3 set ref 49 50 65* 73* get_size 000020 constant entry external dcl 3-352 ref 76 initial 11 based pointer level 2 packed packed unaligned dcl 11-3 ref 50 misc_attributes 31(19) based structure level 3 packed packed unaligned dcl 11-3 multi_use 7 based pointer level 2 packed packed unaligned dcl 11-3 set ref 57 78* null builtin function dcl 33 ref 44 49 59 59 59 59 p 000100 automatic pointer dcl 26 set ref 50* 51 51 p_str 000104 automatic varying char(256) dcl 27 set ref 68* 69* 69 70* 70 71* 71 73 pic_str parameter char dcl 29 ref 23 51 65 68 piclength 0(27) based fixed bin(8,0) level 2 packed packed unaligned dcl 10-6 ref 51 picture 31(18) based bit(1) level 4 packed packed unaligned dcl 11-3 set ref 45 63* picture_image based structure level 1 dcl 10-6 pl1_stat_$temporary_list 000010 external static pointer dcl 28 set ref 44 78 79* reference 15 based pointer level 2 in structure "symbol" packed packed unaligned dcl 11-3 in procedure "declare_picture_temp" ref 51 81 reference based structure level 1 dcl 12-3 in procedure "declare_picture_temp" s 000102 automatic pointer dcl 26 set ref 44* 44* 45 45 45 49 50 51* 57 59* 60 61 62 63 63 65 73 76* 78 79 81 scalefac parameter fixed bin(31,0) dcl 31 set ref 23 51 65 70* scalefactor 1(09) based fixed bin(8,0) level 2 packed packed unaligned dcl 10-6 ref 51 storage_class 32(09) based structure level 3 packed packed unaligned dcl 11-3 symbol 3 based pointer level 2 in structure "reference" packed packed unaligned dcl 12-3 in procedure "declare_picture_temp" ref 50 symbol based structure level 1 dcl 11-3 in procedure "declare_picture_temp" temporary 32(17) based bit(1) level 4 packed packed unaligned dcl 11-3 set ref 63* unaligned 31(22) based bit(1) level 4 packed packed unaligned dcl 11-3 set ref 61* unaligned_bit parameter bit(1) dcl 30 ref 23 43 61 NAMES DECLARED BY DECLARE STATEMENT AND NEVER REFERENCED. adjust_count 000000 constant entry external dcl 3-20 alloc_semantics 000000 constant entry external dcl 2-7 alloc_semantics$init_only 000000 constant entry external dcl 2-12 and internal static bit(9) initial dcl 9-3 arrow internal static bit(9) initial dcl 9-3 assignment internal static bit(9) initial dcl 9-3 asterisk internal static bit(9) initial dcl 9-3 bin_integer internal static bit(9) initial dcl 9-3 binary_to_octal_string 000000 constant entry external dcl 3-38 binary_to_octal_var_string 000000 constant entry external dcl 3-43 bindec 000000 constant entry external dcl 3-23 binoct 000000 constant entry external dcl 3-33 bit_string internal static bit(9) initial dcl 9-3 builtin 000000 constant entry external dcl 2-17 by_context internal static bit(3) initial dcl 1-5 by_declare internal static bit(3) initial dcl 1-5 by_explicit_context internal static bit(3) initial dcl 1-5 by_implication internal static bit(3) initial dcl 1-5 cat internal static bit(9) initial dcl 9-3 check_star_extents 000000 constant entry external dcl 2-27 colon internal static bit(9) initial dcl 9-3 comma internal static bit(9) initial dcl 9-3 compare_declaration 000000 constant entry external dcl 2-31 compare_expression 000000 constant entry external dcl 3-48 constant_length 000000 constant entry external dcl 3-54 context_processor 000000 constant entry external dcl 2-38 convert 000000 constant entry external dcl 3-60 convert$from_builtin 000000 constant entry external dcl 3-72 convert$to_integer 000000 constant entry external dcl 3-66 convert$to_target 000000 constant entry external dcl 3-88 convert$to_target_fb 000000 constant entry external dcl 3-82 convert$validate 000000 constant entry external dcl 3-78 copy_expression 000000 constant entry external dcl 3-94 copy_expression$copy_sons 000000 constant entry external dcl 3-99 copy_unique_expression 000000 constant entry external dcl 3-103 create_array 000000 constant entry external dcl 3-108 create_block 000000 constant entry external dcl 3-112 create_bound 000000 constant entry external dcl 3-118 create_context 000000 constant entry external dcl 3-122 create_cross_reference 000000 constant entry external dcl 3-128 create_default 000000 constant entry external dcl 3-132 create_identifier 000000 constant entry external dcl 3-136 create_label 000000 constant entry external dcl 3-140 create_list 000000 constant entry external dcl 3-147 create_operator 000000 constant entry external dcl 3-152 create_reference 000000 constant entry external dcl 3-158 create_statement 000000 constant entry external dcl 3-163 create_statement$prologue 000000 constant entry external dcl 3-171 create_storage 000000 constant entry external dcl 3-179 create_token$init_hash_table 000000 constant entry external dcl 3-197 create_token$protected 000000 constant entry external dcl 3-199 dec_integer internal static bit(9) initial dcl 9-3 decbin 000000 constant entry external dcl 3-206 declare 000000 constant entry external dcl 2-41 declare_constant 000000 constant entry external dcl 3-211 declare_constant$bit 000000 constant entry external dcl 3-219 declare_constant$char 000000 constant entry external dcl 3-224 declare_constant$desc 000000 constant entry external dcl 3-229 declare_constant$integer 000000 constant entry external dcl 3-234 declare_descriptor 000000 constant entry external dcl 3-239 declare_descriptor$ctl 000000 constant entry external dcl 3-249 declare_descriptor$param 000000 constant entry external dcl 3-259 declare_integer 000000 constant entry external dcl 3-269 declare_picture 000000 constant entry external dcl 3-274 declare_picture_temp 000000 constant entry external dcl 3-279 declare_pointer 000000 constant entry external dcl 3-287 declare_structure 000000 constant entry external dcl 2-44 declare_temporary 000000 constant entry external dcl 3-292 decode_node_id 000000 constant entry external dcl 3-300 decode_source_id 000000 constant entry external dcl 3-306 defined_reference 000000 constant entry external dcl 2-47 do_semantics 000000 constant entry external dcl 2-57 eq internal static bit(9) initial dcl 9-3 error 000000 constant entry external dcl 3-314 error$omit_text 000000 constant entry external dcl 3-319 error_ 000000 constant entry external dcl 3-324 error_$finish 000000 constant entry external dcl 3-343 error_$initialize_error 000000 constant entry external dcl 3-341 error_$no_text 000000 constant entry external dcl 3-334 expand_assign 000000 constant entry external dcl 2-62 expand_by_name 000000 constant entry external dcl 2-71 expand_infix 000000 constant entry external dcl 2-76 expand_initial 000000 constant entry external dcl 2-84 expand_prefix 000000 constant entry external dcl 2-89 expand_primitive 000000 constant entry external dcl 2-97 expon internal static bit(9) initial dcl 9-3 expression_semantics 000000 constant entry external dcl 2-105 fill_refer 000000 constant entry external dcl 2-113 fixed_bin internal static bit(9) initial dcl 9-3 fixed_dec internal static bit(9) initial dcl 9-3 float_bin internal static bit(9) initial dcl 9-3 float_dec internal static bit(9) initial dcl 9-3 free_node 000000 constant entry external dcl 3-345 function 000000 constant entry external dcl 2-125 ge internal static bit(9) initial dcl 9-3 generic_selector 000000 constant entry external dcl 2-134 get_array_size 000000 constant entry external dcl 3-348 gt internal static bit(9) initial dcl 9-3 i_bin_integer internal static bit(9) initial dcl 9-3 i_dec_integer internal static bit(9) initial dcl 9-3 i_fixed_bin internal static bit(9) initial dcl 9-3 i_fixed_dec internal static bit(9) initial dcl 9-3 i_float_bin internal static bit(9) initial dcl 9-3 i_float_dec internal static bit(9) initial dcl 9-3 identifier internal static bit(9) initial dcl 9-3 io_data_list_semantics 000000 constant entry external dcl 2-143 io_data_list_semantics$format_list_semantics 000000 constant entry external dcl 2-120 io_semantics 000000 constant entry external dcl 2-148 is_arith_constant internal static bit(9) initial dcl 9-47 is_arithmetic_constant internal static bit(9) initial dcl 9-47 is_constant internal static bit(9) initial dcl 9-47 is_decimal_constant internal static bit(9) initial dcl 9-47 is_delimiter internal static bit(9) initial dcl 9-47 is_float_constant internal static bit(9) initial dcl 9-47 is_identifier internal static bit(9) initial dcl 9-47 is_imaginary_constant internal static bit(9) initial dcl 9-47 is_integral_constant internal static bit(9) initial dcl 9-47 is_isub internal static bit(9) initial dcl 9-47 isub internal static bit(9) initial dcl 9-3 le internal static bit(9) initial dcl 9-3 left_parn internal static bit(9) initial dcl 9-3 lookup 000000 constant entry external dcl 2-153 lt internal static bit(9) initial dcl 9-3 make_non_quick 000000 constant entry external dcl 2-162 match_arguments 000000 constant entry external dcl 2-166 merge_attributes 000000 constant entry external dcl 3-355 minus internal static bit(9) initial dcl 9-3 ne internal static bit(9) initial dcl 9-3 ngt internal static bit(9) initial dcl 9-3 nlt internal static bit(9) initial dcl 9-3 no_token internal static bit(9) initial dcl 9-3 not internal static bit(9) initial dcl 9-3 offset_adder 000000 constant entry external dcl 2-172 operator_semantics 000000 constant entry external dcl 2-184 optimizer 000000 constant entry external dcl 3-361 or internal static bit(9) initial dcl 9-3 parse_error 000000 constant entry external dcl 3-364 parse_error$no_text 000000 constant entry external dcl 3-368 percent internal static bit(9) initial dcl 9-3 period internal static bit(9) initial dcl 9-3 picture_char_type internal static fixed bin(8,0) initial packed unaligned dcl 10-20 picture_complexfix_type internal static fixed bin(8,0) initial packed unaligned dcl 10-20 picture_complexflo_type internal static fixed bin(8,0) initial packed unaligned dcl 10-20 picture_realfix_type internal static fixed bin(8,0) initial packed unaligned dcl 10-20 picture_realflo_type internal static fixed bin(8,0) initial packed unaligned dcl 10-20 pl1_error_print$listing_segment 000000 constant entry external dcl 3-384 pl1_error_print$write_out 000000 constant entry external dcl 3-372 pl1_print$for_lex 000000 constant entry external dcl 3-418 pl1_print$non_varying 000000 constant entry external dcl 3-398 pl1_print$non_varying_nl 000000 constant entry external dcl 3-402 pl1_print$string_pointer 000000 constant entry external dcl 3-406 pl1_print$string_pointer_nl 000000 constant entry external dcl 3-410 pl1_print$unaligned_nl 000000 constant entry external dcl 3-414 pl1_print$varying 000000 constant entry external dcl 3-392 pl1_print$varying_nl 000000 constant entry external dcl 3-395 plus internal static bit(9) initial dcl 9-3 propagate_bit 000000 constant entry external dcl 2-192 refer_extent 000000 constant entry external dcl 3-426 reserve$clear 000000 constant entry external dcl 3-430 reserve$declare_lib 000000 constant entry external dcl 3-434 reserve$read_lib 000000 constant entry external dcl 3-439 right_parn internal static bit(9) initial dcl 9-3 semantic_translator 000000 constant entry external dcl 3-444 semantic_translator$abort 000000 constant entry external dcl 3-446 semantic_translator$call_es 000000 constant entry external dcl 2-196 semantic_translator$error 000000 constant entry external dcl 3-450 semi_colon internal static bit(9) initial dcl 9-3 share_expression 000000 constant entry external dcl 3-454 simplify_expression 000000 constant entry external dcl 2-205 simplify_offset 000000 constant entry external dcl 2-212 slash internal static bit(9) initial dcl 9-3 subscripter 000000 constant entry external dcl 2-216 token_to_binary 000000 constant entry external dcl 3-459 validate 000000 constant entry external dcl 2-225 NAME DECLARED BY EXPLICIT CONTEXT. declare_picture_temp 000023 constant entry external dcl 23 THERE WERE NO NAMES DECLARED BY CONTEXT OR IMPLICATION. STORAGE REQUIREMENTS FOR THIS PROGRAM. Object Text Link Symbol Defs Static Start 0 0 466 510 372 476 Length 1134 372 22 410 73 0 BLOCK NAME STACK SIZE TYPE WHY NONQUICK/WHO SHARES STACK FRAME declare_picture_temp 166 external procedure is an external procedure. STORAGE FOR AUTOMATIC VARIABLES. STACK FRAME LOC IDENTIFIER BLOCK NAME declare_picture_temp 000100 p declare_picture_temp 000102 s declare_picture_temp 000104 p_str declare_picture_temp 000205 aligned_bit declare_picture_temp THE FOLLOWING EXTERNAL OPERATORS ARE USED BY THIS PROGRAM. alloc_char_temp call_ext_out_desc call_ext_out return_mac shorten_stack ext_entry_desc THE FOLLOWING EXTERNAL ENTRIES ARE CALLED BY THIS PROGRAM. bindec$vs create_symbol create_token get_size THE FOLLOWING EXTERNAL VARIABLES ARE USED BY THIS PROGRAM. pl1_stat_$temporary_list LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC 23 000016 43 000036 44 000043 45 000052 49 000074 50 000077 51 000103 57 000124 59 000127 60 000147 61 000155 62 000163 63 000170 65 000174 67 000233 68 000234 69 000245 70 000257 71 000302 73 000311 74 000345 76 000346 78 000355 79 000362 81 000363 ----------------------------------------------------------- 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