|
libsheepy
|
This file implements the libsheepyObject support functions. More...
#include "../libsheepyObject.h"#include "pthread.h"#include "printf.h"#include "sys/sysinfo.h"#include <sys/stat.h>#include <ctype.h>#include <unistd.h>#include <stdio.h>#include <dirent.h>#include <stdarg.h>#include <wordexp.h>#include <stdbool.h>#include <string.h>#include <stdlib.h>#include <libgen.h>#include <stdint.h>
Go to the source code of this file.
Macros | |
| #define | internal static |
| #define | startMax 20 |
Functions | |
| void | cleanUpBaseTerminateG (baset **val) |
| void | cleanUpBaseFreeG (baset **val) |
| void | cleanUpBaseFinishG (baset **val) |
| void | cleanUpBaseSmashG (baset **val) |
| baset * | duplicateBaseG (baset *self) |
| void | freeManyOF (void *paramType,...) |
| free many buffers in baset objects More... | |
| void | terminateManyOF (void *paramType,...) |
| terminate many baset objects More... | |
| void | smashManyOF (void *paramType,...) |
| smash many baset objects More... | |
| void | finishManyOF (void *paramType,...) |
| finish many baset objects More... | |
| smallJsont * | getProgPathJO (void) |
| get program path When initLibsheepy is called before this function, it returns the given program path. More... | |
| smallStringt * | getProgPathO (void) |
| smallJsont * | getRealProgPathJO (void) |
| get real program path The first call allocates libSheepyRealProgPath, it is freed with freeRealProgPath More... | |
| smallStringt * | getRealProgPathO (void) |
| int | systemJO (smallJsont *command) |
| run system command in a smallString More... | |
| int | systemO (smallStringt *command) |
| int | systemNFreeJOF (smallJsont *command, int line, const char *thisFunc, const char *thisFileName) |
| int | systemNFreeOF (smallStringt *command, int line, const char *thisFunc, const char *thisFileName) |
| int | print_m (FILE *stream, const struct printf_info *info, const void *const *args) |
| m printf type specifier to print baset objects More... | |
| int | print_m_arginfo (const struct printf_info *info UNUSED, size_t n, int *argtypes, int *size) |
| procress printf argument More... | |
| void | putsOF (baset *object) |
| puts for objects using toString More... | |
| void | putsUndefinedGF (undefinedt *object) |
| void | putsBoolGF (bool object) |
| void | putsBoolPGF (bool *object) |
| void | putsDoubleGF (double object) |
| void | putsDoublePGF (double *object) |
| void | putsIntGF (int64_t object) |
| void | putsIntPGF (int64_t *object) |
| void | putsInt32GF (int32_t object) |
| void | putsInt32PGF (int32_t *object) |
| void | putsUintGF (uint64_t object) |
| void | putsUintPGF (uint64_t *object) |
| void | putsUint32GF (uint32_t object) |
| void | putsUint32PGF (uint32_t *object) |
| void | putsSGF (const char *object) |
| void | putsListSGF (char **object) |
| void | putsListCSGF (const char **object) |
| void | putsDictGF (smallDictt *object) |
| void | putsJsonGF (smallJsont *object) |
| void | putsArrayGF (smallArrayt *object) |
| void | putsSmallBoolGF (smallBoolt *object) |
| void | putsSmallBytesGF (smallBytest *object) |
| void | putsSmallDoubleGF (smallDoublet *object) |
| void | putsSmallIntGF (smallIntt *object) |
| void | putsSmallStringGF (smallStringt *object) |
| void | putsVoidGF (void *object) |
| void | putsSmallContainerGF (smallContainert *object) |
| char * | toStringOF (baset *object) |
| convert data in obj to string More... | |
| char * | toStringUndefinedGF (undefinedt *object) |
| char * | toStringBoolGF (bool object) |
| char * | toStringBoolPGF (bool *object) |
| char * | toStringFloatGF (float object) |
| char * | toStringFloatPGF (float *object) |
| char * | toStringDoubleGF (double object) |
| char * | toStringDoublePGF (double *object) |
| char * | toStringIntGF (int64_t object) |
| char * | toStringIntPGF (int64_t *object) |
| char * | toStringInt32GF (int32_t object) |
| char * | toStringInt32PGF (int32_t *object) |
| char * | toStringInt16GF (int16_t object) |
| char * | toStringInt16PGF (int16_t *object) |
| char * | toStringUintGF (uint64_t object) |
| char * | toStringUintPGF (uint64_t *object) |
| char * | toStringUint32GF (uint32_t object) |
| char * | toStringUint32PGF (uint32_t *object) |
| char * | toStringUint16GF (uint16_t object) |
| char * | toStringUint16PGF (uint16_t *object) |
| char * | toStringUint8GF (uint8_t object) |
| char * | toStringUint8PGF (uint8_t *object) |
| char * | toStringCharGF (char object) |
| char * | toStringSGF (const char *object) |
| char * | toStringListSGF (char **object) |
| char * | toStringListCSGF (const char **object) |
| char * | toStringDictGF (smallDictt *object) |
| char * | toStringArrayGF (smallArrayt *object) |
| char * | toStringSmallBoolGF (smallBoolt *object) |
| char * | toStringSmallBytesGF (smallBytest *object) |
| char * | toStringSmallDoubleGF (smallDoublet *object) |
| char * | toStringSmallIntGF (smallIntt *object) |
| char * | toStringSmallStringGF (smallStringt *object) |
| char * | toStringVoidGF (void *object) |
| char * | toStringSmallContainerGF (smallContainert *object) |
| char * | toStringSmallJsonGF (smallJsont *object) |
| char * | otos (void *basetObj) |
| object to string for debug this function is used for printing an object in gdb, lldb, any debugger, in gdb: p otos(obj) a longer alternative to print an object is: p obj->f->toString(obj) More... | |
| smallStringt * | formatO (const char *fmt,...) |
| format string allocate and format string using asprintf More... | |
| int | execO (const char *cmd, smallArrayt *out, smallArrayt *err UNUSED) |
| int | execSmallJsonO (smallJsont *cmd, smallArrayt *out, smallArrayt *err) |
| int | execSmallStringO (smallStringt *cmd, smallArrayt *out, smallArrayt *err) |
| smallArrayt * | walkDirO (const char *dirPath) |
| list all files in a directory recursively the directories are not listed More... | |
| smallArrayt * | walkDirSmallJsonO (smallJsont *dirPath) |
| smallArrayt * | walkDirSmallStringO (smallStringt *dirPath) |
| internal void | walkADir (const char *dirPath, smallArrayt *list) |
| smallArrayt * | walkDirDirO (const char *dirPath) |
| list all directories in a directory recursively and sort the list More... | |
| smallArrayt * | walkDirDirSmallJsonO (smallJsont *dirPath) |
| smallArrayt * | walkDirDirSmallStringO (smallStringt *dirPath) |
| internal void | walkADirDir (const char *dirPath, smallArrayt *list) |
| smallArrayt * | readDirO (const char *dirPath) |
| list files in a directory and sort the list More... | |
| smallArrayt * | readDirSmallJsonO (smallJsont *dirPath) |
| smallArrayt * | readDirSmallStringO (smallStringt *dirPath) |
| smallArrayt * | readDirDirO (const char *dirPath) |
| list directories in a directory and sort the list More... | |
| smallArrayt * | readDirDirSmallJsonO (smallJsont *dirPath) |
| smallArrayt * | readDirDirSmallStringO (smallStringt *dirPath) |
| smallArrayt * | walkDirAllO (const char *dirPath) |
| list all files and directories in a directory recursively the directories are listed More... | |
| smallArrayt * | walkDirAllSmallJsonO (smallJsont *dirPath) |
| smallArrayt * | walkDirAllSmallStringO (smallStringt *dirPath) |
| internal void | walkADirAll (const char *dirPath, smallArrayt *list) |
| smallArrayt * | readDirAllO (const char *dirPath) |
| list files in a directory and sort the list More... | |
| smallArrayt * | readDirAllSmallJsonO (smallJsont *dirPath) |
| smallArrayt * | readDirAllSmallStringO (smallStringt *dirPath) |
| time_t | getModificationTimeJO (smallJsont *path) |
| get modification time for path More... | |
| time_t | getModificationTimeO (smallStringt *path) |
| int | setModificationTimeJO (smallJsont *path, time_t mtime) |
| set modification time for path More... | |
| int | setModificationTimeO (smallStringt *path, time_t mtime) |
| bool | equalModificationTimesJO (smallJsont *path1, smallJsont *path2) |
| compare modification times for path1 and path2 More... | |
| bool | equalModificationTimesSJO (const char *path1, smallJsont *path2) |
| bool | equalModificationTimesJOS (smallJsont *path1, const char *path2) |
| bool | equalModificationTimesJOO (smallJsont *path1, smallStringt *path2) |
| bool | equalModificationTimesOJO (smallStringt *path1, smallJsont *path2) |
| bool | equalModificationTimesO (smallStringt *path1, smallStringt *path2) |
| bool | equalModificationTimesSO (const char *path1, smallStringt *path2) |
| bool | equalModificationTimesOS (smallStringt *path1, const char *path2) |
| smallJsont * | timeToJO (const time_t t) |
| time To String convert unix time to string (ctime is not used here because it adds at the end of the string) More... | |
| smallStringt * | timeToSO (const time_t t) |
| smallJsont * | shDirnameJO (smallJsont *path) |
| sheepy dirname More... | |
| smallStringt * | shDirnameO (smallStringt *path) |
| smallJsont * | expandHomeJO (smallJsont *path) |
| expands ~/ ($HOME) or ~USER duplicate and expand path. More... | |
| smallStringt * | expandHomeO (smallStringt *path) |
| smallJsont * | normalizePathJO (smallJsont *path) |
| normalize path More... | |
| smallStringt * | normalizePathO (smallStringt *path) |
| smallJsont * | getCwdJO (void) |
| get current working directory More... | |
| smallStringt * | getCwdO (void) |
| int | chDirJO (smallJsont *path) |
| change directory More... | |
| int | chDirO (smallStringt *path) |
| bool | isDirJO (smallJsont *path) |
| is directory More... | |
| bool | isDirO (smallStringt *path) |
| bool | isLinkJO (smallJsont *path) |
| is symbolic link More... | |
| bool | isLinkO (smallStringt *path) |
| bool | fileExistsJO (smallJsont *filePath) |
| detect files and directories More... | |
| bool | fileExistsO (smallStringt *filePath) |
| bool | fileChmodJO (smallJsont *filePath, mode_t mode) |
| like chmod in stdlibc but return true/false More... | |
| bool | fileChmodO (smallStringt *filePath, mode_t mode) |
| ssize_t | fileSizeJO (smallJsont *filePath) |
| get file size More... | |
| ssize_t | fileSizeO (smallStringt *filePath) |
| void * | readFileToNewG (void *none UNUSED, const char *filePath) |
| call readFileToS (for readFileG) More... | |
| void * | readStreamToNewG (void *none UNUSED, FILE *fp) |
| char * | readFileToG (char **string, const char *filePath) |
| char * | readStreamToG (char **string, FILE *fp) |
| void | readTextSmallJsonNotSupported (char ***self UNUSED, smallJsont *path UNUSED) |
| void | readTextSmallStringNotSupported (char ***self UNUSED, smallStringt *path UNUSED) |
| void | readToFileSmallJsonNotSupported (void *self UNUSED, smallJsont *path UNUSED) |
| void | readToFileSmallStringNotSupported (void *self UNUSED, smallStringt *path UNUSED) |
| int | writeFileFromG (const char *string, const char *filePath) |
| call writeFileS (for writeFileG) (swaps parameters) More... | |
| int | writeStreamFromG (const char *string, FILE *fp) |
| int | writeTextSmallJsonNotSupported (char **self UNUSED, smallJsont *path UNUSED) |
| int | writeTextSmallStringNotSupported (char **self UNUSED, smallStringt *path UNUSED) |
| int | writeTextCCSmallJsonNotSupported (const char **self UNUSED, smallJsont *path UNUSED) |
| int | writeTextCCSmallStringNotSupported (const char **self UNUSED, smallStringt *path UNUSED) |
| char ** | readTextSG (char ***list, const char *filePath) |
| call readText (for readFileG) More... | |
| char ** | readTextStreamG (char ***list, FILE *fp) |
| bool | writeTextSG (char **list, const char *filePath) |
| call writeText (for writeFileG) (swaps parameters) More... | |
| bool | writeTextStreamG (char **list, FILE *fp) |
| bool | writeTextCG (const char **list, const char *filePath) |
| bool | writeTextStreamCG (const char **list, FILE *fp) |
| bool | appendFileSG (const char *string, const char *filePath) |
| call appendFileS (for appendFileG) (swaps parameters) More... | |
| bool | appendTextSG (char **list, const char *filePath) |
| call appendText (for appendFileG) (swaps parameters) More... | |
| bool | appendTextCG (const char **list, const char *filePath) |
| int | mkdirParentsSmallJsonO (smallJsont *path) |
| recursive mkdir More... | |
| int | mkdirParentsO (smallStringt *path) |
| int | rmAllSmallJsonO (smallJsont *path) |
| remove all delete recursively files and directories More... | |
| int | rmAllO (smallStringt *path) |
| int | copyO (smallStringt *src, smallStringt *dst) |
| copy files recursively More... | |
| int | copySSmallJsonO (const char *src, smallJsont *dst) |
| int | copySO (const char *src, smallStringt *dst) |
| int | copySmallJsonOS (smallJsont *src, const char *dst) |
| int | copySmallJsonSmallJson (smallJsont *src, smallJsont *dst) |
| int | copySmallJsonO (smallJsont *src, smallStringt *dst) |
| int | copyOS (smallStringt *src, const char *dst) |
| int | copyOSmallJson (smallStringt *src, smallJsont *dst) |
| int | renameSmallJsonO (smallJsont *src, smallStringt *dst) |
| rename file More... | |
| int | renameSmallJsonSmallJson (smallJsont *src, smallJsont *dst) |
| int | renameSmallJsonOS (smallJsont *src, const char *dst) |
| int | renameO (smallStringt *src, smallStringt *dst) |
| int | renameOSmallJson (smallStringt *src, smallJsont *dst) |
| int | renameSSmallJsonO (const char *src, smallJsont *dst) |
| int | renameSO (const char *src, smallStringt *dst) |
| int | renameOS (smallStringt *src, const char *dst) |
| int | moveSmallJsonO (smallJsont *src, smallStringt *dst) |
| move files recursively More... | |
| int | moveSmallJsonSmallJson (smallJsont *src, smallJsont *dst) |
| int | moveSmallJsonOS (smallJsont *src, const char *dst) |
| int | moveO (smallStringt *src, smallStringt *dst) |
| int | moveOSmallJson (smallStringt *src, smallJsont *dst) |
| int | moveSSmallJsonO (const char *src, smallJsont *dst) |
| int | moveSO (const char *src, smallStringt *dst) |
| int | moveOS (smallStringt *src, const char *dst) |
| smallJsont * | randomSmallJsonO (uint64_t length) |
| random string More... | |
| smallStringt * | randomSO (uint64_t length) |
| smallJsont * | randomAlphaNumSmallJsonO (uint64_t length) |
| random alpha numerical string More... | |
| smallStringt * | randomAlphaNumSO (uint64_t length) |
| smallJsont * | readSmallJsonO (void) |
| read String read user input (one line) as a string More... | |
| smallStringt * | readO (void) |
| smallJsont * | readLineSmallJsonO (FILE *fp) |
| readLine from file stream the fist new line is converted to 0 More... | |
| smallStringt * | readLineO (FILE *fp) |
| char * | intToSG (char *retType UNUSED, int64_t n) |
| call intToS for intToG More... | |
| char * | doubleToSG (char *retType UNUSED, double n) |
| call doubleToS for doubleToG More... | |
| char ** | iListUniqG (char ***list, int dum UNUSED) |
| call iListUniqS for uniqG More... | |
| char ** | iicListUniqG (char ***list, int dum UNUSED) |
| call iicListUniqS for icUniqG More... | |
| char ** | listFromArrayG (char **retType UNUSED, char **array, size_t size) |
| call listFromArrayS for fromArrayG More... | |
| char ** | listFromCArrayG (char **retType UNUSED, const char **array, size_t size) |
| char | getSG (const char *string, int retType UNUSED, int64_t index) |
| call getS for getG More... | |
| char * | listGetG (char **list, int retType UNUSED, int64_t index) |
| call listGetS for getG More... | |
| char * | listGetCG (const char **list, int retType UNUSED, int64_t index) |
| char * | iListGetG (char **list, int retType UNUSED, int64_t index) |
| call iListGetS for getG More... | |
| const char * | iListGetCG (const char **list, int retType UNUSED, int64_t index) |
| char * | listPopG (char ***list, int retType UNUSED) |
| call listPopS for popG More... | |
| char * | listDequeueG (char ***list, int retType UNUSED) |
| call listDequeueS for dequeueG More... | |
| char ** | listDupCG (const char **list) |
| bool | listEqCG (char **list1, const char **list2) |
| bool | listEqC1G (const char **list1, char **list2) |
| bool | listEqCCG (const char **list1, const char **list2) |
| bool | icListEqCG (char **list1, const char **list2) |
| bool | icListEqC1G (const char **list1, char **list2) |
| bool | icListEqCCG (const char **list1, const char **list2) |
| size_t | listLengthCG (const char **list) |
| ssize_t | listIndexOfCG (const char **list, const char *string) |
| ssize_t | listIndexOfCharCG (const char **list, char c) |
| ssize_t | icListIndexOfCG (const char **list, const char *string) |
| ssize_t | icListIndexOfCharCG (const char **list, char c) |
| bool | listHasCharCG (const char **list, char c) |
| bool | listHasCG (const char **list, const char *string) |
| bool | icListHasCG (const char **list, const char *string) |
| bool | icListHasCharCG (const char **list, char c) |
| char * | joinCG (const char **list, const char *delim) |
| char * | joinCharCG (const char **list, char delim) |
| char ** | listAddCG (char **list1, const char **list2) |
| int | listPrintCG (const char **list) |
| bool | eqCharChar (char c, char value) |
| equality functions More... | |
| bool | equalChaOG (char c, baset *value) |
| bool | equalChaBoolG (char c UNUSED, bool value UNUSED) |
| bool | equalChaDoubleG (char c, double value) |
| bool | equalChaInt64G (char c, int64_t value) |
| bool | equalChaInt32G (char c, int32_t value) |
| bool | equalChaUint32G (char c, uint32_t value) |
| bool | equalChaUint64G (char c, uint64_t value) |
| bool | equalChaSmallBytesG (char c, smallBytest *value) |
| bool | equalChaSmallDoubleG (char c, smallDoublet *value) |
| bool | equalChaSmallIntG (char c, smallIntt *value) |
| bool | equalChaSmallJsonG (char c, smallJsont *value) |
| bool | equalChaSmallStringG (char c, smallStringt *value) |
| bool | equalCharOG (const char *s, baset *value) |
| bool | equalCharBoolG (const char *s, bool value) |
| bool | equalCharDoubleG (const char *s, double value) |
| bool | equalCharInt64G (const char *s, int64_t value) |
| bool | equalCharInt32G (const char *s, int32_t value) |
| bool | equalCharUint32G (const char *s, uint32_t value) |
| bool | equalCharUint64G (const char *s, uint64_t value) |
| bool | equalCharSmallBoolG (const char *s, smallBoolt *value) |
| bool | equalCharSmallBytesG (const char *s, smallBytest *value) |
| bool | equalCharSmallDoubleG (const char *s, smallDoublet *value) |
| bool | equalCharSmallIntG (const char *s, smallIntt *value) |
| bool | equalCharPSmallJsonG (const char *s, smallJsont *value) |
| bool | equalCharPSmallStringG (const char *s, smallStringt *value) |
| bool | equalArrayOG (char **p1, baset *p2) |
| bool | equalCArrayOG (const char **p1, baset *p2) |
| bool | equalArraySmallJsonG (char **p1, smallJsont *p2) |
| bool | equalArraySmallArrayG (char **p1, smallArrayt *p2) |
| bool | equalCArraySmallJsonG (const char **p1, smallJsont *p2) |
| bool | equalCArraySmallArrayG (const char **p1, smallArrayt *p2) |
| bool | equalOCharG (baset *p1, const char *p2) |
| bool | equalOChaG (baset *p1, char p2) |
| bool | equalOArrayG (baset *p1, char **p2) |
| bool | equalOCArrayG (baset *p1, const char **p2) |
| bool | equalOOG (baset *p1, baset *p2) |
| bool | equalOBoolG (baset *p1, bool p2) |
| bool | equalODoubleG (baset *p1, double p2) |
| bool | equalOInt64G (baset *p1, int64_t p2) |
| bool | equalOInt32G (baset *p1, int32_t p2) |
| bool | equalOUint32G (baset *p1, uint32_t p2) |
| bool | equalOUint64G (baset *p1, uint64_t p2) |
| bool | equalOSmallArrayG (baset *p1, smallArrayt *p2) |
| bool | equalOSmallBoolG (baset *p1, smallBoolt *p2) |
| bool | equalOSmallBytesG (baset *p1, smallBytest *p2) |
| bool | equalOSmallDoubleG (baset *p1, smallDoublet *p2) |
| bool | equalOSmallDictG (baset *p1, smallDictt *p2) |
| bool | equalOSmallIntG (baset *p1, smallIntt *p2) |
| bool | equalOSmallJsonG (baset *p1, smallJsont *p2) |
| bool | equalOSmallStringG (baset *p1, smallStringt *p2) |
| bool | equalBoolChaG (bool p1 UNUSED, char p2 UNUSED) |
| bool | equalBoolCharG (bool p1, const char *p2) |
| bool | equalBoolOG (bool p1, baset *p2) |
| bool | equalBoolFG (bool p1, bool p2) |
| bool | equalBoolDoubleG (bool p1, double p2) |
| bool | equalBoolInt64G (bool p1, int64_t p2) |
| bool | equalBoolInt32G (bool p1, int32_t p2) |
| bool | equalBoolUint32G (bool p1, uint32_t p2) |
| bool | equalBoolUint64G (bool p1, uint64_t p2) |
| bool | equalBoolSmallBoolG (bool p1, smallBoolt *p2) |
| bool | equalBoolSmallBytesG (bool p1, smallBytest *p2) |
| bool | equalBoolSmallDoubleG (bool p1, smallDoublet *p2) |
| bool | equalBoolSmallIntG (bool p1, smallIntt *p2) |
| bool | equalBoolSmallJsonG (bool p1, smallJsont *p2) |
| bool | equalBoolSmallStringG (bool p1, smallStringt *p2) |
| bool | equalDoubleChaG (double p1, char p2) |
| bool | equalDoubleCharG (double p1, const char *p2) |
| bool | equalDoubleBaseG (double p1, baset *p2) |
| bool | equalDoubleBoolG (double p1, bool p2) |
| bool | equalDoubleFG (double p1, double p2) |
| bool | equalDoubleInt64G (double p1, int64_t p2) |
| bool | equalDoubleInt32G (double p1, int32_t p2) |
| bool | equalDoubleUint32G (double p1, uint32_t p2) |
| bool | equalDoubleUint64G (double p1, uint64_t p2) |
| bool | equalDoubleSmallBoolG (double p1, smallBoolt *p2) |
| bool | equalDoubleSmallBytesG (double p1, smallBytest *p2) |
| bool | equalDoubleSmallDoubleG (double p1, smallDoublet *p2) |
| bool | equalDoubleSmallIntG (double p1, smallIntt *p2) |
| bool | equalDoubleSmallJsonG (double p1, smallJsont *p2) |
| bool | equalDoubleSmallStringG (double p1, smallStringt *p2) |
| bool | equalInt64ChaG (int64_t p1, char p2) |
| bool | equalInt64CharG (int64_t p1, const char *p2) |
| bool | equalInt64BaseG (int64_t p1, baset *p2) |
| bool | equalInt64BoolG (int64_t p1, bool p2) |
| bool | equalInt64DoubleG (int64_t p1, double p2) |
| bool | equalInt64FG (int64_t p1, int64_t p2) |
| bool | equalInt64Int32G (int64_t p1, int32_t p2) |
| bool | equalInt64Uint32G (int64_t p1, uint32_t p2) |
| bool | equalInt64Uint64G (int64_t p1, uint64_t p2) |
| bool | equalInt64SmallBoolG (int64_t p1, smallBoolt *p2) |
| bool | equalInt64SmallBytesG (int64_t p1, smallBytest *p2) |
| bool | equalInt64SmallDoubleG (int64_t p1, smallDoublet *p2) |
| bool | equalInt64SmallIntG (int64_t p1, smallIntt *p2) |
| bool | equalInt64SmallJsonG (int64_t p1, smallJsont *p2) |
| bool | equalInt64SmallStringG (int64_t p1, smallStringt *p2) |
| bool | equalInt32ChaG (int32_t p1, char p2) |
| bool | equalInt32CharG (int32_t p1, const char *p2) |
| bool | equalInt32BaseG (int32_t p1, baset *p2) |
| bool | equalInt32BoolG (int32_t p1, bool p2) |
| bool | equalInt32DoubleG (int32_t p1, double p2) |
| bool | equalInt32Int64G (int32_t p1, int64_t p2) |
| bool | equalInt32FG (int32_t p1, int32_t p2) |
| bool | equalInt32Uint32G (int32_t p1, uint32_t p2) |
| bool | equalInt32Uint64G (int32_t p1, uint64_t p2) |
| bool | equalInt32SmallBoolG (int32_t p1, smallBoolt *p2) |
| bool | equalInt32SmallBytesG (int32_t p1, smallBytest *p2) |
| bool | equalInt32SmallDoubleG (int32_t p1, smallDoublet *p2) |
| bool | equalInt32SmallIntG (int32_t p1, smallIntt *p2) |
| bool | equalInt32SmallJsonG (int32_t p1, smallJsont *p2) |
| bool | equalInt32SmallStringG (int32_t p1, smallStringt *p2) |
| bool | equalUint32ChaG (uint32_t p1, char p2) |
| bool | equalUint32CharG (uint32_t p1, const char *p2) |
| bool | equalUint32BaseG (uint32_t p1, baset *p2) |
| bool | equalUint32BoolG (uint32_t p1, bool p2) |
| bool | equalUint32DoubleG (uint32_t p1, double p2) |
| bool | equalUint32Int64G (uint32_t p1, int64_t p2) |
| bool | equalUint32Int32G (uint32_t p1, int32_t p2) |
| bool | equalUint32FG (uint32_t p1, uint32_t p2) |
| bool | equalUint32Uint64G (uint32_t p1, uint64_t p2) |
| bool | equalUint32SmallBoolG (uint32_t p1, smallBoolt *p2) |
| bool | equalUint32SmallBytesG (uint32_t p1, smallBytest *p2) |
| bool | equalUint32SmallDoubleG (uint32_t p1, smallDoublet *p2) |
| bool | equalUint32SmallIntG (uint32_t p1, smallIntt *p2) |
| bool | equalUint32SmallJsonG (uint32_t p1, smallJsont *p2) |
| bool | equalUint32SmallStringG (uint32_t p1, smallStringt *p2) |
| bool | equalUint64ChaG (uint64_t p1, char p2) |
| bool | equalUint64CharG (uint64_t p1, const char *p2) |
| bool | equalUint64BaseG (uint64_t p1, baset *p2) |
| bool | equalUint64BoolG (uint64_t p1, bool p2) |
| bool | equalUint64DoubleG (uint64_t p1, double p2) |
| bool | equalUint64Int64G (uint64_t p1, int64_t p2) |
| bool | equalUint64Int32G (uint64_t p1, int32_t p2) |
| bool | equalUint64Uint32G (uint64_t p1, uint32_t p2) |
| bool | equalUint64FG (uint64_t p1, uint64_t p2) |
| bool | equalUint64SmallBoolG (uint64_t p1, smallBoolt *p2) |
| bool | equalUint64SmallBytesG (uint64_t p1, smallBytest *p2) |
| bool | equalUint64SmallDoubleG (uint64_t p1, smallDoublet *p2) |
| bool | equalUint64SmallIntG (uint64_t p1, smallIntt *p2) |
| bool | equalUint64SmallJsonG (uint64_t p1, smallJsont *p2) |
| bool | equalUint64SmallStringG (uint64_t p1, smallStringt *p2) |
| bool | notEqualCharG (char c UNUSED, void *value UNUSED) |
| return false, used in eqG when object types don't match More... | |
| bool | notEqualOCharG (void *a UNUSED, char c UNUSED) |
| bool | notEqualOG (void *a UNUSED, void *b UNUSED) |
| bool | notEqualCCOG (const char *a UNUSED, void *b UNUSED) |
| bool | notEqualBoolOG (bool p1 UNUSED, void *p2 UNUSED) |
| bool | notEqualDoubleOG (double p1 UNUSED, void *p2 UNUSED) |
| bool | notEqualInt64OG (int64_t p1 UNUSED, void *p2 UNUSED) |
| bool | notEqualInt32OG (int32_t p1 UNUSED, void *p2 UNUSED) |
| bool | notEqualUint32OG (uint32_t p1 UNUSED, void *p2 UNUSED) |
| bool | notEqualUint64OG (uint64_t p1 UNUSED, void *p2 UNUSED) |
| bool | notEqualOBoolG (void *p1 UNUSED, bool p2 UNUSED) |
| bool | notEqualDoubleG (void *p1 UNUSED, double p2 UNUSED) |
| bool | notEqualOInt64G (void *p1 UNUSED, int64_t p2 UNUSED) |
| bool | notEqualOInt32G (void *p1 UNUSED, int32_t p2 UNUSED) |
| bool | notEqualOUint32G (void *p1 UNUSED, uint32_t p2 UNUSED) |
| bool | notEqualOUint64G (void *p1 UNUSED, uint64_t p2 UNUSED) |
| bool | icEqCharChar (char c, char value) |
| ignore case equality functions More... | |
| bool | icEqualChaOG (char c, baset *value) |
| bool | icEqualChaSmallJsonG (char c, smallJsont *value) |
| bool | icEqualChaSmallStringG (char c, smallStringt *value) |
| bool | icEqualCharOG (const char *s, baset *value) |
| bool | icEqualCharPSmallJsonG (const char *s, smallJsont *value) |
| bool | icEqualCharPSmallStringG (const char *s, smallStringt *value) |
| bool | icEqualArrayOG (char **p1, baset *p2) |
| bool | icEqualCArrayOG (const char **p1, baset *p2) |
| bool | icEqualArraySmallJsonG (char **p1, smallJsont *p2) |
| bool | icEqualCArraySmallJsonG (const char **p1, smallJsont *p2) |
| bool | icEqualArraySmallArrayG (char **p1, smallArrayt *p2) |
| bool | icEqualCArraySmallArrayG (const char **p1, smallArrayt *p2) |
| bool | icEqualOCharG (baset *p1, const char *p2) |
| bool | icEqualOChaG (baset *p1, char p2) |
| bool | icEqualOArrayG (baset *p1, char **p2) |
| bool | icEqualOCArrayG (baset *p1, const char **p2) |
| bool | icEqualOOG (baset *p1, baset *p2) |
| bool | icEqualOSmallArrayG (baset *p1, smallArrayt *p2) |
| bool | icEqualOSmallDictG (baset *p1, smallDictt *p2) |
| bool | icEqualOSmallJsonG (baset *p1, smallJsont *p2) |
| bool | icEqualOSmallStringG (baset *p1, smallStringt *p2) |
| void | freeBasetInContainer (void *baseo) |
| smallt * | toSmallt (baset *obj) |
| convert baset object to smallt More... | |
| baset * | toBaset (smallt *obj) |
| convert smallt object to baset More... | |
| int | cpuCount (void) |
| return number of online CPUs, also number of threads in the thread pool More... | |
| unsigned | registerFinalizeRecycleContainersInThreadPool (recycleContainersFt f) |
| register function freeing the unused containers a finalizeRecycle must be registered for each class in order to avoid memory leaks More... | |
| void | finalizeLibsheepyRecycleContainers (void *arg UNUSED) |
| function called automatically (registered in tpool) when a thread exits This function calls all the registered finalizeRecycle functions More... | |
| void | finalizeLibsheepyAtExit (void) |
| free class methods for all classes the objects and classes are not usuable after this an object has to be created for the class to work again free real program path More... | |
| smallDictt * | shSysinfo (void) |
| sheepy sysinfo More... | |
| dArrayT (finalizeRecycleContainersFuncst, recycleContainersFt) | |
| void | initLibsheepyObject (void) |
| called from initLibsheepy in libsheepy.c start the thread pool More... | |
Variables | |
| internal finalizeRecycleContainersFuncst | finalizeRecycleContainersFuncs |
| undefinedt * | undefined = NULL |
| undefined/null object for setting undefined/null in small data structures pushG(a, undefined); More... | |
| baset * | rtBaset = NULL |
| Generic return types getG(dict, rtBool, "a");. More... | |
| undefinedt * | rtUndefinedt = NULL |
| bool | rtBool = false |
| bool * | rtBoolP = NULL |
| double | rtDouble = 0 |
| double * | rtDoubleP = NULL |
| int64_t | rtInt64_t = 0 |
| int64_t * | rtInt64_tP = NULL |
| int32_t | rtInt32_t = 0 |
| int32_t * | rtInt32_tP = NULL |
| uint64_t | rtUint64_t = 0 |
| uint64_t * | rtUint64_tP = NULL |
| uint32_t | rtUint32_t = 0 |
| uint32_t * | rtUint32_tP = NULL |
| float | rtF32 = 0 |
| double | rtF64 = 0 |
| double * | rtF64P = NULL |
| int64_t | rtI64 = 0 |
| int64_t * | rtI64P = NULL |
| int32_t | rtI32 = 0 |
| int32_t * | rtI32P = NULL |
| uint64_t | rtU64 = 0 |
| uint64_t * | rtU64P = NULL |
| uint32_t | rtU32 = 0 |
| uint32_t * | rtU32P = NULL |
| uint16_t | rtU16 = 0 |
| uint8_t | rtU8 = 0 |
| char * | rtChar = NULL |
| smallArrayt * | rtSmallArrayt = NULL |
| smallBoolt * | rtSmallBoolt = NULL |
| smallBytest * | rtSmallBytest = NULL |
| smallDictt * | rtSmallDictt = NULL |
| smallDoublet * | rtSmallDoublet = NULL |
| smallIntt * | rtSmallIntt = NULL |
| smallJsont * | rtSmallJsont = NULL |
| smallStringt * | rtSmallStringt = NULL |
| void * | rtVoid = NULL |
| smallContainert * | rtSmallContainert = NULL |
This file implements the libsheepyObject support functions.
These functions are similar to the ones in libsheepy.h but take and return baset objects
For more information, the documentation is located at http://spartatek.se/libsheepy/
Definition in file libsheepyObject.c.
| #define internal static |
Definition at line 37 of file libsheepyObject.c.
| #define startMax 20 |
Definition at line 3328 of file libsheepyObject.c.
| void cleanUpBaseTerminateG | ( | baset ** | val | ) |
Definition at line 555 of file libsheepyObject.c.
| void cleanUpBaseFreeG | ( | baset ** | val | ) |
Definition at line 560 of file libsheepyObject.c.
| void cleanUpBaseFinishG | ( | baset ** | val | ) |
Definition at line 565 of file libsheepyObject.c.
| void cleanUpBaseSmashG | ( | baset ** | val | ) |
Definition at line 570 of file libsheepyObject.c.
Definition at line 575 of file libsheepyObject.c.
| void freeManyOF | ( | void * | paramType, |
| ... | |||
| ) |
free many buffers in baset objects
Definition at line 580 of file libsheepyObject.c.
| void terminateManyOF | ( | void * | paramType, |
| ... | |||
| ) |
terminate many baset objects
Definition at line 595 of file libsheepyObject.c.
| void smashManyOF | ( | void * | paramType, |
| ... | |||
| ) |
smash many baset objects
Definition at line 613 of file libsheepyObject.c.
| void finishManyOF | ( | void * | paramType, |
| ... | |||
| ) |
finish many baset objects
Definition at line 631 of file libsheepyObject.c.
| smallJsont* getProgPathJO | ( | void | ) |
get program path When initLibsheepy is called before this function, it returns the given program path.
When initLibsheepy has not been called before this function, it returns the real program path.
Definition at line 649 of file libsheepyObject.c.

