diff options
author | TDE Weblate <[email protected]> | 2025-03-15 13:04:23 +0000 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2025-03-19 13:12:11 +0900 |
commit | 8b3a88df55c67e3e75b93385db1c4f27f409a06f (patch) | |
tree | 8427cf9e4892c66674645e7152c3246a334bd165 /src/libs/lprof/cmssheet.cpp | |
parent | 0b5e696d79ab1a160293d520b7526e031238989a (diff) | |
download | digikam-rename/true-false.tar.gz digikam-rename/true-false.zip |
Update translation filesrename/true-false
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: applications/digikam
Translate-URL: https://mirror.git.trinitydesktop.org/weblate/projects/applications/digikam/
Diffstat (limited to 'src/libs/lprof/cmssheet.cpp')
-rw-r--r-- | src/libs/lprof/cmssheet.cpp | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/src/libs/lprof/cmssheet.cpp b/src/libs/lprof/cmssheet.cpp index cf8c569e..1c6327b7 100644 --- a/src/libs/lprof/cmssheet.cpp +++ b/src/libs/lprof/cmssheet.cpp @@ -48,14 +48,14 @@ void cdecl cmsxIT8Free(LCMSHANDLE IT8); /* Persistence */ LCMSHANDLE cdecl cmsxIT8LoadFromFile(const char* cFileName); LCMSHANDLE cdecl cmsxIT8LoadFromMem(void *Ptr, size_t len); -BOOL cdecl cmsxIT8SaveToFile(LCMSHANDLE IT8, const char* cFileName); +bool cdecl cmsxIT8SaveToFile(LCMSHANDLE IT8, const char* cFileName); /* Properties */ const char* cdecl cmsxIT8GetSheetType(LCMSHANDLE hIT8); -BOOL cdecl cmsxIT8SetSheetType(LCMSHANDLE hIT8, const char* Type); +bool cdecl cmsxIT8SetSheetType(LCMSHANDLE hIT8, const char* Type); -BOOL cdecl cmsxIT8SetProperty(LCMSHANDLE hIT8, const char* cProp, const char *Str); -BOOL cdecl cmsxIT8SetPropertyDbl(LCMSHANDLE hIT8, const char* cProp, double Val); +bool cdecl cmsxIT8SetProperty(LCMSHANDLE hIT8, const char* cProp, const char *Str); +bool cdecl cmsxIT8SetPropertyDbl(LCMSHANDLE hIT8, const char* cProp, double Val); const char* cdecl cmsxIT8GetProperty(LCMSHANDLE hIT8, const char* cProp); double cdecl cmsxIT8GetPropertyDbl(LCMSHANDLE hIT8, const char* cProp); @@ -64,20 +64,20 @@ int cdecl cmsxIT8EnumProperties(LCMSHANDLE IT8, char ***PropertyNames); /* Datasets */ -BOOL cdecl cmsxIT8GetDataSetByPos(LCMSHANDLE IT8, int col, int row, char* Val, int ValBufferLen); +bool cdecl cmsxIT8GetDataSetByPos(LCMSHANDLE IT8, int col, int row, char* Val, int ValBufferLen); -BOOL cdecl cmsxIT8GetDataSet(LCMSHANDLE IT8, const char* cPatch, +bool cdecl cmsxIT8GetDataSet(LCMSHANDLE IT8, const char* cPatch, const char* cSample, char* Val, int ValBufferLen); -BOOL cdecl cmsxIT8GetDataSetDbl(LCMSHANDLE IT8, const char* cPatch, const char* cSample, double* d); +bool cdecl cmsxIT8GetDataSetDbl(LCMSHANDLE IT8, const char* cPatch, const char* cSample, double* d); -BOOL cdecl cmsxIT8SetDataSet(LCMSHANDLE IT8, const char* cPatch, +bool cdecl cmsxIT8SetDataSet(LCMSHANDLE IT8, const char* cPatch, const char* cSample, char *Val); -BOOL cdecl cmsxIT8SetDataFormat(LCMSHANDLE IT8, int n, const char *Sample); +bool cdecl cmsxIT8SetDataFormat(LCMSHANDLE IT8, int n, const char *Sample); int cdecl cmsxIT8EnumDataFormat(LCMSHANDLE IT8, char ***SampleNames); const char *cdecl cmsxIT8GenericPatchName(int nPatch, char* buffer); @@ -289,7 +289,7 @@ static char* PredefinedSampleID[] = { /* Checks whatsever if c is a valid identifier middle char. */ static -BOOL isidchar(int c) +bool isidchar(int c) { return (isalnum(c) || c == '$' || c == '%' || c == '&' || c == '/' || c == '.' || c == '_'); @@ -297,14 +297,14 @@ BOOL isidchar(int c) /* Checks whatsever if c is a valid identifier first char. */ static -BOOL isfirstidchar(int c) +bool isfirstidchar(int c) { return !isdigit(c) && isidchar(c); } /* Checks if c is a separator */ static -BOOL isseparator(int c) +bool isseparator(int c) { return (c == ' ' || c == '\t' || c == '\r'); } @@ -337,7 +337,7 @@ int xfilelength(int fd) } static -BOOL SynError(LPIT8 it8, const char *Txt, ...) +bool SynError(LPIT8 it8, const char *Txt, ...) { char Buffer[256], ErrMsg[1024]; va_list args; @@ -353,7 +353,7 @@ BOOL SynError(LPIT8 it8, const char *Txt, ...) } static -BOOL Check(LPIT8 it8, SYMBOL sy, const char* Err) +bool Check(LPIT8 it8, SYMBOL sy, const char* Err) { if (it8 -> sy != sy) return SynError(it8, Err); @@ -626,7 +626,7 @@ void InSymbol(LPIT8 it8) /* Checks end of line separator */ static -BOOL CheckEOLN(LPIT8 it8) +bool CheckEOLN(LPIT8 it8) { if (!Check(it8, SEOLN, "Expected separator")) return false; while (it8 -> sy == SEOLN) @@ -646,7 +646,7 @@ void Skip(LPIT8 it8, SYMBOL sy) /* Returns a string holding current value */ static -BOOL GetVal(LPIT8 it8, char* Buffer) +bool GetVal(LPIT8 it8, char* Buffer) { switch (it8->sy) { @@ -738,7 +738,7 @@ char *AllocString(LPIT8 it8, const char* str) /* Searches through linked list */ static -BOOL IsAvailableOnList(LPKEYVALUE p, const char* Key, LPKEYVALUE* LastPtr) +bool IsAvailableOnList(LPKEYVALUE p, const char* Key, LPKEYVALUE* LastPtr) { for (; p != NULL; p = p->Next) { @@ -754,7 +754,7 @@ BOOL IsAvailableOnList(LPKEYVALUE p, const char* Key, LPKEYVALUE* LastPtr) /* Add a property into a linked list */ static -BOOL AddToList(LPIT8 it8, LPKEYVALUE* Head, const char *Key, const char* Value) +bool AddToList(LPIT8 it8, LPKEYVALUE* Head, const char *Key, const char* Value) { LPKEYVALUE p; LPKEYVALUE last; @@ -795,14 +795,14 @@ BOOL AddToList(LPIT8 it8, LPKEYVALUE* Head, const char *Key, const char* Value) } static -BOOL AddAvailableProperty(LPIT8 it8, const char* Key) +bool AddAvailableProperty(LPIT8 it8, const char* Key) { return AddToList(it8, &it8->ValidKeywords, Key, NULL); } static -BOOL AddAvailableSampleID(LPIT8 it8, const char* Key) +bool AddAvailableSampleID(LPIT8 it8, const char* Key) { return AddToList(it8, &it8->ValidSampleID, Key, NULL); } @@ -859,7 +859,7 @@ const char* cdecl cmsxIT8GetSheetType(LCMSHANDLE hIT8) } -BOOL cmsxIT8SetSheetType(LCMSHANDLE hIT8, const char* Type) +bool cmsxIT8SetSheetType(LCMSHANDLE hIT8, const char* Type) { LPIT8 it8 = (LPIT8) hIT8; @@ -870,7 +870,7 @@ BOOL cmsxIT8SetSheetType(LCMSHANDLE hIT8, const char* Type) /* Sets a property */ -BOOL cmsxIT8SetProperty(LCMSHANDLE hIT8, const char* Key, const char *Val) +bool cmsxIT8SetProperty(LCMSHANDLE hIT8, const char* Key, const char *Val) { LPIT8 it8 = (LPIT8) hIT8; @@ -881,7 +881,7 @@ BOOL cmsxIT8SetProperty(LCMSHANDLE hIT8, const char* Key, const char *Val) } -BOOL cmsxIT8SetPropertyDbl(LCMSHANDLE hIT8, const char* cProp, double Val) +bool cmsxIT8SetPropertyDbl(LCMSHANDLE hIT8, const char* cProp, double Val) { char Buffer[256]; @@ -944,7 +944,7 @@ const char *GetDataFormat(LPIT8 it8, int n) } static -BOOL SetDataFormat(LPIT8 it8, int n, const char *label) +bool SetDataFormat(LPIT8 it8, int n, const char *label) { if (n > it8 -> nSamples) return false; @@ -960,7 +960,7 @@ BOOL SetDataFormat(LPIT8 it8, int n, const char *label) } -BOOL cmsxIT8SetDataFormat(LCMSHANDLE h, int n, const char *Sample) +bool cmsxIT8SetDataFormat(LCMSHANDLE h, int n, const char *Sample) { LPIT8 it8 = (LPIT8) h; return SetDataFormat(it8, n, Sample); @@ -995,7 +995,7 @@ char* GetData(LPIT8 it8, int nSet, int nField) } static -BOOL SetData(LPIT8 it8, int nSet, int nField, char *Val) +bool SetData(LPIT8 it8, int nSet, int nField, char *Val) { if (!it8->Data) AllocateDataSet(it8); @@ -1114,7 +1114,7 @@ void WriteData(FILE *fp, LPIT8 it8) /* Saves whole file */ -BOOL cmsxIT8SaveToFile(LCMSHANDLE hIT8, const char* cFileName) +bool cmsxIT8SaveToFile(LCMSHANDLE hIT8, const char* cFileName) { FILE *fp; LPIT8 it8 = (LPIT8) hIT8; @@ -1132,7 +1132,7 @@ BOOL cmsxIT8SaveToFile(LCMSHANDLE hIT8, const char* cFileName) /* Reads whole file in a memory block */ static -BOOL ReadFileInMemory(const char *cFileName, char **Buffer, size_t *Len) +bool ReadFileInMemory(const char *cFileName, char **Buffer, size_t *Len) { FILE *fp; size_t Size; @@ -1162,10 +1162,10 @@ BOOL ReadFileInMemory(const char *cFileName, char **Buffer, size_t *Len) /* -------------------------------------------------------------- Higer lever parsing */ static -BOOL DataFormatSection(LPIT8 it8) +bool DataFormatSection(LPIT8 it8) { int iField = 0; - BOOL Ignoring = false; + bool Ignoring = false; InSymbol(it8); /* Eats "BEGIN_DATA_FORMAT" */ CheckEOLN(it8); @@ -1205,7 +1205,7 @@ BOOL DataFormatSection(LPIT8 it8) static -BOOL DataSection (LPIT8 it8) +bool DataSection (LPIT8 it8) { int iField = 0; int iSet = 0; @@ -1250,7 +1250,7 @@ BOOL DataSection (LPIT8 it8) static -BOOL HeaderSection (LPIT8 it8) +bool HeaderSection (LPIT8 it8) { char VarName[MAXID]; char Buffer[MAXSTR]; @@ -1298,7 +1298,7 @@ BOOL HeaderSection (LPIT8 it8) static -BOOL ParseIT8(LPIT8 it8) +bool ParseIT8(LPIT8 it8) { InSymbol(it8); @@ -1567,7 +1567,7 @@ int LocateSample(LPIT8 it8, const char* cSample) } -BOOL cmsxIT8GetDataSetByPos(LCMSHANDLE hIT8, int col, int row, char* Val, int ValBufferLen) +bool cmsxIT8GetDataSetByPos(LCMSHANDLE hIT8, int col, int row, char* Val, int ValBufferLen) { LPIT8 it8 = (LPIT8) hIT8; const char *data = GetData(it8, row, col); @@ -1584,7 +1584,7 @@ BOOL cmsxIT8GetDataSetByPos(LCMSHANDLE hIT8, int col, int row, char* Val, int Va -BOOL cmsxIT8GetDataSet(LCMSHANDLE hIT8, const char* cPatch, +bool cmsxIT8GetDataSet(LCMSHANDLE hIT8, const char* cPatch, const char* cSample, char* Val, int ValBuffLen) { @@ -1611,7 +1611,7 @@ BOOL cmsxIT8GetDataSet(LCMSHANDLE hIT8, const char* cPatch, } -BOOL cmsxIT8GetDataSetDbl(LCMSHANDLE it8, const char* cPatch, const char* cSample, double* v) +bool cmsxIT8GetDataSetDbl(LCMSHANDLE it8, const char* cPatch, const char* cSample, double* v) { char Buffer[20]; @@ -1625,7 +1625,7 @@ BOOL cmsxIT8GetDataSetDbl(LCMSHANDLE it8, const char* cPatch, const char* cSampl -BOOL cmsxIT8SetDataSet(LCMSHANDLE hIT8, const char* cPatch, +bool cmsxIT8SetDataSet(LCMSHANDLE hIT8, const char* cPatch, const char* cSample, char *Val) { @@ -1673,7 +1673,7 @@ BOOL cmsxIT8SetDataSet(LCMSHANDLE hIT8, const char* cPatch, } -BOOL cmsxIT8SetDataSetDbl(LCMSHANDLE hIT8, const char* cPatch, +bool cmsxIT8SetDataSetDbl(LCMSHANDLE hIT8, const char* cPatch, const char* cSample, double Val) { |