-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More portable types and avoid possible overflows by using size_t
- Loading branch information
1 parent
2692749
commit 6de472f
Showing
8 changed files
with
35 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,8 @@ | |
Author: Jan Wielemaker | ||
E-mail: [email protected] | ||
WWW: http://www.swi-prolog.org | ||
Copyright (c) 2000-2014, University of Amsterdam | ||
Copyright (c) 2000-2023, University of Amsterdam | ||
SWI-Prolog Solutions b.v. | ||
All rights reserved. | ||
Redistribution and use in source and binary forms, with or without | ||
|
@@ -38,6 +39,7 @@ | |
|
||
#include <stdio.h> | ||
#include <sys/types.h> | ||
#include <stdint.h> | ||
#include <wchar.h> | ||
|
||
#ifdef _WINDOWS /* get size_t */ | ||
|
@@ -78,7 +80,7 @@ int istrncaseeq(const ichar *s1, const ichar *s2, int len); | |
int istrhash(const ichar *t, int tsize); | ||
int istrcasehash(const ichar *t, int tsize); | ||
ichar * istrchr(const ichar *s, int c); | ||
int istrtol(const ichar *s, long *val); | ||
int istrtol(const ichar *s, intptr_t *val); | ||
void * sgml_malloc(size_t size); | ||
void * sgml_calloc(size_t n, size_t size); | ||
void sgml_free(void *mem); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,8 @@ | |
Author: Jan Wielemaker | ||
E-mail: [email protected] | ||
WWW: http://www.swi-prolog.org | ||
Copyright (c) 2000-2011, University of Amsterdam | ||
Copyright (c) 2000-2023, University of Amsterdam | ||
SWI-Prolog Solutions b.v. | ||
All rights reserved. | ||
Redistribution and use in source and binary forms, with or without | ||
|
@@ -111,7 +112,7 @@ isxmlns(const ichar *s, int nschr) | |
|
||
|
||
void | ||
update_xmlns(dtd_parser *p, dtd_element *e, int natts, sgml_attribute *atts) | ||
update_xmlns(dtd_parser *p, dtd_element *e, size_t natts, sgml_attribute *atts) | ||
{ dtd_attr_list *al; | ||
int nschr = p->dtd->charfunc->func[CF_NS]; /* : */ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters