| 1 |
/**************************************************************************** |
| 2 |
* * |
| 3 |
* GNAT COMPILER COMPONENTS * |
| 4 |
* * |
| 5 |
* FE * |
| 6 |
* * |
| 7 |
* C Header File * |
| 8 |
* * |
| 9 |
* Copyright (C) 1992-2025, Free Software Foundation, Inc. * |
| 10 |
* * |
| 11 |
* GNAT is free software; you can redistribute it and/or modify it under * |
| 12 |
* terms of the GNU General Public License as published by the Free Soft- * |
| 13 |
* ware Foundation; either version 3, or (at your option) any later ver- * |
| 14 |
* sion. GNAT is distributed in the hope that it will be useful, but WITH- * |
| 15 |
* OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * |
| 16 |
* or FITNESS FOR A PARTICULAR PURPOSE. * |
| 17 |
* * |
| 18 |
* As a special exception under Section 7 of GPL version 3, you are granted * |
| 19 |
* additional permissions described in the GCC Runtime Library Exception, * |
| 20 |
* version 3.1, as published by the Free Software Foundation. * |
| 21 |
* * |
| 22 |
* You should have received a copy of the GNU General Public License and * |
| 23 |
* a copy of the GCC Runtime Library Exception along with this program; * |
| 24 |
* see the files COPYING3 and COPYING.RUNTIME respectively. If not, see * |
| 25 |
* <http://www.gnu.org/licenses/>. * |
| 26 |
* * |
| 27 |
* GNAT was originally developed by the GNAT team at New York University. * |
| 28 |
* Extensive contributions were provided by Ada Core Technologies Inc. * |
| 29 |
* * |
| 30 |
****************************************************************************/ |
| 31 |
|
| 32 |
/* This is the C header that contains the declarations of Ada subprograms and |
| 33 |
variables used by gigi and not declared in other C header files. It was |
| 34 |
created manually from Ada specifications. The original Ada declarations |
| 35 |
in these specifications must be marked with: |
| 36 |
|
| 37 |
"WARNING: There is a matching C declaration of this <entity_kind> in fe.h" |
| 38 |
|
| 39 |
where <entity_kind> is either "subprogram" or "variable" or "type". |
| 40 |
|
| 41 |
WARNING: functions taking String_Pointer parameters must abide by the rule |
| 42 |
documented alongside the definition of String_Pointer in types.h. */ |
| 43 |
|
| 44 |
#ifdef __cplusplus |
| 45 |
extern "C" { |
| 46 |
#endif |
| 47 |
|
| 48 |
/* atree: */ |
| 49 |
|
| 50 |
#define Serious_Errors_Detected atree__serious_errors_detected |
| 51 |
|
| 52 |
extern Nat Serious_Errors_Detected; |
| 53 |
|
| 54 |
/* comperr: */ |
| 55 |
|
| 56 |
#define Compiler_Abort comperr__compiler_abort |
| 57 |
|
| 58 |
extern void Compiler_Abort (String_Pointer, String_Pointer, Boolean) ATTRIBUTE_NORETURN; |
| 59 |
|
| 60 |
/* debug: */ |
| 61 |
|
| 62 |
#define Debug_Flag_Dot_KK debug__debug_flag_dot_kk |
| 63 |
#define Debug_Flag_Dot_R debug__debug_flag_dot_r |
| 64 |
#define Debug_Flag_Dot_8 debug__debug_flag_dot_8 |
| 65 |
#define Debug_Flag_NN debug__debug_flag_nn |
| 66 |
|
| 67 |
extern Boolean Debug_Flag_Dot_KK; |
| 68 |
extern Boolean Debug_Flag_Dot_R; |
| 69 |
extern Boolean Debug_Flag_Dot_8; |
| 70 |
extern Boolean Debug_Flag_NN; |
| 71 |
|
| 72 |
/* einfo: */ |
| 73 |
|
| 74 |
/* Valid_Uint is used to preserve the old behavior of Esize and |
| 75 |
friends, where Uint_0 was the default. All calls to this |
| 76 |
are questionable. */ |
| 77 |
INLINE Valid_Uint |
| 78 |
No_Uint_To_0 (Uint X) |
| 79 |
{ |
| 80 |
return X == No_Uint ? Uint_0 : X; |
| 81 |
} |
| 82 |
|
| 83 |
#define Set_Alignment einfo__entities__set_alignment |
| 84 |
#define Set_Component_Bit_Offset einfo__entities__set_component_bit_offset |
| 85 |
#define Set_Component_Size einfo__entities__set_component_size |
| 86 |
#define Set_Esize einfo__entities__set_esize |
| 87 |
#define Set_Mechanism einfo__entities__set_mechanism |
| 88 |
#define Set_Normalized_First_Bit einfo__entities__set_normalized_first_bit |
| 89 |
#define Set_Normalized_Position einfo__entities__set_normalized_position |
| 90 |
#define Set_RM_Size einfo__entities__set_rm_size |
| 91 |
|
| 92 |
extern void Set_Alignment (Entity_Id, Uint); |
| 93 |
extern void Set_Component_Bit_Offset (Entity_Id, Uint); |
| 94 |
extern void Set_Component_Size (Entity_Id, Uint); |
| 95 |
extern void Set_Esize (Entity_Id, Uint); |
| 96 |
extern void Set_Mechanism (Entity_Id, Mechanism_Type); |
| 97 |
extern void Set_Normalized_First_Bit (Entity_Id, Uint); |
| 98 |
extern void Set_Normalized_Position (Entity_Id, Uint); |
| 99 |
extern void Set_RM_Size (Entity_Id, Uint); |
| 100 |
|
| 101 |
#define Is_Base_Type einfo__utils__is_base_type |
| 102 |
#define Is_Entity_Name einfo__utils__is_entity_name |
| 103 |
|
| 104 |
extern Boolean Is_Base_Type (Entity_Id); |
| 105 |
extern Boolean Is_Entity_Name (Node_Id); |
| 106 |
|
| 107 |
#define Get_Attribute_Definition_Clause einfo__utils__get_attribute_definition_clause |
| 108 |
|
| 109 |
extern Node_Id Get_Attribute_Definition_Clause (Entity_Id, unsigned char); |
| 110 |
|
| 111 |
/* errout: */ |
| 112 |
|
| 113 |
#define Error_Msg_N errout__error_msg_n |
| 114 |
#define Error_Msg_NE errout__error_msg_ne |
| 115 |
#define Set_Identifier_Casing errout__set_identifier_casing |
| 116 |
|
| 117 |
extern void Error_Msg_N (String_Pointer, Node_Id); |
| 118 |
extern void Error_Msg_NE (String_Pointer, Node_Id, Entity_Id); |
| 119 |
extern void Set_Identifier_Casing (void *, const void *); |
| 120 |
|
| 121 |
/* err_vars: */ |
| 122 |
|
| 123 |
#define Error_Msg_Uint_1 err_vars__error_msg_uint_1 |
| 124 |
#define Error_Msg_Uint_2 err_vars__error_msg_uint_2 |
| 125 |
|
| 126 |
extern Uint Error_Msg_Uint_1; |
| 127 |
extern Uint Error_Msg_Uint_2; |
| 128 |
|
| 129 |
/* exp_ch11: */ |
| 130 |
|
| 131 |
#define Get_Local_Raise_Call_Entity exp_ch11__get_local_raise_call_entity |
| 132 |
#define Get_RT_Exception_Entity exp_ch11__get_rt_exception_entity |
| 133 |
#define Get_RT_Exception_Name exp_ch11__get_rt_exception_name |
| 134 |
#define Warn_If_No_Local_Raise exp_ch11__warn_if_no_local_raise |
| 135 |
|
| 136 |
extern Entity_Id Get_Local_Raise_Call_Entity (void); |
| 137 |
extern Entity_Id Get_RT_Exception_Entity (int); |
| 138 |
extern void Get_RT_Exception_Name (enum RT_Exception_Code); |
| 139 |
extern void Warn_If_No_Local_Raise (int); |
| 140 |
|
| 141 |
/* exp_code: */ |
| 142 |
|
| 143 |
#define Asm_Input_Constraint exp_code__asm_input_constraint |
| 144 |
#define Asm_Input_Value exp_code__asm_input_value |
| 145 |
#define Asm_Output_Constraint exp_code__asm_output_constraint |
| 146 |
#define Asm_Output_Variable exp_code__asm_output_variable |
| 147 |
#define Asm_Template exp_code__asm_template |
| 148 |
#define Clobber_Get_Next exp_code__clobber_get_next |
| 149 |
#define Clobber_Setup exp_code__clobber_setup |
| 150 |
#define Is_Asm_Volatile exp_code__is_asm_volatile |
| 151 |
#define Next_Asm_Input exp_code__next_asm_input |
| 152 |
#define Next_Asm_Output exp_code__next_asm_output |
| 153 |
#define Setup_Asm_Inputs exp_code__setup_asm_inputs |
| 154 |
#define Setup_Asm_Outputs exp_code__setup_asm_outputs |
| 155 |
|
| 156 |
extern Node_Id Asm_Input_Constraint (void); |
| 157 |
extern Node_Id Asm_Input_Value (void); |
| 158 |
extern Node_Id Asm_Output_Constraint (void); |
| 159 |
extern Node_Id Asm_Output_Variable (void); |
| 160 |
extern Node_Id Asm_Template (Node_Id); |
| 161 |
extern void *Clobber_Get_Next (void); |
| 162 |
extern void Clobber_Setup (Node_Id); |
| 163 |
extern Boolean Is_Asm_Volatile (Node_Id); |
| 164 |
extern void Next_Asm_Input (void); |
| 165 |
extern void Next_Asm_Output (void); |
| 166 |
extern void Setup_Asm_Inputs (Node_Id); |
| 167 |
extern void Setup_Asm_Outputs (Node_Id); |
| 168 |
|
| 169 |
/* exp_dbug: */ |
| 170 |
|
| 171 |
#define Get_Encoded_Name exp_dbug__get_encoded_name |
| 172 |
#define Get_External_Name exp_dbug__get_external_name |
| 173 |
#define Get_Variant_Encoding exp_dbug__get_variant_encoding |
| 174 |
|
| 175 |
extern void Get_Encoded_Name (Entity_Id); |
| 176 |
extern void Get_External_Name (Entity_Id, Boolean, String_Pointer); |
| 177 |
extern void Get_Variant_Encoding (Entity_Id); |
| 178 |
|
| 179 |
/* exp_tss: */ |
| 180 |
|
| 181 |
#define Is_Init_Proc exp_tss__is_init_proc |
| 182 |
#define Is_Rep_To_Pos exp_tss__is_rep_to_pos |
| 183 |
|
| 184 |
extern Boolean Is_Init_Proc (Entity_Id); |
| 185 |
extern Boolean Is_Rep_To_Pos (Entity_Id); |
| 186 |
|
| 187 |
/* exp_util: */ |
| 188 |
|
| 189 |
#define Find_Interface_Tag exp_util__find_interface_tag |
| 190 |
#define Is_Fully_Repped_Tagged_Type exp_util__is_fully_repped_tagged_type |
| 191 |
#define Is_Related_To_Func_Return exp_util__is_related_to_func_return |
| 192 |
#define Is_Secondary_Stack_Thunk exp_util__is_secondary_stack_thunk |
| 193 |
#define Thunk_Target exp_util__thunk_target |
| 194 |
|
| 195 |
extern Entity_Id Find_Interface_Tag (Entity_Id, Entity_Id); |
| 196 |
extern Boolean Is_Fully_Repped_Tagged_Type (Entity_Id); |
| 197 |
extern Boolean Is_Related_To_Func_Return (Entity_Id); |
| 198 |
extern Boolean Is_Secondary_Stack_Thunk (Entity_Id); |
| 199 |
extern Entity_Id Thunk_Target (Entity_Id); |
| 200 |
|
| 201 |
/* lib: */ |
| 202 |
|
| 203 |
#define Cunit lib__cunit |
| 204 |
#define Ident_String lib__ident_string |
| 205 |
#define In_Extended_Main_Code_Unit lib__in_extended_main_code_unit |
| 206 |
|
| 207 |
extern Node_Id Cunit (Unit_Number_Type); |
| 208 |
extern Node_Id Ident_String (Unit_Number_Type); |
| 209 |
extern Boolean In_Extended_Main_Code_Unit (Entity_Id); |
| 210 |
|
| 211 |
/* opt: */ |
| 212 |
|
| 213 |
#define Ada_Version opt__ada_version |
| 214 |
#define Back_End_Inlining opt__back_end_inlining |
| 215 |
#define Debug_Generated_Code opt__debug_generated_code |
| 216 |
#define Enable_128bit_Types opt__enable_128bit_types |
| 217 |
#define Exception_Extra_Info opt__exception_extra_info |
| 218 |
#define Exception_Locations_Suppressed opt__exception_locations_suppressed |
| 219 |
#define Generate_SCO_Instance_Table opt__generate_sco_instance_table |
| 220 |
#define GNAT_Mode opt__gnat_mode |
| 221 |
#define List_Representation_Info opt__list_representation_info |
| 222 |
#define No_Strict_Aliasing_CP opt__no_strict_aliasing |
| 223 |
#define Suppress_Checks opt__suppress_checks |
| 224 |
#define Unnest_Subprogram_Mode opt__unnest_subprogram_mode |
| 225 |
|
| 226 |
typedef enum { |
| 227 |
Ada_83, Ada_95, Ada_2005, Ada_2012, Ada_2022 |
| 228 |
} Ada_Version_Type; |
| 229 |
// Ada_With_Core_Extensions and Ada_With_All_Extensions (see opt.ads) are not |
| 230 |
// used on the C side for now. If we decide to use them, we should import |
| 231 |
// All_Extensions_Allowed and Core_Extensions_Allowed functions. |
| 232 |
|
| 233 |
extern Ada_Version_Type Ada_Version; |
| 234 |
extern Boolean Back_End_Inlining; |
| 235 |
extern Boolean Debug_Generated_Code; |
| 236 |
extern Boolean Enable_128bit_Types; |
| 237 |
extern Boolean Exception_Extra_Info; |
| 238 |
extern Boolean Exception_Locations_Suppressed; |
| 239 |
extern Boolean Generate_SCO_Instance_Table; |
| 240 |
extern Boolean GNAT_Mode; |
| 241 |
extern Int List_Representation_Info; |
| 242 |
extern Boolean No_Strict_Aliasing_CP; |
| 243 |
extern Boolean Suppress_Checks; |
| 244 |
extern Boolean Unnest_Subprogram_Mode; |
| 245 |
|
| 246 |
#define ZCX_Exceptions opt__zcx_exceptions |
| 247 |
#define SJLJ_Exceptions opt__sjlj_exceptions |
| 248 |
|
| 249 |
extern Boolean ZCX_Exceptions (void); |
| 250 |
extern Boolean SJLJ_Exceptions (void); |
| 251 |
|
| 252 |
/* restrict: */ |
| 253 |
|
| 254 |
#define Check_Elaboration_Code_Allowed \ |
| 255 |
restrict__check_elaboration_code_allowed |
| 256 |
#define Check_Implicit_Dynamic_Code_Allowed \ |
| 257 |
restrict__check_implicit_dynamic_code_allowed |
| 258 |
#define Check_No_Implicit_Heap_Alloc \ |
| 259 |
restrict__check_no_implicit_heap_alloc |
| 260 |
#define Check_No_Implicit_Protected_Alloc \ |
| 261 |
restrict__check_no_implicit_protected_alloc |
| 262 |
#define Check_No_Implicit_Task_Alloc \ |
| 263 |
restrict__check_no_implicit_task_alloc |
| 264 |
#define Check_Restriction_No_Dependence_On_System \ |
| 265 |
restrict__check_restriction_no_dependence_on_system |
| 266 |
#define No_Exception_Handlers_Set \ |
| 267 |
restrict__no_exception_handlers_set |
| 268 |
#define No_Exception_Propagation_Active \ |
| 269 |
restrict__no_exception_propagation_active |
| 270 |
|
| 271 |
extern void Check_Elaboration_Code_Allowed (Node_Id); |
| 272 |
extern void Check_Implicit_Dynamic_Code_Allowed (Node_Id); |
| 273 |
extern void Check_No_Implicit_Heap_Alloc (Node_Id); |
| 274 |
extern void Check_No_Implicit_Protected_Alloc (Node_Id); |
| 275 |
extern void Check_No_Implicit_Task_Alloc (Node_Id); |
| 276 |
extern void Check_Restriction_No_Dependence_On_System (Name_Id, Node_Id); |
| 277 |
extern Boolean No_Exception_Handlers_Set (void); |
| 278 |
extern Boolean No_Exception_Propagation_Active (void); |
| 279 |
|
| 280 |
/* sem_aggr: */ |
| 281 |
|
| 282 |
#define Is_Single_Aggregate sem_aggr__is_single_aggregate |
| 283 |
|
| 284 |
extern Boolean Is_Single_Aggregate (Node_Id); |
| 285 |
|
| 286 |
/* sem_aux: */ |
| 287 |
|
| 288 |
#define Ancestor_Subtype sem_aux__ancestor_subtype |
| 289 |
#define Constant_Value sem_aux__constant_value |
| 290 |
#define First_Discriminant sem_aux__first_discriminant |
| 291 |
#define First_Stored_Discriminant sem_aux__first_stored_discriminant |
| 292 |
#define First_Subtype sem_aux__first_subtype |
| 293 |
#define Is_By_Reference_Type sem_aux__is_by_reference_type |
| 294 |
#define Is_Derived_Type sem_aux__is_derived_type |
| 295 |
|
| 296 |
extern Entity_Id Ancestor_Subtype (Entity_Id); |
| 297 |
extern Node_Id Constant_Value (Entity_Id); |
| 298 |
extern Entity_Id First_Discriminant (Entity_Id); |
| 299 |
extern Entity_Id First_Stored_Discriminant (Entity_Id); |
| 300 |
extern Entity_Id First_Subtype (Entity_Id); |
| 301 |
extern Boolean Is_By_Reference_Type (Entity_Id); |
| 302 |
extern Boolean Is_Derived_Type (Entity_Id); |
| 303 |
|
| 304 |
/* sem_eval: */ |
| 305 |
|
| 306 |
#define Compile_Time_Known_Value sem_eval__compile_time_known_value |
| 307 |
#define Is_Null_Range sem_eval__is_null_range |
| 308 |
|
| 309 |
extern Boolean Compile_Time_Known_Value (Node_Id); |
| 310 |
extern Boolean Is_Null_Range (Node_Id, Node_Id); |
| 311 |
|
| 312 |
/* sem_util: */ |
| 313 |
|
| 314 |
#define Defining_Entity sem_util__defining_entity |
| 315 |
#define First_Actual sem_util__first_actual |
| 316 |
#define Has_Storage_Model_Type_Aspect sem_util__storage_model_support__has_storage_model_type_aspect |
| 317 |
#define Has_Designated_Storage_Model_Aspect sem_util__storage_model_support__has_designated_storage_model_aspect |
| 318 |
#define Is_Expression_Function sem_util__is_expression_function |
| 319 |
#define Is_Variable_Size_Record sem_util__is_variable_size_record |
| 320 |
#define Needs_Secondary_Stack sem_util__needs_secondary_stack |
| 321 |
#define Next_Actual sem_util__next_actual |
| 322 |
#define Storage_Model_Object sem_util__storage_model_support__storage_model_object |
| 323 |
#define Storage_Model_Copy_From sem_util__storage_model_support__storage_model_copy_from |
| 324 |
#define Storage_Model_Copy_To sem_util__storage_model_support__storage_model_copy_to |
| 325 |
|
| 326 |
extern Entity_Id Defining_Entity (Node_Id); |
| 327 |
extern Node_Id First_Actual (Node_Id); |
| 328 |
extern Boolean Has_Storage_Model_Type_Aspect (Entity_Id); |
| 329 |
extern Boolean Has_Designated_Storage_Model_Aspect (Entity_Id); |
| 330 |
extern Boolean Is_Expression_Function (Entity_Id); |
| 331 |
extern Boolean Is_Variable_Size_Record (Entity_Id); |
| 332 |
extern Boolean Needs_Secondary_Stack (Entity_Id); |
| 333 |
extern Node_Id Next_Actual (Node_Id); |
| 334 |
extern Entity_Id Storage_Model_Object (Entity_Id); |
| 335 |
extern Entity_Id Storage_Model_Copy_From (Entity_Id); |
| 336 |
extern Entity_Id Storage_Model_Copy_To (Entity_Id); |
| 337 |
|
| 338 |
/* sinfo: */ |
| 339 |
|
| 340 |
#define Spec_Lib_Unit sinfo__utils__spec_lib_unit |
| 341 |
#define Body_Lib_Unit sinfo__utils__body_lib_unit |
| 342 |
#define Subunit_Parent sinfo__utils__subunit_parent |
| 343 |
#define Stub_Subunit sinfo__utils__stub_subunit |
| 344 |
#define Withed_Lib_Unit sinfo__utils__withed_lib_unit |
| 345 |
#define End_Location sinfo__utils__end_location |
| 346 |
#define Set_Has_No_Elaboration_Code sinfo__nodes__set_has_no_elaboration_code |
| 347 |
#define Set_Present_Expr sinfo__nodes__set_present_expr |
| 348 |
|
| 349 |
extern Node_Id Spec_Lib_Unit (Node_Id); |
| 350 |
extern Node_Id Body_Lib_Unit (Node_Id); |
| 351 |
extern Node_Id Subunit_Parent (Node_Id); |
| 352 |
extern Node_Id Stub_Subunit (Node_Id); |
| 353 |
extern Node_Id Withed_Lib_Unit (Node_Id); |
| 354 |
extern Source_Ptr End_Location (Node_Id); |
| 355 |
extern void Set_Has_No_Elaboration_Code (Node_Id, Boolean); |
| 356 |
extern void Set_Present_Expr (Node_Id, Uint); |
| 357 |
|
| 358 |
/* sinput: */ |
| 359 |
|
| 360 |
struct c_array { |
| 361 |
const char *pointer; |
| 362 |
int length; |
| 363 |
}; |
| 364 |
|
| 365 |
#define C_Source_Buffer sinput__c_source_buffer |
| 366 |
#define Debug_Source_Name sinput__debug_source_name |
| 367 |
#define Get_Column_Number sinput__get_column_number |
| 368 |
#define Get_Logical_Line_Number sinput__get_logical_line_number |
| 369 |
#define Get_Source_File_Index sinput__get_source_file_index |
| 370 |
|
| 371 |
extern struct c_array C_Source_Buffer (Source_File_Index); |
| 372 |
extern File_Name_Type Debug_Source_Name (Source_File_Index); |
| 373 |
extern Column_Number_Type Get_Column_Number (Source_Ptr); |
| 374 |
extern Line_Number_Type Get_Logical_Line_Number (Source_Ptr); |
| 375 |
extern Source_File_Index Get_Source_File_Index (Source_Ptr); |
| 376 |
|
| 377 |
/* targparm: */ |
| 378 |
|
| 379 |
#define Machine_Overflows_On_Target \ |
| 380 |
targparm__machine_overflows_on_target |
| 381 |
#define Signed_Zeros_On_Target \ |
| 382 |
targparm__signed_zeros_on_target |
| 383 |
#define Stack_Check_Limits_On_Target \ |
| 384 |
targparm__stack_check_limits_on_target |
| 385 |
#define Stack_Check_Probes_On_Target \ |
| 386 |
targparm__stack_check_probes_on_target |
| 387 |
|
| 388 |
extern Boolean Machine_Overflows_On_Target; |
| 389 |
extern Boolean Signed_Zeros_On_Target; |
| 390 |
extern Boolean Stack_Check_Limits_On_Target; |
| 391 |
extern Boolean Stack_Check_Probes_On_Target; |
| 392 |
|
| 393 |
/* warnsw: */ |
| 394 |
|
| 395 |
#define Get_Warn_On_Questionable_Layout warnsw__get_warn_on_questionable_layout |
| 396 |
|
| 397 |
extern Boolean Get_Warn_On_Questionable_Layout (void); |
| 398 |
|
| 399 |
// The following corresponds to Ada code in Einfo.Utils. |
| 400 |
|
| 401 |
typedef Boolean B; |
| 402 |
typedef Entity_Id E; |
| 403 |
typedef Node_Id N; |
| 404 |
|
| 405 |
#define Address_Clause einfo__utils__address_clause |
| 406 |
extern N Address_Clause (E Id); |
| 407 |
|
| 408 |
#define Alignment_Clause einfo__utils__alignment_clause |
| 409 |
extern N Alignment_Clause (E Id); |
| 410 |
|
| 411 |
#define Base_Type einfo__utils__base_type |
| 412 |
extern E Base_Type (E Id); |
| 413 |
|
| 414 |
#define Declaration_Node einfo__utils__declaration_node |
| 415 |
extern N Declaration_Node (E Id); |
| 416 |
|
| 417 |
#define Designated_Type einfo__utils__designated_type |
| 418 |
extern E Designated_Type (E Id); |
| 419 |
|
| 420 |
#define First_Formal einfo__utils__first_formal |
| 421 |
extern E First_Formal (E Id); |
| 422 |
|
| 423 |
#define First_Formal_With_Extras einfo__utils__first_formal_with_extras |
| 424 |
extern E First_Formal_With_Extras (E Id); |
| 425 |
|
| 426 |
#define Has_Foreign_Convention einfo__utils__has_foreign_convention |
| 427 |
extern B Has_Foreign_Convention (E Id); |
| 428 |
|
| 429 |
#define Implementation_Base_Type einfo__utils__implementation_base_type |
| 430 |
extern E Implementation_Base_Type (E Id); |
| 431 |
|
| 432 |
#define Is_Boolean_Type einfo__utils__is_boolean_type |
| 433 |
extern B Is_Boolean_Type (E Id); |
| 434 |
|
| 435 |
#define Next_Discriminant einfo__utils__next_discriminant |
| 436 |
extern E Next_Discriminant (E Id); |
| 437 |
|
| 438 |
#define Next_Formal einfo__utils__next_formal |
| 439 |
extern E Next_Formal (E Id); |
| 440 |
|
| 441 |
#define Next_Formal_With_Extras einfo__utils__next_formal_with_extras |
| 442 |
extern E Next_Formal_With_Extras (E Id); |
| 443 |
|
| 444 |
#define Number_Dimensions einfo__utils__number_dimensions |
| 445 |
extern Pos Number_Dimensions (E Id); |
| 446 |
|
| 447 |
#define Object_Size_Clause einfo__utils__object_size_clause |
| 448 |
extern N Object_Size_Clause (E Id); |
| 449 |
|
| 450 |
#define Root_Type einfo__utils__root_type |
| 451 |
extern E Root_Type (E Id); |
| 452 |
|
| 453 |
#define Size_Clause einfo__utils__size_clause |
| 454 |
extern N Size_Clause (E Id); |
| 455 |
|
| 456 |
#define Type_High_Bound einfo__utils__type_high_bound |
| 457 |
extern N Type_High_Bound (E Id); |
| 458 |
|
| 459 |
#define Type_Low_Bound einfo__utils__type_low_bound |
| 460 |
extern N Type_Low_Bound (E Id); |
| 461 |
|
| 462 |
#define Underlying_Type einfo__utils__underlying_type |
| 463 |
extern E Underlying_Type (E Id); |
| 464 |
|
| 465 |
#define Known_Alignment einfo__utils__known_alignment |
| 466 |
extern B Known_Alignment (Entity_Id E); |
| 467 |
|
| 468 |
#define Known_Component_Size einfo__utils__known_component_size |
| 469 |
extern B Known_Component_Size (Entity_Id E); |
| 470 |
|
| 471 |
#define Known_Esize einfo__utils__known_esize |
| 472 |
extern B Known_Esize (Entity_Id E); |
| 473 |
|
| 474 |
#define Known_Normalized_Position einfo__utils__known_normalized_position |
| 475 |
extern B Known_Normalized_Position (Entity_Id E); |
| 476 |
|
| 477 |
#define Known_RM_Size einfo__utils__known_rm_size |
| 478 |
extern B Known_RM_Size (Entity_Id E); |
| 479 |
|
| 480 |
#define Copy_Alignment einfo__utils__copy_alignment |
| 481 |
extern B Copy_Alignment(Entity_Id To, Entity_Id From); |
| 482 |
|
| 483 |
#define Copy_Esize einfo__utils__copy_esize |
| 484 |
extern B Copy_Esize(Entity_Id To, Entity_Id From); |
| 485 |
|
| 486 |
#define Copy_RM_Size einfo__utils__copy_rm_size |
| 487 |
extern B Copy_RM_Size(Entity_Id To, Entity_Id From); |
| 488 |
|
| 489 |
#define Is_Discrete_Or_Fixed_Point_Type einfo__utils__is_discrete_or_fixed_point_type |
| 490 |
extern B Is_Discrete_Or_Fixed_Point_Type (E Id); |
| 491 |
|
| 492 |
#define Is_Floating_Point_Type einfo__utils__is_floating_point_type |
| 493 |
extern B Is_Floating_Point_Type (E Id); |
| 494 |
|
| 495 |
#define Is_Record_Type einfo__utils__is_record_type |
| 496 |
extern B Is_Record_Type (E Id); |
| 497 |
|
| 498 |
#define Is_Full_Access einfo__utils__is_full_access |
| 499 |
extern B Is_Full_Access (E Id); |
| 500 |
|
| 501 |
#define Next_Index einfo__utils__next_index |
| 502 |
extern Node_Id Next_Index (Node_Id Id); |
| 503 |
|
| 504 |
#define Next_Literal einfo__utils__next_literal |
| 505 |
extern E Next_Literal (E Id); |
| 506 |
|
| 507 |
#define Next_Stored_Discriminant einfo__utils__next_stored_discriminant |
| 508 |
extern E Next_Stored_Discriminant (E Id); |
| 509 |
|
| 510 |
// The following is needed because Convention in Sem_Util is a renaming |
| 511 |
// of Basic_Convention. |
| 512 |
|
| 513 |
static inline Convention_Id |
| 514 |
Convention (N Node) |
| 515 |
{ |
| 516 |
extern Byte einfo__entities__basic_convention (N Node); |
| 517 |
return (Convention_Id) einfo__entities__basic_convention (Node); |
| 518 |
} |
| 519 |
|
| 520 |
// See comments regarding Entity_Or_Associated_Node in Sinfo.Utils. |
| 521 |
|
| 522 |
#define Entity sinfo__nodes__entity_or_associated_node |
| 523 |
extern Entity_Id Entity (N Node); |
| 524 |
|
| 525 |
// See comments regarding Renamed_Or_Alias in Einfo.Utils |
| 526 |
|
| 527 |
#define Alias einfo__entities__renamed_or_alias |
| 528 |
extern Node_Id Alias (N Node); |
| 529 |
|
| 530 |
#define Renamed_Entity einfo__entities__renamed_or_alias |
| 531 |
extern Node_Id Renamed_Entity (N Node); |
| 532 |
|
| 533 |
#define Renamed_Object einfo__entities__renamed_or_alias |
| 534 |
extern Node_Id Renamed_Object (N Node); |
| 535 |
|
| 536 |
#ifdef __cplusplus |
| 537 |
} |
| 538 |
#endif |