-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copied current SAPI version in TuTTY trunk as a vendor drop.
- Loading branch information
Alexander Tokarev
committed
Nov 24, 2010
1 parent
c6be771
commit 62f1a31
Showing
12 changed files
with
3,466 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Makefile | ||
# | ||
# Copyright 2005 Aaron Voisine <aaron@voisine.org> | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining | ||
# a copy of this software and associated documentation files (the | ||
# "Software"), to deal in the Software without restriction, including | ||
# without limitation the rights to use, copy, modify, merge, publish, | ||
# distribute, sublicense, and/or sell copies of the Software, and to | ||
# permit persons to whom the Software is furnished to do so, subject to | ||
# the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included | ||
# in all copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
CC = gcc | ||
AR = ar | ||
RM = rm -f | ||
CFLAGS = -Wall -O2 | ||
DEBUG_CFLAGS = -O0 -g | ||
OBJS = ezxml.o | ||
LIB = libezxml.a | ||
TEST = ezxmltest | ||
ifdef NOMMAP | ||
CFLAGS += -D EZXML_NOMMAP | ||
endif | ||
ifdef DEBUG | ||
CFLAGS += $(DEBUG_CFLAGS) | ||
endif | ||
|
||
all: $(LIB) | ||
|
||
$(LIB): $(OBJS) | ||
$(AR) rcs $(LIB) $(OBJS) | ||
|
||
nommap: CFLAGS += -D EZXML_NOMMAP | ||
nommap: all | ||
|
||
debug: CFLAGS += $(DEBUG_CFLAGS) | ||
debug: all | ||
|
||
test: CFLAGS += $(DEBUG_CFLAGS) | ||
test: $(TEST) | ||
|
||
$(TEST): CFLAGS += -D EZXML_TEST | ||
$(TEST): $(OBJS) | ||
$(CC) $(CFLAGS) -o $@ $(OBJS) | ||
|
||
ezxml.o: ezxml.h ezxml.c | ||
|
||
.c.o: | ||
$(CC) $(CFLAGS) -c -o $@ $< | ||
|
||
clean: | ||
$(RM) $(OBJS) $(LIB) $(TEST) *~ |
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Makefile | ||
# | ||
# Copyright 2004, 2005 Aaron Voisine <aaron@voisine.org> | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining | ||
# a copy of this software and associated documentation files (the | ||
# "Software"), to deal in the Software without restriction, including | ||
# without limitation the rights to use, copy, modify, merge, publish, | ||
# distribute, sublicense, and/or sell copies of the Software, and to | ||
# permit persons to whom the Software is furnished to do so, subject to | ||
# the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included | ||
# in all copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
CC = gcc | ||
AR = ar | ||
RM = rm -f | ||
CFLAGS = -Wall -O2 | ||
OBJS = ezxml.o | ||
LIB = libezxml.a | ||
TEST = ezxmltest | ||
|
||
.if defined(NOMMAP) || make(nommap) | ||
CFLAGS += -D EZXML_NOMMAP | ||
.endif | ||
.if defined(DEBUG) || make(debug) || make(test) | ||
CFLAGS += -O0 -g | ||
.endif | ||
.if make($(TEST)) || make(test) | ||
CFLAGS += -D EZXML_TEST | ||
.endif | ||
|
||
all: $(LIB) | ||
|
||
$(LIB): $(OBJS) | ||
$(AR) rcs $(LIB) $(OBJS) | ||
|
||
test: $(TEST) | ||
|
||
debug: all | ||
|
||
nommap: all | ||
|
||
$(TEST): $(OBJS) | ||
$(CC) $(CFLAGS) -o $@ $(OBJS) | ||
|
||
ezxml.o: ezxml.h ezxml.c | ||
|
||
.c.o: | ||
$(CC) $(CFLAGS) -c -o $@ $< | ||
|
||
clean: | ||
$(RM) $(OBJS) $(LIB) $(TEST) *~ |
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
ezXML 0.8.6 | ||
- fixed a bug in ezxml_add_child() that can occur when adding tags out of order | ||
- for consistency, ezxml_set_attr() now returns the tag given | ||
- added ezxml_move() and supporting functions ezxml_cut() and ezxml_insert() | ||
- fixed a bug where parsing an empty file could cause a segfault | ||
|
||
ezXML 0.8.5 | ||
- fixed ezxml_toxml() to not output siblings of tag being converted | ||
- fixed a segfault when ezxml_set_attr() was used on a new root tag | ||
- added ezxml_name() function macro | ||
- all external functions now handle NULL ezxml_t structs without segfaulting | ||
|
||
ezXML 0.8.4 | ||
- fixed to compile under win-doze when NOMMAP make option is set | ||
- fixed a bug where ezxml_toxml() could segfault if tag offset is out of bounds | ||
- ezxml_add_child() now works properly when tags are added out of order | ||
- improved error messages now include line numbers | ||
- fixed memory leak when entity reference is shorter than replacement text | ||
- added ezxml_new_d(), ezxml_add_child_d(), ezxml_set_txt_d() and | ||
ezxml_set_attr_d() function macros as wrappers that strdup() their arguments | ||
|
||
ezXML 0.8.3 | ||
- fixed a UTF-16 decoding bug affecting larger unicode values | ||
- added internal dtd processing for entity declarations and default attributes | ||
- now correctly normalizes attribute values in compliance with the XML 1.0 spec | ||
- added check for correct tag nesting | ||
- ezxml_toxml() now generates canonical xml (apart from the namespace stuff) | ||
|
||
ezXML 0.8.2 | ||
- fixed compiler warning about lvalue type casting | ||
- ezxml_get() argument list can now be terminated by an empty string tag name | ||
- added NOMMAP make option for systems without posix memory mapping | ||
- added support for UTF-16 | ||
- fixed bug in ezxml_toxml() where UTF-8 sequences were being ampersand encoded | ||
- added ezxml_new(), ezxml_add_child(), ezxml_set_txt(), ezxml_set_attr(), | ||
and ezxml_remove() to facilitate creating and modifying xml | ||
|
||
ezXML 0.8.1 | ||
- fixed bug where tags of same name were not recognized as such | ||
- fixed a memory allocation bug in ezxml_toxml() that could cause a segfault | ||
- added an extra check for missing root tag | ||
- now allows for space between ] and > when closing <!DOCTYPE [ ... ]> | ||
- now allows : as tag name start char | ||
- added ezxml_next() and ezxml_txt() function macros | ||
|
||
ezXML 0.8 | ||
- added ezxml_toxml() function | ||
- removed ezxml_print(), just use printf() with ezxml_toxml() (minor version | ||
api changes will all be backwards compatible after 1.0 release) | ||
- added ezxml_pi() for retrieving <? ?> parsing instructions | ||
- whitespace in tag data is now preserved in compliance with the XML 1.0 spec | ||
|
||
ezXML 0.7 | ||
- initial public release |
Oops, something went wrong.