| smallStringt* getProgPathO | ( | void | ) |
| smallJsont* getRealProgPathJO | ( | void | ) |
get real program path The first call allocates libSheepyRealProgPath, it is freed with freeRealProgPath
Definition at line 664 of file libsheepyObject.c.

| smallStringt* getRealProgPathO | ( | void | ) |
| int systemJO | ( | smallJsont * | command | ) |
run system command in a smallString
Definition at line 679 of file libsheepyObject.c.

| int systemO | ( | smallStringt * | command | ) |
Definition at line 694 of file libsheepyObject.c.
| int systemNFreeJOF | ( | smallJsont * | command, |
| int | line, | ||
| const char * | thisFunc, | ||
| const char * | thisFileName | ||
| ) |
| int systemNFreeOF | ( | smallStringt * | command, |
| int | line, | ||
| const char * | thisFunc, | ||
| const char * | thisFileName | ||
| ) |
Definition at line 727 of file libsheepyObject.c.
| int print_m | ( | FILE * | stream, |
| const struct printf_info * | info, | ||
| const void *const * | args | ||
| ) |
m printf type specifier to print baset objects
Definition at line 749 of file libsheepyObject.c.


| int print_m_arginfo | ( | const struct printf_info *info | UNUSED, |
| size_t | n, | ||
| int * | argtypes, | ||
| int * | size | ||
| ) |
procress printf argument
Definition at line 775 of file libsheepyObject.c.

