30#define fePutChar(c) fputc((unsigned char)(c),stdout)
34#define INITIAL_PRINT_BUFFER 24*1024L
38#define MAX_FILE_BUFFER 4*4096
70 more = ((more + (8*1024-1))/(8*1024))*(8*1024);
74#if (!defined(SING_NDEBUG)) && (!defined(OM_NDEBUG))
117 more = ((more + (8*1024-1))/(8*1024))*(8*1024);
142 more = ((
l + (4*1024-1))/(4*1024))*(4*1024);
184 strcat(
feErrors,
"Singular error: ");
194 vsprintf(
s, fmt,
ap);
204 #define warn_str "// ** "
210 fwrite(
s,1,strlen(
s),stdout);
211 fwrite(
"\n",1,1,stdout);
233 vsnprintf(
s, 256, fmt,
ap);
235 vsprintf(
s, fmt,
ap);
259 if ((
s ==
NULL)||(*
s ==
'\0'))
return;
264 ns = (
char*)
omAlloc((
l + ls + 1)*
sizeof(char));
300 fwrite(
s,1,strlen(
s),stdout);
322 int ls = strlen(fmt);
323 if (fmt !=
NULL && ls > 0)
327 ns = (
char*)
omAlloc(
sizeof(
char)*(ls +
l + 512));
331 l = vsnprintf(&(ns[
l]), ls+511, fmt,
ap);
334 vsprintf(&(ns[
l]), fmt,
ap);
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);
377 if (*
s >=
'0' && *
s <=
'9')
380 while (*
s >=
'0' && *
s <=
'9')
388 Werror(
"`%s` greater than %d(max. integer representation)",
407 (r !=
NULL ? r :
""));
const CanonicalForm int s
void WerrorS(const char *s)
VAR void(* PrintS_callback)(const char *s)
VAR feResourceConfig_s feResourceConfigs[]
static char * feResource(feResourceConfig config, int warn)
#define omFreeSize(addr, size)
#define omCheckAddr(addr)
#define omreallocSize(addr, o_size, size)
#define omReallocSize(addr, o_size, size)
#define omCheckAddrSize(addr, size)
STATIC_VAR char * feBufferStart_save[8]
STATIC_VAR char * feBuffer
STATIC_VAR char * feBuffer_save[8]
void WerrorS_batch(const char *s)
void StringSetS(const char *st)
STATIC_VAR long feBufferLength_save[8]
const char * eati(const char *s, int *i)
void StringAppendS(const char *st)
STATIC_VAR char * feBufferStart
STATIC_VAR long feBufferLength
void PrintNSpaces(const int n)
const char feNotImplemented[]
void PrintS(const char *s)
void feStringAppendResources(int warn)
VAR void(* WarnS_callback)(const char *s)
static void SPrintS(const char *s)
STATIC_VAR int feBuffer_cnt
STATIC_VAR char * sprint_backup
#define INITIAL_PRINT_BUFFER
void Werror(const char *fmt,...)
#define omMarkAsStaticAddr(A)