libsheepy
Macros | Functions | Variables
libsheepyObject.c File Reference

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>
Include dependency graph for libsheepyObject.c:

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)
 
basetduplicateBaseG (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...
 
smallJsontgetProgPathJO (void)
 get program path When initLibsheepy is called before this function, it returns the given program path. More...
 
smallStringtgetProgPathO (void)
 
smallJsontgetRealProgPathJO (void)
 get real program path The first call allocates libSheepyRealProgPath, it is freed with freeRealProgPath More...
 
smallStringtgetRealProgPathO (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...
 
smallStringtformatO (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)
 
smallArraytwalkDirO (const char *dirPath)
 list all files in a directory recursively the directories are not listed More...
 
smallArraytwalkDirSmallJsonO (smallJsont *dirPath)
 
smallArraytwalkDirSmallStringO (smallStringt *dirPath)
 
internal void walkADir (const char *dirPath, smallArrayt *list)
 
smallArraytwalkDirDirO (const char *dirPath)
 list all directories in a directory recursively and sort the list More...
 
smallArraytwalkDirDirSmallJsonO (smallJsont *dirPath)
 
smallArraytwalkDirDirSmallStringO (smallStringt *dirPath)
 
internal void walkADirDir (const char *dirPath, smallArrayt *list)
 
smallArraytreadDirO (const char *dirPath)
 list files in a directory and sort the list More...
 
smallArraytreadDirSmallJsonO (smallJsont *dirPath)
 
smallArraytreadDirSmallStringO (smallStringt *dirPath)
 
smallArraytreadDirDirO (const char *dirPath)
 list directories in a directory and sort the list More...
 
smallArraytreadDirDirSmallJsonO (smallJsont *dirPath)
 
smallArraytreadDirDirSmallStringO (smallStringt *dirPath)
 
smallArraytwalkDirAllO (const char *dirPath)
 list all files and directories in a directory recursively the directories are listed More...
 
smallArraytwalkDirAllSmallJsonO (smallJsont *dirPath)
 
smallArraytwalkDirAllSmallStringO (smallStringt *dirPath)
 
internal void walkADirAll (const char *dirPath, smallArrayt *list)
 
smallArraytreadDirAllO (const char *dirPath)
 list files in a directory and sort the list More...
 
smallArraytreadDirAllSmallJsonO (smallJsont *dirPath)
 
smallArraytreadDirAllSmallStringO (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)
 
smallJsonttimeToJO (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...
 
smallStringttimeToSO (const time_t t)
 
smallJsontshDirnameJO (smallJsont *path)
 sheepy dirname More...
 
smallStringtshDirnameO (smallStringt *path)
 
smallJsontexpandHomeJO (smallJsont *path)
 expands ~/ ($HOME) or ~USER
duplicate and expand path. More...
 
smallStringtexpandHomeO (smallStringt *path)
 
smallJsontnormalizePathJO (smallJsont *path)
 normalize path More...
 
smallStringtnormalizePathO (smallStringt *path)
 
smallJsontgetCwdJO (void)
 get current working directory More...
 
smallStringtgetCwdO (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)
 
smallJsontrandomSmallJsonO (uint64_t length)
 random string More...
 
smallStringtrandomSO (uint64_t length)
 
smallJsontrandomAlphaNumSmallJsonO (uint64_t length)
 random alpha numerical string More...
 
smallStringtrandomAlphaNumSO (uint64_t length)
 
smallJsontreadSmallJsonO (void)
 read String read user input (one line) as a string More...
 
smallStringtreadO (void)
 
smallJsontreadLineSmallJsonO (FILE *fp)
 readLine from file stream the fist new line is converted to 0 More...
 
smallStringtreadLineO (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)
 
smallttoSmallt (baset *obj)
 convert baset object to smallt More...
 
basettoBaset (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...
 
smallDicttshSysinfo (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
 
undefinedtundefined = NULL
 undefined/null object for setting undefined/null in small data structures pushG(a, undefined); More...
 
basetrtBaset = NULL
 Generic return types getG(dict, rtBool, "a");. More...
 
undefinedtrtUndefinedt = 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
 
smallArraytrtSmallArrayt = NULL
 
smallBooltrtSmallBoolt = NULL
 
smallBytestrtSmallBytest = NULL
 
smallDicttrtSmallDictt = NULL
 
smallDoubletrtSmallDoublet = NULL
 
smallInttrtSmallIntt = NULL
 
smallJsontrtSmallJsont = NULL
 
smallStringtrtSmallStringt = NULL
 
void * rtVoid = NULL
 
smallContainertrtSmallContainert = NULL
 

Detailed Description

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.

Macro Definition Documentation

◆ internal

#define internal   static

Definition at line 37 of file libsheepyObject.c.

◆ startMax

#define startMax   20

Definition at line 3328 of file libsheepyObject.c.

Function Documentation

◆ cleanUpBaseTerminateG()

void cleanUpBaseTerminateG ( baset **  val)

Definition at line 555 of file libsheepyObject.c.

◆ cleanUpBaseFreeG()

void cleanUpBaseFreeG ( baset **  val)

Definition at line 560 of file libsheepyObject.c.

◆ cleanUpBaseFinishG()

void cleanUpBaseFinishG ( baset **  val)

Definition at line 565 of file libsheepyObject.c.

◆ cleanUpBaseSmashG()

void cleanUpBaseSmashG ( baset **  val)

Definition at line 570 of file libsheepyObject.c.

◆ duplicateBaseG()

baset* duplicateBaseG ( baset self)

Definition at line 575 of file libsheepyObject.c.

◆ freeManyOF()

void freeManyOF ( void *  paramType,
  ... 
)

free many buffers in baset objects

Definition at line 580 of file libsheepyObject.c.

◆ terminateManyOF()

void terminateManyOF ( void *  paramType,
  ... 
)

terminate many baset objects

Definition at line 595 of file libsheepyObject.c.

◆ smashManyOF()

void smashManyOF ( void *  paramType,
  ... 
)

smash many baset objects

Definition at line 613 of file libsheepyObject.c.

◆ finishManyOF()

void finishManyOF ( void *  paramType,
  ... 
)

finish many baset objects

Definition at line 631 of file libsheepyObject.c.

◆ getProgPathJO()

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.

Returns
program path or real program path

Definition at line 649 of file libsheepyObject.c.

Here is the call graph for this function:

◆ getProgPathO()

smallStringt* getProgPathO ( void  )

Definition at line 659 of file libsheepyObject.c.

Here is the call graph for this function:

◆ getRealProgPathJO()

smallJsont* getRealProgPathJO ( void  )

get real program path The first call allocates libSheepyRealProgPath, it is freed with freeRealProgPath

Returns
real program path

Definition at line 664 of file libsheepyObject.c.

Here is the call graph for this function:

◆ getRealProgPathO()

smallStringt* getRealProgPathO ( void  )

Definition at line 674 of file libsheepyObject.c.

Here is the call graph for this function:

◆ systemJO()

int systemJO ( smallJsont command)

run system command in a smallString

Definition at line 679 of file libsheepyObject.c.

Here is the call graph for this function:

◆ systemO()

int systemO ( smallStringt command)

Definition at line 694 of file libsheepyObject.c.

◆ systemNFreeJOF()

int systemNFreeJOF ( smallJsont command,
int  line,
const char *  thisFunc,
const char *  thisFileName 
)

Definition at line 703 of file libsheepyObject.c.

Here is the call graph for this function:

◆ systemNFreeOF()

int systemNFreeOF ( smallStringt command,
int  line,
const char *  thisFunc,
const char *  thisFileName 
)

Definition at line 727 of file libsheepyObject.c.

◆ print_m()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_m_arginfo()

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.

Here is the caller graph for this function:

◆ putsOF()

void putsOF ( baset object)

puts for objects using toString

Definition at line 787 of file libsheepyObject.c.

Here is the call graph for this function:

◆ putsUndefinedGF()

void putsUndefinedGF ( undefinedt object)

Definition at line 798 of file libsheepyObject.c.

Here is the call graph for this function:

◆ putsBoolGF()

void putsBoolGF ( bool  object)

Definition at line 809 of file libsheepyObject.c.

◆ putsBoolPGF()

void putsBoolPGF ( bool *  object)

Definition at line 819 of file libsheepyObject.c.

◆ putsDoubleGF()

void putsDoubleGF ( double  object)

Definition at line 832 of file libsheepyObject.c.

Here is the call graph for this function:

◆ putsDoublePGF()

void putsDoublePGF ( double *  object)

Definition at line 843 of file libsheepyObject.c.

Here is the call graph for this function:

◆ putsIntGF()

void putsIntGF ( int64_t  object)

Definition at line 857 of file libsheepyObject.c.

Here is the call graph for this function:

◆ putsIntPGF()

void putsIntPGF ( int64_t *  object)

Definition at line 867 of file libsheepyObject.c.

Here is the call graph for this function:

◆ putsInt32GF()

void putsInt32GF ( int32_t  object)

Definition at line 880 of file libsheepyObject.c.

Here is the call graph for this function:

◆ putsInt32PGF()

void putsInt32PGF ( int32_t *  object)

Definition at line 890 of file libsheepyObject.c.

Here is the call graph for this function:

◆ putsUintGF()

void putsUintGF ( uint64_t  object)

Definition at line 903 of file libsheepyObject.c.

Here is the call graph for this function:

◆ putsUintPGF()

void putsUintPGF ( uint64_t *  object)

Definition at line 914 of file libsheepyObject.c.

Here is the call graph for this function:

◆ putsUint32GF()

void putsUint32GF ( uint32_t  object)

Definition at line 928 of file libsheepyObject.c.

Here is the call graph for this function:

◆ putsUint32PGF()

void putsUint32PGF ( uint32_t *  object)

Definition at line 938 of file libsheepyObject.c.

Here is the call graph for this function:

◆ putsSGF()

void putsSGF ( const char *  object)

Definition at line 951 of file libsheepyObject.c.

◆ putsListSGF()

void putsListSGF ( char **  object)

Definition at line 959 of file libsheepyObject.c.

Here is the call graph for this function:

◆ putsListCSGF()

void putsListCSGF ( const char **  object)

Definition at line 964 of file libsheepyObject.c.

Here is the call graph for this function:

◆ putsDictGF()

void putsDictGF ( smallDictt object)

Definition at line 969 of file libsheepyObject.c.

Here is the call graph for this function:

◆ putsJsonGF()

void putsJsonGF ( smallJsont object)

Definition at line 982 of file libsheepyObject.c.

Here is the call graph for this function:

◆ putsArrayGF()

void putsArrayGF ( smallArrayt object)

Definition at line 995 of file libsheepyObject.c.

Here is the call graph for this function:

◆ putsSmallBoolGF()

void putsSmallBoolGF ( smallBoolt object)

Definition at line 1008 of file libsheepyObject.c.

Here is the call graph for this function:

◆ putsSmallBytesGF()

void putsSmallBytesGF ( smallBytest object)

Definition at line 1021 of file libsheepyObject.c.

Here is the call graph for this function:

◆ putsSmallDoubleGF()

void putsSmallDoubleGF ( smallDoublet object)

Definition at line 1034 of file libsheepyObject.c.

Here is the call graph for this function:

◆ putsSmallIntGF()

void putsSmallIntGF ( smallIntt object)

Definition at line 1047 of file libsheepyObject.c.

Here is the call graph for this function:

◆ putsSmallStringGF()

void putsSmallStringGF ( smallStringt object)

Definition at line 1060 of file libsheepyObject.c.

Here is the call graph for this function:

◆ putsVoidGF()

void putsVoidGF ( void *  object)

Definition at line 1073 of file libsheepyObject.c.

◆ putsSmallContainerGF()

void putsSmallContainerGF ( smallContainert object)

Definition at line 1081 of file libsheepyObject.c.

Here is the call graph for this function:

◆ toStringOF()

char* toStringOF ( baset object)

convert data in obj to string

Definition at line 1095 of file libsheepyObject.c.

◆ toStringUndefinedGF()

char* toStringUndefinedGF ( undefinedt object)

Definition at line 1103 of file libsheepyObject.c.

◆ toStringBoolGF()

char* toStringBoolGF ( bool  object)

Definition at line 1111 of file libsheepyObject.c.

◆ toStringBoolPGF()

char* toStringBoolPGF ( bool *  object)

Definition at line 1121 of file libsheepyObject.c.

◆ toStringFloatGF()

char* toStringFloatGF ( float  object)

Definition at line 1134 of file libsheepyObject.c.

◆ toStringFloatPGF()

char* toStringFloatPGF ( float *  object)

Definition at line 1142 of file libsheepyObject.c.

◆ toStringDoubleGF()

char* toStringDoubleGF ( double  object)

Definition at line 1153 of file libsheepyObject.c.

◆ toStringDoublePGF()

char* toStringDoublePGF ( double *  object)

Definition at line 1161 of file libsheepyObject.c.

◆ toStringIntGF()

char* toStringIntGF ( int64_t  object)

Definition at line 1172 of file libsheepyObject.c.

Here is the call graph for this function:

◆ toStringIntPGF()

char* toStringIntPGF ( int64_t *  object)

Definition at line 1177 of file libsheepyObject.c.

Here is the call graph for this function:

◆ toStringInt32GF()

char* toStringInt32GF ( int32_t  object)

Definition at line 1185 of file libsheepyObject.c.

Here is the call graph for this function:

◆ toStringInt32PGF()

char* toStringInt32PGF ( int32_t *  object)

Definition at line 1190 of file libsheepyObject.c.

Here is the call graph for this function:

◆ toStringInt16GF()

char* toStringInt16GF ( int16_t  object)

Definition at line 1198 of file libsheepyObject.c.

Here is the call graph for this function:

◆ toStringInt16PGF()

char* toStringInt16PGF ( int16_t *  object)

Definition at line 1203 of file libsheepyObject.c.

Here is the call graph for this function:

◆ toStringUintGF()

char* toStringUintGF ( uint64_t  object)

Definition at line 1211 of file libsheepyObject.c.

Here is the call graph for this function:

◆ toStringUintPGF()

char* toStringUintPGF ( uint64_t *  object)

Definition at line 1217 of file libsheepyObject.c.

Here is the call graph for this function:

◆ toStringUint32GF()

char* toStringUint32GF ( uint32_t  object)

Definition at line 1226 of file libsheepyObject.c.

Here is the call graph for this function:

◆ toStringUint32PGF()

char* toStringUint32PGF ( uint32_t *  object)

Definition at line 1231 of file libsheepyObject.c.

Here is the call graph for this function:

◆ toStringUint16GF()

char* toStringUint16GF ( uint16_t  object)

Definition at line 1239 of file libsheepyObject.c.

Here is the call graph for this function:

◆ toStringUint16PGF()

char* toStringUint16PGF ( uint16_t *  object)

Definition at line 1244 of file libsheepyObject.c.

Here is the call graph for this function:

◆ toStringUint8GF()

char* toStringUint8GF ( uint8_t  object)

Definition at line 1252 of file libsheepyObject.c.

Here is the call graph for this function:

◆ toStringUint8PGF()

char* toStringUint8PGF ( uint8_t *  object)

Definition at line 1257 of file libsheepyObject.c.

Here is the call graph for this function:

◆ toStringCharGF()

char* toStringCharGF ( char  object)

Definition at line 1265 of file libsheepyObject.c.

◆ toStringSGF()

char* toStringSGF ( const char *  object)

Definition at line 1274 of file libsheepyObject.c.

Here is the call graph for this function:

◆ toStringListSGF()

char* toStringListSGF ( char **  object)

Definition at line 1279 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toStringListCSGF()

char* toStringListCSGF ( const char **  object)

Definition at line 1294 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toStringDictGF()

char* toStringDictGF ( smallDictt object)

Definition at line 1309 of file libsheepyObject.c.

◆ toStringArrayGF()

char* toStringArrayGF ( smallArrayt object)

Definition at line 1317 of file libsheepyObject.c.

◆ toStringSmallBoolGF()

char* toStringSmallBoolGF ( smallBoolt object)

Definition at line 1325 of file libsheepyObject.c.

◆ toStringSmallBytesGF()

char* toStringSmallBytesGF ( smallBytest object)

Definition at line 1333 of file libsheepyObject.c.

◆ toStringSmallDoubleGF()

char* toStringSmallDoubleGF ( smallDoublet object)

Definition at line 1341 of file libsheepyObject.c.

◆ toStringSmallIntGF()

char* toStringSmallIntGF ( smallIntt object)

Definition at line 1349 of file libsheepyObject.c.

◆ toStringSmallStringGF()

char* toStringSmallStringGF ( smallStringt object)

Definition at line 1357 of file libsheepyObject.c.

◆ toStringVoidGF()

char* toStringVoidGF ( void *  object)

Definition at line 1365 of file libsheepyObject.c.

◆ toStringSmallContainerGF()

char* toStringSmallContainerGF ( smallContainert object)

Definition at line 1373 of file libsheepyObject.c.

◆ toStringSmallJsonGF()

char* toStringSmallJsonGF ( smallJsont object)

Definition at line 1381 of file libsheepyObject.c.

◆ otos()

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.

◆ formatO()

smallStringt* formatO ( const char *  fmt,
  ... 
)

format string allocate and format string using asprintf

Parameters
formatstring and other parameters
Returns
allocated and formated string NULL when fmt is NULL or asprintf fails

Definition at line 1395 of file libsheepyObject.c.

Here is the call graph for this function:

◆ execO()

int execO ( const char *  cmd,
smallArrayt out,
smallArrayt *err  UNUSED 
)

Definition at line 1418 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ execSmallJsonO()

int execSmallJsonO ( smallJsont cmd,
smallArrayt out,
smallArrayt err 
)

Definition at line 1445 of file libsheepyObject.c.

Here is the call graph for this function:

◆ execSmallStringO()

int execSmallStringO ( smallStringt cmd,
smallArrayt out,
smallArrayt err 
)

Definition at line 1460 of file libsheepyObject.c.

Here is the call graph for this function:

◆ walkDirO()

smallArrayt* walkDirO ( const char *  dirPath)

list all files in a directory recursively the directories are not listed

Parameters
dirPathpath to directory
Returns
list of files empty list when the directory is not found

Definition at line 1468 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ walkDirSmallJsonO()

smallArrayt* walkDirSmallJsonO ( smallJsont dirPath)

Definition at line 1486 of file libsheepyObject.c.

Here is the call graph for this function:

◆ walkDirSmallStringO()

smallArrayt* walkDirSmallStringO ( smallStringt dirPath)

Definition at line 1501 of file libsheepyObject.c.

Here is the call graph for this function:

◆ walkADir()

internal void walkADir ( const char *  dirPath,
smallArrayt list 
)

Definition at line 1509 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ walkDirDirO()

smallArrayt* walkDirDirO ( const char *  dirPath)

list all directories in a directory recursively and sort the list

files are not listed

Parameters
dirPathpath to directory
Returns
list of directories empty list when the directory is not found

Definition at line 1545 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ walkDirDirSmallJsonO()

smallArrayt* walkDirDirSmallJsonO ( smallJsont dirPath)

Definition at line 1563 of file libsheepyObject.c.

Here is the call graph for this function:

◆ walkDirDirSmallStringO()

smallArrayt* walkDirDirSmallStringO ( smallStringt dirPath)

Definition at line 1578 of file libsheepyObject.c.

Here is the call graph for this function:

◆ walkADirDir()

internal void walkADirDir ( const char *  dirPath,
smallArrayt list 
)

Definition at line 1586 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readDirO()

smallArrayt* readDirO ( const char *  dirPath)

list files in a directory and sort the list

directories are not listed

Parameters
dirPathpath to directory
Returns
list of files, dirPath is not prepended to the file names empty list when the directory is not found

Definition at line 1620 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readDirSmallJsonO()

smallArrayt* readDirSmallJsonO ( smallJsont dirPath)

Definition at line 1664 of file libsheepyObject.c.

Here is the call graph for this function:

◆ readDirSmallStringO()

smallArrayt* readDirSmallStringO ( smallStringt dirPath)

Definition at line 1679 of file libsheepyObject.c.

Here is the call graph for this function:

◆ readDirDirO()

smallArrayt* readDirDirO ( const char *  dirPath)

list directories in a directory and sort the list

files are not listed

Parameters
dirPathpath to directory
Returns
list of directories, dirPath is not prepended to the names empty list when the directory is not found

Definition at line 1687 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readDirDirSmallJsonO()

smallArrayt* readDirDirSmallJsonO ( smallJsont dirPath)

Definition at line 1731 of file libsheepyObject.c.

Here is the call graph for this function:

◆ readDirDirSmallStringO()

smallArrayt* readDirDirSmallStringO ( smallStringt dirPath)

Definition at line 1746 of file libsheepyObject.c.

Here is the call graph for this function:

◆ walkDirAllO()

smallArrayt* walkDirAllO ( const char *  dirPath)

list all files and directories in a directory recursively the directories are listed

Parameters
dirPathpath to directory
Returns
list of files empty list when the directory is not found

Definition at line 1754 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ walkDirAllSmallJsonO()

smallArrayt* walkDirAllSmallJsonO ( smallJsont dirPath)

Definition at line 1772 of file libsheepyObject.c.

Here is the call graph for this function:

◆ walkDirAllSmallStringO()

smallArrayt* walkDirAllSmallStringO ( smallStringt dirPath)

Definition at line 1787 of file libsheepyObject.c.

Here is the call graph for this function:

◆ walkADirAll()

internal void walkADirAll ( const char *  dirPath,
smallArrayt list 
)

Definition at line 1795 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readDirAllO()

smallArrayt* readDirAllO ( const char *  dirPath)

list files in a directory and sort the list

directories are listed

Parameters
dirPathpath to directory
Returns
list of files, dirPath is not prepended to the file names empty list when the directory is not found

Definition at line 1830 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readDirAllSmallJsonO()

smallArrayt* readDirAllSmallJsonO ( smallJsont dirPath)

Definition at line 1872 of file libsheepyObject.c.

Here is the call graph for this function:

◆ readDirAllSmallStringO()

smallArrayt* readDirAllSmallStringO ( smallStringt dirPath)

Definition at line 1887 of file libsheepyObject.c.

Here is the call graph for this function:

◆ getModificationTimeJO()

time_t getModificationTimeJO ( smallJsont path)

get modification time for path

Parameters
path
Returns
modification time 0 when an error occured

Definition at line 1895 of file libsheepyObject.c.

Here is the call graph for this function:

◆ getModificationTimeO()

time_t getModificationTimeO ( smallStringt path)

Definition at line 1912 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setModificationTimeJO()

int setModificationTimeJO ( smallJsont path,
time_t  mtime 
)

set modification time for path

Parameters
path
mtime(for example, from the getModificationTime function)
Returns
1 success 0 when an error occured

Definition at line 1924 of file libsheepyObject.c.

Here is the call graph for this function:

◆ setModificationTimeO()

int setModificationTimeO ( smallStringt path,
time_t  mtime 
)

Definition at line 1941 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalModificationTimesJO()

bool equalModificationTimesJO ( smallJsont path1,
smallJsont path2 
)

compare modification times for path1 and path2

Parameters
path1
path2
Returns
true when mtime is equal for path1 and path2 false when mtime is different for path1 and path2 or when there is an error

Definition at line 1953 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalModificationTimesSJO()

bool equalModificationTimesSJO ( const char *  path1,
smallJsont path2 
)

Definition at line 1976 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalModificationTimesJOS()

bool equalModificationTimesJOS ( smallJsont path1,
const char *  path2 
)

Definition at line 1993 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalModificationTimesJOO()

bool equalModificationTimesJOO ( smallJsont path1,
smallStringt path2 
)

Definition at line 2010 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalModificationTimesOJO()

bool equalModificationTimesOJO ( smallStringt path1,
smallJsont path2 
)

Definition at line 2027 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalModificationTimesO()

bool equalModificationTimesO ( smallStringt path1,
smallStringt path2 
)

Definition at line 2044 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalModificationTimesSO()

bool equalModificationTimesSO ( const char *  path1,
smallStringt path2 
)

Definition at line 2061 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalModificationTimesOS()

bool equalModificationTimesOS ( smallStringt path1,
const char *  path2 
)

Definition at line 2071 of file libsheepyObject.c.

Here is the call graph for this function:

◆ timeToJO()

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)

Parameters
unixtime to convert
Returns
string representing the unix time

Definition at line 2081 of file libsheepyObject.c.

Here is the call graph for this function:

◆ timeToSO()

smallStringt* timeToSO ( const time_t  t)

Definition at line 2094 of file libsheepyObject.c.

Here is the call graph for this function:

◆ shDirnameJO()

smallJsont* shDirnameJO ( smallJsont path)

sheepy dirname

Parameters
path
Returns
path without basename (last item in the path) "./" when path is blank or when there is only one item in the path NULL when path is NULL

Definition at line 2105 of file libsheepyObject.c.

Here is the call graph for this function:

◆ shDirnameO()

smallStringt* shDirnameO ( smallStringt path)

Definition at line 2125 of file libsheepyObject.c.

Here is the call graph for this function:

◆ expandHomeJO()

smallJsont* expandHomeJO ( smallJsont path)

expands ~/ ($HOME) or ~USER
duplicate and expand path.

Parameters
pathstring
Returns
path: modified path
NULL error

Definition at line 2155 of file libsheepyObject.c.

Here is the call graph for this function:

◆ expandHomeO()

smallStringt* expandHomeO ( smallStringt path)

Definition at line 2189 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ normalizePathJO()

smallJsont* normalizePathJO ( smallJsont path)

normalize path

remove unecessary /, .. and . leading / is kept leading . is removed

'/../' becomes '/'

Parameters
path
Returns
path: modified path NULL when path is NULL

Definition at line 2236 of file libsheepyObject.c.

Here is the call graph for this function:

◆ normalizePathO()

smallStringt* normalizePathO ( smallStringt path)

Definition at line 2254 of file libsheepyObject.c.

Here is the call graph for this function:

◆ getCwdJO()

smallJsont* getCwdJO ( void  )

get current working directory

Returns
current path

Definition at line 2340 of file libsheepyObject.c.

Here is the call graph for this function:

◆ getCwdO()

smallStringt* getCwdO ( void  )

Definition at line 2357 of file libsheepyObject.c.

Here is the call graph for this function:

◆ chDirJO()

int chDirJO ( smallJsont path)

change directory

Parameters
path
Returns
1 success 0 error

Definition at line 2374 of file libsheepyObject.c.

Here is the call graph for this function:

◆ chDirO()

int chDirO ( smallStringt path)

Definition at line 2389 of file libsheepyObject.c.

Here is the call graph for this function:

◆ isDirJO()

bool isDirJO ( smallJsont path)

is directory

Parameters
path
Returns
true when path is a directory false path is not a directory, filePath is NULL or empty string

Definition at line 2404 of file libsheepyObject.c.

Here is the call graph for this function:

◆ isDirO()

bool isDirO ( smallStringt path)

Definition at line 2419 of file libsheepyObject.c.

◆ isLinkJO()

bool isLinkJO ( smallJsont path)

is symbolic link

Parameters
path
Returns
true when path is a symbolic link false path is not a symbolic link, filePath is NULL or empty string

Definition at line 2437 of file libsheepyObject.c.

Here is the call graph for this function:

◆ isLinkO()

bool isLinkO ( smallStringt path)

Definition at line 2452 of file libsheepyObject.c.

◆ fileExistsJO()

bool fileExistsJO ( smallJsont filePath)

detect files and directories

Parameters
filePathpath to file or directory
Returns
true exists false non existant false filePath is NULL or empty string

Definition at line 2470 of file libsheepyObject.c.

Here is the call graph for this function:

◆ fileExistsO()

bool fileExistsO ( smallStringt filePath)

Definition at line 2485 of file libsheepyObject.c.

◆ fileChmodJO()

bool fileChmodJO ( smallJsont filePath,
mode_t  mode 
)

like chmod in stdlibc but return true/false

Parameters
filePathpath to file or directory mode: permissions
Returns
true success false filePath doesnt exist, not enough permissions... false filePath is NULL or empty string

Definition at line 2499 of file libsheepyObject.c.

Here is the call graph for this function:

◆ fileChmodO()

bool fileChmodO ( smallStringt filePath,
mode_t  mode 
)

Definition at line 2514 of file libsheepyObject.c.

Here is the call graph for this function:

◆ fileSizeJO()

ssize_t fileSizeJO ( smallJsont filePath)

get file size

Parameters
filePathpath to file
Returns
ssize_t >= 0 size -1 an error occured or filePath is NULL or empty string

Definition at line 2529 of file libsheepyObject.c.

Here is the call graph for this function:

◆ fileSizeO()

ssize_t fileSizeO ( smallStringt filePath)

Definition at line 2544 of file libsheepyObject.c.

Here is the call graph for this function:

◆ readFileToNewG()

void* readFileToNewG ( void *none  UNUSED,
const char *  filePath 
)

call readFileToS (for readFileG)

Definition at line 2567 of file libsheepyObject.c.

Here is the call graph for this function:

◆ readStreamToNewG()

void* readStreamToNewG ( void *none  UNUSED,
FILE *  fp 
)

Definition at line 2572 of file libsheepyObject.c.

Here is the call graph for this function:

◆ readFileToG()

char* readFileToG ( char **  string,
const char *  filePath 
)

Definition at line 2577 of file libsheepyObject.c.

Here is the call graph for this function:

◆ readStreamToG()

char* readStreamToG ( char **  string,
FILE *  fp 
)

Definition at line 2586 of file libsheepyObject.c.

Here is the call graph for this function:

◆ readTextSmallJsonNotSupported()

void readTextSmallJsonNotSupported ( char ***self  UNUSED,
smallJsont *path  UNUSED 
)

Definition at line 2595 of file libsheepyObject.c.

◆ readTextSmallStringNotSupported()

void readTextSmallStringNotSupported ( char ***self  UNUSED,
smallStringt *path  UNUSED 
)

Definition at line 2602 of file libsheepyObject.c.

◆ readToFileSmallJsonNotSupported()

void readToFileSmallJsonNotSupported ( void *self  UNUSED,
smallJsont *path  UNUSED 
)

Definition at line 2609 of file libsheepyObject.c.

◆ readToFileSmallStringNotSupported()

void readToFileSmallStringNotSupported ( void *self  UNUSED,
smallStringt *path  UNUSED 
)

Definition at line 2616 of file libsheepyObject.c.

◆ writeFileFromG()

int writeFileFromG ( const char *  string,
const char *  filePath 
)

call writeFileS (for writeFileG) (swaps parameters)

Definition at line 2623 of file libsheepyObject.c.

Here is the call graph for this function:

◆ writeStreamFromG()

int writeStreamFromG ( const char *  string,
FILE *  fp 
)

Definition at line 2628 of file libsheepyObject.c.

Here is the call graph for this function:

◆ writeTextSmallJsonNotSupported()

int writeTextSmallJsonNotSupported ( char **self  UNUSED,
smallJsont *path  UNUSED 
)

Definition at line 2633 of file libsheepyObject.c.

◆ writeTextSmallStringNotSupported()

int writeTextSmallStringNotSupported ( char **self  UNUSED,
smallStringt *path  UNUSED 
)

Definition at line 2641 of file libsheepyObject.c.

◆ writeTextCCSmallJsonNotSupported()

int writeTextCCSmallJsonNotSupported ( const char **self  UNUSED,
smallJsont *path  UNUSED 
)

Definition at line 2649 of file libsheepyObject.c.

◆ writeTextCCSmallStringNotSupported()

int writeTextCCSmallStringNotSupported ( const char **self  UNUSED,
smallStringt *path  UNUSED 
)

Definition at line 2657 of file libsheepyObject.c.

◆ readTextSG()

char** readTextSG ( char ***  list,
const char *  filePath 
)

call readText (for readFileG)

Definition at line 2665 of file libsheepyObject.c.

Here is the call graph for this function:

◆ readTextStreamG()

char** readTextStreamG ( char ***  list,
FILE *  fp 
)

Definition at line 2674 of file libsheepyObject.c.

Here is the call graph for this function:

◆ writeTextSG()

bool writeTextSG ( char **  list,
const char *  filePath 
)

call writeText (for writeFileG) (swaps parameters)

Definition at line 2683 of file libsheepyObject.c.

Here is the call graph for this function:

◆ writeTextStreamG()

bool writeTextStreamG ( char **  list,
FILE *  fp 
)

Definition at line 2688 of file libsheepyObject.c.

Here is the call graph for this function:

◆ writeTextCG()

bool writeTextCG ( const char **  list,
const char *  filePath 
)

Definition at line 2693 of file libsheepyObject.c.

Here is the call graph for this function:

◆ writeTextStreamCG()

bool writeTextStreamCG ( const char **  list,
FILE *  fp 
)

Definition at line 2698 of file libsheepyObject.c.

Here is the call graph for this function:

◆ appendFileSG()

bool appendFileSG ( const char *  string,
const char *  filePath 
)

call appendFileS (for appendFileG) (swaps parameters)

Definition at line 2703 of file libsheepyObject.c.

Here is the call graph for this function:

◆ appendTextSG()

bool appendTextSG ( char **  list,
const char *  filePath 
)

call appendText (for appendFileG) (swaps parameters)

Definition at line 2708 of file libsheepyObject.c.

Here is the call graph for this function:

◆ appendTextCG()

bool appendTextCG ( const char **  list,
const char *  filePath 
)

Definition at line 2713 of file libsheepyObject.c.

Here is the call graph for this function:

◆ mkdirParentsSmallJsonO()

int mkdirParentsSmallJsonO ( smallJsont path)

recursive mkdir

Parameters
path
Returns
1 success 0 when path is NULL or empty

Definition at line 2718 of file libsheepyObject.c.

Here is the call graph for this function:

◆ mkdirParentsO()

int mkdirParentsO ( smallStringt path)

Definition at line 2733 of file libsheepyObject.c.

Here is the call graph for this function:

◆ rmAllSmallJsonO()

int rmAllSmallJsonO ( smallJsont path)

remove all delete recursively files and directories

Parameters
path
Returns
1 success 0 when path is NULL or empty

Definition at line 2743 of file libsheepyObject.c.

Here is the call graph for this function:

◆ rmAllO()

int rmAllO ( smallStringt path)

Definition at line 2758 of file libsheepyObject.c.

Here is the call graph for this function:

◆ copyO()

int copyO ( smallStringt src,
smallStringt dst 
)

copy files recursively

Parameters
srcsource path dst destination path
Returns
1 success 0 when src or dst are NULL or empty

Definition at line 2768 of file libsheepyObject.c.

Here is the call graph for this function:

◆ copySSmallJsonO()

int copySSmallJsonO ( const char *  src,
smallJsont dst 
)

Definition at line 2778 of file libsheepyObject.c.

Here is the call graph for this function:

◆ copySO()

int copySO ( const char *  src,
smallStringt dst 
)

Definition at line 2801 of file libsheepyObject.c.

Here is the call graph for this function:

◆ copySmallJsonOS()

int copySmallJsonOS ( smallJsont src,
const char *  dst 
)

Definition at line 2811 of file libsheepyObject.c.

Here is the call graph for this function:

◆ copySmallJsonSmallJson()

int copySmallJsonSmallJson ( smallJsont src,
smallJsont dst 
)

Definition at line 2834 of file libsheepyObject.c.

◆ copySmallJsonO()

int copySmallJsonO ( smallJsont src,
smallStringt dst 
)

Definition at line 2867 of file libsheepyObject.c.

◆ copyOS()

int copyOS ( smallStringt src,
const char *  dst 
)

Definition at line 2894 of file libsheepyObject.c.

Here is the call graph for this function:

◆ copyOSmallJson()

int copyOSmallJson ( smallStringt src,
smallJsont dst 
)

Definition at line 2904 of file libsheepyObject.c.

◆ renameSmallJsonO()

int renameSmallJsonO ( smallJsont src,
smallStringt dst 
)

rename file

Parameters
srcsource path dst destination path
Returns
1 success 0 when src or dst are NULL or empty

Definition at line 2931 of file libsheepyObject.c.

◆ renameSmallJsonSmallJson()

int renameSmallJsonSmallJson ( smallJsont src,
smallJsont dst 
)

Definition at line 2958 of file libsheepyObject.c.

◆ renameSmallJsonOS()

int renameSmallJsonOS ( smallJsont src,
const char *  dst 
)

Definition at line 2991 of file libsheepyObject.c.

Here is the call graph for this function:

◆ renameO()

int renameO ( smallStringt src,
smallStringt dst 
)

Definition at line 3014 of file libsheepyObject.c.

Here is the call graph for this function:

◆ renameOSmallJson()

int renameOSmallJson ( smallStringt src,
smallJsont dst 
)

Definition at line 3024 of file libsheepyObject.c.

◆ renameSSmallJsonO()

int renameSSmallJsonO ( const char *  src,
smallJsont dst 
)

Definition at line 3051 of file libsheepyObject.c.

◆ renameSO()

int renameSO ( const char *  src,
smallStringt dst 
)

Definition at line 3074 of file libsheepyObject.c.

Here is the call graph for this function:

◆ renameOS()

int renameOS ( smallStringt src,
const char *  dst 
)

Definition at line 3082 of file libsheepyObject.c.

Here is the call graph for this function:

◆ moveSmallJsonO()

int moveSmallJsonO ( smallJsont src,
smallStringt dst 
)

move files recursively

copy and then delete source

Parameters
srcsource path dst destination path
Returns
1 success 0 when src or dst are NULL or empty

Definition at line 3090 of file libsheepyObject.c.

◆ moveSmallJsonSmallJson()

int moveSmallJsonSmallJson ( smallJsont src,
smallJsont dst 
)

Definition at line 3117 of file libsheepyObject.c.

◆ moveSmallJsonOS()

int moveSmallJsonOS ( smallJsont src,
const char *  dst 
)

Definition at line 3150 of file libsheepyObject.c.

Here is the call graph for this function:

◆ moveO()

int moveO ( smallStringt src,
smallStringt dst 
)

Definition at line 3173 of file libsheepyObject.c.

Here is the call graph for this function:

◆ moveOSmallJson()

int moveOSmallJson ( smallStringt src,
smallJsont dst 
)

Definition at line 3183 of file libsheepyObject.c.

◆ moveSSmallJsonO()

int moveSSmallJsonO ( const char *  src,
smallJsont dst 
)

Definition at line 3210 of file libsheepyObject.c.

◆ moveSO()

int moveSO ( const char *  src,
smallStringt dst 
)

Definition at line 3233 of file libsheepyObject.c.

Here is the call graph for this function:

◆ moveOS()

int moveOS ( smallStringt src,
const char *  dst 
)

Definition at line 3241 of file libsheepyObject.c.

Here is the call graph for this function:

◆ randomSmallJsonO()

smallJsont* randomSmallJsonO ( uint64_t  length)

random string

allocate and generate a random string in charset "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-,"

Parameters
stringlength
Returns
random string NULL error opening /dev/urandom, malloc failed, fread /dev/urandom failed, length is 0

Definition at line 3249 of file libsheepyObject.c.

Here is the call graph for this function:

◆ randomSO()

smallStringt* randomSO ( uint64_t  length)

Definition at line 3265 of file libsheepyObject.c.

Here is the call graph for this function:

◆ randomAlphaNumSmallJsonO()

smallJsont* randomAlphaNumSmallJsonO ( uint64_t  length)

random alpha numerical string

allocate and generate a random string in charset "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"

Parameters
stringlength
Returns
random string NULL error opening /dev/urandom, malloc failed, fread /dev/urandom failed, length is 0

Definition at line 3281 of file libsheepyObject.c.

Here is the call graph for this function:

◆ randomAlphaNumSO()

smallStringt* randomAlphaNumSO ( uint64_t  length)

Definition at line 3297 of file libsheepyObject.c.

Here is the call graph for this function:

◆ readSmallJsonO()

smallJsont* readSmallJsonO ( void  )

read String read user input (one line) as a string

Returns
line from the user NULL when buffer allocation failed

Definition at line 3313 of file libsheepyObject.c.

Here is the call graph for this function:

◆ readO()

smallStringt* readO ( void  )

Definition at line 3330 of file libsheepyObject.c.

Here is the call graph for this function:

◆ readLineSmallJsonO()

smallJsont* readLineSmallJsonO ( FILE *  fp)

readLine from file stream the fist new line is converted to 0

Parameters
fpfile stream
Returns
one line in a string empty string when stream is empty NULL when the stream is NULL or when there is an error reading the stream

Definition at line 3377 of file libsheepyObject.c.

Here is the call graph for this function:

◆ readLineO()

smallStringt* readLineO ( FILE *  fp)

Definition at line 3392 of file libsheepyObject.c.

Here is the call graph for this function:

◆ intToSG()

char* intToSG ( char *retType  UNUSED,
int64_t  n 
)

call intToS for intToG

Definition at line 3413 of file libsheepyObject.c.

Here is the call graph for this function:

◆ doubleToSG()

char* doubleToSG ( char *retType  UNUSED,
double  n 
)

call doubleToS for doubleToG

Definition at line 3418 of file libsheepyObject.c.

Here is the call graph for this function:

◆ iListUniqG()

char** iListUniqG ( char ***  list,
int dum  UNUSED 
)

call iListUniqS for uniqG

Definition at line 3423 of file libsheepyObject.c.

Here is the call graph for this function:

◆ iicListUniqG()

char** iicListUniqG ( char ***  list,
int dum  UNUSED 
)

call iicListUniqS for icUniqG

Definition at line 3428 of file libsheepyObject.c.

Here is the call graph for this function:

◆ listFromArrayG()

char** listFromArrayG ( char **retType  UNUSED,
char **  array,
size_t  size 
)

call listFromArrayS for fromArrayG

Definition at line 3433 of file libsheepyObject.c.

Here is the call graph for this function:

◆ listFromCArrayG()

char** listFromCArrayG ( char **retType  UNUSED,
const char **  array,
size_t  size 
)

Definition at line 3438 of file libsheepyObject.c.

Here is the call graph for this function:

◆ getSG()

char getSG ( const char *  string,
int retType  UNUSED,
int64_t  index 
)

call getS for getG

Definition at line 3443 of file libsheepyObject.c.

Here is the call graph for this function:

◆ listGetG()

char* listGetG ( char **  list,
int retType  UNUSED,
int64_t  index 
)

call listGetS for getG

Definition at line 3448 of file libsheepyObject.c.

Here is the call graph for this function:

◆ listGetCG()

char* listGetCG ( const char **  list,
int retType  UNUSED,
int64_t  index 
)

Definition at line 3453 of file libsheepyObject.c.

Here is the call graph for this function:

◆ iListGetG()

char* iListGetG ( char **  list,
int retType  UNUSED,
int64_t  index 
)

call iListGetS for getG

Definition at line 3458 of file libsheepyObject.c.

Here is the call graph for this function:

◆ iListGetCG()

const char* iListGetCG ( const char **  list,
int retType  UNUSED,
int64_t  index 
)

Definition at line 3463 of file libsheepyObject.c.

Here is the call graph for this function:

◆ listPopG()

char* listPopG ( char ***  list,
int retType  UNUSED 
)

call listPopS for popG

Definition at line 3468 of file libsheepyObject.c.

Here is the call graph for this function:

◆ listDequeueG()

char* listDequeueG ( char ***  list,
int retType  UNUSED 
)

call listDequeueS for dequeueG

Definition at line 3473 of file libsheepyObject.c.

Here is the call graph for this function:

◆ listDupCG()

char** listDupCG ( const char **  list)

Definition at line 3478 of file libsheepyObject.c.

Here is the call graph for this function:

◆ listEqCG()

bool listEqCG ( char **  list1,
const char **  list2 
)

Definition at line 3483 of file libsheepyObject.c.

Here is the call graph for this function:

◆ listEqC1G()

bool listEqC1G ( const char **  list1,
char **  list2 
)

Definition at line 3488 of file libsheepyObject.c.

Here is the call graph for this function:

◆ listEqCCG()

bool listEqCCG ( const char **  list1,
const char **  list2 
)

Definition at line 3493 of file libsheepyObject.c.

Here is the call graph for this function:

◆ icListEqCG()

bool icListEqCG ( char **  list1,
const char **  list2 
)

Definition at line 3498 of file libsheepyObject.c.

Here is the call graph for this function:

◆ icListEqC1G()

bool icListEqC1G ( const char **  list1,
char **  list2 
)

Definition at line 3503 of file libsheepyObject.c.

Here is the call graph for this function:

◆ icListEqCCG()

bool icListEqCCG ( const char **  list1,
const char **  list2 
)

Definition at line 3508 of file libsheepyObject.c.

Here is the call graph for this function:

◆ listLengthCG()

size_t listLengthCG ( const char **  list)

Definition at line 3513 of file libsheepyObject.c.

Here is the call graph for this function:

◆ listIndexOfCG()

ssize_t listIndexOfCG ( const char **  list,
const char *  string 
)

Definition at line 3518 of file libsheepyObject.c.

Here is the call graph for this function:

◆ listIndexOfCharCG()

ssize_t listIndexOfCharCG ( const char **  list,
char  c 
)

Definition at line 3523 of file libsheepyObject.c.

Here is the call graph for this function:

◆ icListIndexOfCG()

ssize_t icListIndexOfCG ( const char **  list,
const char *  string 
)

Definition at line 3528 of file libsheepyObject.c.

Here is the call graph for this function:

◆ icListIndexOfCharCG()

ssize_t icListIndexOfCharCG ( const char **  list,
char  c 
)

Definition at line 3533 of file libsheepyObject.c.

Here is the call graph for this function:

◆ listHasCharCG()

bool listHasCharCG ( const char **  list,
char  c 
)

Definition at line 3538 of file libsheepyObject.c.

Here is the call graph for this function:

◆ listHasCG()

bool listHasCG ( const char **  list,
const char *  string 
)

Definition at line 3543 of file libsheepyObject.c.

Here is the call graph for this function:

◆ icListHasCG()

bool icListHasCG ( const char **  list,
const char *  string 
)

Definition at line 3548 of file libsheepyObject.c.

Here is the call graph for this function:

◆ icListHasCharCG()

bool icListHasCharCG ( const char **  list,
char  c 
)

Definition at line 3553 of file libsheepyObject.c.

Here is the call graph for this function:

◆ joinCG()

char* joinCG ( const char **  list,
const char *  delim 
)

Definition at line 3558 of file libsheepyObject.c.

Here is the call graph for this function:

◆ joinCharCG()

char* joinCharCG ( const char **  list,
char  delim 
)

Definition at line 3563 of file libsheepyObject.c.

Here is the call graph for this function:

◆ listAddCG()

char** listAddCG ( char **  list1,
const char **  list2 
)

Definition at line 3569 of file libsheepyObject.c.

Here is the call graph for this function:

◆ listPrintCG()

int listPrintCG ( const char **  list)

Definition at line 3574 of file libsheepyObject.c.

Here is the call graph for this function:

◆ eqCharChar()

bool eqCharChar ( char  c,
char  value 
)

equality functions

Definition at line 3579 of file libsheepyObject.c.

◆ equalChaOG()

bool equalChaOG ( char  c,
baset value 
)

Definition at line 3584 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equalChaBoolG()

bool equalChaBoolG ( char c  UNUSED,
bool value  UNUSED 
)

Definition at line 3590 of file libsheepyObject.c.

◆ equalChaDoubleG()

bool equalChaDoubleG ( char  c,
double  value 
)

Definition at line 3595 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equalChaInt64G()

bool equalChaInt64G ( char  c,
int64_t  value 
)

Definition at line 3601 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equalChaInt32G()

bool equalChaInt32G ( char  c,
int32_t  value 
)

Definition at line 3607 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equalChaUint32G()

bool equalChaUint32G ( char  c,
uint32_t  value 
)

Definition at line 3613 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equalChaUint64G()

bool equalChaUint64G ( char  c,
uint64_t  value 
)

Definition at line 3619 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equalChaSmallBytesG()

bool equalChaSmallBytesG ( char  c,
smallBytest value 
)

Definition at line 3625 of file libsheepyObject.c.

◆ equalChaSmallDoubleG()

bool equalChaSmallDoubleG ( char  c,
smallDoublet value 
)

Definition at line 3636 of file libsheepyObject.c.

◆ equalChaSmallIntG()

bool equalChaSmallIntG ( char  c,
smallIntt value 
)

Definition at line 3646 of file libsheepyObject.c.

◆ equalChaSmallJsonG()

bool equalChaSmallJsonG ( char  c,
smallJsont value 
)

Definition at line 3656 of file libsheepyObject.c.

◆ equalChaSmallStringG()

bool equalChaSmallStringG ( char  c,
smallStringt value 
)

Definition at line 3676 of file libsheepyObject.c.

◆ equalCharOG()

bool equalCharOG ( const char *  s,
baset value 
)

Definition at line 3687 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equalCharBoolG()

bool equalCharBoolG ( const char *  s,
bool  value 
)

Definition at line 3699 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalCharDoubleG()

bool equalCharDoubleG ( const char *  s,
double  value 
)

Definition at line 3704 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalCharInt64G()

bool equalCharInt64G ( const char *  s,
int64_t  value 
)

Definition at line 3709 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalCharInt32G()

bool equalCharInt32G ( const char *  s,
int32_t  value 
)

Definition at line 3714 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalCharUint32G()

bool equalCharUint32G ( const char *  s,
uint32_t  value 
)

Definition at line 3719 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalCharUint64G()

bool equalCharUint64G ( const char *  s,
uint64_t  value 
)

Definition at line 3724 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalCharSmallBoolG()

bool equalCharSmallBoolG ( const char *  s,
smallBoolt value 
)

Definition at line 3729 of file libsheepyObject.c.

◆ equalCharSmallBytesG()

bool equalCharSmallBytesG ( const char *  s,
smallBytest value 
)

Definition at line 3737 of file libsheepyObject.c.

◆ equalCharSmallDoubleG()

bool equalCharSmallDoubleG ( const char *  s,
smallDoublet value 
)

Definition at line 3745 of file libsheepyObject.c.

◆ equalCharSmallIntG()

bool equalCharSmallIntG ( const char *  s,
smallIntt value 
)

Definition at line 3753 of file libsheepyObject.c.

◆ equalCharPSmallJsonG()

bool equalCharPSmallJsonG ( const char *  s,
smallJsont value 
)

Definition at line 3761 of file libsheepyObject.c.

◆ equalCharPSmallStringG()

bool equalCharPSmallStringG ( const char *  s,
smallStringt value 
)

Definition at line 3780 of file libsheepyObject.c.

◆ equalArrayOG()

bool equalArrayOG ( char **  p1,
baset p2 
)

Definition at line 3789 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equalCArrayOG()

bool equalCArrayOG ( const char **  p1,
baset p2 
)

Definition at line 3819 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equalArraySmallJsonG()

bool equalArraySmallJsonG ( char **  p1,
smallJsont p2 
)

Definition at line 3849 of file libsheepyObject.c.

◆ equalArraySmallArrayG()

bool equalArraySmallArrayG ( char **  p1,
smallArrayt p2 
)

Definition at line 3868 of file libsheepyObject.c.

◆ equalCArraySmallJsonG()

bool equalCArraySmallJsonG ( const char **  p1,
smallJsont p2 
)

Definition at line 3881 of file libsheepyObject.c.

◆ equalCArraySmallArrayG()

bool equalCArraySmallArrayG ( const char **  p1,
smallArrayt p2 
)

Definition at line 3900 of file libsheepyObject.c.

◆ equalOCharG()

bool equalOCharG ( baset p1,
const char *  p2 
)

Definition at line 3913 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalOChaG()

bool equalOChaG ( baset p1,
char  p2 
)

Definition at line 3918 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalOArrayG()

bool equalOArrayG ( baset p1,
char **  p2 
)

Definition at line 3923 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalOCArrayG()

bool equalOCArrayG ( baset p1,
const char **  p2 
)

Definition at line 3928 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalOOG()

bool equalOOG ( baset p1,
baset p2 
)

Definition at line 3933 of file libsheepyObject.c.

◆ equalOBoolG()

bool equalOBoolG ( baset p1,
bool  p2 
)

Definition at line 3952 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalODoubleG()

bool equalODoubleG ( baset p1,
double  p2 
)

Definition at line 3957 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalOInt64G()

bool equalOInt64G ( baset p1,
int64_t  p2 
)

Definition at line 3962 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalOInt32G()

bool equalOInt32G ( baset p1,
int32_t  p2 
)

Definition at line 3967 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalOUint32G()

bool equalOUint32G ( baset p1,
uint32_t  p2 
)

Definition at line 3972 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalOUint64G()

bool equalOUint64G ( baset p1,
uint64_t  p2 
)

Definition at line 3977 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalOSmallArrayG()

bool equalOSmallArrayG ( baset p1,
smallArrayt p2 
)

Definition at line 3982 of file libsheepyObject.c.

◆ equalOSmallBoolG()

bool equalOSmallBoolG ( baset p1,
smallBoolt p2 
)

Definition at line 3995 of file libsheepyObject.c.

◆ equalOSmallBytesG()

bool equalOSmallBytesG ( baset p1,
smallBytest p2 
)

Definition at line 4008 of file libsheepyObject.c.

◆ equalOSmallDoubleG()

bool equalOSmallDoubleG ( baset p1,
smallDoublet p2 
)

Definition at line 4021 of file libsheepyObject.c.

◆ equalOSmallDictG()

bool equalOSmallDictG ( baset p1,
smallDictt p2 
)

Definition at line 4034 of file libsheepyObject.c.

◆ equalOSmallIntG()

bool equalOSmallIntG ( baset p1,
smallIntt p2 
)

Definition at line 4047 of file libsheepyObject.c.

◆ equalOSmallJsonG()

bool equalOSmallJsonG ( baset p1,
smallJsont p2 
)

Definition at line 4060 of file libsheepyObject.c.

◆ equalOSmallStringG()

bool equalOSmallStringG ( baset p1,
smallStringt p2 
)

Definition at line 4073 of file libsheepyObject.c.

◆ equalBoolChaG()

bool equalBoolChaG ( bool p1  UNUSED,
char p2  UNUSED 
)

Definition at line 4090 of file libsheepyObject.c.

◆ equalBoolCharG()

bool equalBoolCharG ( bool  p1,
const char *  p2 
)

Definition at line 4095 of file libsheepyObject.c.

Here is the caller graph for this function:

◆ equalBoolOG()

bool equalBoolOG ( bool  p1,
baset p2 
)

Definition at line 4110 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equalBoolFG()

bool equalBoolFG ( bool  p1,
bool  p2 
)

Definition at line 4130 of file libsheepyObject.c.

◆ equalBoolDoubleG()

bool equalBoolDoubleG ( bool  p1,
double  p2 
)

Definition at line 4135 of file libsheepyObject.c.

◆ equalBoolInt64G()

bool equalBoolInt64G ( bool  p1,
int64_t  p2 
)

Definition at line 4140 of file libsheepyObject.c.

◆ equalBoolInt32G()

bool equalBoolInt32G ( bool  p1,
int32_t  p2 
)

Definition at line 4145 of file libsheepyObject.c.

◆ equalBoolUint32G()

bool equalBoolUint32G ( bool  p1,
uint32_t  p2 
)

Definition at line 4150 of file libsheepyObject.c.

◆ equalBoolUint64G()

bool equalBoolUint64G ( bool  p1,
uint64_t  p2 
)

Definition at line 4155 of file libsheepyObject.c.

◆ equalBoolSmallBoolG()

bool equalBoolSmallBoolG ( bool  p1,
smallBoolt p2 
)

Definition at line 4160 of file libsheepyObject.c.

◆ equalBoolSmallBytesG()

bool equalBoolSmallBytesG ( bool  p1,
smallBytest p2 
)

Definition at line 4169 of file libsheepyObject.c.

◆ equalBoolSmallDoubleG()

bool equalBoolSmallDoubleG ( bool  p1,
smallDoublet p2 
)

Definition at line 4184 of file libsheepyObject.c.

◆ equalBoolSmallIntG()

bool equalBoolSmallIntG ( bool  p1,
smallIntt p2 
)

Definition at line 4193 of file libsheepyObject.c.

◆ equalBoolSmallJsonG()

bool equalBoolSmallJsonG ( bool  p1,
smallJsont p2 
)

Definition at line 4202 of file libsheepyObject.c.

◆ equalBoolSmallStringG()

bool equalBoolSmallStringG ( bool  p1,
smallStringt p2 
)

Definition at line 4215 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalDoubleChaG()

bool equalDoubleChaG ( double  p1,
char  p2 
)

Definition at line 4231 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalDoubleCharG()

bool equalDoubleCharG ( double  p1,
const char *  p2 
)

Definition at line 4236 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equalDoubleBaseG()

bool equalDoubleBaseG ( double  p1,
baset p2 
)

Definition at line 4251 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equalDoubleBoolG()

bool equalDoubleBoolG ( double  p1,
bool  p2 
)

Definition at line 4277 of file libsheepyObject.c.

◆ equalDoubleFG()

bool equalDoubleFG ( double  p1,
double  p2 
)

Definition at line 4282 of file libsheepyObject.c.

◆ equalDoubleInt64G()

bool equalDoubleInt64G ( double  p1,
int64_t  p2 
)

Definition at line 4287 of file libsheepyObject.c.

◆ equalDoubleInt32G()

bool equalDoubleInt32G ( double  p1,
int32_t  p2 
)

Definition at line 4292 of file libsheepyObject.c.

◆ equalDoubleUint32G()

bool equalDoubleUint32G ( double  p1,
uint32_t  p2 
)

Definition at line 4297 of file libsheepyObject.c.

◆ equalDoubleUint64G()

bool equalDoubleUint64G ( double  p1,
uint64_t  p2 
)

Definition at line 4302 of file libsheepyObject.c.

◆ equalDoubleSmallBoolG()

bool equalDoubleSmallBoolG ( double  p1,
smallBoolt p2 
)

Definition at line 4307 of file libsheepyObject.c.

◆ equalDoubleSmallBytesG()

bool equalDoubleSmallBytesG ( double  p1,
smallBytest p2 
)

Definition at line 4316 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalDoubleSmallDoubleG()

bool equalDoubleSmallDoubleG ( double  p1,
smallDoublet p2 
)

Definition at line 4345 of file libsheepyObject.c.

◆ equalDoubleSmallIntG()

bool equalDoubleSmallIntG ( double  p1,
smallIntt p2 
)

Definition at line 4354 of file libsheepyObject.c.

◆ equalDoubleSmallJsonG()

bool equalDoubleSmallJsonG ( double  p1,
smallJsont p2 
)

Definition at line 4363 of file libsheepyObject.c.

◆ equalDoubleSmallStringG()

bool equalDoubleSmallStringG ( double  p1,
smallStringt p2 
)

Definition at line 4376 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalInt64ChaG()

bool equalInt64ChaG ( int64_t  p1,
char  p2 
)

Definition at line 4393 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalInt64CharG()

bool equalInt64CharG ( int64_t  p1,
const char *  p2 
)

Definition at line 4398 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equalInt64BaseG()

bool equalInt64BaseG ( int64_t  p1,
baset p2 
)

Definition at line 4413 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equalInt64BoolG()

bool equalInt64BoolG ( int64_t  p1,
bool  p2 
)

Definition at line 4439 of file libsheepyObject.c.

◆ equalInt64DoubleG()

bool equalInt64DoubleG ( int64_t  p1,
double  p2 
)

Definition at line 4444 of file libsheepyObject.c.

◆ equalInt64FG()

bool equalInt64FG ( int64_t  p1,
int64_t  p2 
)

Definition at line 4449 of file libsheepyObject.c.

◆ equalInt64Int32G()

bool equalInt64Int32G ( int64_t  p1,
int32_t  p2 
)

Definition at line 4454 of file libsheepyObject.c.

◆ equalInt64Uint32G()

bool equalInt64Uint32G ( int64_t  p1,
uint32_t  p2 
)

Definition at line 4459 of file libsheepyObject.c.

◆ equalInt64Uint64G()

bool equalInt64Uint64G ( int64_t  p1,
uint64_t  p2 
)

Definition at line 4464 of file libsheepyObject.c.

◆ equalInt64SmallBoolG()

bool equalInt64SmallBoolG ( int64_t  p1,
smallBoolt p2 
)

Definition at line 4469 of file libsheepyObject.c.

◆ equalInt64SmallBytesG()

bool equalInt64SmallBytesG ( int64_t  p1,
smallBytest p2 
)

Definition at line 4478 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalInt64SmallDoubleG()

bool equalInt64SmallDoubleG ( int64_t  p1,
smallDoublet p2 
)

Definition at line 4507 of file libsheepyObject.c.

◆ equalInt64SmallIntG()

bool equalInt64SmallIntG ( int64_t  p1,
smallIntt p2 
)

Definition at line 4516 of file libsheepyObject.c.

◆ equalInt64SmallJsonG()

bool equalInt64SmallJsonG ( int64_t  p1,
smallJsont p2 
)

Definition at line 4525 of file libsheepyObject.c.

◆ equalInt64SmallStringG()

bool equalInt64SmallStringG ( int64_t  p1,
smallStringt p2 
)

Definition at line 4538 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalInt32ChaG()

bool equalInt32ChaG ( int32_t  p1,
char  p2 
)

Definition at line 4555 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalInt32CharG()

bool equalInt32CharG ( int32_t  p1,
const char *  p2 
)

Definition at line 4560 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equalInt32BaseG()

bool equalInt32BaseG ( int32_t  p1,
baset p2 
)

Definition at line 4575 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equalInt32BoolG()

bool equalInt32BoolG ( int32_t  p1,
bool  p2 
)

Definition at line 4601 of file libsheepyObject.c.

◆ equalInt32DoubleG()

bool equalInt32DoubleG ( int32_t  p1,
double  p2 
)

Definition at line 4606 of file libsheepyObject.c.

◆ equalInt32Int64G()

bool equalInt32Int64G ( int32_t  p1,
int64_t  p2 
)

Definition at line 4611 of file libsheepyObject.c.

◆ equalInt32FG()

bool equalInt32FG ( int32_t  p1,
int32_t  p2 
)

Definition at line 4616 of file libsheepyObject.c.

◆ equalInt32Uint32G()

bool equalInt32Uint32G ( int32_t  p1,
uint32_t  p2 
)

Definition at line 4621 of file libsheepyObject.c.

◆ equalInt32Uint64G()

bool equalInt32Uint64G ( int32_t  p1,
uint64_t  p2 
)

Definition at line 4626 of file libsheepyObject.c.

◆ equalInt32SmallBoolG()

bool equalInt32SmallBoolG ( int32_t  p1,
smallBoolt p2 
)

Definition at line 4631 of file libsheepyObject.c.

◆ equalInt32SmallBytesG()

bool equalInt32SmallBytesG ( int32_t  p1,
smallBytest p2 
)

Definition at line 4640 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalInt32SmallDoubleG()

bool equalInt32SmallDoubleG ( int32_t  p1,
smallDoublet p2 
)

Definition at line 4669 of file libsheepyObject.c.

◆ equalInt32SmallIntG()

bool equalInt32SmallIntG ( int32_t  p1,
smallIntt p2 
)

Definition at line 4678 of file libsheepyObject.c.

◆ equalInt32SmallJsonG()

bool equalInt32SmallJsonG ( int32_t  p1,
smallJsont p2 
)

Definition at line 4687 of file libsheepyObject.c.

◆ equalInt32SmallStringG()

bool equalInt32SmallStringG ( int32_t  p1,
smallStringt p2 
)

Definition at line 4700 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalUint32ChaG()

bool equalUint32ChaG ( uint32_t  p1,
char  p2 
)

Definition at line 4717 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalUint32CharG()

bool equalUint32CharG ( uint32_t  p1,
const char *  p2 
)

Definition at line 4722 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equalUint32BaseG()

bool equalUint32BaseG ( uint32_t  p1,
baset p2 
)

Definition at line 4737 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equalUint32BoolG()

bool equalUint32BoolG ( uint32_t  p1,
bool  p2 
)

Definition at line 4763 of file libsheepyObject.c.

◆ equalUint32DoubleG()

bool equalUint32DoubleG ( uint32_t  p1,
double  p2 
)

Definition at line 4768 of file libsheepyObject.c.

◆ equalUint32Int64G()

bool equalUint32Int64G ( uint32_t  p1,
int64_t  p2 
)

Definition at line 4773 of file libsheepyObject.c.

◆ equalUint32Int32G()

bool equalUint32Int32G ( uint32_t  p1,
int32_t  p2 
)

Definition at line 4778 of file libsheepyObject.c.

◆ equalUint32FG()

bool equalUint32FG ( uint32_t  p1,
uint32_t  p2 
)

Definition at line 4783 of file libsheepyObject.c.

◆ equalUint32Uint64G()

bool equalUint32Uint64G ( uint32_t  p1,
uint64_t  p2 
)

Definition at line 4788 of file libsheepyObject.c.

◆ equalUint32SmallBoolG()

bool equalUint32SmallBoolG ( uint32_t  p1,
smallBoolt p2 
)

Definition at line 4793 of file libsheepyObject.c.

◆ equalUint32SmallBytesG()

bool equalUint32SmallBytesG ( uint32_t  p1,
smallBytest p2 
)

Definition at line 4802 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalUint32SmallDoubleG()

bool equalUint32SmallDoubleG ( uint32_t  p1,
smallDoublet p2 
)

Definition at line 4831 of file libsheepyObject.c.

◆ equalUint32SmallIntG()

bool equalUint32SmallIntG ( uint32_t  p1,
smallIntt p2 
)

Definition at line 4840 of file libsheepyObject.c.

◆ equalUint32SmallJsonG()

bool equalUint32SmallJsonG ( uint32_t  p1,
smallJsont p2 
)

Definition at line 4849 of file libsheepyObject.c.

◆ equalUint32SmallStringG()

bool equalUint32SmallStringG ( uint32_t  p1,
smallStringt p2 
)

Definition at line 4862 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalUint64ChaG()

bool equalUint64ChaG ( uint64_t  p1,
char  p2 
)

Definition at line 4879 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalUint64CharG()

bool equalUint64CharG ( uint64_t  p1,
const char *  p2 
)

Definition at line 4884 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equalUint64BaseG()

bool equalUint64BaseG ( uint64_t  p1,
baset p2 
)

Definition at line 4899 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equalUint64BoolG()

bool equalUint64BoolG ( uint64_t  p1,
bool  p2 
)

Definition at line 4925 of file libsheepyObject.c.

◆ equalUint64DoubleG()

bool equalUint64DoubleG ( uint64_t  p1,
double  p2 
)

Definition at line 4930 of file libsheepyObject.c.

◆ equalUint64Int64G()

bool equalUint64Int64G ( uint64_t  p1,
int64_t  p2 
)

Definition at line 4935 of file libsheepyObject.c.

◆ equalUint64Int32G()

bool equalUint64Int32G ( uint64_t  p1,
int32_t  p2 
)

Definition at line 4940 of file libsheepyObject.c.

◆ equalUint64Uint32G()

bool equalUint64Uint32G ( uint64_t  p1,
uint32_t  p2 
)

Definition at line 4945 of file libsheepyObject.c.

◆ equalUint64FG()

bool equalUint64FG ( uint64_t  p1,
uint64_t  p2 
)

Definition at line 4950 of file libsheepyObject.c.

◆ equalUint64SmallBoolG()

bool equalUint64SmallBoolG ( uint64_t  p1,
smallBoolt p2 
)

Definition at line 4955 of file libsheepyObject.c.

◆ equalUint64SmallBytesG()

bool equalUint64SmallBytesG ( uint64_t  p1,
smallBytest p2 
)

Definition at line 4964 of file libsheepyObject.c.

Here is the call graph for this function:

◆ equalUint64SmallDoubleG()

bool equalUint64SmallDoubleG ( uint64_t  p1,
smallDoublet p2 
)

Definition at line 4993 of file libsheepyObject.c.

◆ equalUint64SmallIntG()

bool equalUint64SmallIntG ( uint64_t  p1,
smallIntt p2 
)

Definition at line 5002 of file libsheepyObject.c.

◆ equalUint64SmallJsonG()

bool equalUint64SmallJsonG ( uint64_t  p1,
smallJsont p2 
)

Definition at line 5011 of file libsheepyObject.c.

◆ equalUint64SmallStringG()

bool equalUint64SmallStringG ( uint64_t  p1,
smallStringt p2 
)

Definition at line 5024 of file libsheepyObject.c.

Here is the call graph for this function:

◆ notEqualCharG()

bool notEqualCharG ( char c  UNUSED,
void *value  UNUSED 
)

return false, used in eqG when object types don't match

Definition at line 5041 of file libsheepyObject.c.

◆ notEqualOCharG()

bool notEqualOCharG ( void *a  UNUSED,
char c  UNUSED 
)

Definition at line 5046 of file libsheepyObject.c.

◆ notEqualOG()

bool notEqualOG ( void *a  UNUSED,
void *b  UNUSED 
)

Definition at line 5051 of file libsheepyObject.c.

◆ notEqualCCOG()

bool notEqualCCOG ( const char *a  UNUSED,
void *b  UNUSED 
)

Definition at line 5056 of file libsheepyObject.c.

◆ notEqualBoolOG()

bool notEqualBoolOG ( bool p1  UNUSED,
void *p2  UNUSED 
)

Definition at line 5061 of file libsheepyObject.c.

◆ notEqualDoubleOG()

bool notEqualDoubleOG ( double p1  UNUSED,
void *p2  UNUSED 
)

Definition at line 5066 of file libsheepyObject.c.

◆ notEqualInt64OG()

bool notEqualInt64OG ( int64_t p1  UNUSED,
void *p2  UNUSED 
)

Definition at line 5071 of file libsheepyObject.c.

◆ notEqualInt32OG()

bool notEqualInt32OG ( int32_t p1  UNUSED,
void *p2  UNUSED 
)

Definition at line 5076 of file libsheepyObject.c.

◆ notEqualUint32OG()

bool notEqualUint32OG ( uint32_t p1  UNUSED,
void *p2  UNUSED 
)

Definition at line 5081 of file libsheepyObject.c.

◆ notEqualUint64OG()

bool notEqualUint64OG ( uint64_t p1  UNUSED,
void *p2  UNUSED 
)

Definition at line 5086 of file libsheepyObject.c.

◆ notEqualOBoolG()

bool notEqualOBoolG ( void *p1  UNUSED,
bool p2  UNUSED 
)

Definition at line 5091 of file libsheepyObject.c.

◆ notEqualDoubleG()

bool notEqualDoubleG ( void *p1  UNUSED,
double p2  UNUSED 
)

Definition at line 5096 of file libsheepyObject.c.

◆ notEqualOInt64G()

bool notEqualOInt64G ( void *p1  UNUSED,
int64_t p2  UNUSED 
)

Definition at line 5101 of file libsheepyObject.c.

◆ notEqualOInt32G()

bool notEqualOInt32G ( void *p1  UNUSED,
int32_t p2  UNUSED 
)

Definition at line 5106 of file libsheepyObject.c.

◆ notEqualOUint32G()

bool notEqualOUint32G ( void *p1  UNUSED,
uint32_t p2  UNUSED 
)

Definition at line 5111 of file libsheepyObject.c.

◆ notEqualOUint64G()

bool notEqualOUint64G ( void *p1  UNUSED,
uint64_t p2  UNUSED 
)

Definition at line 5116 of file libsheepyObject.c.

◆ icEqCharChar()

bool icEqCharChar ( char  c,
char  value 
)

ignore case equality functions

Definition at line 5122 of file libsheepyObject.c.

◆ icEqualChaOG()

bool icEqualChaOG ( char  c,
baset value 
)

Definition at line 5127 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ icEqualChaSmallJsonG()

bool icEqualChaSmallJsonG ( char  c,
smallJsont value 
)

Definition at line 5133 of file libsheepyObject.c.

◆ icEqualChaSmallStringG()

bool icEqualChaSmallStringG ( char  c,
smallStringt value 
)

Definition at line 5147 of file libsheepyObject.c.

◆ icEqualCharOG()

bool icEqualCharOG ( const char *  s,
baset value 
)

Definition at line 5157 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ icEqualCharPSmallJsonG()

bool icEqualCharPSmallJsonG ( const char *  s,
smallJsont value 
)

Definition at line 5169 of file libsheepyObject.c.

◆ icEqualCharPSmallStringG()

bool icEqualCharPSmallStringG ( const char *  s,
smallStringt value 
)

Definition at line 5183 of file libsheepyObject.c.

◆ icEqualArrayOG()

bool icEqualArrayOG ( char **  p1,
baset p2 
)

Definition at line 5192 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ icEqualCArrayOG()

bool icEqualCArrayOG ( const char **  p1,
baset p2 
)

Definition at line 5222 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ icEqualArraySmallJsonG()

bool icEqualArraySmallJsonG ( char **  p1,
smallJsont p2 
)

Definition at line 5252 of file libsheepyObject.c.

◆ icEqualCArraySmallJsonG()

bool icEqualCArraySmallJsonG ( const char **  p1,
smallJsont p2 
)

Definition at line 5272 of file libsheepyObject.c.

◆ icEqualArraySmallArrayG()

bool icEqualArraySmallArrayG ( char **  p1,
smallArrayt p2 
)

Definition at line 5292 of file libsheepyObject.c.

◆ icEqualCArraySmallArrayG()

bool icEqualCArraySmallArrayG ( const char **  p1,
smallArrayt p2 
)

Definition at line 5305 of file libsheepyObject.c.

◆ icEqualOCharG()

bool icEqualOCharG ( baset p1,
const char *  p2 
)

Definition at line 5318 of file libsheepyObject.c.

Here is the call graph for this function:

◆ icEqualOChaG()

bool icEqualOChaG ( baset p1,
char  p2 
)

Definition at line 5323 of file libsheepyObject.c.

Here is the call graph for this function:

◆ icEqualOArrayG()

bool icEqualOArrayG ( baset p1,
char **  p2 
)

Definition at line 5328 of file libsheepyObject.c.

Here is the call graph for this function:

◆ icEqualOCArrayG()

bool icEqualOCArrayG ( baset p1,
const char **  p2 
)

Definition at line 5333 of file libsheepyObject.c.

Here is the call graph for this function:

◆ icEqualOOG()

bool icEqualOOG ( baset p1,
baset p2 
)

Definition at line 5338 of file libsheepyObject.c.

Here is the call graph for this function:

◆ icEqualOSmallArrayG()

bool icEqualOSmallArrayG ( baset p1,
smallArrayt p2 
)

Definition at line 5357 of file libsheepyObject.c.

◆ icEqualOSmallDictG()

bool icEqualOSmallDictG ( baset p1,
smallDictt p2 
)

Definition at line 5370 of file libsheepyObject.c.

◆ icEqualOSmallJsonG()

bool icEqualOSmallJsonG ( baset p1,
smallJsont p2 
)

Definition at line 5383 of file libsheepyObject.c.

◆ icEqualOSmallStringG()

bool icEqualOSmallStringG ( baset p1,
smallStringt p2 
)

Definition at line 5397 of file libsheepyObject.c.

◆ freeBasetInContainer()

void freeBasetInContainer ( void *  baseo)

Definition at line 5418 of file libsheepyObject.c.

Here is the caller graph for this function:

◆ toSmallt()

smallt* toSmallt ( baset obj)

convert baset object to smallt

Definition at line 5426 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toBaset()

baset* toBaset ( smallt obj)

convert smallt object to baset

Definition at line 5499 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cpuCount()

int cpuCount ( void  )

return number of online CPUs, also number of threads in the thread pool

Definition at line 5597 of file libsheepyObject.c.

Here is the call graph for this function:

◆ registerFinalizeRecycleContainersInThreadPool()

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.

Here is the caller graph for this function:

◆ finalizeLibsheepyRecycleContainers()

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.

◆ finalizeLibsheepyAtExit()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shSysinfo()

smallDictt* shSysinfo ( void  )

sheepy sysinfo

return struct sysinfo in a dictionary. The keys are: uptime, loads, totalram, freeram, sharedram, bufferram, totalswap, freeswap, procs

Returns
sysinfo dictionary NULL when failure

Definition at line 526 of file libsheepyObject.c.

◆ dArrayT()

dArrayT ( finalizeRecycleContainersFuncst  ,
recycleContainersFt   
)
Here is the caller graph for this function:

◆ initLibsheepyObject()

void initLibsheepyObject ( void  )

called from initLibsheepy in libsheepy.c start the thread pool

Definition at line 5669 of file libsheepyObject.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ finalizeRecycleContainersFuncs

internal finalizeRecycleContainersFuncst finalizeRecycleContainersFuncs

Definition at line 5604 of file libsheepyObject.c.

◆ undefined

undefined/null object for setting undefined/null in small data structures pushG(a, undefined);

Definition at line 5706 of file libsheepyObject.c.

◆ rtBaset

baset* rtBaset = NULL

Generic return types getG(dict, rtBool, "a");.

Definition at line 5712 of file libsheepyObject.c.

◆ rtUndefinedt

undefinedt* rtUndefinedt = NULL

Definition at line 5713 of file libsheepyObject.c.

◆ rtBool

bool rtBool = false

Definition at line 5714 of file libsheepyObject.c.

◆ rtBoolP

bool* rtBoolP = NULL

Definition at line 5715 of file libsheepyObject.c.

◆ rtDouble

double rtDouble = 0

Definition at line 5716 of file libsheepyObject.c.

◆ rtDoubleP

double* rtDoubleP = NULL

Definition at line 5717 of file libsheepyObject.c.

◆ rtInt64_t

int64_t rtInt64_t = 0

Definition at line 5718 of file libsheepyObject.c.

◆ rtInt64_tP

int64_t* rtInt64_tP = NULL

Definition at line 5719 of file libsheepyObject.c.

◆ rtInt32_t

int32_t rtInt32_t = 0

Definition at line 5720 of file libsheepyObject.c.

◆ rtInt32_tP

int32_t* rtInt32_tP = NULL

Definition at line 5721 of file libsheepyObject.c.

◆ rtUint64_t

uint64_t rtUint64_t = 0

Definition at line 5722 of file libsheepyObject.c.

◆ rtUint64_tP

uint64_t* rtUint64_tP = NULL

Definition at line 5723 of file libsheepyObject.c.

◆ rtUint32_t

uint32_t rtUint32_t = 0

Definition at line 5724 of file libsheepyObject.c.

◆ rtUint32_tP

uint32_t* rtUint32_tP = NULL

Definition at line 5725 of file libsheepyObject.c.

◆ rtF32

float rtF32 = 0

Definition at line 5726 of file libsheepyObject.c.

◆ rtF64

double rtF64 = 0

Definition at line 5727 of file libsheepyObject.c.

◆ rtF64P

double* rtF64P = NULL

Definition at line 5728 of file libsheepyObject.c.

◆ rtI64

int64_t rtI64 = 0

Definition at line 5729 of file libsheepyObject.c.

◆ rtI64P

int64_t* rtI64P = NULL

Definition at line 5730 of file libsheepyObject.c.

◆ rtI32

int32_t rtI32 = 0

Definition at line 5731 of file libsheepyObject.c.

◆ rtI32P

int32_t* rtI32P = NULL

Definition at line 5732 of file libsheepyObject.c.

◆ rtU64

uint64_t rtU64 = 0

Definition at line 5733 of file libsheepyObject.c.

◆ rtU64P

uint64_t* rtU64P = NULL

Definition at line 5734 of file libsheepyObject.c.

◆ rtU32

uint32_t rtU32 = 0

Definition at line 5735 of file libsheepyObject.c.

◆ rtU32P

uint32_t* rtU32P = NULL

Definition at line 5736 of file libsheepyObject.c.

◆ rtU16

uint16_t rtU16 = 0

Definition at line 5737 of file libsheepyObject.c.

◆ rtU8

uint8_t rtU8 = 0

Definition at line 5738 of file libsheepyObject.c.

◆ rtChar

char* rtChar = NULL

Definition at line 5739 of file libsheepyObject.c.

◆ rtSmallArrayt

smallArrayt* rtSmallArrayt = NULL

Definition at line 5740 of file libsheepyObject.c.

◆ rtSmallBoolt

smallBoolt* rtSmallBoolt = NULL

Definition at line 5741 of file libsheepyObject.c.

◆ rtSmallBytest

smallBytest* rtSmallBytest = NULL

Definition at line 5742 of file libsheepyObject.c.

◆ rtSmallDictt

smallDictt* rtSmallDictt = NULL

Definition at line 5743 of file libsheepyObject.c.

◆ rtSmallDoublet

smallDoublet* rtSmallDoublet = NULL

Definition at line 5744 of file libsheepyObject.c.

◆ rtSmallIntt

smallIntt* rtSmallIntt = NULL

Definition at line 5745 of file libsheepyObject.c.

◆ rtSmallJsont

smallJsont* rtSmallJsont = NULL

Definition at line 5746 of file libsheepyObject.c.

◆ rtSmallStringt

smallStringt* rtSmallStringt = NULL

Definition at line 5747 of file libsheepyObject.c.

◆ rtVoid

void* rtVoid = NULL

Definition at line 5748 of file libsheepyObject.c.

◆ rtSmallContainert

smallContainert* rtSmallContainert = NULL

Definition at line 5749 of file libsheepyObject.c.