| void putsOF | ( | baset * | object | ) |
puts for objects using toString
Definition at line 787 of file libsheepyObject.c.

| void putsUndefinedGF | ( | undefinedt * | object | ) |
| void putsBoolGF | ( | bool | object | ) |
Definition at line 809 of file libsheepyObject.c.
| void putsBoolPGF | ( | bool * | object | ) |
Definition at line 819 of file libsheepyObject.c.
| void putsDoubleGF | ( | double | object | ) |
| void putsDoublePGF | ( | double * | object | ) |
| void putsIntGF | ( | int64_t | object | ) |
| void putsIntPGF | ( | int64_t * | object | ) |
| void putsInt32GF | ( | int32_t | object | ) |
| void putsInt32PGF | ( | int32_t * | object | ) |
| void putsUintGF | ( | uint64_t | object | ) |
| void putsUintPGF | ( | uint64_t * | object | ) |
| void putsUint32GF | ( | uint32_t | object | ) |
| void putsUint32PGF | ( | uint32_t * | object | ) |
| void putsSGF | ( | const char * | object | ) |
Definition at line 951 of file libsheepyObject.c.
| void putsListSGF | ( | char ** | object | ) |
| void putsListCSGF | ( | const char ** | object | ) |
| void putsDictGF | ( | smallDictt * | object | ) |
| void putsJsonGF | ( | smallJsont * | object | ) |
| void putsArrayGF | ( | smallArrayt * | object | ) |
| void putsSmallBoolGF | ( | smallBoolt * | object | ) |
| void putsSmallBytesGF | ( | smallBytest * | object | ) |
| void putsSmallDoubleGF | ( | smallDoublet * | object | ) |
| void putsSmallIntGF | ( | smallIntt * | object | ) |
| void putsSmallStringGF | ( | smallStringt * | object | ) |
| void putsVoidGF | ( | void * | object | ) |
Definition at line 1073 of file libsheepyObject.c.
| void putsSmallContainerGF | ( | smallContainert * | object | ) |
| char* toStringOF | ( | baset * | object | ) |
convert data in obj to string
Definition at line 1095 of file libsheepyObject.c.
| char* toStringUndefinedGF | ( | undefinedt * | object | ) |
Definition at line 1103 of file libsheepyObject.c.
| char* toStringBoolGF | ( | bool | object | ) |
Definition at line 1111 of file libsheepyObject.c.
| char* toStringBoolPGF | ( | bool * | object | ) |
Definition at line 1121 of file libsheepyObject.c.
| char* toStringFloatGF | ( | float | object | ) |
Definition at line 1134 of file libsheepyObject.c.
| char* toStringFloatPGF | ( | float * | object | ) |
Definition at line 1142 of file libsheepyObject.c.
| char* toStringDoubleGF | ( | double | object | ) |
Definition at line 1153 of file libsheepyObject.c.
| char* toStringDoublePGF | ( | double * | object | ) |
Definition at line 1161 of file libsheepyObject.c.
| char* toStringIntGF | ( | int64_t | object | ) |
| char* toStringIntPGF | ( | int64_t * | object | ) |
| char* toStringInt32GF | ( | int32_t | object | ) |
| char* toStringInt32PGF | ( | int32_t * | object | ) |
| char* toStringInt16GF | ( | int16_t | object | ) |
| char* toStringInt16PGF | ( | int16_t * | object | ) |
| char* toStringUintGF | ( | uint64_t | object | ) |
| char* toStringUintPGF | ( | uint64_t * | object | ) |
| char* toStringUint32GF | ( | uint32_t | object | ) |
| char* toStringUint32PGF | ( | uint32_t * | object | ) |
| char* toStringUint16GF | ( | uint16_t | object | ) |
| char* toStringUint16PGF | ( | uint16_t * | object | ) |
| char* toStringUint8GF | ( | uint8_t | object | ) |
| char* toStringUint8PGF | ( | uint8_t * | object | ) |
| char* toStringCharGF | ( | char | object | ) |
Definition at line 1265 of file libsheepyObject.c.
| char* toStringSGF | ( | const char * | object | ) |
| char* toStringListSGF | ( | char ** | object | ) |
Definition at line 1279 of file libsheepyObject.c.


