aboutsummaryrefslogtreecommitdiffhomepage
path: root/output.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-06-20 10:50:10 +1000
committerGravatar axel <axel@liljencrantz.se>2006-06-20 10:50:10 +1000
commit568803568043345e7971403f03769a485a73939c (patch)
tree56b3b435e6bd0448ccd90cf90b3e01470ab89ff6 /output.c
parent43b6b703ff56ed4a4194d26811823a6c4e545a87 (diff)
Large number of sourcecode comment edits, and some minor code polish
darcs-hash:20060620005010-ac50b-eaeae9a6242a37c1e34831e1a0b2ee2b4e7a012e.gz
Diffstat (limited to 'output.c')
-rw-r--r--output.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/output.c b/output.c
index f2183ed2..c93304ce 100644
--- a/output.c
+++ b/output.c
@@ -113,6 +113,9 @@ static char *writestr_buff = 0;
static int (*out)(char c) = &writeb_internal;
+/**
+ Cleanup function. Run automatically through halloc
+*/
static void output_destroy()
{
free( writestr_buff );
@@ -347,6 +350,9 @@ void move_cursor( int steps )
}
}
+/**
+ Default output method, simply calls write() on stdout
+*/
static int writeb_internal( char c )
{
write( 1, &c, 1 );