Commit Graph

24 Commits

Author SHA1 Message Date
Sebastian Pipping
317c91776a Sync file headers 2022-02-15 21:23:29 +01:00
Sebastian Pipping
df42f935bf Increase precision in existing MIT headers based on Git history 2021-05-02 19:53:29 +02:00
Sebastian Pipping
6b19963341 Drop mistaken executable bits 2019-09-16 20:54:47 +02:00
zhouzhongyuan
90e44cde80 fix potential memory leak in elements.c 2019-09-05 16:17:51 +08:00
Sebastian Pipping
36fa081cfe Drop support for Visual Studio <=7.1/2003
_MSC_VER 1400 is 8.0/2005
2019-08-29 19:49:27 +02:00
clang-format
d248bbd940 Mass-apply clang-format 9 using ./apply-clang-format.sh 2019-08-03 21:31:44 +02:00
Sebastian Pipping
850c0922e1 Address 64bit size_t loss warning for Visual Studio
Message was:
warning C4267: 'argument' : conversion from 'size_t' to 'int'
2017-12-04 00:15:55 +01:00
Rhodri James
5baf114b7f examples: Use printf rather than [f]put[w]s (pull request #135) 2017-08-29 20:08:52 +02:00
Sebastian Pipping
c1e1a84c82 examples: Indent preprocessor code 2017-08-26 17:01:59 +02:00
Rhodri James
c7071f1434 Fix example programs to compile under XML_UNICODE_WCHAR_T 2017-08-26 16:57:36 +02:00
Sebastian Pipping
a704c940a4 Inline copyright headers with C/C++ code where missing (#116) 2017-08-12 21:02:41 +02:00
Sebastian Pipping
8706f69ca7 examples: Unify expat.h include 2017-06-07 20:31:35 +02:00
Sebastian Pipping
4f862dddf9 examples|tests|xmlwf: Drop AmigaOS 4.x include (issue #14) 2017-06-07 20:31:15 +02:00
Sebastian Pipping
69746f5ab2 Address all "unused parameter" warnings 2016-05-07 17:24:35 +02:00
Sebastian Pipping
796085674a examples/elements.c: Address compile warning on sign mismatch
examples/elements.c: In function ‘main’:
examples/elements.c:54:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     done = len < sizeof(buf);
                ^
2016-03-12 02:59:53 +01:00
Steven Solie
220b5e566d Removed need for amiga_main(). 2007-06-03 15:00:09 +00:00
Karl Waclawek
1a1fea41db Casting away some integer conversion warnings that should not pose a problem. 2006-04-14 18:03:57 +00:00
Karl Waclawek
925a683135 * Added support for XML_LARGE_SIZE.
* Added comment about using with UTF-8 version of Expat only.
2005-12-28 18:43:36 +00:00
Steven Solie
5393717eef *** empty log message *** 2005-12-24 06:52:33 +00:00
Karl Waclawek
a14f6a8b2d Added type cast necessary for compiling as C++ file (at least under VC++). 2004-08-10 18:06:29 +00:00
Fred L. Drake, Jr.
2bba3d20f5 Deal with issue discussed in SF patch #820946: Expat doesn't handle
the use of modified default calling conventions in client code.

To deal with this issue and generally clean up the mass of macros
being used to support bits of the machinery, two new macros are being
added:

- XMLCALL, which expands to whatever is needed to nail down the
  calling convention for all calls across the library boundary.  This
  must match the convention used for the system's malloc()
  implementation.

- XMLIMPORT, defined to be whatever magic is needed to mark an entry
  point as imported from a dynamically loaded module (.dll, .so, .sl,
  whatever).

These macros are used to define the XMLPARSEAPI macro already being
used to define the API entry points.  In addition, XMLCALL is used to
define the types of callback functions, and all example code uses this
explicitly in both the distributed applications and the documentation.
2003-10-15 16:25:44 +00:00
Fred L. Drake, Jr.
e573251a94 Define specific return values for the XML_Parse*() functions, and use them
to test all XML_Parse*() return values in the test and sample code.
This is binary-compatible with previous Expat 1.95.x releases.
2002-08-02 19:40:09 +00:00
Fred L. Drake, Jr.
2c06092697 De-tabify; minor code-style consistency changes. 2002-07-01 14:45:51 +00:00
Fred L. Drake, Jr.
86b7ae104d Move the "elements" example code here from "sample", so we only have one
directory of short sample code.
2001-07-26 21:54:43 +00:00