| char* toStringListCSGF | ( | const char ** | object | ) |
Definition at line 1294 of file libsheepyObject.c.


| char* toStringDictGF | ( | smallDictt * | object | ) |
Definition at line 1309 of file libsheepyObject.c.
| char* toStringArrayGF | ( | smallArrayt * | object | ) |
Definition at line 1317 of file libsheepyObject.c.
| char* toStringSmallBoolGF | ( | smallBoolt * | object | ) |
Definition at line 1325 of file libsheepyObject.c.
| char* toStringSmallBytesGF | ( | smallBytest * | object | ) |
Definition at line 1333 of file libsheepyObject.c.
| char* toStringSmallDoubleGF | ( | smallDoublet * | object | ) |
Definition at line 1341 of file libsheepyObject.c.
| char* toStringSmallIntGF | ( | smallIntt * | object | ) |
Definition at line 1349 of file libsheepyObject.c.
| char* toStringSmallStringGF | ( | smallStringt * | object | ) |
Definition at line 1357 of file libsheepyObject.c.
| char* toStringVoidGF | ( | void * | object | ) |
Definition at line 1365 of file libsheepyObject.c.
| char* toStringSmallContainerGF | ( | smallContainert * | object | ) |
Definition at line 1373 of file libsheepyObject.c.
| char* toStringSmallJsonGF | ( | smallJsont * | object | ) |
Definition at line 1381 of file libsheepyObject.c.
| char* otos | ( | void * | basetObj | ) |
object to string for debug this function is used for printing an object in gdb, lldb, any debugger, in gdb: p otos(obj) a longer alternative to print an object is: p obj->f->toString(obj)
Definition at line 1389 of file libsheepyObject.c.
| smallStringt* formatO | ( | const char * | fmt, |
| ... | |||
| ) |
format string allocate and format string using asprintf
| format | string and other parameters |
Definition at line 1395 of file libsheepyObject.c.

| int execO | ( | const char * | cmd, |
| smallArrayt * | out, | ||
| smallArrayt *err | UNUSED | ||
| ) |
Definition at line 1418 of file libsheepyObject.c.


| int execSmallJsonO | ( | smallJsont * | cmd, |
| smallArrayt * | out, | ||
| smallArrayt * | err | ||
| ) |
| int execSmallStringO | ( | smallStringt * | cmd, |
| smallArrayt * | out, | ||
| smallArrayt * | err | ||
| ) |
| smallArrayt* walkDirO | ( | const char * | dirPath | ) |
list all files in a directory recursively the directories are not listed
| dirPath | path to directory |
Definition at line 1468 of file libsheepyObject.c.


| smallArrayt* walkDirSmallJsonO | ( | smallJsont * | dirPath | ) |
| smallArrayt* walkDirSmallStringO | ( | smallStringt * | dirPath | ) |
| internal void walkADir | ( | const char * | dirPath, |
| smallArrayt * | list | ||
| ) |
Definition at line 1509 of file libsheepyObject.c.


| smallArrayt* walkDirDirO | ( | const char * | dirPath | ) |
list all directories in a directory recursively and sort the list
files are not listed
| dirPath | path to directory |
Definition at line 1545 of file libsheepyObject.c.


| smallArrayt* walkDirDirSmallJsonO | ( | smallJsont * | dirPath | ) |
| smallArrayt* walkDirDirSmallStringO | ( | smallStringt * | dirPath | ) |
| internal void walkADirDir | ( | const char * | dirPath, |
| smallArrayt * | list | ||
| ) |
Definition at line 1586 of file libsheepyObject.c.


| smallArrayt* readDirO | ( | const char * | dirPath | ) |
list files in a directory and sort the list
directories are not listed
| dirPath | path to directory |
Definition at line 1620 of file libsheepyObject.c.


| smallArrayt* readDirSmallJsonO | ( | smallJsont * | dirPath | ) |
| smallArrayt* readDirSmallStringO | ( | smallStringt * | dirPath | ) |
| smallArrayt* readDirDirO | ( | const char * | dirPath | ) |
list directories in a directory and sort the list
files are not listed
| dirPath | path to directory |
Definition at line 1687 of file libsheepyObject.c.


| smallArrayt* readDirDirSmallJsonO | ( | smallJsont * | dirPath | ) |
| smallArrayt* readDirDirSmallStringO | ( | smallStringt * | dirPath | ) |
| smallArrayt* walkDirAllO | ( | const char * | dirPath | ) |
list all files and directories in a directory recursively the directories are listed
| dirPath | path to directory |
Definition at line 1754 of file libsheepyObject.c.


| smallArrayt* walkDirAllSmallJsonO | ( | smallJsont * | dirPath | ) |
| smallArrayt* walkDirAllSmallStringO | ( | smallStringt * | dirPath | ) |
| internal void walkADirAll | ( | const char * | dirPath, |
| smallArrayt * | list | ||
| ) |
Definition at line 1795 of file libsheepyObject.c.


| smallArrayt* readDirAllO | ( | const char * | dirPath | ) |
list files in a directory and sort the list
directories are listed
| dirPath | path to directory |
Definition at line 1830 of file libsheepyObject.c.


| smallArrayt* readDirAllSmallJsonO | ( | smallJsont * | dirPath | ) |
| smallArrayt* readDirAllSmallStringO | ( | smallStringt * | dirPath | ) |
| time_t getModificationTimeJO | ( | smallJsont * | path | ) |
get modification time for path
| path |
Definition at line 1895 of file libsheepyObject.c.

| time_t getModificationTimeO | ( | smallStringt * | path | ) |
Definition at line 1912 of file libsheepyObject.c.


| int setModificationTimeJO | ( | smallJsont * | path, |
| time_t | mtime | ||
| ) |
set modification time for path
| path | |
| mtime | (for example, from the getModificationTime function) |
Definition at line 1924 of file libsheepyObject.c.

| int setModificationTimeO | ( | smallStringt * | path, |
| time_t | mtime | ||
| ) |
| bool equalModificationTimesJO | ( | smallJsont * | path1, |
| smallJsont * | path2 | ||
| ) |
compare modification times for path1 and path2
| path1 | |
| path2 |
Definition at line 1953 of file libsheepyObject.c.

