[BACK]Return to log.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

File: [local] / src / usr.bin / mg / log.h (download)

Revision 1.1, Mon Jun 10 06:52:44 2019 UTC (5 years ago) by lum
Branch: MAIN

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@

/*      $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);