BRL-CAD
#include "common.h"
#include <stdio.h>
#include <stdarg.h>
#include "bu/defines.h"
#include "bu/magic.h"
#include "bu/parse.h"
#include "bu/hook.h"
#include "bu/exit.h"
Include dependency graph for log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  bu_lex_t_int
 
struct  bu_lex_t_dbl
 
struct  bu_lex_t_key
 
struct  bu_lex_t_id
 
union  bu_lex_token
 
struct  bu_lex_key
 

Macros

#define BU_LEX_ANY   0 /* pseudo type */
 
#define BU_LEX_INT   1
 
#define BU_LEX_DOUBLE   2
 
#define BU_LEX_SYMBOL   3
 
#define BU_LEX_KEYWORD   4
 
#define BU_LEX_IDENT   5
 
#define BU_LEX_NUMBER   6 /* Pseudo type */
 
#define BU_LEX_NEED_MORE   0
 

Functions

char * bu_fgets (char *s, int size, FILE *stream)
 fgets replacement function that also handles CR as an EOL marker More...
 
void bu_setlinebuf (FILE *fp)
 A portable way of doing setlinebuf(). More...
 
void bu_log_indent_delta (int delta)
 parallel safe version of fprintf for logging More...
 
void bu_log_indent_vls (struct bu_vls *v)
 
void bu_log_add_hook (bu_hook_t func, void *clientdata)
 
void bu_log_delete_hook (bu_hook_t func, void *clientdata)
 
void bu_log_hook_save_all (struct bu_hook_list *save_hlp)
 
void bu_log_hook_delete_all (void)
 
void bu_log_hook_restore_all (struct bu_hook_list *restore_hlp)
 
void bu_putchar (int c)
 
int bu_log (const char *,...) _BU_ATTR_PRINTF12
 
int bu_flog (FILE *, const char *,...) _BU_ATTR_PRINTF23
 
int bu_vsscanf (const char *src, const char *fmt, va_list ap)
 libbu implementations of vsscanf/sscanf() with extra format specifiers. More...
 
int bu_sscanf (const char *src, const char *fmt,...) _BU_ATTR_SCANF23
 
int bu_scan_fastf_t (int *c, const char *src, const char *delim, size_t n,...)
 
int bu_lex (union bu_lex_token *token, struct bu_vls *rtstr, struct bu_lex_key *keywords, struct bu_lex_key *symbols)
 
long int bu_mread (int fd, void *bufp, long int n)
 multiple-read to fill a buffer More...