| bool equalModificationTimesSJO | ( | const char * | path1, |
| smallJsont * | path2 | ||
| ) |
| bool equalModificationTimesJOS | ( | smallJsont * | path1, |
| const char * | path2 | ||
| ) |
| bool equalModificationTimesJOO | ( | smallJsont * | path1, |
| smallStringt * | path2 | ||
| ) |
| bool equalModificationTimesOJO | ( | smallStringt * | path1, |
| smallJsont * | path2 | ||
| ) |
| bool equalModificationTimesO | ( | smallStringt * | path1, |
| smallStringt * | path2 | ||
| ) |
| bool equalModificationTimesSO | ( | const char * | path1, |
| smallStringt * | path2 | ||
| ) |
| bool equalModificationTimesOS | ( | smallStringt * | path1, |
| const char * | path2 | ||
| ) |
| smallJsont* timeToJO | ( | const time_t | t | ) |
time To String convert unix time to string (ctime is not used here because it adds
at the end of the string)
| unix | time to convert |
Definition at line 2081 of file libsheepyObject.c.

| smallStringt* timeToSO | ( | const time_t | t | ) |
| smallJsont* shDirnameJO | ( | smallJsont * | path | ) |
sheepy dirname
| path |
Definition at line 2105 of file libsheepyObject.c.

| smallStringt* shDirnameO | ( | smallStringt * | path | ) |
| smallJsont* expandHomeJO | ( | smallJsont * | path | ) |
expands ~/ ($HOME) or ~USER
duplicate and expand path.
| path | string |
Definition at line 2155 of file libsheepyObject.c.

| smallStringt* expandHomeO | ( | smallStringt * | path | ) |
Definition at line 2189 of file libsheepyObject.c.


| smallJsont* normalizePathJO | ( | smallJsont * | path | ) |
normalize path
remove unecessary /, .. and . leading / is kept leading . is removed
'/../' becomes '/'
| path |
Definition at line 2236 of file libsheepyObject.c.

| smallStringt* normalizePathO | ( | smallStringt * | path | ) |
| smallJsont* getCwdJO | ( | void | ) |
get current working directory
Definition at line 2340 of file libsheepyObject.c.

| smallStringt* getCwdO | ( | void | ) |
| int chDirJO | ( | smallJsont * | path | ) |
change directory
| path |
Definition at line 2374 of file libsheepyObject.c.

| int chDirO | ( | smallStringt * | path | ) |
| bool isDirJO | ( | smallJsont * | path | ) |
is directory
| path |
Definition at line 2404 of file libsheepyObject.c.

| bool isDirO | ( | smallStringt * | path | ) |
Definition at line 2419 of file libsheepyObject.c.
| bool isLinkJO | ( | smallJsont * | path | ) |
is symbolic link
| path |
Definition at line 2437 of file libsheepyObject.c.

| bool isLinkO | ( | smallStringt * | path | ) |
Definition at line 2452 of file libsheepyObject.c.
| bool fileExistsJO | ( | smallJsont * | filePath | ) |
detect files and directories
| filePath | path to file or directory |
Definition at line 2470 of file libsheepyObject.c.

| bool fileExistsO | ( | smallStringt * | filePath | ) |
Definition at line 2485 of file libsheepyObject.c.
| bool fileChmodJO | ( | smallJsont * | filePath, |
| mode_t | mode | ||
| ) |
like chmod in stdlibc but return true/false
| filePath | path to file or directory mode: permissions |
Definition at line 2499 of file libsheepyObject.c.

| bool fileChmodO | ( | smallStringt * | filePath, |
| mode_t | mode | ||
| ) |
| ssize_t fileSizeJO | ( | smallJsont * | filePath | ) |
get file size
| filePath | path to file |
Definition at line 2529 of file libsheepyObject.c.

| ssize_t fileSizeO | ( | smallStringt * | filePath | ) |
| void* readFileToNewG | ( | void *none | UNUSED, |
| const char * | filePath | ||
| ) |
call readFileToS (for readFileG)
Definition at line 2567 of file libsheepyObject.c.

| void* readStreamToNewG | ( | void *none | UNUSED, |
| FILE * | fp | ||
| ) |
| char* readFileToG | ( | char ** | string, |
| const char * | filePath | ||
| ) |
| char* readStreamToG | ( | char ** | string, |
| FILE * | fp | ||
| ) |
| void readTextSmallJsonNotSupported | ( | char ***self | UNUSED, |
| smallJsont *path | UNUSED | ||
| ) |
Definition at line 2595 of file libsheepyObject.c.
| void readTextSmallStringNotSupported | ( | char ***self | UNUSED, |
| smallStringt *path | UNUSED | ||
| ) |
Definition at line 2602 of file libsheepyObject.c.
| void readToFileSmallJsonNotSupported | ( | void *self | UNUSED, |
| smallJsont *path | UNUSED | ||
| ) |
Definition at line 2609 of file libsheepyObject.c.
| void readToFileSmallStringNotSupported | ( | void *self | UNUSED, |
| smallStringt *path | UNUSED | ||
| ) |
Definition at line 2616 of file libsheepyObject.c.
| int writeFileFromG | ( | const char * | string, |
| const char * | filePath | ||
| ) |
call writeFileS (for writeFileG) (swaps parameters)
Definition at line 2623 of file libsheepyObject.c.

| int writeStreamFromG | ( | const char * | string, |
| FILE * | fp | ||
| ) |
| int writeTextSmallJsonNotSupported | ( | char **self | UNUSED, |
| smallJsont *path | UNUSED | ||
| ) |
Definition at line 2633 of file libsheepyObject.c.
| int writeTextSmallStringNotSupported | ( | char **self | UNUSED, |
| smallStringt *path | UNUSED | ||
| ) |
Definition at line 2641 of file libsheepyObject.c.
| int writeTextCCSmallJsonNotSupported | ( | const char **self | UNUSED, |
| smallJsont *path | UNUSED | ||
| ) |
Definition at line 2649 of file libsheepyObject.c.
| int writeTextCCSmallStringNotSupported | ( | const char **self | UNUSED, |
| smallStringt *path | UNUSED | ||
| ) |
Definition at line 2657 of file libsheepyObject.c.
| char** readTextSG | ( | char *** | list, |
| const char * | filePath | ||
| ) |
call readText (for readFileG)
Definition at line 2665 of file libsheepyObject.c.

| char** readTextStreamG | ( | char *** | list, |
| FILE * | fp | ||
| ) |
| bool writeTextSG | ( | char ** | list, |
| const char * | filePath | ||
| ) |
call writeText (for writeFileG) (swaps parameters)
Definition at line 2683 of file libsheepyObject.c.

| bool writeTextStreamG | ( | char ** | list, |
| FILE * | fp | ||
| ) |
| bool writeTextCG | ( | const char ** | list, |
| const char * | filePath | ||
| ) |
| bool writeTextStreamCG | ( | const char ** | list, |
| FILE * | fp | ||
| ) |
| bool appendFileSG | ( | const char * | string, |
| const char * | filePath | ||
| ) |
call appendFileS (for appendFileG) (swaps parameters)
Definition at line 2703 of file libsheepyObject.c.

| bool appendTextSG | ( | char ** | list, |
| const char * | filePath | ||
| ) |
call appendText (for appendFileG) (swaps parameters)
Definition at line 2708 of file libsheepyObject.c.

| bool appendTextCG | ( | const char ** | list, |
| const char * | filePath | ||
| ) |
| int mkdirParentsSmallJsonO | ( | smallJsont * | path | ) |
recursive mkdir
| path |
Definition at line 2718 of file libsheepyObject.c.

| int mkdirParentsO | ( | smallStringt * | path | ) |
| int rmAllSmallJsonO | ( | smallJsont * | path | ) |
remove all delete recursively files and directories
| path |
Definition at line 2743 of file libsheepyObject.c.

| int rmAllO | ( | smallStringt * | path | ) |
| int copyO | ( | smallStringt * | src, |
| smallStringt * | dst | ||
| ) |
copy files recursively
| src | source path dst destination path |
Definition at line 2768 of file libsheepyObject.c.

| int copySSmallJsonO | ( | const char * | src, |
| smallJsont * | dst | ||
| ) |
| int copySO | ( | const char * | src, |
| smallStringt * | dst | ||
| ) |
| int copySmallJsonOS | ( | smallJsont * | src, |
| const char * | dst | ||
| ) |
| int copySmallJsonSmallJson | ( | smallJsont * | src, |
| smallJsont * | dst | ||
| ) |
Definition at line 2834 of file libsheepyObject.c.
| int copySmallJsonO | ( | smallJsont * | src, |
| smallStringt * | dst | ||
| ) |
Definition at line 2867 of file libsheepyObject.c.
| int copyOS | ( | smallStringt * | src, |
| const char * | dst | ||
| ) |
| int copyOSmallJson | ( | smallStringt * | src, |
| smallJsont * | dst | ||
| ) |
Definition at line 2904 of file libsheepyObject.c.
| int renameSmallJsonO | ( | smallJsont * | src, |
| smallStringt * | dst | ||
| ) |
rename file
| src | source path dst destination path |
Definition at line 2931 of file libsheepyObject.c.
| int renameSmallJsonSmallJson | ( | smallJsont * | src, |
| smallJsont * | dst | ||
| ) |
Definition at line 2958 of file libsheepyObject.c.
| int renameSmallJsonOS | ( | smallJsont * | src, |
| const char * | dst | ||
| ) |
| int renameO | ( | smallStringt * | src, |
| smallStringt * | dst | ||
| ) |
| int renameOSmallJson | ( | smallStringt * | src, |
| smallJsont * | dst | ||
| ) |
Definition at line 3024 of file libsheepyObject.c.
| int renameSSmallJsonO | ( | const char * | src, |
| smallJsont * | dst | ||
| ) |
Definition at line 3051 of file libsheepyObject.c.
| int renameSO | ( | const char * | src, |
| smallStringt * | dst | ||
| ) |
| int renameOS | ( | smallStringt * | src, |
| const char * | dst | ||
| ) |
| int moveSmallJsonO | ( | smallJsont * | src, |
| smallStringt * | dst | ||
| ) |
move files recursively
copy and then delete source
| src | source path dst destination path |
Definition at line 3090 of file libsheepyObject.c.
| int moveSmallJsonSmallJson | ( | smallJsont * | src, |
| smallJsont * | dst | ||
| ) |
Definition at line 3117 of file libsheepyObject.c.
| int moveSmallJsonOS | ( | smallJsont * | src, |
| const char * | dst | ||
| ) |
| int moveO | ( | smallStringt * | src, |
| smallStringt * | dst | ||
| ) |
| int moveOSmallJson | ( | smallStringt * | src, |
| smallJsont * | dst | ||
| ) |
Definition at line 3183 of file libsheepyObject.c.
| int moveSSmallJsonO | ( | const char * | src, |
| smallJsont * | dst | ||
| ) |
Definition at line 3210 of file libsheepyObject.c.
| int moveSO | ( | const char * | src, |
| smallStringt * | dst | ||
| ) |
| int moveOS | ( | smallStringt * | src, |
| const char * | dst | ||
| ) |
| smallJsont* randomSmallJsonO | ( | uint64_t | length | ) |
random string
allocate and generate a random string in charset "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-,"
| string | length |
Definition at line 3249 of file libsheepyObject.c.

| smallStringt* randomSO | ( | uint64_t | length | ) |
| smallJsont* randomAlphaNumSmallJsonO | ( | uint64_t | length | ) |
random alpha numerical string
allocate and generate a random string in charset "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
| string | length |
Definition at line 3281 of file libsheepyObject.c.

| smallStringt* randomAlphaNumSO | ( | uint64_t | length | ) |
| smallJsont* readSmallJsonO | ( | void | ) |
read String read user input (one line) as a string
Definition at line 3313 of file libsheepyObject.c.

| smallStringt* readO | ( | void | ) |
| smallJsont* readLineSmallJsonO | ( | FILE * | fp | ) |
readLine from file stream the fist new line is converted to 0
| fp | file stream |
Definition at line 3377 of file libsheepyObject.c.

