PIPS
gfc2pips.h File Reference
#include "config.h"
#include "system.h"
#include "gfortran.h"
+ Include dependency graph for gfc2pips.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _gfc2pips_comments_
 

Macros

#define match   pips_match
 
#define hash_table   pips_hash_table
 
#define loop   pips_loop
 

Typedefs

typedef struct _gfc2pips_comments_gfc2pips_comments
 

Functions

bool get_bool_property (const string)
 FC 2015-07-20: yuk, moved out to prevent an include cycle dependency include "properties.h". More...
 
void gfc2pips_set_last_comments_done (unsigned long nb)
 
void gfc2pips_pop_not_done_comments (void)
 
void gfc2pips_replace_comments_num (unsigned long old, unsigned long new)
 

Variables

int gfc2pips_nb_of_statements
 
gfc2pips_comments gfc2pips_comments_stack
 
gfc2pips_comments gfc2pips_comments_stack_
 

Macro Definition Documentation

◆ hash_table

#define hash_table   pips_hash_table

Definition at line 53 of file gfc2pips.h.

◆ loop

#define loop   pips_loop

Definition at line 54 of file gfc2pips.h.

◆ match

#define match   pips_match

Definition at line 52 of file gfc2pips.h.

Typedef Documentation

◆ gfc2pips_comments

Function Documentation

◆ get_bool_property()

bool get_bool_property ( const  string)

FC 2015-07-20: yuk, moved out to prevent an include cycle dependency include "properties.h".

Definition at line 173 of file gfc2pips-stubs.c.

173  {
174  if ( strcmp( "PRETTYPRINT_LISTS_WITH_SPACES", name ) == 0
175  || strcmp( "PRETTYPRINT_REGENERATE_ALTERNATE_RETURNS", name ) == 0
176  || strcmp( "PRETTYPRINT_C_CODE", name ) == 0
177  || strcmp( "ABORT_ON_USER_ERROR", name ) == 0 ) {
178  return true;
179  }
180  if ( strcmp( "NO_USER_WARNING", name ) == 0 ) {
181  return false;
182  }
183  fprintf( stderr, "***** Property requested : %s ***** ", name );
184  STUB_WARNING();
185  return 0;
186 }
#define STUB_WARNING()
int fprintf()
test sc_min : ce test s'appelle par : programme fichier1.data fichier2.data ...

◆ gfc2pips_pop_not_done_comments()

void gfc2pips_pop_not_done_comments ( void  )

Definition at line 215 of file gfc2pips-comments.c.

215  {
218  }
219 }
gfc2pips_comments gfc2pips_pop_comment(void)
gfc2pips_comments gfc2pips_comments_stack
unsigned char done
Definition: gfc2pips.h:74

References _gfc2pips_comments_::done, gfc2pips_comments_stack, and gfc2pips_pop_comment().

+ Here is the call graph for this function:

◆ gfc2pips_replace_comments_num()

void gfc2pips_replace_comments_num ( unsigned long  old,
unsigned long  new 
)

Definition at line 182 of file gfc2pips-comments.c.

182  {
184  bool if_changed = false;
185  //fprintf(stderr,"gfc2pips_replace_comments_num: replace %d by %d\n", old, new );
186  while(retour) {
187  if(retour->num == old) {
188  if_changed = true;
189  retour->num = new;
190  }
191  retour = retour->prev;
192  }
193  //if(if_changed) gfc2pips_nb_of_statements--;
194 }
unsigned long num
Definition: gfc2pips.h:78
struct _gfc2pips_comments_ * prev
Definition: gfc2pips.h:79

References gfc2pips_comments_stack, _gfc2pips_comments_::num, and _gfc2pips_comments_::prev.

Referenced by gfc2pips_code2instruction__TOP().

+ Here is the caller graph for this function:

◆ gfc2pips_set_last_comments_done()

void gfc2pips_set_last_comments_done ( unsigned long  nb)

Definition at line 145 of file gfc2pips-comments.c.

145  {
146  //printf("gfc2pips_set_last_comments_done\n");
148  while(retour) {
149  if(retour->done)
150  return;
151  retour->num = nb;
152  retour->done = true;
153  retour = retour->prev;
154  }
155 }

References _gfc2pips_comments_::done, gfc2pips_comments_stack, _gfc2pips_comments_::num, and _gfc2pips_comments_::prev.

Variable Documentation

◆ gfc2pips_comments_stack

◆ gfc2pips_comments_stack_

◆ gfc2pips_nb_of_statements

int gfc2pips_nb_of_statements
extern