+2005-05-03 Helge Hess <helge.hess@opengroupware.org>
+
+ * Model/StructuredTextBodyElement.m: fixed a gcc 4.0 warning (v1.0.11)
+
2004-11-04 Helge Hess <helge.hess@skyrix.com>
* use Version file for install directory location
return _elements;
}
-- (void)addElement:(NSObject *)anElement {
+- (void)addElement:(StructuredTextBodyElement *)anElement {
if (anElement == nil)
return;
MAJOR_VERSION=1
MINOR_VERSION=0
-SUBMINOR_VERSION:=10
+SUBMINOR_VERSION:=11
+2005-05-03 Helge Hess <helge.hess@opengroupware.org>
+
+ * fixed loads of gcc 4.0 warnings (v4.5.18)
+
2004-12-14 Marcus Mueller <znek@mulle-kybernetik.com>
* libxmlSAXDriver.xcode: minor fixes
-# $Id$
+# compilation settings
+
+ADDITIONAL_CPPFLAGS += -funsigned-char
ADDITIONAL_INCLUDE_DIRS += -I../.. -I..
ADDITIONAL_INCLUDE_DIRS += $(shell xml2-config --cflags)
# version
-SUBMINOR_VERSION:=17
+SUBMINOR_VERSION:=18
static Class NSStringClass = Nil;
if (NSStringClass == Nil)
NSStringClass = [NSString class];
- return _s ? [[NSStringClass alloc] initWithUTF8String:_s] : nil;
+ return _s ? [[NSStringClass alloc] initWithUTF8String:(const char*)_s] : nil;
}
static NSString *SaxDeclHandlerProperty =
void *data, *ts;
unsigned len;
- len = strlen(chars);
-
+ len = strlen((char *)chars);
data = ts = calloc(len + 1, sizeof(unichar)); /* GC ?! */
if (_UTF8ToUTF16((void *)&chars, (void *)(chars + len),
void *data, *ts;
unsigned len;
- len = strlen(chars);
-
+ len = strlen((const char *)chars);
data = ts = calloc(len + 1, sizeof(unichar)); /* GC ?! */
if (_UTF8ToUTF16((void *)&chars, (void *)(chars + len),
localisations ... why doesn't libxml support error codes ?
(or does it ?)
*/
-static const unsigned char *tagInvalidMsg = "tag %s invalid";
-static const unsigned char *unclosedEntityInvalidMsg =
+static const char *tagInvalidMsg = "tag %s invalid";
+static const char *unclosedEntityInvalidMsg =
"htmlParseEntityRef: expecting ';'";
#if 0
-static const unsigned char *unexpectedNobrCloseMsg =
+static const char *unexpectedNobrCloseMsg =
"Unexpected end tag : %s";
#endif
return [s retain];
}
- newkey = malloc(strlen(_s) + 1);
- strcpy(newkey, _s);
+ newkey = malloc(strlen((char *)_s) + 2);
+ strcpy(newkey, (char *)_s);
if (NSStringClass == Nil)
NSStringClass = [NSString class];
- s = [[NSStringClass alloc] initWithUTF8String:_s];
+ s = [[NSStringClass alloc] initWithUTF8String:(const char *)_s];
NSMapInsert(uniqueStrings, newkey, s);
return s;
}
[self->contentHandler characters:&c length:0];
return YES;
}
- if ((len = strlen(chars)) == 0) {
+ if ((len = strlen((char *)chars)) == 0) {
unichar c = '\0';
[self->contentHandler characters:&c length:0];
return YES;
else {
unsigned len;
- if ((len = strlen(chars)) > 0) {
+ if ((len = strlen((char *)chars)) > 0) {
void *data, *ts;
data = ts = calloc(len + 1, sizeof(unichar)); /* GC ?! */
char *newkey;
if (_s == NULL) return nil;
-
+
+ // TODO: does the uniquer really make sense?
+ // best would to have an -initWithUTF...nocopy:YES
if (uniqueStrings == NULL) {
uniqueStrings = NSCreateMapTable(libxmlNonOwnedCStringMapKeyCallBacks,
NSObjectMapValueCallBacks,
/* found a string in cache ... */
return [s retain];
}
-
- newkey = malloc(strlen(_s) + 1);
- strcpy(newkey, _s);
+
+ newkey = malloc(strlen((const char *)_s) + 2);
+ strcpy(newkey, (const char *)_s);
if (NSStringClass == Nil)
NSStringClass = [NSString class];
- s = [[NSStringClass alloc] initWithUTF8String:_s];
+ s = [[NSStringClass alloc] initWithUTF8String:(const char *)_s];
NSMapInsert(uniqueStrings, newkey, s);
return s;
}
if (len > 5) {
unsigned char *tmp;
- if ((tmp = strstr(src, "<?xml"))) {
+ if ((tmp = (unsigned char *)strstr((char *)src, "<?xml"))) {
if (tmp != src) {
/* skip leading spaces till <?xml ...*/
while (*start != '\0' && isspace(*start)) {
}
activeDriver = self;
- self->ctxt =
- xmlCreateMemoryParserCtxt(start, len);
+ self->ctxt = xmlCreateMemoryParserCtxt((void *)start, len);
if (self->ctxt == nil) {
SaxParseException *e;
if (!self->fNamespacePrefixes) {
if (atts[i][0] == 'x') {
- const char *an = atts[i];
+ const unsigned char *an = atts[i];
- if (strstr(an, "xmlns") == an)
+ if (strstr((char *)an, "xmlns") == (char *)an)
continue;
}
}
unichar *data;
register int i, len;
- len = strlen(value);
+ len = strlen((const char *)value);
data = calloc(len +1 ,sizeof(unichar)); /* GC ?! */
/* fill entity structure */
p = self->entity;
- p->name = [ename cString];
+ p->name = (unsigned char *)[ename cString];
p->etype = XML_INTERNAL_GENERAL_ENTITY;
p->orig = (void *)[ename cString];
p->content = (void *)[s cString];
const xmlChar *s;
//return nil;
s = self->getPublicId ? self->getPublicId(self->ctx) : NULL;
- return s ? [NSString stringWithCString:s] : nil;
+ return s ? [NSString stringWithCString:(const char *)s] : nil;
}
- (NSString *)systemId {
const xmlChar *s;
//return nil;
s = self->getSystemId ? self->getSystemId(self->ctx) : NULL;
- return s ? [NSString stringWithCString:s] : nil;
+ return s ? [NSString stringWithCString:(const char *)s] : nil;
}
/* description */