Redland

 view release on metacpan or  search on metacpan

redland/raptor/ChangeLog.4  view on Meta::CPAN


2003-09-30  Dave Beckett  <Dave.Beckett@bristol.ac.uk>

	* TODO.html: NTP lval

	* n3_parser.y: Remove n3_parser_lex; re-#define yylex to call direct

	* n3_lexer.l (copy_string_token):
	Destroy malloced string on error return.

	* n3_parser.y (n3_parse):
	Don't delete buffer, pop buffer state; a successful lex does that.

	* raptor_internal.h: Remove n3_token_print

	* n3_parser.y: Use reentrant yacc parser.
	Store the lexer lval in the n3_parser context.
	Lots of #define trickery to get flex/bison to talk nicely.
	Make n3_parser_error take an rdf_parser arg (this isn't configurable
	by bison itself, so is likely fragile).
	Remove use of extern in lineno; get it from the lexer.
	Remove N3_Parser global; use rdf_parser local.
	(n3_parser_error): Update for having rdf_parser arg, update locator
	lineno from scanner.
	(n3_syntax_error, n3_qname_to_uri): Get lineno from scanner.
	(n3_parse): Remove fixmes, no need for protecting globals.
	(main): Update for reentrant parser; init locator from standalone
	args.

	* n3_lexer.l:
	Remove n3_lexer.c/.h prototypes no longer(?) needed with
        re-entrant lexer.
	Remove use of lineno; let lexer do it.
	Change lexer call to pass in lval from reentrant parser.
	(n3_token_print): Pass in lval.
	(main): Update for api changes.

2003-09-29  Dave Beckett  <Dave.Beckett@bristol.ac.uk>

	* raptor_internal.h: Updates for reentrant lexer.

	* n3_parser.y: Use reentrant lexer API.
	Define YYLEX_PARAM to be scanner arg, from current grammar.
	(n3_parser_lex): Take scanner arg.
	(n3_syntax_error): Add rdf_parser arg.
	(n3_parse): Init and destroy reentrant lexer.
	(raptor_n3_parse_terminate): Tidy up any lexer stuff.
	(main): Check for file not found, report it.

	* n3_lexer.l:
	Switch to reentrant lexer.  Pass rdf_parser into code, yyextra
	internally.
	(yywrap): Add scanner arg.
	(copy_string_token, n3_syntax_error): Add rdf_parser arg.
	(main): Use reentrant calls for lexer to set yyin, get_text.  Use
	yylex_init/yylex_destroy.

	* Makefile.am: n3_lexer_test depends on raptor_utf8

	* raptor_parse.c:
	Add EXPAT_UTF8_BOM_CRASH fix updates for sax2 changes.

	* configure.ac: Tweak for old flex version output

	* configure.ac: Try to check flex is new enough.

2003-09-21  Dave Beckett  <Dave.Beckett@bristol.ac.uk>

	* n3_parser.y: Minor C reformatting

2003-09-20  Dave Beckett  <Dave.Beckett@bristol.ac.uk>

	* raptor.h: Added raptor_parsers_enumerate prototype

	* n3_lexer.l: minor reformatting

	* n3_lexer.l (copy_string_token): Make \r, \n and \t work

	* raptor_general.c (raptor_init): Ensure rdf/xml is default parser.
	(raptor_parsers_enumerate): Added, to enumerate parsers, returning
	their name & label.

	* examples/grapper.c:
	Use raptor_parsers_enumerate to get parser names, labels.

	* n3_lexer.l: flex archaeology for options

	* examples/Makefile.am: Don't build examples by default

2003-09-19  Dave Beckett  <Dave.Beckett@bristol.ac.uk>

	* raptor_www.c, raptor_general.c:
	Revert to old API for raptor_uri_uri_string_to_filename

	* raptor.h, raptor_uri.c (raptor_uri_uri_string_to_filename):
	Restored to old API.
	(raptor_uri_uri_string_to_filename_fragment): Added with fragment arg.

2003-09-17  Dave Beckett  <Dave.Beckett@bristol.ac.uk>

	* n3_parser.y (n3_qname_to_uri):
	Handle NULL (":" in N3) returning the default
	namespace.  It's not quite clear if this is legal.

	* n3_parser.y (raptor_n3_generate_statement):
	Do nothing if some part of the triple
	is NULL.

	* raptor_internal.h: n3_syntax_error now takes varargs

	* n3_parser.y (n3_syntax_error): Now takes varargs

	* n3_lexer.l: n3_syntax_error now takes varargs
	(copy_string_token): Added \u, \U.  Fixed, \r, \n, \t

	* n3_parser.y: Wrap a debugging printf

	* n3_lexer.l: For blank literal "_:abc", don't include _: in the
	id passed to the parser.

	* n3_parser.y:

