33 if( *format ==
'!' ) {
34 vfprintf(stderr,format+1,args);
35 fprintf(stderr,
": %s\n",strerror(errno));
37 vfprintf(stderr,format,args);
50 if( format ) fprintf(stderr,
"%s: ",
progname);
68 va_list
v; va_start(
v,format);
69 fprintf(stderr,
"%s: %s:\n ",
progname,
_(
"Corrupted or malformed XCF file"));
77 if( xcf_length < spaceafter || addr >
xcf_length - spaceafter ) {
80 fprintf(stderr,
"%s: %s\n ",
progname,
_(
"Corrupted or truncated XCF file"));
81 fprintf(stderr,
"(0x%" PRIXPTR
" bytes): ",(uintptr_t)
xcf_length);
96 _(
"The image contains features not understood by this program:"));
106 _(
"Type \"%s -h\" to get an option summary.\n"),
progname);
116 void *ptr = malloc(size);
141 if( strcmp(name,
"-") == 0 )
143 newfile = fopen(name,
"wb") ;
144 if( newfile == NULL ) {
156 if( fflush(f) == 0 ) {
161 }
else if( errno == 0 ) {
166 if( fputc(
'\0', f) != EOF &&
typedef void(QOPENGLF_APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC)(GLuint buffer)
FILE * openout(const char *name)
void FatalUnsupportedXCF(const char *format,...)
void * xcfmalloc(size_t size)
int closeout(FILE *f, const char *name)
void xcffree(void *block)
void FatalGeneric(int status, const char *format,...)
void FatalUnexpected(const char *format,...)
void FatalBadXCF(const char *format,...)
int xcfCheckspace(uint32_t addr, int spaceafter, const char *format,...)
static void vFatalGeneric(int status, const char *format, va_list args)