 |
My Project
debian-1:4.1.1-p2+ds-4
|
#include "misc/auxiliary.h"
#include "omalloc/omalloc.h"
#include "reporter/reporter.h"
#include "resources/feResource.h"
#include "resources/feFopen.h"
#include <stdlib.h>
#include <stdio.h>
#include "misc/mylimits.h"
#include <stdarg.h>
#include <sys/stat.h>
#include <ctype.h>
#include <unistd.h>
Go to the source code of this file.
◆ fePutChar
#define fePutChar |
( |
|
c | ) |
fputc((unsigned char)(c),stdout) |
◆ INITIAL_PRINT_BUFFER
#define INITIAL_PRINT_BUFFER 24*1024L |
◆ MAX_FILE_BUFFER
#define MAX_FILE_BUFFER 4*4096 |
◆ warn_str
#define warn_str "// ** " |
◆ eati()
Definition at line 372 of file reporter.cc.
377 if (*
s >=
'0' && *
s <=
'9')
380 while (*
s >=
'0' && *
s <=
'9')
388 Werror(
"`%s` greater than %d(max. integer representation)",
◆ feStringAppendResources()
void feStringAppendResources |
( |
int |
warn | ) |
|
◆ Print()
void Print |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Definition at line 314 of file reporter.cc.
322 int ls = strlen(fmt);
323 if (fmt !=
NULL && ls > 0)
327 ns = (
char*)
omAlloc(
sizeof(
char)*(ls +
l + 512));
330 #ifdef HAVE_VSNPRINTF
331 l = vsnprintf(&(ns[
l]), ls+511, fmt,
ap);
334 vsprintf(&(ns[
l]), fmt,
ap);
350 #ifdef HAVE_VSNPRINTF
351 l = vsnprintf(
s, ls+511, fmt,
ap);
352 if ((
l==-1)||(
s[
l]!=
'\0')||(
l!=(
int)strlen(
s)))
354 printf(
"Print problem: l=%d, fmt=>>%s<<\n",
l,fmt);
357 vsprintf(
s, fmt,
ap);
◆ PrintLn()
◆ PrintNSpaces()
void PrintNSpaces |
( |
const int |
n | ) |
|
◆ PrintS()
void PrintS |
( |
const char * |
s | ) |
|
◆ SPrintEnd()
◆ SPrintS()
static void SPrintS |
( |
const char * |
s | ) |
|
|
inlinestatic |
◆ SPrintStart()
◆ StringAppend()
void StringAppend |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Definition at line 60 of file reporter.cc.
70 more = ((more + (8*1024-1))/(8*1024))*(8*1024);
74 #if (!defined(SING_NDEBUG)) && (!defined(OM_NDEBUG))
◆ StringAppendS()
void StringAppendS |
( |
const char * |
st | ) |
|
Definition at line 106 of file reporter.cc.
117 more = ((more + (8*1024-1))/(8*1024))*(8*1024);
◆ StringEndS()
◆ StringSetS()
void StringSetS |
( |
const char * |
st | ) |
|
Definition at line 127 of file reporter.cc.
142 more = ((
l + (4*1024-1))/(4*1024))*(4*1024);
◆ Warn()
void Warn |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Definition at line 226 of file reporter.cc.
232 #ifdef HAVE_VSNPRINTF
233 vsnprintf(
s, 256, fmt,
ap);
235 vsprintf(
s, fmt,
ap);
◆ WarnS()
void WarnS |
( |
const char * |
s | ) |
|
Definition at line 201 of file reporter.cc.
204 #define warn_str "// ** "
210 fwrite(
s,1,strlen(
s),stdout);
211 fwrite(
"\n",1,1,stdout);
◆ Werror()
void Werror |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ WerrorS_batch()
void WerrorS_batch |
( |
const char * |
s | ) |
|
◆ feBuffer
◆ feBuffer_cnt
◆ feBuffer_save
◆ feBufferLength
◆ feBufferLength_save
long feBufferLength_save[8] |
|
static |
◆ feBufferStart
◆ feBufferStart_save
char* feBufferStart_save[8] |
|
static |
◆ feErrors
◆ feErrorsLen
◆ feNotImplemented
const char feNotImplemented[] ="not implemented" |
◆ feOut
◆ feProt
◆ feProtFile
◆ feWarn
◆ sprint
◆ sprint_backup
char* sprint_backup = NULL |
|
static |
◆ WarnS_callback
#define omCheckAddrSize(addr, size)
void(* WarnS_callback)(const char *s)
static char * feBufferStart
#define INITIAL_PRINT_BUFFER
static char * feBufferStart_save[8]
static void SPrintS(const char *s)
void PrintS(const char *s)
#define omFreeSize(addr, size)
static long feBufferLength
void StringAppend(const char *fmt,...)
static char * sprint_backup
feResourceConfig_s feResourceConfigs[]
void WarnS(const char *s)
static char * feResource(feResourceConfig config, int warn)
void omMarkAsStaticAddr(void *addr)
void Werror(const char *fmt,...)
#define omreallocSize(addr, o_size, size)
void WerrorS(const char *s)
#define omCheckAddr(addr)
static char * feBuffer_save[8]
const CanonicalForm int s
void(* PrintS_callback)(const char *s)
static long feBufferLength_save[8]
#define omReallocSize(addr, o_size, size)