redland/raptor/ChangeLog.4  view on Meta::CPAN

	www library connection - just curl at present.
	(raptor_www_get_connection): Added, returns current libwww library
	connection.
	(raptor_www_abort): Added to stop a www transaction.
	(raptor_www_file_fetch): Tidying of errors; handle abort.
	(raptor_www_fetch): Uses raptor_www_file_fetch for all files.

	* raptor_internal.h: Added W3C libwww prototypes.

	* raptor_parse.c:
	Throughout all SAX event handlers - if rdf_parser->failed set, return
	immediately, doing no work.

	* raptor_general.c (raptor_parse_uri_write_bytes):
	Use raptor_www_abort if parsing
	fails.
	(raptor_parse_uri): Return error status.  Pass on is_end empty chunk.
	(raptor_parser_abort): Added, setting failed flag.
	(raptor_print_statement_detailed): Typo

	* raptor.h: Added raptor_www_abort

	* raptor.h: Add raptor_www_init, raptor_www_finish.
	Add raptor_www_new_with_connection
	Add raptor_www_get_connection

	* configure.ac: Added w3c libwww configuring

2003-03-16  Dave Beckett  <Dave.Beckett@bristol.ac.uk>

	* rdfdump.c: Use raptor_parse_uri

	* raptor_general.c (raptor_parse_uri_write_bytes): Added, to support:
	(raptor_parse_uri): Added, using raptor_www to get and deal with all
	the data in one go.

	* raptor.h: raptor_parse_uri takes optional base_uri

	* raptor_www_test.c: Use URI from context.
	Take www arg on handlers
	Use raptor_uri

	* raptor_www_libxml.c, raptor_www_curl.c:
	Use URI from context.
	Take www arg on handlers

	* raptor_www.c (raptor_www_set_userdata): Gone
	(raptor_www_free): Free request uri
	(raptor_www_set_write_bytes_handler,
	raptor_www_set_content_type_handler): Added
	(raptor_www_file_fetch): pass www to write_bytes
	(raptor_www_fetch): Don't pass URI on.

	* raptor_internal.h: Store raptor_uri of request
	Use new declared write_bytes, content_type handlers
	*fetch methods don't take URI string

	* raptor.h: Declare handlers for raptor www write bytes, content type
	raptor_www_fetch now takes a raptor_uri

	* raptor_parse.c: Fix broken-fix for broken-expat UTF8 BOM crash.
	tokens_count is on the rdf_xml_parser not rdf_parser

	* configure.ac: tweak

	* configure.ac: tidy libcurl version

	* raptor_internal.h, configure.ac: No more gnome-xml/libxml.h

	* configure.ac: Min libxml2 now 2.4.0

	* configure.ac: Don't look for xml-config

	* raptor_general.c (raptor_parse_file):
	Tidy up if raptor_start_parse fails

	* raptor_general.c:
	Removed raptor_start_parse_file - merged into raptor_parse_file

	* raptor_www.c (raptor_www_file_fetch): Used for RAPTOR_WWW_NONE
	Report file open errors, correct file read eof handling.
	(raptor_www_fetch) Use only raptor_www_file_fetch for RAPTOR_WWW_NONE

	* raptor_general.c (raptor_start_parse_file):
	Improve file open error message

	* configure.ac:
	Added --with-www=none option and RAPTOR_WWW_NONE to indicate it

2003-03-15  Dave Beckett  <Dave.Beckett@bristol.ac.uk>

	* raptor_www.c (raptor_www_error): Use RAPTOR_FREE

	* raptor_www_test.c: Call raptor_uri_init

	* raptor_www_curl.c (raptor_www_curl_fetch): call raptor_www_error

	* raptor_internal.h: Use raptor_message_handler again

	* raptor.h:
	Use raptor_message_handler again in raptor_www_set_error_handler,
	raptor_www_error

	* raptor_www.c (raptor_www_free): Tidy locator URI
	(raptor_www_set_error_handler, raptor_www_error): Use
	raptor_message_handler again.
	(raptor_www_error): Use raptor_locator in output, error handler.
	(raptor_www_fetch): Store the URI string of request in the locator

	* raptor.h: Declare raptor_www_message_handler (no locator)

	* raptor_general.c: raptor_vsnprintf now internally visible.

	* raptor_internal.h: Use different error handler, no parser context.
	raptor_vsnprintf now internally visible.
	Added raptor_www_error prototype

	* raptor_www.c: Only enable raptor_www_file_fetch with libxml,
	(raptor_www_set_error_handler): Use different error handler, no
	parser context.



( run in 0.670 second using v1.01-cache-2.11-cpan-140bd7fdf52 )