w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

utillog.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include "utillog.h"
Include dependency graph for utillog.c:

Go to the source code of this file.

Classes

struct  logger_struct
 

Macros

#define LOGGER_BUFFER_SIZE   256
 
#define LOGGER_PREFIX_SIZE   32
 

Functions

void loggerf (const char *format,...)
 
void logger_callback (logger_function callback, void *context)
 
int logger_prefix (const char *prefix)
 

Variables

static logger_struct logger = { 0, NULL, 0 }
 
static char logger_buffer [256+32]
 

Macro Definition Documentation

◆ LOGGER_BUFFER_SIZE

#define LOGGER_BUFFER_SIZE   256

Definition at line 7 of file utillog.c.

◆ LOGGER_PREFIX_SIZE

#define LOGGER_PREFIX_SIZE   32

Definition at line 8 of file utillog.c.

Function Documentation

◆ logger_callback()

void logger_callback ( logger_function  callback,
void context 
)

Definition at line 45 of file utillog.c.

References logger_struct::callback, logger_struct::context, and logger.

Referenced by pplog_callback().

◆ logger_prefix()

int logger_prefix ( const char *  prefix)

Definition at line 51 of file utillog.c.

References logger, logger_buffer, LOGGER_PREFIX_SIZE, memcpy, logger_struct::pfxlen, and strlen().

Referenced by pplog_prefix().

◆ loggerf()

Variable Documentation

◆ logger

logger_struct logger = { 0, NULL, 0 }
static

Definition at line 16 of file utillog.c.

Referenced by logger_callback(), logger_prefix(), loggerf(), otfcc_newLogger(), and pplog_callback().

◆ logger_buffer

char logger_buffer[256+32]
static

Definition at line 18 of file utillog.c.

Referenced by logger_prefix(), and loggerf().