Searched refs:_throw (Results 1 - 4 of 4) sorted by relevance

/external/libvncserver/test/
H A Dbmp.c82 #define _throw(m) {__bmperr=m; retcode=-1; goto finally;} macro
83 #define _unix(f) {if((f)==-1) _throw(strerror(errno));}
87 if((bytesread=read(fd, addr, (size)))==-1) _throw(strerror(errno)); \
88 if(bytesread!=(size)) _throw("Read error");
118 if((fs=fdopen(*fd, "r"))==NULL) _throw(strerror(errno));
122 if(!fgets(temps, 255, fs)) _throw("Read error");
129 _throw("Read error");
133 _throw("Read error");
137 _throw("Read error");
142 if((*w)<1 || (*h)<1 || scalefactor<1) _throw("Corrup
[all...]
H A Dtjunittest.c48 #define _throw(m) {printf("ERROR: %s\n", m); bailout();} macro
250 _throw("Memory allocation failure");
291 _throw("Incorrect JPEG header");
295 _throw("Memory allocation failure");
345 _throw("Memory allocation failure.");
396 _throw("Memory allocation failure");
399 _throw("Memory allocation failure");
414 _throw("Memory allocation failure");
417 _throw("Memory allocation failure");
H A Dtjbench.c39 #define _throw(op, err) { \ macro
43 #define _throwunix(m) _throw(m, strerror(errno))
44 #define _throwtj(m) _throw(m, tjGetErrorStr())
45 #define _throwbmp(m) _throw(m, bmpgeterr())
/external/libvncserver/common/
H A Dturbojpeg.c107 #define _throw(m) {snprintf(errStr, JMSG_LENGTH_MAX, "%s", m); \ macro
251 _throw("Unsupported pixel format");
503 _throw("tjBufSize(): Invalid argument");
522 _throw("TJBUFSIZE(): Invalid argument");
545 _throw("tjCompress2(): Instance has not been initialized for compression");
550 _throw("tjCompress2(): Invalid argument");
565 if(!rgbBuf) _throw("tjCompress2(): Memory allocation failure");
586 _throw("tjCompress2(): Memory allocation failure");
688 _throw("tjDecompressHeader2(): Instance has not been initialized for decompression");
692 _throw("tjDecompressHeader
[all...]

Completed in 119 milliseconds