PIPS
local-ri-util.c File Reference
#include "defines-local.h"
+ Include dependency graph for local-ri-util.c:

Go to the source code of this file.

Functions

type type_variable_dup (type t)
 local-ri-util.c More...
 
bool fortran_library_entity_p (entity e)
 

Variables

static string fortran_library []
 library functions... More...
 

Function Documentation

◆ fortran_library_entity_p()

bool fortran_library_entity_p ( entity  e)

else not found

Definition at line 52 of file local-ri-util.c.

54 {
55  string *s; const char* name=entity_local_name(e);
56 
57  if (!top_level_entity_p(e)) return(false);
58  for (s=fortran_library; *s!=(string) NULL; s++)
59  if (same_string_p(*s, name)) return true;
60 
61  return false; /* else not found */
62 }
static string fortran_library[]
library functions...
Definition: local-ri-util.c:46
#define same_string_p(s1, s2)
char * string
STRING.
Definition: newgen_types.h:39
const char * entity_local_name(entity e)
entity_local_name modified so that it does not core when used in vect_fprint, since someone thought t...
Definition: entity.c:453
bool top_level_entity_p(entity e)
Check if the scope of entity e is global.
Definition: entity.c:1130

References entity_local_name(), fortran_library, same_string_p, and top_level_entity_p().

Referenced by hpfc_compile(), and hpfc_directives_handler().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ type_variable_dup()

type type_variable_dup ( type  t)

local-ri-util.c

!!! means sharing

Definition at line 30 of file local-ri-util.c.

32 {
33  if(type_variable_p(t))
34  {
35  variable v = type_variable(t);
36 
39  }
40  else
41  return t; /* !!! means sharing */
42 }
list ldimensions_dup(list)
Definition: type.c:1166
type MakeTypeVariable(basic, cons *)
BEGIN_EOLE.
Definition: type.c:116
#define type_variable(x)
Definition: ri.h:2949
#define variable_dimensions(x)
Definition: ri.h:3122
#define type_variable_p(x)
Definition: ri.h:2947
#define variable_basic(x)
Definition: ri.h:3120

References ldimensions_dup(), MakeTypeVariable(), type_variable, type_variable_p, variable_basic, and variable_dimensions.

+ Here is the call graph for this function:

Variable Documentation

◆ fortran_library

string fortran_library[]
static
Initial value:
=
{
"TIME",
(string) NULL
}

library functions...

Definition at line 46 of file local-ri-util.c.

Referenced by fortran_library_entity_p().