aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorronny2002-06-19 15:13:03 +0000
committerronny2002-06-19 15:13:03 +0000
commitcf2f955a701e1d25962f279e2adf983e1b9f470b (patch)
tree6b7f36899d8234b2227e9930ef20be70c4577b2b /main
parentDifferent file finding method (now identical to windows_io method). (diff)
Optional logging
git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@1124 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d
Diffstat (limited to 'main')
-rw-r--r--main/Unix/ipc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/Unix/ipc.c b/main/Unix/ipc.c
index 55cdffd..fab7220 100644
--- a/main/Unix/ipc.c
+++ b/main/Unix/ipc.c
@@ -77,13 +77,13 @@ int open_pipes (CleanString commands_clean, CleanString results_clean)
if ((commands = fopen(commands_name, "r")) == NULL)
{
- fprintf(stderr,"commands = %s\n",commands_name);
+ log("commands = %s\n",commands_name);
perror("fopen commands");
return -1;
}
if ((results = fopen(results_name, "w")) == NULL)
{
- fprintf(stderr,"results = %s\n",results_name);
+ log("results = %s\n",results_name);
perror("fopen results");
return -1;
}
@@ -104,7 +104,7 @@ int get_command_length (void)
int get_command (CleanString cleanString)
{
- fprintf (stderr, "%s\n", command_buffer);
+ log ("%s\n", command_buffer);
strncpy (cleanString->chars, command_buffer, cleanString->length);
cleanString->chars [cleanString->length] = '\0';