Changeset 6141 for trunk/ARBDB/adquery.c

Show
Ignore:
Timestamp:
14/08/09 16:29:27 (3 years ago)
Author:
westram
Message:
  • spellchecked all (phew)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ARBDB/adquery.c

    r6100 r6141  
    9393       GB_STRING/GB_LINK: compares string (case_sensitive or not) 
    9494       GB_INT: compares values 
    95        GB_FLOAT: dito (val MUST be a 'double*') 
     95       GB_FLOAT: ditto (val MUST be a 'double*') 
    9696       others: not implemented yet 
    9797 
     
    283283        case down_level:    return GB_find_subcontent_by_quark((GBDATA*)gbc, key_quark, type, val, case_sens, after); 
    284284        case down_2_level:  return find_sub_sub_by_quark((GBDATA*)gbc, key, key_quark, type, val, case_sens, after); 
    285         default:            GB_internal_errorf("Unknown seach type %li",gbs); return NULL; 
     285        default:            GB_internal_errorf("Unknown search type %li",gbs); return NULL; 
    286286    } 
    287287} 
     
    316316 
    317317GBDATA *GB_child(GBDATA *father) { 
    318     // return first child (or NULL if no childs) 
     318    // return first child (or NULL if no children) 
    319319    return GB_find(father, NULL, down_level); 
    320320} 
    321321GBDATA *GB_nextChild(GBDATA *child) { 
    322     // return next child after 'child' (or NULL if no more childs) 
     322    // return next child after 'child' (or NULL if no more children) 
    323323    return GB_find(child, NULL, this_level|search_next); 
    324324} 
     
    422422    GBDATA *gbp, *gbsp; 
    423423    int     len; 
    424     int     seperator = 0; 
     424    int     separator = 0; 
    425425    char    buffer[GB_PATH_MAX]; 
    426426 
     
    477477        s2 = gb_first_non_key_character(s1); 
    478478        if (s2) { 
    479             seperator = *s2; 
     479            separator = *s2; 
    480480            *(s2++) = 0; 
    481             if (seperator == '-') { 
     481            if (separator == '-') { 
    482482                if ((*s2)  != '>'){ 
    483483                    GB_export_errorf("Invalid key for gb_search '%s'",str); 
     
    493493        } else { 
    494494            gbsp = GB_entry(gbp, s1); 
    495             if (gbsp && seperator == '-'){ /* follow link !!! */ 
     495            if (gbsp && separator == '-'){ /* follow link !!! */ 
    496496                if (GB_TYPE(gbsp) != GB_LINK){ 
    497497                    if (create){ 
     
    502502                } 
    503503                gbsp = GB_follow_link(gbsp); 
    504                 seperator = 0; 
     504                separator = 0; 
    505505                if (!gbsp) return NULL; /* cannot resolve link  */ 
    506506            } 
     
    519519        if (!gbsp) { 
    520520            if(!create) return NULL; /* read only mode */ 
    521             if (seperator == '-'){ 
     521            if (separator == '-'){ 
    522522                GB_export_error("Cannot create linked objects"); 
    523523                return NULL; /* do not create linked objects */ 
     
    771771 
    772772 
    773 char *gbs_search_next_seperator(const char *source,const char *seps){ 
    774     /* search the next seperator */ 
     773char *gbs_search_next_separator(const char *source,const char *seps){ 
     774    /* search the next separator */ 
    775775    static char tab[256]; 
    776776    static int flag = 0; 
     
    980980        /*** loop over all commands ***/ 
    981981        for (s1 = s1; s1 ; s1 = s2) { 
    982             int seperator; 
     982            int separator; 
    983983            GBL_COMMAND command; 
    984             s2= gbs_search_next_seperator(s1,"|;,"); 
     984            s2= gbs_search_next_separator(s1,"|;,"); 
    985985            if (s2) { 
    986                 seperator = *(s2); 
     986                separator = *(s2); 
    987987                *(s2++) = 0; 
    988988            }else{ 
    989                 seperator = 0; 
     989                separator = 0; 
    990990            } 
    991991            /* collect the parameters */ 
     
    10141014                        bracket[slen-1] = 0; 
    10151015                        for (p1 = bracket; p1 ; p1 = p2) { 
    1016                             p2 = gbs_search_next_seperator(p1,";,"); 
     1016                            p2 = gbs_search_next_separator(p1,";,"); 
    10171017                            if (p2) { 
    10181018                                *(p2++) = 0; 
     
    11141114            if (error) break; 
    11151115 
    1116             if (seperator == '|') {         /* swap in and out in pipes */ 
     1116            if (separator == '|') {         /* swap in and out in pipes */ 
    11171117                GBL *h; 
    11181118                for (i=0;i<argcinput;i++) {