Changeset 6808
- Timestamp:
- 08/09/10 14:52:57 (17 months ago)
- Location:
- branches/refactor
- Files:
-
- 5 modified
-
ARBDB/Makefile (modified) (1 diff)
-
ARBDB/ad_prot.h (modified) (1 diff)
-
ARBDB/adstring.cxx (modified) (1 diff)
-
ARBDB/adtools.cxx (modified) (2 diffs)
-
TEMPLATES/arb_str.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/refactor/ARBDB/Makefile
r6807 r6808 880 880 adtools.o: $(ARBHOME)/INCLUDE/arb_core.h 881 881 adtools.o: $(ARBHOME)/INCLUDE/arb_error.h 882 adtools.o: $(ARBHOME)/INCLUDE/arb_str.h 882 883 adtools.o: $(ARBHOME)/INCLUDE/arbtools.h 883 884 adtools.o: $(ARBHOME)/INCLUDE/attributes.h -
branches/refactor/ARBDB/ad_prot.h
r6753 r6808 201 201 char *GBS_fconvert_string(char *buffer); 202 202 char *GBS_replace_tabs_by_spaces(const char *text); 203 int GBS_strscmp(const char *s1, const char *s2);204 203 const char *GBS_readable_size(unsigned long long size); 205 204 char *GBS_trim(const char *str); -
branches/refactor/ARBDB/adstring.cxx
r6753 r6808 1953 1953 } 1954 1954 1955 int GBS_strscmp(const char *s1, const char *s2) {1956 int cmp = 0;1957 size_t idx = 0;1958 while (!cmp) {1959 if (!s1[idx] || !s2[idx]) break;1960 cmp = s1[idx] - s2[idx];1961 ++idx;1962 }1963 return cmp;1964 }1965 1966 1955 const char *GBS_readable_size(unsigned long long size) { 1967 1956 // return human readable size information -
branches/refactor/ARBDB/adtools.cxx
r6659 r6808 9 9 // =============================================================== // 10 10 11 #include <arb_str.h> 11 12 #include <arbdbt.h> 12 13 … … 130 131 } 131 132 else { 132 if ( GBS_strscmp(insert->datapath, key+1) == 0) { // datapath matches133 if (ARB_strscmp(insert->datapath, key+1) == 0) { // datapath matches 133 134 to_insert = strdup(key+strlen(insert->datapath)); // cut off prefix 134 135 to_insert[0] = key[0]; // copy type -
branches/refactor/TEMPLATES/arb_str.h
r6804 r6808 13 13 #define ARB_STR_H 14 14 15 #ifndef _CPP_CSTDDEF 16 #include <cstddef> 17 #endif 18 #ifndef _CPP_CCTYPE 15 19 #include <cctype> 16 17 #ifndef __cplusplus18 // this header only works with c++19 // those functions needed by ARBDB are duplicated in adstring.c (with GBS_-prefix)20 #error inline.h may be used in C++ only21 20 #endif 22 21