| smallStringt* readLineO | ( | FILE * | fp | ) |
| char* intToSG | ( | char *retType | UNUSED, |
| int64_t | n | ||
| ) |
call intToS for intToG
Definition at line 3413 of file libsheepyObject.c.

| char* doubleToSG | ( | char *retType | UNUSED, |
| double | n | ||
| ) |
call doubleToS for doubleToG
Definition at line 3418 of file libsheepyObject.c.

| char** iListUniqG | ( | char *** | list, |
| int dum | UNUSED | ||
| ) |
call iListUniqS for uniqG
Definition at line 3423 of file libsheepyObject.c.

| char** iicListUniqG | ( | char *** | list, |
| int dum | UNUSED | ||
| ) |
call iicListUniqS for icUniqG
Definition at line 3428 of file libsheepyObject.c.

| char** listFromArrayG | ( | char **retType | UNUSED, |
| char ** | array, | ||
| size_t | size | ||
| ) |
call listFromArrayS for fromArrayG
Definition at line 3433 of file libsheepyObject.c.

| char** listFromCArrayG | ( | char **retType | UNUSED, |
| const char ** | array, | ||
| size_t | size | ||
| ) |
| char getSG | ( | const char * | string, |
| int retType | UNUSED, | ||
| int64_t | index | ||
| ) |
call getS for getG
Definition at line 3443 of file libsheepyObject.c.

| char* listGetG | ( | char ** | list, |
| int retType | UNUSED, | ||
| int64_t | index | ||
| ) |
call listGetS for getG
Definition at line 3448 of file libsheepyObject.c.

| char* listGetCG | ( | const char ** | list, |
| int retType | UNUSED, | ||
| int64_t | index | ||
| ) |
| char* iListGetG | ( | char ** | list, |
| int retType | UNUSED, | ||
| int64_t | index | ||
| ) |
call iListGetS for getG
Definition at line 3458 of file libsheepyObject.c.

| const char* iListGetCG | ( | const char ** | list, |
| int retType | UNUSED, | ||
| int64_t | index | ||
| ) |
| char* listPopG | ( | char *** | list, |
| int retType | UNUSED | ||
| ) |
call listPopS for popG
Definition at line 3468 of file libsheepyObject.c.

| char* listDequeueG | ( | char *** | list, |
| int retType | UNUSED | ||
| ) |
call listDequeueS for dequeueG
Definition at line 3473 of file libsheepyObject.c.

| char** listDupCG | ( | const char ** | list | ) |
| bool listEqCG | ( | char ** | list1, |
| const char ** | list2 | ||
| ) |
| bool listEqC1G | ( | const char ** | list1, |
| char ** | list2 | ||
| ) |
| bool listEqCCG | ( | const char ** | list1, |
| const char ** | list2 | ||
| ) |
| bool icListEqCG | ( | char ** | list1, |
| const char ** | list2 | ||
| ) |
| bool icListEqC1G | ( | const char ** | list1, |
| char ** | list2 | ||
| ) |
| bool icListEqCCG | ( | const char ** | list1, |
| const char ** | list2 | ||
| ) |
| size_t listLengthCG | ( | const char ** | list | ) |
| ssize_t listIndexOfCG | ( | const char ** | list, |
| const char * | string | ||
| ) |
| ssize_t listIndexOfCharCG | ( | const char ** | list, |
| char | c | ||
| ) |
| ssize_t icListIndexOfCG | ( | const char ** | list, |
| const char * | string | ||
| ) |
| ssize_t icListIndexOfCharCG | ( | const char ** | list, |
| char | c | ||
| ) |
| bool listHasCharCG | ( | const char ** | list, |
| char | c | ||
| ) |
| bool listHasCG | ( | const char ** | list, |
| const char * | string | ||
| ) |
| bool icListHasCG | ( | const char ** | list, |
| const char * | string | ||
| ) |
| bool icListHasCharCG | ( | const char ** | list, |
| char | c | ||
| ) |
| char* joinCG | ( | const char ** | list, |
| const char * | delim | ||
| ) |
| char* joinCharCG | ( | const char ** | list, |
| char | delim | ||
| ) |
| char** listAddCG | ( | char ** | list1, |
| const char ** | list2 | ||
| ) |
| int listPrintCG | ( | const char ** | list | ) |
| bool eqCharChar | ( | char | c, |
| char | value | ||
| ) |
equality functions
Definition at line 3579 of file libsheepyObject.c.
| bool equalChaOG | ( | char | c, |
| baset * | value | ||
| ) |
Definition at line 3584 of file libsheepyObject.c.


Definition at line 3590 of file libsheepyObject.c.
| bool equalChaDoubleG | ( | char | c, |
| double | value | ||
| ) |
Definition at line 3595 of file libsheepyObject.c.


| bool equalChaInt64G | ( | char | c, |
| int64_t | value | ||
| ) |
Definition at line 3601 of file libsheepyObject.c.


| bool equalChaInt32G | ( | char | c, |
| int32_t | value | ||
| ) |
Definition at line 3607 of file libsheepyObject.c.


| bool equalChaUint32G | ( | char | c, |
| uint32_t | value | ||
| ) |
Definition at line 3613 of file libsheepyObject.c.


| bool equalChaUint64G | ( | char | c, |
| uint64_t | value | ||
| ) |
Definition at line 3619 of file libsheepyObject.c.


| bool equalChaSmallBytesG | ( | char | c, |
| smallBytest * | value | ||
| ) |
Definition at line 3625 of file libsheepyObject.c.
| bool equalChaSmallDoubleG | ( | char | c, |
| smallDoublet * | value | ||
| ) |
Definition at line 3636 of file libsheepyObject.c.
| bool equalChaSmallIntG | ( | char | c, |
| smallIntt * | value | ||
| ) |
Definition at line 3646 of file libsheepyObject.c.
| bool equalChaSmallJsonG | ( | char | c, |
| smallJsont * | value | ||
| ) |
Definition at line 3656 of file libsheepyObject.c.
| bool equalChaSmallStringG | ( | char | c, |
| smallStringt * | value | ||
| ) |
Definition at line 3676 of file libsheepyObject.c.
| bool equalCharOG | ( | const char * | s, |
| baset * | value | ||
| ) |
Definition at line 3687 of file libsheepyObject.c.


| bool equalCharBoolG | ( | const char * | s, |
| bool | value | ||
| ) |
| bool equalCharDoubleG | ( | const char * | s, |
| double | value | ||
| ) |
| bool equalCharInt64G | ( | const char * | s, |
| int64_t | value | ||
| ) |
| bool equalCharInt32G | ( | const char * | s, |
| int32_t | value | ||
| ) |
| bool equalCharUint32G | ( | const char * | s, |
| uint32_t | value | ||
| ) |
| bool equalCharUint64G | ( | const char * | s, |
| uint64_t | value | ||
| ) |
| bool equalCharSmallBoolG | ( | const char * | s, |
| smallBoolt * | value | ||
| ) |
Definition at line 3729 of file libsheepyObject.c.
| bool equalCharSmallBytesG | ( | const char * | s, |
| smallBytest * | value | ||
| ) |
Definition at line 3737 of file libsheepyObject.c.
| bool equalCharSmallDoubleG | ( | const char * | s, |
| smallDoublet * | value | ||
| ) |
Definition at line 3745 of file libsheepyObject.c.
| bool equalCharSmallIntG | ( | const char * | s, |
| smallIntt * | value | ||
| ) |
Definition at line 3753 of file libsheepyObject.c.
| bool equalCharPSmallJsonG | ( | const char * | s, |
| smallJsont * | value | ||
| ) |
Definition at line 3761 of file libsheepyObject.c.
| bool equalCharPSmallStringG | ( | const char * | s, |
| smallStringt * | value | ||
| ) |
Definition at line 3780 of file libsheepyObject.c.
| bool equalArrayOG | ( | char ** | p1, |
| baset * | p2 | ||
| ) |
Definition at line 3789 of file libsheepyObject.c.


| bool equalCArrayOG | ( | const char ** | p1, |
| baset * | p2 | ||
| ) |
Definition at line 3819 of file libsheepyObject.c.


| bool equalArraySmallJsonG | ( | char ** | p1, |
| smallJsont * | p2 | ||
| ) |
Definition at line 3849 of file libsheepyObject.c.
| bool equalArraySmallArrayG | ( | char ** | p1, |
| smallArrayt * | p2 | ||
| ) |
Definition at line 3868 of file libsheepyObject.c.
| bool equalCArraySmallJsonG | ( | const char ** | p1, |
| smallJsont * | p2 | ||
| ) |
Definition at line 3881 of file libsheepyObject.c.
| bool equalCArraySmallArrayG | ( | const char ** | p1, |
| smallArrayt * | p2 | ||
| ) |
Definition at line 3900 of file libsheepyObject.c.
| bool equalOCharG | ( | baset * | p1, |
| const char * | p2 | ||
| ) |
| bool equalOChaG | ( | baset * | p1, |
| char | p2 | ||
| ) |
| bool equalOArrayG | ( | baset * | p1, |
| char ** | p2 | ||
| ) |
| bool equalOCArrayG | ( | baset * | p1, |
| const char ** | p2 | ||
| ) |
Definition at line 3933 of file libsheepyObject.c.
| bool equalOBoolG | ( | baset * | p1, |
| bool | p2 | ||
| ) |
| bool equalODoubleG | ( | baset * | p1, |
| double | p2 | ||
| ) |
| bool equalOInt64G | ( | baset * | p1, |
| int64_t | p2 | ||
| ) |
| bool equalOInt32G | ( | baset * | p1, |
| int32_t | p2 | ||
| ) |
| bool equalOUint32G | ( | baset * | p1, |
| uint32_t | p2 | ||
| ) |
| bool equalOUint64G | ( | baset * | p1, |
| uint64_t | p2 | ||
| ) |
| bool equalOSmallArrayG | ( | baset * | p1, |
| smallArrayt * | p2 | ||
| ) |
Definition at line 3982 of file libsheepyObject.c.
| bool equalOSmallBoolG | ( | baset * | p1, |
| smallBoolt * | p2 | ||
| ) |
Definition at line 3995 of file libsheepyObject.c.
| bool equalOSmallBytesG | ( | baset * | p1, |
| smallBytest * | p2 | ||
| ) |
Definition at line 4008 of file libsheepyObject.c.
| bool equalOSmallDoubleG | ( | baset * | p1, |
| smallDoublet * | p2 | ||
| ) |
Definition at line 4021 of file libsheepyObject.c.
| bool equalOSmallDictG | ( | baset * | p1, |
| smallDictt * | p2 | ||
| ) |
Definition at line 4034 of file libsheepyObject.c.
Definition at line 4047 of file libsheepyObject.c.
| bool equalOSmallJsonG | ( | baset * | p1, |
| smallJsont * | p2 | ||
| ) |
Definition at line 4060 of file libsheepyObject.c.
| bool equalOSmallStringG | ( | baset * | p1, |
| smallStringt * | p2 | ||
| ) |
Definition at line 4073 of file libsheepyObject.c.
| bool equalBoolChaG | ( | bool p1 | UNUSED, |
| char p2 | UNUSED | ||
| ) |
Definition at line 4090 of file libsheepyObject.c.
| bool equalBoolCharG | ( | bool | p1, |
| const char * | p2 | ||
| ) |
| bool equalBoolOG | ( | bool | p1, |
| baset * | p2 | ||
| ) |
Definition at line 4110 of file libsheepyObject.c.


