Sha256: 1e7722ebcc550df52597da346961dccadaee28718b184c30382c59ec97df6262
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
//======================================================================== // // SplashFontFile.cc // //======================================================================== #include <aconf.h> #ifdef USE_GCC_PRAGMAS #pragma implementation #endif #include <stdio.h> #ifndef WIN32 # include <unistd.h> #endif #include "GString.h" #include "SplashFontFile.h" #include "SplashFontFileID.h" #ifdef VMS #if (__VMS_VER < 70000000) extern "C" int unlink(char *filename); #endif #endif //------------------------------------------------------------------------ // SplashFontFile //------------------------------------------------------------------------ SplashFontFile::SplashFontFile(SplashFontFileID *idA, char *fileNameA, GBool deleteFileA) { id = idA; fileName = new GString(fileNameA); deleteFile = deleteFileA; refCnt = 0; } SplashFontFile::~SplashFontFile() { if (deleteFile) { unlink(fileName->getCString()); } delete fileName; delete id; } void SplashFontFile::incRefCnt() { ++refCnt; } void SplashFontFile::decRefCnt() { if (!--refCnt) { delete this; } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pdf2json-0.2.0 | pdf2json-0.52-source/splash/SplashFontFile.cc |
pdf2json-0.1.0 | pdf2json-0.52-source/splash/SplashFontFile.cc |