#include "lcms2_internal.h"
#define MAXID …
#define MAXSTR …
#define MAXTABLES …
#define MAXINCLUDE …
#define DEFAULT_DBL_FORMAT …
#ifdef CMS_IS_WINDOWS_
# ifndef _WIN32_WCE
# include <io.h>
# endif
#define DIR_CHAR …
#else
#define DIR_CHAR …
#endif
SYMBOL;
WRITEMODE;
KEYVALUE;
OWNEDMEM;
SUBALLOCATOR;
TABLE;
FILECTX;
string;
cmsIT8;
SAVESTREAM;
KEYWORD;
static const KEYWORD TabKeys[] = …;
#define NUMKEYS …
PROPERTY;
static PROPERTY PredefinedProperties[] = …;
#define NUMPREDEFINEDPROPS …
static const char* PredefinedSampleID[] = …;
#define NUMPREDEFINEDSAMPLEID …
static void* AllocChunk(cmsIT8* it8, cmsUInt32Number size);
static
string* StringAlloc(cmsIT8* it8, int max)
{ … }
static
void StringClear(string* s)
{ … }
static
void StringAppend(string* s, char c)
{ … }
static
char* StringPtr(string* s)
{ … }
static
void StringCat(string* s, const char* c)
{ … }
static
cmsBool isseparator(int c)
{ … }
static
cmsBool ismiddle(int c)
{ … }
static
cmsBool isidchar(int c)
{ … }
static
cmsBool isfirstidchar(int c)
{ … }
static
cmsBool isabsolutepath(const char *path)
{ … }
static
cmsBool BuildAbsolutePath(const char *relPath, const char *basePath, char *buffer, cmsUInt32Number MaxLen)
{ … }
static
const char* NoMeta(const char* str)
{ … }
static
cmsBool SynError(cmsIT8* it8, const char *Txt, ...)
{ … }
static
cmsBool Check(cmsIT8* it8, SYMBOL sy, const char* Err)
{ … }
static
void NextCh(cmsIT8* it8)
{ … }
static
SYMBOL BinSrchKey(const char *id)
{ … }
static
cmsFloat64Number xpow10(int n)
{ … }
static
void ReadReal(cmsIT8* it8, cmsInt32Number inum)
{ … }
static
cmsFloat64Number ParseFloatNumber(const char *Buffer)
{ … }
static
void InStringSymbol(cmsIT8* it8)
{ … }
static
void InSymbol(cmsIT8* it8)
{ … }
static
cmsBool CheckEOLN(cmsIT8* it8)
{ … }
static
void Skip(cmsIT8* it8, SYMBOL sy)
{ … }
static
void SkipEOLN(cmsIT8* it8)
{ … }
static
cmsBool GetVal(cmsIT8* it8, char* Buffer, cmsUInt32Number max, const char* ErrorTitle)
{ … }
static
TABLE* GetTable(cmsIT8* it8)
{ … }
void CMSEXPORT cmsIT8Free(cmsHANDLE hIT8)
{ … }
static
void* AllocBigBlock(cmsIT8* it8, cmsUInt32Number size)
{ … }
static
void* AllocChunk(cmsIT8* it8, cmsUInt32Number size)
{ … }
static
char *AllocString(cmsIT8* it8, const char* str)
{ … }
static
cmsBool IsAvailableOnList(KEYVALUE* p, const char* Key, const char* Subkey, KEYVALUE** LastPtr)
{ … }
static
KEYVALUE* AddToList(cmsIT8* it8, KEYVALUE** Head, const char *Key, const char *Subkey, const char* xValue, WRITEMODE WriteAs)
{ … }
static
KEYVALUE* AddAvailableProperty(cmsIT8* it8, const char* Key, WRITEMODE as)
{ … }
static
KEYVALUE* AddAvailableSampleID(cmsIT8* it8, const char* Key)
{ … }
static
void AllocTable(cmsIT8* it8)
{ … }
cmsInt32Number CMSEXPORT cmsIT8SetTable(cmsHANDLE IT8, cmsUInt32Number nTable)
{ … }
cmsHANDLE CMSEXPORT cmsIT8Alloc(cmsContext ContextID)
{ … }
const char* CMSEXPORT cmsIT8GetSheetType(cmsHANDLE hIT8)
{ … }
cmsBool CMSEXPORT cmsIT8SetSheetType(cmsHANDLE hIT8, const char* Type)
{ … }
cmsBool CMSEXPORT cmsIT8SetComment(cmsHANDLE hIT8, const char* Val)
{ … }
cmsBool CMSEXPORT cmsIT8SetPropertyStr(cmsHANDLE hIT8, const char* Key, const char *Val)
{ … }
cmsBool CMSEXPORT cmsIT8SetPropertyDbl(cmsHANDLE hIT8, const char* cProp, cmsFloat64Number Val)
{ … }
cmsBool CMSEXPORT cmsIT8SetPropertyHex(cmsHANDLE hIT8, const char* cProp, cmsUInt32Number Val)
{ … }
cmsBool CMSEXPORT cmsIT8SetPropertyUncooked(cmsHANDLE hIT8, const char* Key, const char* Buffer)
{ … }
cmsBool CMSEXPORT cmsIT8SetPropertyMulti(cmsHANDLE hIT8, const char* Key, const char* SubKey, const char *Buffer)
{ … }
const char* CMSEXPORT cmsIT8GetProperty(cmsHANDLE hIT8, const char* Key)
{ … }
cmsFloat64Number CMSEXPORT cmsIT8GetPropertyDbl(cmsHANDLE hIT8, const char* cProp)
{ … }
const char* CMSEXPORT cmsIT8GetPropertyMulti(cmsHANDLE hIT8, const char* Key, const char *SubKey)
{ … }
static
cmsInt32Number satoi(const char* b)
{ … }
static
cmsBool AllocateDataFormat(cmsIT8* it8)
{ … }
static
const char *GetDataFormat(cmsIT8* it8, int n)
{ … }
static
cmsBool SetDataFormat(cmsIT8* it8, int n, const char *label)
{ … }
cmsBool CMSEXPORT cmsIT8SetDataFormat(cmsHANDLE h, int n, const char *Sample)
{ … }
static
const char* satob(const char* v)
{ … }
static
cmsBool AllocateDataSet(cmsIT8* it8)
{ … }
static
char* GetData(cmsIT8* it8, int nSet, int nField)
{ … }
static
cmsBool SetData(cmsIT8* it8, int nSet, int nField, const char *Val)
{ … }
static
void WriteStr(SAVESTREAM* f, const char *str)
{ … }
static
void Writef(SAVESTREAM* f, const char* frm, ...)
{ … }
static
void WriteHeader(cmsIT8* it8, SAVESTREAM* fp)
{ … }
static
void WriteDataFormat(SAVESTREAM* fp, cmsIT8* it8)
{ … }
static
void WriteData(SAVESTREAM* fp, cmsIT8* it8)
{ … }
cmsBool CMSEXPORT cmsIT8SaveToFile(cmsHANDLE hIT8, const char* cFileName)
{ … }
cmsBool CMSEXPORT cmsIT8SaveToMem(cmsHANDLE hIT8, void *MemPtr, cmsUInt32Number* BytesNeeded)
{ … }
static
cmsBool DataFormatSection(cmsIT8* it8)
{ … }
static
cmsBool DataSection (cmsIT8* it8)
{ … }
static
cmsBool HeaderSection(cmsIT8* it8)
{ … }
static
void ReadType(cmsIT8* it8, char* SheetTypePtr)
{ … }
static
cmsBool ParseIT8(cmsIT8* it8, cmsBool nosheet)
{ … }
static
void CookPointers(cmsIT8* it8)
{ … }
static
int IsMyBlock(const cmsUInt8Number* Buffer, cmsUInt32Number n)
{ … }
static
cmsBool IsMyFile(const char* FileName)
{ … }
cmsHANDLE CMSEXPORT cmsIT8LoadFromMem(cmsContext ContextID, const void *Ptr, cmsUInt32Number len)
{ … }
cmsHANDLE CMSEXPORT cmsIT8LoadFromFile(cmsContext ContextID, const char* cFileName)
{ … }
int CMSEXPORT cmsIT8EnumDataFormat(cmsHANDLE hIT8, char ***SampleNames)
{ … }
cmsUInt32Number CMSEXPORT cmsIT8EnumProperties(cmsHANDLE hIT8, char ***PropertyNames)
{ … }
cmsUInt32Number CMSEXPORT cmsIT8EnumPropertyMulti(cmsHANDLE hIT8, const char* cProp, const char ***SubpropertyNames)
{ … }
static
int LocatePatch(cmsIT8* it8, const char* cPatch)
{ … }
static
int LocateEmptyPatch(cmsIT8* it8)
{ … }
static
int LocateSample(cmsIT8* it8, const char* cSample)
{ … }
int CMSEXPORT cmsIT8FindDataFormat(cmsHANDLE hIT8, const char* cSample)
{ … }
const char* CMSEXPORT cmsIT8GetDataRowCol(cmsHANDLE hIT8, int row, int col)
{ … }
cmsFloat64Number CMSEXPORT cmsIT8GetDataRowColDbl(cmsHANDLE hIT8, int row, int col)
{ … }
cmsBool CMSEXPORT cmsIT8SetDataRowCol(cmsHANDLE hIT8, int row, int col, const char* Val)
{ … }
cmsBool CMSEXPORT cmsIT8SetDataRowColDbl(cmsHANDLE hIT8, int row, int col, cmsFloat64Number Val)
{ … }
const char* CMSEXPORT cmsIT8GetData(cmsHANDLE hIT8, const char* cPatch, const char* cSample)
{ … }
cmsFloat64Number CMSEXPORT cmsIT8GetDataDbl(cmsHANDLE it8, const char* cPatch, const char* cSample)
{ … }
cmsBool CMSEXPORT cmsIT8SetData(cmsHANDLE hIT8, const char* cPatch, const char* cSample, const char *Val)
{ … }
cmsBool CMSEXPORT cmsIT8SetDataDbl(cmsHANDLE hIT8, const char* cPatch,
const char* cSample,
cmsFloat64Number Val)
{ … }
const char* CMSEXPORT cmsIT8GetPatchName(cmsHANDLE hIT8, int nPatch, char* buffer)
{ … }
int CMSEXPORT cmsIT8GetPatchByName(cmsHANDLE hIT8, const char *cPatch)
{ … }
cmsUInt32Number CMSEXPORT cmsIT8TableCount(cmsHANDLE hIT8)
{ … }
int CMSEXPORT cmsIT8SetTableByLabel(cmsHANDLE hIT8, const char* cSet, const char* cField, const char* ExpectedType)
{ … }
cmsBool CMSEXPORT cmsIT8SetIndexColumn(cmsHANDLE hIT8, const char* cSample)
{ … }
void CMSEXPORT cmsIT8DefineDblFormat(cmsHANDLE hIT8, const char* Formatter)
{ … }