| bool equalBoolFG | ( | bool | p1, |
| bool | p2 | ||
| ) |
Definition at line 4130 of file libsheepyObject.c.
| bool equalBoolDoubleG | ( | bool | p1, |
| double | p2 | ||
| ) |
Definition at line 4135 of file libsheepyObject.c.
| bool equalBoolInt64G | ( | bool | p1, |
| int64_t | p2 | ||
| ) |
Definition at line 4140 of file libsheepyObject.c.
| bool equalBoolInt32G | ( | bool | p1, |
| int32_t | p2 | ||
| ) |
Definition at line 4145 of file libsheepyObject.c.
| bool equalBoolUint32G | ( | bool | p1, |
| uint32_t | p2 | ||
| ) |
Definition at line 4150 of file libsheepyObject.c.
| bool equalBoolUint64G | ( | bool | p1, |
| uint64_t | p2 | ||
| ) |
Definition at line 4155 of file libsheepyObject.c.
| bool equalBoolSmallBoolG | ( | bool | p1, |
| smallBoolt * | p2 | ||
| ) |
Definition at line 4160 of file libsheepyObject.c.
| bool equalBoolSmallBytesG | ( | bool | p1, |
| smallBytest * | p2 | ||
| ) |
Definition at line 4169 of file libsheepyObject.c.
| bool equalBoolSmallDoubleG | ( | bool | p1, |
| smallDoublet * | p2 | ||
| ) |
Definition at line 4184 of file libsheepyObject.c.
| bool equalBoolSmallIntG | ( | bool | p1, |
| smallIntt * | p2 | ||
| ) |
Definition at line 4193 of file libsheepyObject.c.
| bool equalBoolSmallJsonG | ( | bool | p1, |
| smallJsont * | p2 | ||
| ) |
Definition at line 4202 of file libsheepyObject.c.
| bool equalBoolSmallStringG | ( | bool | p1, |
| smallStringt * | p2 | ||
| ) |
| bool equalDoubleChaG | ( | double | p1, |
| char | p2 | ||
| ) |
| bool equalDoubleCharG | ( | double | p1, |
| const char * | p2 | ||
| ) |
Definition at line 4236 of file libsheepyObject.c.


| bool equalDoubleBaseG | ( | double | p1, |
| baset * | p2 | ||
| ) |
Definition at line 4251 of file libsheepyObject.c.


| bool equalDoubleBoolG | ( | double | p1, |
| bool | p2 | ||
| ) |
Definition at line 4277 of file libsheepyObject.c.
| bool equalDoubleFG | ( | double | p1, |
| double | p2 | ||
| ) |
Definition at line 4282 of file libsheepyObject.c.
| bool equalDoubleInt64G | ( | double | p1, |
| int64_t | p2 | ||
| ) |
Definition at line 4287 of file libsheepyObject.c.
| bool equalDoubleInt32G | ( | double | p1, |
| int32_t | p2 | ||
| ) |
Definition at line 4292 of file libsheepyObject.c.
| bool equalDoubleUint32G | ( | double | p1, |
| uint32_t | p2 | ||
| ) |
Definition at line 4297 of file libsheepyObject.c.
| bool equalDoubleUint64G | ( | double | p1, |
| uint64_t | p2 | ||
| ) |
Definition at line 4302 of file libsheepyObject.c.
| bool equalDoubleSmallBoolG | ( | double | p1, |
| smallBoolt * | p2 | ||
| ) |
Definition at line 4307 of file libsheepyObject.c.
| bool equalDoubleSmallBytesG | ( | double | p1, |
| smallBytest * | p2 | ||
| ) |
| bool equalDoubleSmallDoubleG | ( | double | p1, |
| smallDoublet * | p2 | ||
| ) |
Definition at line 4345 of file libsheepyObject.c.
| bool equalDoubleSmallIntG | ( | double | p1, |
| smallIntt * | p2 | ||
| ) |
Definition at line 4354 of file libsheepyObject.c.
| bool equalDoubleSmallJsonG | ( | double | p1, |
| smallJsont * | p2 | ||
| ) |
Definition at line 4363 of file libsheepyObject.c.
| bool equalDoubleSmallStringG | ( | double | p1, |
| smallStringt * | p2 | ||
| ) |
| bool equalInt64ChaG | ( | int64_t | p1, |
| char | p2 | ||
| ) |
| bool equalInt64CharG | ( | int64_t | p1, |
| const char * | p2 | ||
| ) |
Definition at line 4398 of file libsheepyObject.c.


| bool equalInt64BaseG | ( | int64_t | p1, |
| baset * | p2 | ||
| ) |
Definition at line 4413 of file libsheepyObject.c.


| bool equalInt64BoolG | ( | int64_t | p1, |
| bool | p2 | ||
| ) |
Definition at line 4439 of file libsheepyObject.c.
| bool equalInt64DoubleG | ( | int64_t | p1, |
| double | p2 | ||
| ) |
Definition at line 4444 of file libsheepyObject.c.
| bool equalInt64FG | ( | int64_t | p1, |
| int64_t | p2 | ||
| ) |
Definition at line 4449 of file libsheepyObject.c.
| bool equalInt64Int32G | ( | int64_t | p1, |
| int32_t | p2 | ||
| ) |
Definition at line 4454 of file libsheepyObject.c.
| bool equalInt64Uint32G | ( | int64_t | p1, |
| uint32_t | p2 | ||
| ) |
Definition at line 4459 of file libsheepyObject.c.
| bool equalInt64Uint64G | ( | int64_t | p1, |
| uint64_t | p2 | ||
| ) |
Definition at line 4464 of file libsheepyObject.c.
| bool equalInt64SmallBoolG | ( | int64_t | p1, |
| smallBoolt * | p2 | ||
| ) |
Definition at line 4469 of file libsheepyObject.c.
| bool equalInt64SmallBytesG | ( | int64_t | p1, |
| smallBytest * | p2 | ||
| ) |
| bool equalInt64SmallDoubleG | ( | int64_t | p1, |
| smallDoublet * | p2 | ||
| ) |
Definition at line 4507 of file libsheepyObject.c.
| bool equalInt64SmallIntG | ( | int64_t | p1, |
| smallIntt * | p2 | ||
| ) |
Definition at line 4516 of file libsheepyObject.c.
| bool equalInt64SmallJsonG | ( | int64_t | p1, |
| smallJsont * | p2 | ||
| ) |
Definition at line 4525 of file libsheepyObject.c.
| bool equalInt64SmallStringG | ( | int64_t | p1, |
| smallStringt * | p2 | ||
| ) |
| bool equalInt32ChaG | ( | int32_t | p1, |
| char | p2 | ||
| ) |
| bool equalInt32CharG | ( | int32_t | p1, |
| const char * | p2 | ||
| ) |
Definition at line 4560 of file libsheepyObject.c.


| bool equalInt32BaseG | ( | int32_t | p1, |
| baset * | p2 | ||
| ) |
Definition at line 4575 of file libsheepyObject.c.


| bool equalInt32BoolG | ( | int32_t | p1, |
| bool | p2 | ||
| ) |
Definition at line 4601 of file libsheepyObject.c.
| bool equalInt32DoubleG | ( | int32_t | p1, |
| double | p2 | ||
| ) |
Definition at line 4606 of file libsheepyObject.c.
| bool equalInt32Int64G | ( | int32_t | p1, |
| int64_t | p2 | ||
| ) |
Definition at line 4611 of file libsheepyObject.c.
| bool equalInt32FG | ( | int32_t | p1, |
| int32_t | p2 | ||
| ) |
Definition at line 4616 of file libsheepyObject.c.
| bool equalInt32Uint32G | ( | int32_t | p1, |
| uint32_t | p2 | ||
| ) |
Definition at line 4621 of file libsheepyObject.c.
| bool equalInt32Uint64G | ( | int32_t | p1, |
| uint64_t | p2 | ||
| ) |
Definition at line 4626 of file libsheepyObject.c.
| bool equalInt32SmallBoolG | ( | int32_t | p1, |
| smallBoolt * | p2 | ||
| ) |
Definition at line 4631 of file libsheepyObject.c.
| bool equalInt32SmallBytesG | ( | int32_t | p1, |
| smallBytest * | p2 | ||
| ) |
| bool equalInt32SmallDoubleG | ( | int32_t | p1, |
| smallDoublet * | p2 | ||
| ) |
Definition at line 4669 of file libsheepyObject.c.
| bool equalInt32SmallIntG | ( | int32_t | p1, |
| smallIntt * | p2 | ||
| ) |
Definition at line 4678 of file libsheepyObject.c.
| bool equalInt32SmallJsonG | ( | int32_t | p1, |
| smallJsont * | p2 | ||
| ) |
Definition at line 4687 of file libsheepyObject.c.
| bool equalInt32SmallStringG | ( | int32_t | p1, |
| smallStringt * | p2 | ||
| ) |
| bool equalUint32ChaG | ( | uint32_t | p1, |
| char | p2 | ||
| ) |
| bool equalUint32CharG | ( | uint32_t | p1, |
| const char * | p2 | ||
| ) |
Definition at line 4722 of file libsheepyObject.c.


| bool equalUint32BaseG | ( | uint32_t | p1, |
| baset * | p2 | ||
| ) |
Definition at line 4737 of file libsheepyObject.c.


| bool equalUint32BoolG | ( | uint32_t | p1, |
| bool | p2 | ||
| ) |
Definition at line 4763 of file libsheepyObject.c.
| bool equalUint32DoubleG | ( | uint32_t | p1, |
| double | p2 | ||
| ) |
Definition at line 4768 of file libsheepyObject.c.
| bool equalUint32Int64G | ( | uint32_t | p1, |
| int64_t | p2 | ||
| ) |
Definition at line 4773 of file libsheepyObject.c.
| bool equalUint32Int32G | ( | uint32_t | p1, |
| int32_t | p2 | ||
| ) |
Definition at line 4778 of file libsheepyObject.c.
| bool equalUint32FG | ( | uint32_t | p1, |
| uint32_t | p2 | ||
| ) |
Definition at line 4783 of file libsheepyObject.c.
| bool equalUint32Uint64G | ( | uint32_t | p1, |
| uint64_t | p2 | ||
| ) |
Definition at line 4788 of file libsheepyObject.c.
| bool equalUint32SmallBoolG | ( | uint32_t | p1, |
| smallBoolt * | p2 | ||
| ) |
Definition at line 4793 of file libsheepyObject.c.
| bool equalUint32SmallBytesG | ( | uint32_t | p1, |
| smallBytest * | p2 | ||
| ) |
| bool equalUint32SmallDoubleG | ( | uint32_t | p1, |
| smallDoublet * | p2 | ||
| ) |
Definition at line 4831 of file libsheepyObject.c.
| bool equalUint32SmallIntG | ( | uint32_t | p1, |
| smallIntt * | p2 | ||
| ) |
Definition at line 4840 of file libsheepyObject.c.
| bool equalUint32SmallJsonG | ( | uint32_t | p1, |
| smallJsont * | p2 | ||
| ) |
Definition at line 4849 of file libsheepyObject.c.
| bool equalUint32SmallStringG | ( | uint32_t | p1, |
| smallStringt * | p2 | ||
| ) |
| bool equalUint64ChaG | ( | uint64_t | p1, |
| char | p2 | ||
| ) |
| bool equalUint64CharG | ( | uint64_t | p1, |
| const char * | p2 | ||
| ) |
Definition at line 4884 of file libsheepyObject.c.


| bool equalUint64BaseG | ( | uint64_t | p1, |
| baset * | p2 | ||
| ) |
Definition at line 4899 of file libsheepyObject.c.


