25 #include "pips_config.h"
45 #include "constants.h"
46 #include "resources.h"
64 "Usage: %s [-v] [-f F]* [-m M] [-s S]* [-p P] [-b B] [-(0|1) T]* wspace\n"
65 "\t-v: pips version (which pips/ARCH)\n"
66 "\t-f F: source file F\n"
68 "\t-s S: select rule S\n"
69 "\t-p P: perform rule P\n"
70 "\t-b B: build resource B\n"
71 "\t-(0|1) T: set boolean property T to FALSE or TRUE\n" ;
87 while ((c = getopt(argc, argv,
"vf:m:s:p:b:1:0:")) != -1)
140 "Too few arguments\n" :
"illegal argument: %s\n"),
152 user_log(
"Selecting rule: %s\n", rule_name);
233 user_log(
"Cannot build %s for %s.\n", build_resource_name,
module);
void user_log(const char *format,...)
void set_pips_meta_informations(const char *revs, const char *date, const char *comp)
const char * activate(const char *phase)
void fprint_activated(FILE *fd)
@ any_exception_error
catch all
void set_exception_callbacks(exception_callback_t, exception_callback_t)
size_t gen_array_nitems(const gen_array_t a)
gen_array_t gen_array_make(size_t size)
declarations...
void gen_array_append(gen_array_t a, void *what)
bool open_module(const char *name)
tpips used to convert lower cases into upper cases for all module names, but this is no longer possib...
bool open_module_if_unique(void)
Open the module of a workspace if there is only one.
bool create_workspace(gen_array_t files)
FI: should be called "initialize_workspace()"; a previous call to db_create_workspace() is useful to ...
bool close_workspace(bool is_quit)
bool open_workspace(const char *name)
should be: success (cf wpips.h)
void push_pips_context(char const *file, char const *function, int line)
exception.c
void pop_pips_context(char const *file, char const *function, int line)
#define NIL
The empty list (nil in Lisp)
#define CONS(_t_, _i_, _l_)
List element cell constructor (insert an element at the beginning of a list)
list gen_nconc(list cp1, list cp2)
physically concatenates CP1 and CP2 but do not duplicates the elements
#define FOREACH(_fe_CASTER, _fe_item, _fe_list)
Apply/map an instruction block on all the elements of a list.
void pips_checks(void)
add checkings here (FI: why in help.c?) SG : PIPS_ROOT should not be required :)
#define STRINGIFY(symbol)
If not using this 2-stage macro evaluation, the generated string is not the value of the macro but th...
#define user_warning(fn,...)
void initialize_newgen()
cproto-generated files
static list selected_rules
char * soft_revisions
could be shared somewhere?
void(* pips_warning_handler)()
static list build_resource_names
void(* pips_error_handler)()
static void select_rule(char *rule_name)
void(* pips_log_handler)()
int pips_main(int argc, char **argv)
Warning! Do not modify this file that is automatically generated!
static char * performed_rule
static void pips_parse_arguments(int argc, char *argv[])
static gen_array_t source_files
bool db_create_workspace(const char *)
bool safe_make(const char *res_n, const char *module_n)
bool safe_apply(const char *phase_n, const char *module_n)
void initialize_signal_catcher(void)
void set_bool_property(const char *, bool)
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...
void initialize_sc(char *(*var_to_string)(Variable))
int fprintf()
test sc_min : ce test s'appelle par : programme fichier1.data fichier2.data ...
The structure used to build lists in NewGen.
void * Variable
arithmetique is a requirement for vecteur, but I do not want to inforce it in all pips files....