-libcitadel1_7.38-8_i386.deb libs optional
-libcitadel1-dbg_7.38-8_i386.deb libdevel optional
-libcitadel-dev_7.38-8_i386.deb libdevel optional
+libcitadel1_7.38-8_amd64.deb libs optional
+libcitadel1-dbg_7.38-8_amd64.deb libdevel optional
+libcitadel-dev_7.38-8_amd64.deb libdevel optional
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
CFLAGS = -Wall -g
-
+LDFALGS =
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0 -ggdb -rdynamic -MD -MP -D DEBUG -D VALGRIND
else
CFLAGS += -O2
endif
+ifneq (,$(findstring profiling,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -pg
+ LDFLAGS += -pg
+endif
+
build: build-stamp
build-stamp:
dh_testdir
# ./configure
- CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+ CFLAGS="$(CFLAGS)"; LDFLAGS="$(LDFLAGS)"; ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr
# Build libcitadel
const char *s, *e; //* source * /
int len = 0; //* running total length of extracted string * /
int current_token = 0; //* token currently being processed * /
+
+ if (dest != NULL) {
+ dest->buf[0] = '\0';
+ dest->BufUsed = 0;
+ }
+ else
+ return(-1);
if ((Source == NULL) || (Source->BufUsed ==0)) {
return(-1);
}
s = Source->buf;
e = s + Source->BufUsed;
- if (dest == NULL) {
- return(-1);
- }
//cit_backtrace();
//lprintf (CTDL_DEBUG, "test >: n: %d sep: %c source: %s \n willi \n", parmnum, separator, source);
- dest->buf[0] = '\0';
- dest->BufUsed = 0;
while ((s<e) && !IsEmptyStr(s)) {
if (*s == separator) {