PIPS
io.c File Reference
#include <stdio.h>
#include <string.h>
#include "arithmetique.h"
+ Include dependency graph for io.c:

Go to the source code of this file.

Macros

#define BUFFER_SIZE   50
 this seems a reasonnable upperbound More...
 

Functions

void print_Value (Value v)
 package arithmetic More...
 
void fprint_Value (FILE *f, Value v)
 
void fprint_string_Value (FILE *f, char *blah, Value v)
 
void sprint_Value (char *s, Value v)
 
int fscan_Value (FILE *f, Value *pv)
 
int scan_Value (Value *pv)
 
int sscan_Value (char *s, Value *pv)
 
char * Value_to_string (Value v)
 

Macro Definition Documentation

◆ BUFFER_SIZE

#define BUFFER_SIZE   50

this seems a reasonnable upperbound

Definition at line 75 of file io.c.

Function Documentation

◆ fprint_string_Value()

void fprint_string_Value ( FILE *  f,
char *  blah,
Value  v 
)
Parameters
blahlah

Definition at line 47 of file io.c.

48 {
49  fputs(blah,f);
50  fprint_Value(f, v);
51 }
void fprint_Value(FILE *f, Value v)
Definition: io.c:42
int f(int off1, int off2, int n, float r[n], float a[n], float b[n])
Definition: offsets.c:15

References f(), and fprint_Value().

Referenced by build_sc_machine(), calculate_delay(), evaluate_var_to_complexity(), make_movements_loop_body_wp65(), print_cone_vecteur(), print_dependence_cone(), print_vect_in_vertice_val(), region_translation_init(), and TestDiVariables().

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

◆ fprint_Value()

◆ fscan_Value()

int fscan_Value ( FILE *  f,
Value pv 
)
Parameters
pvv

Definition at line 58 of file io.c.

59 {
60  return fscanf(f, VALUE_FMT, pv);
61 }

References f(), and VALUE_FMT.

Referenced by matrice_fscan(), and matrix_fscan().

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

◆ print_Value()

void print_Value ( Value  v)

package arithmetic

io.c

IO on a Value

Definition at line 37 of file io.c.

38 {
39  (void) printf(VALUE_FMT, v);
40 }
int printf()

References printf(), and VALUE_FMT.

Referenced by __attribute__(), add_var_sup(), eq_in_ineq(), lignes_entrant(), printfrac(), and var_ecart_sup().

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

◆ scan_Value()

int scan_Value ( Value pv)
Parameters
pvv

Definition at line 63 of file io.c.

64 {
65  return scanf(VALUE_FMT, pv);
66 }

References VALUE_FMT.

Referenced by fonct_read(), and vect_read().

+ Here is the caller graph for this function:

◆ sprint_Value()

void sprint_Value ( char *  s,
Value  v 
)

Definition at line 53 of file io.c.

54 {
55  (void) sprintf(s, VALUE_FMT, v);
56 }

References VALUE_FMT.

Referenced by heuristique_1(), heuristique_3(), and vect_sprint_as_monome().

+ Here is the caller graph for this function:

◆ sscan_Value()

int sscan_Value ( char *  s,
Value pv 
)
Parameters
pvv

Definition at line 68 of file io.c.

69 {
70  return sscanf(s, VALUE_FMT, pv);
71 }

References VALUE_FMT.

Referenced by vect_gen_read().

+ Here is the caller graph for this function:

◆ Value_to_string()

char* Value_to_string ( Value  v)

Definition at line 76 of file io.c.

77 {
78  static char buf[BUFFER_SIZE];
79  sprintf(buf, VALUE_FMT, v);
80  return buf;
81 }
#define BUFFER_SIZE
this seems a reasonnable upperbound
Definition: io.c:75
static char buf[BSZ]
Definition: split_file.c:157

References buf, BUFFER_SIZE, and VALUE_FMT.

Referenced by add_Value_to_current_line().

+ Here is the caller graph for this function: