34 x=(
unsigned char)*src;
51 c=(((
unsigned char)(*src))>>4)&0xf;
56 c=((
unsigned char)(*src))&0xf;
83 if (isxdigit((
int)src[1]) && isxdigit((
int)src[2])) {
87 d1=(
unsigned char)(toupper(*src));
91 d2=(
unsigned char)(toupper(*src));
193 n=GWEN_DB_Node_List_First(node->children);
216 for (i=0; i<insert; i++) {
251 if (dbflags & GWEN_DB_FLAGS_INDEND) {
252 for (i=0; i<insert; i++) {
280 if (dbflags & GWEN_DB_FLAGS_ADD_GROUP_NEWLINES) {
281 if (GWEN_DB_Node_List_Next(n)) {
296 cn=GWEN_DB_Node_List_First(n->children);
307 char *binbuffer=
NULL;
309 const char *pvalue=
NULL;
315 pvalue=cn->data.dataChar;
340 bbsize=cn->dataSize*2+1;
368 for (i=0; i<insert; i++) {
403 if (dbflags & GWEN_DB_FLAGS_QUOTE_VARNAMES) {
450 if (dbflags & GWEN_DB_FLAGS_QUOTE_VALUES) {
463 cn=GWEN_DB_Node_List_Next(cn);
484 n=GWEN_DB_Node_List_Next(n);
542 "Could not apply lock to file \"%s\" (%d)",
600 "Could not remove lock on file \"%s\" (%d)",
613 const char *typeName,
625 if (strcasecmp(typeName,
"int")==0)
627 else if (strcasecmp(typeName,
"char")==0)
629 else if (strcasecmp(typeName,
"bin")==0)
648 while(*p && isspace(*p))
698 if (*p==
',' || *p==
';' || *p==
'#')
716 if (1!=sscanf(v,
"%d", &i)) {
748 while(*p && isspace(*p))
750 if (!*p || *p==
';' || *p==
'#')
807 while(*p && isspace(*p))
833 while(*p && !isspace(*p) &&
850 while(*p && isspace(*p))
882 else if (*p==
'=' || *p==
':') {
894 else if (*p==
',' || *p==
';') {
906 *p!=((dbflags & GWEN_DB_FLAGS_USE_COLON)?
':':
'=') &&
919 while(*p && isspace(*p))
928 if (*p!=
'=' && *p!=
':') {