25 #include "pips_config.h"
39 bool some_main_p =
false;
42 FILE * fm = fopen(main_list,
"r");
69 FILE * fm = fopen(main_list,
"r");
83 pips_assert(
"some modules in the program", nmodules>0);
size_t gen_array_nitems(const gen_array_t a)
void gen_array_full_free(gen_array_t a)
void * gen_array_item(const gen_array_t a, size_t i)
char * safe_fgets(char *s, int n, FILE *stream, char *filename)
gen_array_t db_get_module_list(void)
Get an array of all the modules (functions, procedures and compilation units) of a workspace.
#define pips_user_warning
#define pips_assert(what, predicate)
common macros, two flavors depending on NDEBUG
#define MAXIMAL_MODULE_NAME_SIZE
In C, the module name may include file names, the compilation unit name and the user name of the func...
string concatenate(const char *,...)
Return the concatenation of the given strings.
#define MAIN_FILE_NAMES
Name of the file containing the names of the main procedures.
string get_main_entity_name(void)
Return the local name of the main module if it is available, or the local name of any module by defau...
bool some_main_entity_p(void)
returns whether there is a main in the database
string db_get_current_workspace_directory(void)
char * strndup(char const *s, size_t n)
A replacement function, for systems that lack strndup.