/usr/share/yacas/include/compressedfiles.h is in yacas 1.3.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | #ifndef __compressedfiles_h__
#define __compressedfiles_h__
#include "lisptype.h"
#include "lispassert.h"
class CompressedFiles
{
public:
CompressedFiles(unsigned char * aBuffer, LispInt aFullSize, LispInt aCompressed);
~CompressedFiles();
LispInt FindFile(LispChar * aName);
LispChar * Name(LispInt aIndex);
LispChar * Contents(LispInt aIndex);
inline LispInt NrFiles() const {return iNrFiles;}
void Sizes(LispInt& aOriginalSize, LispInt& aCompressedSize, LispInt aIndex);
inline LispInt IsValid() const {return iIsValid;}
protected:
LispInt GetInt(unsigned char*&indptr);
private:
// copy constructor not implemented yet, so an assert is in order
CompressedFiles(const CompressedFiles& aOther)
: iFullBuffer(NULL),iCompressed(0),iFullSize(0),iIndex(NULL),iNrFiles(0),iIndexSize(0),iIsValid(LispFalse)
{
LISPASSERT(0);
}
inline CompressedFiles& operator=(const CompressedFiles& aOther)
{
iFullBuffer = NULL;
iCompressed = 0;
iFullSize = 0;
iIndex = NULL;
iNrFiles = 0;
iIndexSize = 0;
iIsValid = LispFalse;
LISPASSERT(0);
return *this;
}
private:
unsigned char * iFullBuffer;
LispInt iCompressed;
LispInt iFullSize;
unsigned char * *iIndex;
LispInt iNrFiles;
LispInt iIndexSize;
LispInt iIsValid;
};
#endif // __compressedfiles_h__
|