Révision 132 pobysoC-4.0/src/pobyso.h

pobyso.h (revision 132)
20 20
#ifndef POBYSO_h
21 21

  
22 22
/* Typedefs to make code more readable. */
23

  
23 24
typedef sollya_obj_t pobyso_error_t;
24 25
typedef sollya_obj_t pobyso_func_exp_t;
26
typedef sollya_obj_t pobyso_on_off_t;
25 27
typedef sollya_obj_t pobyso_precision_t;
26 28
typedef sollya_obj_t pobyso_range_t;
29
typedef sollya_obj_t pobyso_sollya_verbosity_t;
27 30

  
28
typedef sollya_obj_t sollya_verbosity_t;
31
#define POBYSO_ABSOLUTE (1)
32
#define POBYSO_RELATIVE (2)
29 33

  
30
#define POBYSO_ABSOLUTE 1
31
#define POBYSO_RELATIVE 2
34
#define POBYSO_OFF (0)
35
#define POBYSO_ON (1)
32 36

  
33 37
/* Mimic the default behavior of interactive Sollya. */
34 38
#define POBYSO_DEFAULT_POINTS 501
......
64 68
void
65 69
pobyso_autoprint_v(sollya_obj_t soObj, va_list va);
66 70

  
71

  
72

  
67 73
/**
68 74
 * Parse a string to create a Sollya object.
69 75
 * A very thin wrapper around the sollya_lib_parse_string() function.
......
116 122
pobyso_func_exp_t
117 123
pobyso_remez_arbitrary_base(pobyso_func_exp_t);
118 124

  
125
/**
126
 * Set the canonical mode.
127
 */
119 128

  
129
int
130
pobyso_set_canonical_on(void);
120 131

  
121 132
/**
122 133
 * Set the verbosity mode off (level 0).
123
 * The current level of vebositiy is returned.
134
 * The current level of verbosity is returned.
124 135
 */
125
sollya_verbosity_t
136
pobyso_sollya_verbosity_t
126 137
pobyso_set_verbosity_off(void);
127 138

  
128 139
/**
129 140
 * Set the verbosity level to newVerbosityLevel.
130
 * @param newVerbosityLevel must be a Sollay object corresponding to an
141
 * @param newVerbosityLevel must be a Sollya object corresponding to an
131 142
 *        integer constant.
132 143
 */
133
sollya_verbosity_t
134
pobyso_set_verbosity_to(sollya_obj_t newVerbosityLevel);
144
pobyso_sollya_verbosity_t
145
pobyso_set_verbosity_to(pobyso_sollya_verbosity_t newVerbosityLevel);
135 146

  
147
/**
148
 * Set the verbosity level to intVerbosityLevel.
149
 * @param newVerbosityLevel is an positive or null int.
150
*/
151
pobyso_sollya_verbosity_t
152
pobyso_set_verbosity_to_int(int intVerbosityLevel);
153

  
136 154
#if 0
137 155
/**
138 156
 * Create the canonical (non sparse) base of monomials for a given degree.

Formats disponibles : Unified diff