| bool equalUint64BoolG | ( | uint64_t | p1, |
| bool | p2 | ||
| ) |
Definition at line 4925 of file libsheepyObject.c.
| bool equalUint64DoubleG | ( | uint64_t | p1, |
| double | p2 | ||
| ) |
Definition at line 4930 of file libsheepyObject.c.
| bool equalUint64Int64G | ( | uint64_t | p1, |
| int64_t | p2 | ||
| ) |
Definition at line 4935 of file libsheepyObject.c.
| bool equalUint64Int32G | ( | uint64_t | p1, |
| int32_t | p2 | ||
| ) |
Definition at line 4940 of file libsheepyObject.c.
| bool equalUint64Uint32G | ( | uint64_t | p1, |
| uint32_t | p2 | ||
| ) |
Definition at line 4945 of file libsheepyObject.c.
| bool equalUint64FG | ( | uint64_t | p1, |
| uint64_t | p2 | ||
| ) |
Definition at line 4950 of file libsheepyObject.c.
| bool equalUint64SmallBoolG | ( | uint64_t | p1, |
| smallBoolt * | p2 | ||
| ) |
Definition at line 4955 of file libsheepyObject.c.
| bool equalUint64SmallBytesG | ( | uint64_t | p1, |
| smallBytest * | p2 | ||
| ) |
| bool equalUint64SmallDoubleG | ( | uint64_t | p1, |
| smallDoublet * | p2 | ||
| ) |
Definition at line 4993 of file libsheepyObject.c.
| bool equalUint64SmallIntG | ( | uint64_t | p1, |
| smallIntt * | p2 | ||
| ) |
Definition at line 5002 of file libsheepyObject.c.
| bool equalUint64SmallJsonG | ( | uint64_t | p1, |
| smallJsont * | p2 | ||
| ) |
Definition at line 5011 of file libsheepyObject.c.
| bool equalUint64SmallStringG | ( | uint64_t | p1, |
| smallStringt * | p2 | ||
| ) |
return false, used in eqG when object types don't match
Definition at line 5041 of file libsheepyObject.c.
Definition at line 5046 of file libsheepyObject.c.
Definition at line 5051 of file libsheepyObject.c.
Definition at line 5056 of file libsheepyObject.c.
| bool notEqualBoolOG | ( | bool p1 | UNUSED, |
| void *p2 | UNUSED | ||
| ) |
Definition at line 5061 of file libsheepyObject.c.
| bool notEqualDoubleOG | ( | double p1 | UNUSED, |
| void *p2 | UNUSED | ||
| ) |
Definition at line 5066 of file libsheepyObject.c.
| bool notEqualInt64OG | ( | int64_t p1 | UNUSED, |
| void *p2 | UNUSED | ||
| ) |
Definition at line 5071 of file libsheepyObject.c.
| bool notEqualInt32OG | ( | int32_t p1 | UNUSED, |
| void *p2 | UNUSED | ||
| ) |
Definition at line 5076 of file libsheepyObject.c.
| bool notEqualUint32OG | ( | uint32_t p1 | UNUSED, |
| void *p2 | UNUSED | ||
| ) |
Definition at line 5081 of file libsheepyObject.c.
| bool notEqualUint64OG | ( | uint64_t p1 | UNUSED, |
| void *p2 | UNUSED | ||
| ) |
Definition at line 5086 of file libsheepyObject.c.
| bool notEqualOBoolG | ( | void *p1 | UNUSED, |
| bool p2 | UNUSED | ||
| ) |
Definition at line 5091 of file libsheepyObject.c.
| bool notEqualDoubleG | ( | void *p1 | UNUSED, |
| double p2 | UNUSED | ||
| ) |
Definition at line 5096 of file libsheepyObject.c.
| bool notEqualOInt64G | ( | void *p1 | UNUSED, |
| int64_t p2 | UNUSED | ||
| ) |
Definition at line 5101 of file libsheepyObject.c.
| bool notEqualOInt32G | ( | void *p1 | UNUSED, |
| int32_t p2 | UNUSED | ||
| ) |
Definition at line 5106 of file libsheepyObject.c.
| bool notEqualOUint32G | ( | void *p1 | UNUSED, |
| uint32_t p2 | UNUSED | ||
| ) |
Definition at line 5111 of file libsheepyObject.c.
| bool notEqualOUint64G | ( | void *p1 | UNUSED, |
| uint64_t p2 | UNUSED | ||
| ) |
Definition at line 5116 of file libsheepyObject.c.
| bool icEqCharChar | ( | char | c, |
| char | value | ||
| ) |
ignore case equality functions
Definition at line 5122 of file libsheepyObject.c.
| bool icEqualChaOG | ( | char | c, |
| baset * | value | ||
| ) |
Definition at line 5127 of file libsheepyObject.c.


| bool icEqualChaSmallJsonG | ( | char | c, |
| smallJsont * | value | ||
| ) |
Definition at line 5133 of file libsheepyObject.c.
| bool icEqualChaSmallStringG | ( | char | c, |
| smallStringt * | value | ||
| ) |
Definition at line 5147 of file libsheepyObject.c.
| bool icEqualCharOG | ( | const char * | s, |
| baset * | value | ||
| ) |
Definition at line 5157 of file libsheepyObject.c.


| bool icEqualCharPSmallJsonG | ( | const char * | s, |
| smallJsont * | value | ||
| ) |
Definition at line 5169 of file libsheepyObject.c.
| bool icEqualCharPSmallStringG | ( | const char * | s, |
| smallStringt * | value | ||
| ) |
Definition at line 5183 of file libsheepyObject.c.
| bool icEqualArrayOG | ( | char ** | p1, |
| baset * | p2 | ||
| ) |
Definition at line 5192 of file libsheepyObject.c.


| bool icEqualCArrayOG | ( | const char ** | p1, |
| baset * | p2 | ||
| ) |
Definition at line 5222 of file libsheepyObject.c.


| bool icEqualArraySmallJsonG | ( | char ** | p1, |
| smallJsont * | p2 | ||
| ) |
Definition at line 5252 of file libsheepyObject.c.
| bool icEqualCArraySmallJsonG | ( | const char ** | p1, |
| smallJsont * | p2 | ||
| ) |
Definition at line 5272 of file libsheepyObject.c.
| bool icEqualArraySmallArrayG | ( | char ** | p1, |
| smallArrayt * | p2 | ||
| ) |
Definition at line 5292 of file libsheepyObject.c.
| bool icEqualCArraySmallArrayG | ( | const char ** | p1, |
| smallArrayt * | p2 | ||
| ) |
Definition at line 5305 of file libsheepyObject.c.
| bool icEqualOCharG | ( | baset * | p1, |
| const char * | p2 | ||
| ) |
| bool icEqualOChaG | ( | baset * | p1, |
| char | p2 | ||
| ) |
| bool icEqualOArrayG | ( | baset * | p1, |
| char ** | p2 | ||
| ) |
| bool icEqualOCArrayG | ( | baset * | p1, |
| const char ** | p2 | ||
| ) |
| bool icEqualOSmallArrayG | ( | baset * | p1, |
| smallArrayt * | p2 | ||
| ) |
Definition at line 5357 of file libsheepyObject.c.
| bool icEqualOSmallDictG | ( | baset * | p1, |
| smallDictt * | p2 | ||
| ) |
Definition at line 5370 of file libsheepyObject.c.
| bool icEqualOSmallJsonG | ( | baset * | p1, |
| smallJsont * | p2 | ||
| ) |
Definition at line 5383 of file libsheepyObject.c.
| bool icEqualOSmallStringG | ( | baset * | p1, |
| smallStringt * | p2 | ||
| ) |
Definition at line 5397 of file libsheepyObject.c.
| void freeBasetInContainer | ( | void * | baseo | ) |
convert baset object to smallt
Definition at line 5426 of file libsheepyObject.c.


convert smallt object to baset
Definition at line 5499 of file libsheepyObject.c.


| int cpuCount | ( | void | ) |
return number of online CPUs, also number of threads in the thread pool
Definition at line 5597 of file libsheepyObject.c.

| unsigned registerFinalizeRecycleContainersInThreadPool | ( | recycleContainersFt | f | ) |
register function freeing the unused containers a finalizeRecycle must be registered for each class in order to avoid memory leaks
Definition at line 5606 of file libsheepyObject.c.

| void finalizeLibsheepyRecycleContainers | ( | void *arg | UNUSED | ) |
function called automatically (registered in tpool) when a thread exits This function calls all the registered finalizeRecycle functions
Definition at line 5612 of file libsheepyObject.c.
| void finalizeLibsheepyAtExit | ( | void | ) |
free class methods for all classes the objects and classes are not usuable after this an object has to be created for the class to work again free real program path
stop the thread pool
finalizeLibsheepyAtExit is called automatically at exit.
Definition at line 5620 of file libsheepyObject.c.


| smallDictt* shSysinfo | ( | void | ) |
sheepy sysinfo
return struct sysinfo in a dictionary. The keys are: uptime, loads, totalram, freeram, sharedram, bufferram, totalswap, freeswap, procs
Definition at line 526 of file libsheepyObject.c.
| dArrayT | ( | finalizeRecycleContainersFuncst | , |
| recycleContainersFt | |||
| ) |

| void initLibsheepyObject | ( | void | ) |
called from initLibsheepy in libsheepy.c start the thread pool
Definition at line 5669 of file libsheepyObject.c.


| internal finalizeRecycleContainersFuncst finalizeRecycleContainersFuncs |
Definition at line 5604 of file libsheepyObject.c.
| undefinedt* undefined = NULL |
undefined/null object for setting undefined/null in small data structures pushG(a, undefined);
Definition at line 5706 of file libsheepyObject.c.
| baset* rtBaset = NULL |
Generic return types getG(dict, rtBool, "a");.
Definition at line 5712 of file libsheepyObject.c.
| undefinedt* rtUndefinedt = NULL |
Definition at line 5713 of file libsheepyObject.c.
| bool rtBool = false |
Definition at line 5714 of file libsheepyObject.c.
| bool* rtBoolP = NULL |
Definition at line 5715 of file libsheepyObject.c.
| double rtDouble = 0 |
Definition at line 5716 of file libsheepyObject.c.
| double* rtDoubleP = NULL |
Definition at line 5717 of file libsheepyObject.c.
| int64_t rtInt64_t = 0 |
Definition at line 5718 of file libsheepyObject.c.
| int64_t* rtInt64_tP = NULL |
Definition at line 5719 of file libsheepyObject.c.
| int32_t rtInt32_t = 0 |
Definition at line 5720 of file libsheepyObject.c.
| int32_t* rtInt32_tP = NULL |
Definition at line 5721 of file libsheepyObject.c.
| uint64_t rtUint64_t = 0 |
Definition at line 5722 of file libsheepyObject.c.
| uint64_t* rtUint64_tP = NULL |
Definition at line 5723 of file libsheepyObject.c.
| uint32_t rtUint32_t = 0 |
Definition at line 5724 of file libsheepyObject.c.
| uint32_t* rtUint32_tP = NULL |
Definition at line 5725 of file libsheepyObject.c.
| float rtF32 = 0 |
Definition at line 5726 of file libsheepyObject.c.
| double rtF64 = 0 |
Definition at line 5727 of file libsheepyObject.c.
| double* rtF64P = NULL |
Definition at line 5728 of file libsheepyObject.c.
| int64_t rtI64 = 0 |
Definition at line 5729 of file libsheepyObject.c.
| int64_t* rtI64P = NULL |
Definition at line 5730 of file libsheepyObject.c.
| int32_t rtI32 = 0 |
Definition at line 5731 of file libsheepyObject.c.
| int32_t* rtI32P = NULL |
Definition at line 5732 of file libsheepyObject.c.
| uint64_t rtU64 = 0 |
Definition at line 5733 of file libsheepyObject.c.
| uint64_t* rtU64P = NULL |
Definition at line 5734 of file libsheepyObject.c.
| uint32_t rtU32 = 0 |
Definition at line 5735 of file libsheepyObject.c.
| uint32_t* rtU32P = NULL |
Definition at line 5736 of file libsheepyObject.c.
| uint16_t rtU16 = 0 |
Definition at line 5737 of file libsheepyObject.c.
| uint8_t rtU8 = 0 |
Definition at line 5738 of file libsheepyObject.c.
| char* rtChar = NULL |
Definition at line 5739 of file libsheepyObject.c.
| smallArrayt* rtSmallArrayt = NULL |
Definition at line 5740 of file libsheepyObject.c.
| smallBoolt* rtSmallBoolt = NULL |
Definition at line 5741 of file libsheepyObject.c.
| smallBytest* rtSmallBytest = NULL |
Definition at line 5742 of file libsheepyObject.c.
| smallDictt* rtSmallDictt = NULL |
Definition at line 5743 of file libsheepyObject.c.
| smallDoublet* rtSmallDoublet = NULL |
Definition at line 5744 of file libsheepyObject.c.
| smallIntt* rtSmallIntt = NULL |
Definition at line 5745 of file libsheepyObject.c.
| smallJsont* rtSmallJsont = NULL |
Definition at line 5746 of file libsheepyObject.c.
| smallStringt* rtSmallStringt = NULL |
Definition at line 5747 of file libsheepyObject.c.
| void* rtVoid = NULL |
Definition at line 5748 of file libsheepyObject.c.
| smallContainert* rtSmallContainert = NULL |
Definition at line 5749 of file libsheepyObject.c.
1.8.13