diff options
author | Mark Lumsden <lum@cvs.openbsd.org> | 2019-06-10 06:52:45 +0000 |
---|---|---|
committer | Mark Lumsden <lum@cvs.openbsd.org> | 2019-06-10 06:52:45 +0000 |
commit | b4f8ec3b47b0f12a4b7eb3b7578b39d80cd6a7be (patch) | |
tree | 91a45191ebc52bba568a8126e94942af9295dac0 /usr.bin/mg/log.h | |
parent | 77b4a2b36270cf999ecc42277a6934e85edd94eb (diff) |
Allow mg to log its internal status to a file. At the moment it only
logs line information like front and back pointers in the linked list,
how many characters are used and where the cursor is placed in the
file.
With this diff logging is not switched on by default and has to
compiled into mg. -DMGLOG has to be added to the Makefile:
CFLAGS+=-Wall -DREGEX -DMGLOG
And the comment character removed from:
#SRCS+= log.c
ok bcallah@
Diffstat (limited to 'usr.bin/mg/log.h')
-rw-r--r-- | usr.bin/mg/log.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/usr.bin/mg/log.h b/usr.bin/mg/log.h new file mode 100644 index 00000000000..814b19b5531 --- /dev/null +++ b/usr.bin/mg/log.h @@ -0,0 +1,11 @@ +/* $OpenBSD: log.h,v 1.1 2019/06/10 06:52:44 lum Exp $ */ + +/* This file is in the public domain. */ + +/* + * Specifically for mg logging functionality. + * + */ + +int mglog(PF); +int mgloginit(void); |