Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mart Lubbers
CleanSerial
Commits
71526f6a
Commit
71526f6a
authored
Jan 23, 2017
by
Mart Lubbers
Browse files
debug again
parent
78b3c8b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
71526f6a
...
...
@@ -2,7 +2,7 @@ test: test.icl TTY.icl TTY.dcl Clean\ System\ Files/ctty.o
clm
-dynamics
-l
-no-pie
-I
/opt/clean/lib/Dynamics
$(
basename
$<
)
-o
$@
Clean\ System\ Files/ctty.o
:
tty.c
gcc-5
-c
$<
-o
"
$@
"
gcc-5
-DDEBUG
-c
$<
-o
"
$@
"
clean
:
$(RM)
-r
Clean
\
System
\
Files/
*
test
tty.c
View file @
71526f6a
...
...
@@ -12,9 +12,9 @@
#include
"Clean.h"
#ifdef DEBUG
#define debug(s
, ...) {printf(s "\n", #__VA_ARGS__
); fflush(stdout);}
#define debug(s
) {puts(s
); fflush(stdout);}
#else
#define debug(s
, ...
) ;
#define debug(s) ;
#endif
#ifdef __APPLE__
...
...
@@ -198,7 +198,7 @@ void ttyreadline(int fd, CleanString *result, int *fdo)
CleanStringLength
(
readlinecl
)
=
charsread
;
*
fdo
=
fd
;
debug
(
"Recv: '%s'"
,
buf
);
free
(
buf
);
debug
(
"ttyreadline-done"
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment