30 #include "pips_config.h"
54 bool stf(
const string mod_name)
57 #define MAX__LENGTH 256
59 char tmpfile[MAX__LENGTH];
67 strncpy (tmpfile,
".stf-workspace-outputXXXXXX", MAX__LENGTH - 1);
68 int fd = mkstemp (tmpfile);
71 pips_debug (9,
"temporary filename for output %s\n", tmpfile);
86 if ((ftmp = fopen (tmpfile,
"r")) != NULL)
90 if (fgets(
outline, MAX__LENGTH, ftmp))
102 debug (1,
"stf",
"ok for module %s\n", mod_name);
106 "Cannot find new source file for module %s\n",
111 "should clean up with toolpack command for module %s\n",
115 "failed for module %s\n",
void user_log(const char *format,...)
bool db_update_time(const char *rname, const char *oname)
this should really be a put.
bool outline(const string)
entry point for outline module outlining will be performed using either comment recognition or intera...
struct _newgen_struct_status_ * status
string db_get_memory_resource(const char *rname, const char *oname, bool pure)
Return the pointer to the resource, whatever it is.
#define pips_debug
these macros use the GNU extensions that allow variadic macros, including with an empty list.
#define pips_internal_error
#define user_error(fn,...)
#define user_warning(fn,...)
void debug(const int the_expected_debug_level, const char *calling_function_name, const char *a_message_format,...)
ARARGS0.
int safe_system_no_abort(string)
the command to be executed
string concatenate(const char *,...)
Return the concatenation of the given strings.
string db_get_current_workspace_directory(void)