2015-02-22  Guilherme F. Lima  <gflima@sdf.org>

	tests: Add ref-cairo-1-14 to EXTRA_DIST
	* tests/Makefile.am: Likewise.

	Merge branch 'master' of github.com:gflima/nclua

	doc: Update NEWS
	* NEWS: Likewise.

2015-02-21  Guilherme F. Lima  <gflima@sdf.org>

	maint: Make checks for AC_DEFINEd macros stricter
	* lib/ncluaw.c: Likewise.
	* nclua/canvas.c: Likewise.
	* tests/test-libnclua-open.c: Likewise.

	lib: Merge latest luax-macros.h
	* lib/luax-macros.h: Likewise.

	build: Suppress -Woverlength-strings; some tests use big literals
	* configure.ac (nw): Add -Woverlength-strings.

	tests: Fix -Winline in tests.h
	* tests/tests.h (TRACE_SEP): Remove inline modifier.

	src: Fix -Wclobbered in main
	* src/nclua.c (main): Make status volatile.

	doc: Update NEWS and TODO
	* NEWS: Likewise.
	* TODO: Likewise.

	doc: Update TODO
	* TODO: Likewise.

	build: Fix bad quoting in MINGW_ROOT definition
	* configure.ac: Likewise.

	build: Find out MinGW root dir and store it in MINGW_ROOT
	* configure.ac: Likewise.
	* tests/Makefile.am (WINROOT): Updated to use MINGW_ROOT.

	build: Fix README rule in top-level Makefile.am
	* Makefile.am: Likewise.

	doc: Update TODO
	* TODO: Likewise.

	doc: Update NEWS
	* NEWS: Likewise.

	contrib/debian: Update changelog
	* contrib/debian/changelog: Likewise.

	doc: Update NEWS
	* NEWS: Likewise.

	doc: Update TODO
	* TODO: Likewise.

	build: Cleanup core dumps on clean target
	* build-aux/Makefile.am.common: Likewise.
	(DISTCLEANFILES): Add common definition.
	* lib/Makefile.am: Updated accordingly.
	* Makefile.am: Likewise.

	tests: Fix env.sh rule in Makefile.am
	* tests/Makefile.am: Replace srcdir by buildir.

	tests: Fix cairo reference lookup paths
	* tests/tests.lua (tests.canvas.check_ref): Likewise.
	(tests.canvas.dump_ref): Likewise.
	(tests.basename): New function.
	(tests.dirname): New function.

	build: Add README.md to EXTRA_DIST
	* Makefile.am: Likewise.

	tests: Fix URL in test-event-http-soup-request.lua
	* tests/test-event-http-soup-request.lua: Likewise.

	tests/ref-cairo-any: Update test-canvas-drawText-3-ref.png
	* tests/ref-cairo-any/test-canvas-drawText-3-ref.png: Likewise.

	maint: Syntax cleanup
	* nclua/event/http_soup.c: Likewise.
	* nclua/event/tcp_socket.c: Likewise.
	* src/nclua.c: Likewise.
	* maint.mk (perl_after_indent_type_list): Add GdkEventButton and
	GdkEventMotion.

2015-02-20  Guilherme F. Lima  <gflima@sdf.org>

	tests: Update suppfile
	* tests/suppfile.m4: Likewise.

	tests: Make sure that the name returned by tests.tmpname is valid
	* tests/tests.lua: Likewise.

	tests: Make test-libnclua-open.c check if TCP or HTTP are available
	* tests/test-libnclua-open.c: Likewise.

	tests: Add tests.tmpname to tests.lua
	* tests/tests.lua (tests.tmpname): New function; os.tmpname wrapper.
	* tests/test-canvas-attrSize.lua: Updated to use the above function.
	* tests/test-event-http-engine.lua: Likewise.
	* tests/test-event-tcp-socket-send.lua: Likewise.

	tests: Update Makefile.am due to last two commits
	* tests/Makefile.am (EXTRA_DIST): Likewise.

	tests: Add reference pictures for cairo 1.14; update tests accordingly
	* tests/ref-cairo-1-14/test-canvas-drawEllipse-2-ref.png: New reference.
	* tests/ref-cairo-1-14/test-canvas-drawEllipse-3-ref.png: New reference.
	* tests/ref-cairo-1-14/test-canvas-drawEllipse-4-ref.png: New reference.
	* tests/ref-cairo-1-14/test-canvas-drawLine-2-ref.png: New reference.
	* tests/ref-cairo-1-14/test-canvas-drawLine-3-ref.png: New reference.
	* tests/ref-cairo-1-14/test-canvas-drawLine-4-ref.png: New reference.
	* tests/ref-cairo-1-14/test-canvas-drawPolygon-2-ref.png: New reference.
	* tests/ref-cairo-1-14/test-canvas-drawPolygon-3-ref.png: New reference.
	* tests/ref-cairo-1-14/test-canvas-drawPolygon-4-ref.png: New reference.
	* tests/ref-cairo-1-14/test-canvas-drawRoundRect-2-ref.png: New
	reference.
	* tests/ref-cairo-1-14/test-canvas-drawRoundRect-3-ref.png: New
	reference.
	* tests/ref-cairo-1-14/test-canvas-drawRoundRect-4-ref.png: New
	reference.
	* tests/ref-cairo-1-14/test-canvas-drawRoundRect-6-ref.png: New
	reference.
	* tests/ref-cairo-1-14/test-canvas-drawText-2-ref.png: New reference.
	* tests/ref-cairo-1-14/test-canvas-drawText-3-ref.png: New reference.
	* tests/ref-cairo-1-14/test-canvas-drawText-4-ref.png: New reference.
	* tests/ref-cairo-1-14/test-canvas-drawText-5-ref.png: New reference.
	* tests/ref-cairo-1-14/test-canvas-drawText-7-ref.png: New reference.
	* tests/test-canvas-attrAntiAlias.lua: Likewise.
	* tests/test-canvas-compose.lua: Likewise.
	* tests/test-canvas-drawEllipse.lua: Likewise.
	* tests/test-canvas-drawLine.lua: Likewise.
	* tests/test-canvas-drawPolygon.lua: Likewise.
	* tests/test-canvas-drawRoundRect.lua: Likewise.
	* tests/test-canvas-drawText.lua: Likewise.
	* tests/test-canvas-pixel.lua: Likewise.

	tests: Add support to different reference pictures per cairo version
	* tests/tests.lua (check_ref): Updated to look for the requested
	reference picture in ref-cairo-X.Y subdir before falling back to
	ref-cairo-any subdir.
	(dump_ref): Updated to dump the a new reference picture into
	ref-cairo-X.Y subdir.
	(cairo_get_version): New function; maps tests0.cairo_get_version.
	(cairo_check_version): New function; maps tests0.cairo_check_version.
	(dir_exists): New function; maps tests0.dir_exists.
	(file_exists): New function; maps tests0.file_exists.
	* tests/tests0.c (cairo_check_version): Renamed from 'cairo_version'.
	(cairo_get_version): New function; returns cairo version numbers.
	(dir_exists): New function; returns true if the given
	path is a directory.
	(file_exists): New function; return true if the given file is a regular
	file.
	* tests/ref-cairo-any/test-canvas-clear-1-ref.png: Renamed from
	'test-canvas-clear-1-ref.png'.
	* tests/ref-cairo-any/test-canvas-clear-2-ref.png: Renamed from
	'tests/test-canvas-clear-2-ref.png'.
	* tests/ref-cairo-any/test-canvas-clear-3-ref.png: Renamed from
	'tests/test-canvas-clear-3-ref.png'.
	* tests/ref-cairo-any/test-canvas-clear-4-ref.png: Renamed from
	'tests/test-canvas-clear-4-ref.png'.
	* tests/ref-cairo-any/test-canvas-clear-5-ref.png: Renamed from
	'tests/test-canvas-clear-5-ref.png'.
	* tests/ref-cairo-any/test-canvas-clear-6-ref.png: Renamed from
	'tests/test-canvas-clear-6-ref.png'.
	* tests/ref-cairo-any/test-canvas-compose-1-ref.png: Renamed from
	'tests/test-canvas-compose-1-ref.png'.
	* tests/ref-cairo-any/test-canvas-compose-2-ref.png: Renamed from
	'tests/test-canvas-compose-2-ref.png'.
	* tests/ref-cairo-any/test-canvas-compose-3-ref.png: Renamed from
	'tests/test-canvas-compose-3-ref.png'.
	* tests/ref-cairo-any/test-canvas-compose-4-ref.png: Renamed from
	'tests/test-canvas-compose-4-ref.png'.
	* tests/ref-cairo-any/test-canvas-compose-5-ref.png: Renamed from
	'tests/test-canvas-compose-5-ref.png'.
	* tests/ref-cairo-any/test-canvas-compose-6-ref.png: Renamed from
	'tests/test-canvas-compose-6-ref.png'.
	* tests/ref-cairo-any/test-canvas-compose-7-ref.png: Renamed from
	'tests/test-canvas-compose-7-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawEllipse-1-ref.png: Renamed from
	'tests/test-canvas-drawEllipse-1-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawEllipse-2-ref.png: Renamed from
	'tests/test-canvas-drawEllipse-2-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawEllipse-3-ref.png: Renamed from
	'tests/test-canvas-drawEllipse-3-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawEllipse-4-ref.png: Renamed from
	'tests/test-canvas-drawEllipse-4-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawEllipse-5-ref.png: Renamed from
	'tests/test-canvas-drawEllipse-5-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawEllipse-6-ref.png: Renamed from
	'tests/test-canvas-drawEllipse-6-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawEllipse-7-ref.png: Renamed from
	'tests/test-canvas-drawEllipse-7-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawLine-1-ref.png: Renamed from
	'tests/test-canvas-drawLine-1-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawLine-2-ref.png: Renamed from
	'tests/test-canvas-drawLine-2-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawLine-3-ref.png: Renamed from
	'tests/test-canvas-drawLine-3-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawLine-4-ref.png: Renamed from
	'tests/test-canvas-drawLine-4-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawLine-5-ref.png: Renamed from
	'tests/test-canvas-drawLine-5-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawLine-6-ref.png: Renamed from
	'tests/test-canvas-drawLine-6-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawPolygon-1-ref.png: Renamed from
	'tests/test-canvas-drawPolygon-1-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawPolygon-2-ref.png: Renamed from
	'tests/test-canvas-drawPolygon-2-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawPolygon-3-ref.png: Renamed from
	'tests/test-canvas-drawPolygon-3-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawPolygon-4-ref.png: Renamed from
	'tests/test-canvas-drawPolygon-4-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawPolygon-5-ref.png: Renamed from
	'tests/test-canvas-drawPolygon-5-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawPolygon-6-ref.png: Renamed from
	'tests/test-canvas-drawPolygon-6-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawRect-1-ref.png: Renamed from
	'tests/test-canvas-drawRect-1-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawRect-2-ref.png: Renamed from
	'tests/test-canvas-drawRect-2-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawRect-3-ref.png: Renamed from
	'tests/test-canvas-drawRect-3-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawRect-4-ref.png: Renamed from
	'tests/test-canvas-drawRect-4-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawRect-5-ref.png: Renamed from
	'tests/test-canvas-drawRect-5-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawRect-6-ref.png: Renamed from
	'tests/test-canvas-drawRect-6-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawRoundRect-1-ref.png: Renamed from
	'tests/test-canvas-drawRoundRect-1-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawRoundRect-2-ref.png: Renamed from
	'tests/test-canvas-drawRoundRect-2-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawRoundRect-3-ref.png: Renamed from
	'tests/test-canvas-drawRoundRect-3-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawRoundRect-4-ref.png: Renamed from
	'tests/test-canvas-drawRoundRect-4-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawRoundRect-5-ref.png: Renamed from
	'tests/test-canvas-drawRoundRect-5-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawRoundRect-6-ref.png: Renamed from
	'tests/test-canvas-drawRoundRect-6-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawText-1-ref.png: Renamed from
	'tests/test-canvas-drawText-1-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawText-2-ref.png: Renamed from
	'tests/test-canvas-drawText-2-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawText-3-ref.png: Renamed from
	'tests/test-canvas-drawText-3-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawText-4-ref.png: Renamed from
	'tests/test-canvas-drawText-4-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawText-5-ref.png: Renamed from
	'tests/test-canvas-drawText-5-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawText-6-ref.png: Renamed from
	'tests/test-canvas-drawText-6-ref.png'.
	* tests/ref-cairo-any/test-canvas-drawText-7-ref.png: Renamed from
	'tests/test-canvas-drawText-7-ref.png'.
	* tests/ref-cairo-any/test-canvas-flush-1-ref.png: Renamed from
	'tests/test-canvas-flush-1-ref.png'.
	* tests/ref-cairo-any/test-canvas-flush-2-ref.png: Renamed from
	'tests/test-canvas-flush-2-ref.png'.
	* tests/ref-cairo-any/test-canvas-flush-3-ref.png: Renamed from
	'tests/test-canvas-flush-3-ref.png'.
	* tests/ref-cairo-any/test-canvas-flush-4-ref.png: Renamed from
	'tests/test-canvas-flush-4-ref.png'.
	* tests/ref-cairo-any/test-canvas-new-1-ref.png: Renamed from
	'tests/test-canvas-new-1-ref.png'.
	* tests/ref-cairo-any/test-canvas-pixel-1-ref.png: Renamed from
	'tests/test-canvas-pixel-1-ref.png'.

	tests: Fix time measurement bug in test-event-init-timer.lua
	* tests/test-event-init-timer.lua: Likewise.

	tests: Make tests stricter
	* tests/test-event-init-timer.lua: Likewise.

	tests: Fix bug in tests.lua
	* tests/tests.lua (dump): Make sure n is non-nil.

	tests: Use optrequire to load http_soup and tcp_socket in tests.lua
	* tests/tests.lua (optrequire): New function; fail-safe require.

	build: Fix warning Makefile.am
	* Makefile.am (perl_strip_md): Likewise.

2015-02-15  Guilherme F. Lima  <gflima@sdf.org>

	doc: Fix typo in README.md
	* README.md: Likewise.

	doc: Update README.md
	* README.md: Likewise.

	build: Remove -Wswitch-enum from warning list on GCC
	* configure.ac: Likewise.

	build: Fix bug in code that generates README
	* Makefile.am (README): Likewise.

	doc: Update README.md

	doc: Fix typo
	* README.md: Likewise.

	doc: Update logo tooltip
	* README.md: Likewise.
	* Makefile.am (README): Updated accordingly.

	doc: Add space between logo and text in README.md
	* README.md: Likewise.
	* Makefile.am (README): Updated accordingly.

	doc: Add logo to README.md
	* README.md: Likewise.
	* Makefile.am (README): Updated accordingly.

2015-02-14  Guilherme F. Lima  <gflima@sdf.org>

	examples: Add follow.lua
	* examples/follow.lua: New example; demonstrates the pointer event
	class.

	src: Add support to pointer events
	* src/nclua.c: Likewise.

	build: Add $(top_builddir)/lib/.libs to env.sh LD_LIBRARY_PATH
	* tests/Makefile.am: Likewise.

	build: Suppress -Wswitch-enum on clang
	* configure.ac: Likewise.

	build: Syntax cleanup
	* maint.mk: Likewise.

	lib: Merge latest macros.h
	* lib/macros.h: Likewise.

	doc: Fix typo in README.md
	* README.md: Likewise.

	maint: Update .gitignore
	* .gitignore: Ignore the generated README.

	build: Fix maint.mk dist-win32 target to copy README
	* maint.mk: Likewise.

	build: Generate README from README.md if Perl is available
	* Makefile.am (README): Likewise.
	* README.md: Fix typo.

	doc: Update README.md
	* README.md: Likewise.

	doc: Update README.md
	* README.md: Likewise.

	doc: Update README.md
	* README.md: Likewise.

	doc: Update README.md
	* README.md: Likewise.

	doc: Update README.md
	* README.md: Likewise.

2015-02-13  Guilherme F. Lima  <gflima@sdf.org>

	maint: Add extra assertions
	* lib/ncluaw.c: Likewise.
	* nclua/canvas.c: Likewise.
	* nclua/event/http_soup.c: Likewise.
	* nclua/event/stopwatch.c: Likewise.
	* nclua/event/tcp_socket.c: Likewise.
	* src/nclua.c: Likewise.
	* tests/lua.c: Likewise.
	* tests/test-libnclua-open-x.c: Likewise.
	* tests/test-libnclua-paint.c: Likewise.
	* tests/tests0.c: Likewise.

	build: Add missing escape in maint.mk
	* maint.mk: Likewise.

	build: Syntax cleanup
	* maint.mk: Likewise.

	build: Rename README to README.mk in maint.mk dist-win32
	* maint.mk (dist-win32): Likewise.

	nclua: Fix bug in height parameter of l_canvas_height
	* nclua/canvas.c (l_canvas_height): We were using canvas->width instead
	of canvas->height to initialize height when it was not explicit given.

	tests: Fix env.sh to work on MinGW
	* tests/Makefile.am (perl_env_sh_expand_variables): Likewise.

	lib: Fix plugin_list in ncluaw.c
	* lib/ncluaw.c (plugin_list): Add "http" and "tcp" only if they are
	enabled.

2015-02-12  Guilherme F. Lima  <gflima@sdf.org>

	build: Cleanup comments in maint.mk
	* maint.mk: Likewise.
	(sc-useless-if-before-free): Renamed from
	sc-avoid-if-before-free.

	build: Refactor maint.mk
	* maint.mk: Likewise; now we're using Gmake stuff.

	maint: Syntax cleanup
	* lib/ncluaw.c: Likewise.
	* nclua/canvas-color-table.h: Likewise.
	* nclua/canvas.c: Likewise.

	tests: Syntax cleanup
	* tests/Makefile.am: Likewise.

	build: Add more info to configure summary
	* configure.ac: Likewise.

	lib: Merge latest macros.h
	* lib/macros.h: Likewise.

2015-02-11  Guilherme F. Lima  <gflima@sdf.org>

	build: Make GIO, SOUP, and GTK optional
	* configure.ac: Likewise.
	* nclua/event/Makefile.am: Likewise.
	* tests/Makefile.am: Likewise.

	lib: Merge latest macros.h
	* lib/macros.h: Likewise.
	* lib/ncluaw.c: Replace test_and_set by set_if_nonnull.
	* nclua/canvas.c: Likewise.
	* nclua/event/http_soup.c: Likewise.
	* nclua/event/luax-callback.h: Likewise.
	* nclua/event/tcp_socket.c: Likewise.

	src: Fix exit status
	* src/nclua.c (main): Initialize variable status.

2015-02-10  Guilherme F. Lima  <gflima@sdf.org>

	build: Fix indent target; improve compatibility with bmake
	* maint.mk: Likewise.

	examples/www: Remove unused declarations
	* examples/www/example-http.lua: Likewise.
	* examples/www/example-tcp.lua: Likewise.
	* examples/www/tcp.lua: Likewise.

	maint: Syntax cleanup
	* examples/luarocks/game.lua: Likewise.
	* examples/pacman/actor.lua: Likewise.
	* examples/pacman/actor_ghost.lua: Likewise.
	* examples/pacman/actor_pacman.lua: Likewise.
	* examples/pacman/board.lua: Likewise.
	* examples/pacman/display.lua: Likewise.
	* examples/pacman/game.lua: Likewise.
	* examples/pacman/input.lua: Likewise.
	* examples/pacman/parser.lua: Likewise.
	* lib/nclua.c: Likewise.
	* lib/ncluaw.c: Likewise.
	* nclua/canvas-color-table.h: Likewise.
	* nclua/canvas.c: Likewise.
	* nclua/event/http_soup.c: Likewise.
	* nclua/event/luax-callback.h: Likewise.
	* src/nclua.c: Likewise.
	* tests/test-libnclua-open.c: Likewise.
	* tests/test-libncluaw-at-panic.c: Likewise.
	* tests/test-libncluaw-debug-dump-surface.c: Likewise.

2015-02-09  Guilherme F. Lima  <gflima@sdf.org>

	doc: Update TODO
	* TODO: Likewise.

	examples/www: Add http.lua and example-http.lua
	* examples/www/http.lua: New file; library for blocking HTTP requests.
	* examples/www/example-http.lua: New example.

	examples/www: Cleanup example-tcp.lua
	* examples/www/example-tcp.lua: Likewise.

	nclua/event: Fix bug in request_finished callback in http.lua
	* nclua/event/http.lua: Convert method to lowercase.

	examples/www: Rename http-raw.lua to example-tcp.lua
	* examples/www/example-tcp.lua: Likewise; updated to display the results
	on screen.
	* examples/www/tcp.lua: Syntax cleanup.

	lib: Add "http" to default plugin list in ncluaw.c
	* lib/ncluaw.c: Likewise.

	tests: Update URI used in HTTPS tests
	* tests/test-event-http-engine.lua: Likewise.
	* tests/test-event-http-soup-request.lua: Likewise.

	tests: Make tests stricter
	* tests/test-libnclua-open.c: Likewise.

	nclua/event: Fix comments in luax-callback.h
	* nclua/event/luax-callback.h: Likewise.

	doc: Update README.md
	* README.md: Likewise.

	doc: Update README.md
	* README.md: Likewise.

	tests: Add new http tests
	* tests/test-event-http-engine.lua: New test.
	* tests/test-event-http-filter.lua: New test.
	* tests/Makefile.am: Updated accordingly.
	* tests/test-event-http-soup-new.lua: Make it stricter.
	* tests/test-event-http-soup-request.lua: Likewise.
	* tests/test-event-http-check.lua: Likewise.

	nclua/event: Add support to timeout to http event class
	* nclua/event/http.lua: Likewise.
	* nclua/event/http_soup.c: Likewise.

	nclua/event: Fix timeout check in tcp.lua
	* nclua/event/tcp.lua (check): Likewise.

2015-02-06  Guilherme F. Lima  <gflima@sdf.org>

	nclua/event: Add the http event class
	* nclua/event/http.lua: New file; implements http event class.
	* tests/test-event-http-api.lua: New test.
	* tests/test-event-http-check.lua: New test.
	* tests/Makefile.am: Updated accordingly.

	nclua/event: Fix comments
	* nclua/event/http_soup.c: Likewise.

	nclua/event: Fix hardcoded string in tcp.lua
	* nclua/event/tcp.lua (cycle): Likewise.

	nclua/event: Fix comments
	* nclua/event/tcp_socket.c: Likewise.

	lib: Merge latest luax-macros.h
	* lib/luax-macros.h: Likewise.

	nclua/event: Fix number arguments to request callback in http_soup.c
	* nclua/event/http_soup.c: Likewise.
	* tests/test-event-http-soup-request.lua: Updated accordingly.

	maint: Add http_soup
	* nclua/event/http_soup.c: New file; Lua bindings to Libsoup.
	* nclua/event/Makefile.am: Updated accordingly.
	* configure.ac: Likewise.
	* tests/suppfile.m4: Likewise.
	* tests/test-event-http-soup-api.lua: New test.
	* tests/test-event-http-soup-is-soup.lua: New test.
	* tests/test-event-http-soup-new.lua: New test.
	* tests/test-event-http-soup-request.lua: New test.
	* tests/tests.lua (tests.soup.cycle_until): New function.

	nclua/event: Fix comments
	* nclua/event/tcp.lua: Likewise.

	nclua/event: Move callback data stuff to a separated file
	* nclua/event/luax-callback.h: New file; macros for passing Lua objects
	to C callbacks.
	* nclua/event/tcp_socket.c: Updated accordingly.

	doc: Rename README to README.md
	* README.md: Likewise.

2015-02-05  Guilherme F. Lima  <gflima@sdf.org>

	nclua: Add extra asserts; fix comments
	* nclua/event/tcp_socket.c: Likewise.

	nclua/event: Fix error message in tcp.lua
	* nclua/event/tcp.lua: Likewise.

	nclua: Add extra asserts
	* nclua/canvas.c (l_canvas_new): Likewise.
	* nclua/event/stopwatch.c (l_stopwatch_new): Likewise.

	maint: Rename nclua/event/socket.c to nclua/event/tcp_socket.c
	* nclua/event/tcp_socket.c: Renamed from nclua/event/socket.c.
	* tests/test-event-tcp-socket-api.lua: Renamed from
	tests/test-event-socket-api.lua.
	* tests/test-event-tcp-socket-connect.lua: Renamed from
	tests/test-event-socket-connect.lua.
	* tests/test-event-tcp-socket-echo.lua: Renamed from
	tests/test-event-socket-echo.lua.
	* tests/test-event-tcp-socket-is-socket.lua: Renamed from
	tests/test-event-socket-is-socket.lua.
	* tests/test-event-tcp-socket-new.lua: Renamed from
	tests/test-event-socket-new.lua.
	* tests/test-event-tcp-socket-receive.lua: Renamed from
	tests/test-event-socket-receive.lua.
	* tests/test-event-tcp-socket-send.lua: Renamed from
	tests/test-event-socket-send.lua.
	* tests/test-event-tcp-socket-timeout.lua: Renamed from
	tests/test-event-socket-timeout.lua.
	* nclua/event/Makefile.am: Updated accordingly.
	* nclua/event/tcp.lua: Likewise.
	* tests/Makefile.am: Likewise.
	* tests/test-event-init-register.lua: Likewise.
	* tests/test-event-tcp-check.lua: Likewise.
	* tests/test-event-tcp-filter.lua: Likewise.
	* tests/tests.lua: Likewise.

	nclua/event: Don't schedule a receive during a send in tcp.lua
	* nclua/event/tcp.lua (cycle): Likewise; otherwise we get a "Stream has
	outstanding operation" error from GIO.

	nclua/event: Replace custom local registry stuff by luax_mregistry
	* nclua/event/socket.c: Likewise.

	examples: Add www subdir
	* examples/www/tcp.lua: New file; a simple TCP wrapper library.
	* examples/www/http-raw.lua: New file; new example.  Makes an HTTP
	request and prints the response on stdout.

	nclua/event: Fix bug in receive callback in tcp.lua
	* nclua/event/tcp.lua (receive_finished): Do not disconnect the socket;
	only schedule a receive if the length of the received data is
	non-zero.
	(send_finished): Schedule a receive after sending data.

2015-02-04  Guilherme F. Lima  <gflima@sdf.org>

	src: Use custom panic function in nclua.c
	* src/nclua.c: Likewise.

	* lib: Fix bug in ncluaw.c
	* lib/ncluaw.c (ncluaw_panic_wrapper): Make sure that error message is
	on top of stack before calling the panic function.

	lib: Merge latest luax-macros.h
	* lib/luax-macros.h: Likewise.

	nclua/event: Syntax cleanup
	* nclua/event/init.lua: Likewise.

	build: Don't fetch git-log-fix in maint.mk
	* maint.mk (fetch-remote): Remove git-log-fix since it is a
	project-specific file.

	build: Merge latest bootstrap script
	* bootstrap: Likewise.

2015-02-03  Guilherme F. Lima  <gflima@sdf.org>

	examples/pacman: Fix service.currentKeyMaster value in main.ncl
	* examples/pacman/main.ncl: Updated to NCLlua object id.

2015-01-31  Guilherme F. Lima  <gflima@sdf.org>

	maint: Fix some comments
	* lib/nclua.c: Likewise.
	* nclua/canvas.c: Likewise.

2015-01-21  Guilherme F. Lima  <gflima@sdf.org>

	maint: Merge latest macros.h
	* lib/macros.h: Likewise.

2015-01-20  Guilherme F. Lima  <gflima@sdf.org>

	lib: Merge latest macros.h
	* lib/macros.h: Likewise.

2015-01-07  Guilherme F. Lima  <gflima@sdf.org>

	build-aux: Sync external sources
	* build-aux/git-version-gen: Likewise.
	* build-aux/gitlog-to-changelog: Likewise.
	* build-aux/manywarnings.m4: Likewise.
	* build-aux/perl.m4: Likewise.
	* build-aux/syntax-check: Likewise.
	* build-aux/useless-if-before-free: Likewise.
	* build-aux/valgrind-tests.m4: Likewise.
	* build-aux/visibility.m4: Likewise.
	* build-aux/warnings.m4: Likewise.

	maint: Sync bootstrap
	* bootstrap: Likewise.

	maint: Update copyright year
	* Makefile.am: Likewise.
	* NEWS: Likewise.
	* README: Likewise.
	* build-aux/Makefile.am.common: Likewise.
	* build-aux/Makefile.am.coverage: Likewise.
	* build-aux/Makefile.am.link: Likewise.
	* build-aux/syntax-check: Likewise.
	* build-aux/syntax-check-copyright: Likewise.
	* configure.ac: Likewise.
	* contrib/debian/copyright: Likewise.
	* examples/circle.lua: Likewise.
	* examples/input.lua: Likewise.
	* lib/Makefile.am: Likewise.
	* lib/luax-macros.h: Likewise.
	* lib/macros.h: Likewise.
	* lib/nclua.c: Likewise.
	* lib/nclua.h: Likewise.
	* lib/nclua.rc.in: Likewise.
	* lib/ncluaconf.h.in: Likewise.
	* lib/ncluaw.c: Likewise.
	* lib/ncluaw.h: Likewise.
	* maint.mk: Likewise.
	* nclua/Makefile.am: Likewise.
	* nclua/canvas-color-table.h: Likewise.
	* nclua/canvas.c: Likewise.
	* nclua/event/Makefile.am: Likewise.
	* nclua/event/check.lua: Likewise.
	* nclua/event/engine.lua: Likewise.
	* nclua/event/init.lua: Likewise.
	* nclua/event/key.lua: Likewise.
	* nclua/event/ncl.lua: Likewise.
	* nclua/event/pointer.lua: Likewise.
	* nclua/event/queue.lua: Likewise.
	* nclua/event/socket.c: Likewise.
	* nclua/event/stopwatch.c: Likewise.
	* nclua/event/tcp.lua: Likewise.
	* nclua/event/user.lua: Likewise.
	* src/Makefile.am: Likewise.
	* src/nclua.c: Likewise.
	* tests/Makefile.am: Likewise.
	* tests/libnclua-echo.c: Likewise.
	* tests/libnclua-echo.lua: Likewise.
	* tests/lua.c: Likewise.
	* tests/server.pl: Likewise.
	* tests/server.sh: Likewise.
	* tests/test-canvas-api.lua: Likewise.
	* tests/test-canvas-attrAntiAlias.lua: Likewise.
	* tests/test-canvas-attrClip.lua: Likewise.
	* tests/test-canvas-attrColor.lua: Likewise.
	* tests/test-canvas-attrCrop.lua: Likewise.
	* tests/test-canvas-attrFlip.lua: Likewise.
	* tests/test-canvas-attrFont.lua: Likewise.
	* tests/test-canvas-attrLineWidth.lua: Likewise.
	* tests/test-canvas-attrOpacity.lua: Likewise.
	* tests/test-canvas-attrRotation.lua: Likewise.
	* tests/test-canvas-attrScale.lua: Likewise.
	* tests/test-canvas-attrSize.lua: Likewise.
	* tests/test-canvas-clear.lua: Likewise.
	* tests/test-canvas-compose.lua: Likewise.
	* tests/test-canvas-drawEllipse.lua: Likewise.
	* tests/test-canvas-drawLine.lua: Likewise.
	* tests/test-canvas-drawPolygon.lua: Likewise.
	* tests/test-canvas-drawRect.lua: Likewise.
	* tests/test-canvas-drawRoundRect.lua: Likewise.
	* tests/test-canvas-drawText.lua: Likewise.
	* tests/test-canvas-flush.lua: Likewise.
	* tests/test-canvas-measureText.lua: Likewise.
	* tests/test-canvas-new.lua: Likewise.
	* tests/test-canvas-pixel.lua: Likewise.
	* tests/test-event-engine-api.lua: Likewise.
	* tests/test-event-engine-cycle.lua: Likewise.
	* tests/test-event-engine-new.lua: Likewise.
	* tests/test-event-engine-receive.lua: Likewise.
	* tests/test-event-engine-reset.lua: Likewise.
	* tests/test-event-engine-send.lua: Likewise.
	* tests/test-event-init-api.lua: Likewise.
	* tests/test-event-init-cycle.lua: Likewise.
	* tests/test-event-init-init.lua: Likewise.
	* tests/test-event-init-load.lua: Likewise.
	* tests/test-event-init-post.lua: Likewise.
	* tests/test-event-init-register.lua: Likewise.
	* tests/test-event-init-timer.lua: Likewise.
	* tests/test-event-init-unload.lua: Likewise.
	* tests/test-event-init-unregister.lua: Likewise.
	* tests/test-event-init-uptime.lua: Likewise.
	* tests/test-event-key-api.lua: Likewise.
	* tests/test-event-key-check.lua: Likewise.
	* tests/test-event-key-filter.lua: Likewise.
	* tests/test-event-ncl-api.lua: Likewise.
	* tests/test-event-ncl-check.lua: Likewise.
	* tests/test-event-ncl-filter.lua: Likewise.
	* tests/test-event-pointer-api.lua: Likewise.
	* tests/test-event-pointer-check.lua: Likewise.
	* tests/test-event-pointer-filter.lua: Likewise.
	* tests/test-event-queue-api.lua: Likewise.
	* tests/test-event-queue-dequeue.lua: Likewise.
	* tests/test-event-queue-enqueue.lua: Likewise.
	* tests/test-event-queue-new.lua: Likewise.
	* tests/test-event-socket-api.lua: Likewise.
	* tests/test-event-socket-connect.lua: Likewise.
	* tests/test-event-socket-echo.lua: Likewise.
	* tests/test-event-socket-is-socket.lua: Likewise.
	* tests/test-event-socket-new.lua: Likewise.
	* tests/test-event-socket-receive.lua: Likewise.
	* tests/test-event-socket-send.lua: Likewise.
	* tests/test-event-socket-timeout.lua: Likewise.
	* tests/test-event-stopwatch-api.lua: Likewise.
	* tests/test-event-stopwatch-get-time.lua: Likewise.
	* tests/test-event-stopwatch-new.lua: Likewise.
	* tests/test-event-tcp-api.lua: Likewise.
	* tests/test-event-tcp-check.lua: Likewise.
	* tests/test-event-tcp-engine.lua: Likewise.
	* tests/test-event-tcp-filter.lua: Likewise.
	* tests/test-event-user-api.lua: Likewise.
	* tests/test-event-user-check.lua: Likewise.
	* tests/test-event-user-engine.lua: Likewise.
	* tests/test-event-user-filter.lua: Likewise.
	* tests/test-event.lua: Likewise.
	* tests/test-libnclua-close.c: Likewise.
	* tests/test-libnclua-cycle.c: Likewise.
	* tests/test-libnclua-debug-dump-surface.c: Likewise.
	* tests/test-libnclua-debug-get-surface.c: Likewise.
	* tests/test-libnclua-echo.sh: Likewise.
	* tests/test-libnclua-open-x.c: Likewise.
	* tests/test-libnclua-open.c: Likewise.
	* tests/test-libnclua-paint.c: Likewise.
	* tests/test-libncluaw-at-panic-x.c: Likewise.
	* tests/test-libncluaw-at-panic.c: Likewise.
	* tests/test-libncluaw-cycle.c: Likewise.
	* tests/test-libncluaw-cycle.lua: Likewise.
	* tests/test-libncluaw-debug-dump-surface.c: Likewise.
	* tests/test-libncluaw-debug-get-surface.c: Likewise.
	* tests/test-libncluaw-event-clone-x.c: Likewise.
	* tests/test-libncluaw-event-clone.c: Likewise.
	* tests/test-libncluaw-event-free-x.c: Likewise.
	* tests/test-libncluaw-open.c: Likewise.
	* tests/tests.h: Likewise.
	* tests/tests.lua: Likewise.
	* tests/tests0.c: Likewise.

	tests: Add license header to server.sh
	* tests/server.sh: Likewise.

	build: Fix sc-copyright ignores in maint.mk
	* maint.mk (sc-copyright): Likewise.

	doc: Update TODO
	* TODO: Likewise.

2014-09-02  Guilherme F. Lima  <gflima@sdf.org>

	tests: Syntax cleanup
	* tests/tests.h: Likewise.

	maint: Rename 'range' to 'clamp' due to last commit
	* nclua/canvas.c: Likewise.
	* nclua/event/socket.c: Likewise.
	* tests/tests0.c: Likewise.

	maint: Sync macros.h to latest version
	* lib/macros.h: Likewise.

	build-aux: Sync manywarnings.m4 to latest Gnulib version
	* build-aux/manywarnings.m4: Likewise.

2014-08-20  Guilherme F. Lima  <gflima@sdf.org>

	build: Revert previous commit; copy subdirs in dist-hook
	* Makefile.am (dist-hook): Copy contrib and examples subdirs
	to $(distdir).

	build: Add contrib and examples subdirs to EXTRA_DIST
	* Makefile.am: Likewise.

	maint: Delete old debian subdir

	Merge branch 'master' of ssh://git.telemidia.puc-rio.br/git/nclua

	contrib/debian: Update changelog for 1.2 release
	* contrib/debian/changelog: Likewise.

	nclua/event: Fix parameter order for NCL filters in event.register
	* nclua/event/ncl.lua (ncl:filter): Likewise.
	* tests/test-event-ncl-filter.lua: Updated accordingly.
	* NEWS: Likewise.

2014-07-11  Guilherme F. Lima  <gflima@sdf.org>

	contrib/debian: Update release number in changelog
	* contrib/debian/changelog: Likewise.

	build: Add dist-deb to .gitignore
	* .gitignore: Likewise.

	doc: Release v1.1
	* NEWS: Updated accordingly.

	examples: Add pacman example
	* examples/pacman/actor.lua: New file.
	* examples/pacman/actor_ghost.lua: New file.
	* examples/pacman/actor_pacman.lua: New file.
	* examples/pacman/board.lua: New file.
	* examples/pacman/display.lua: New file.
	* examples/pacman/game.lua: New file.
	* examples/pacman/input.lua: New file.
	* examples/pacman/levels/1.txt: New file.
	* examples/pacman/levels/2.txt: New file.
	* examples/pacman/levels/3.txt: New file.
	* examples/pacman/main.ncl: New file.
	* examples/pacman/media/door.png: New file.
	* examples/pacman/media/food.png: New file.
	* examples/pacman/media/freezer.png: New file.
	* examples/pacman/media/ghost_blue_e.png: New file.
	* examples/pacman/media/ghost_blue_n.png: New file.
	* examples/pacman/media/ghost_blue_s.png: New file.
	* examples/pacman/media/ghost_blue_w.png: New file.
	* examples/pacman/media/ghost_frozen_e.png: New file.
	* examples/pacman/media/ghost_frozen_n.png: New file.
	* examples/pacman/media/ghost_frozen_s.png: New file.
	* examples/pacman/media/ghost_frozen_w.png: New file.
	* examples/pacman/media/ghost_green_e.png: New file.
	* examples/pacman/media/ghost_green_n.png: New file.
	* examples/pacman/media/ghost_green_s.png: New file.
	* examples/pacman/media/ghost_green_w.png: New file.
	* examples/pacman/media/ghost_orange_e.png: New file.
	* examples/pacman/media/ghost_orange_n.png: New file.
	* examples/pacman/media/ghost_orange_s.png: New file.
	* examples/pacman/media/ghost_orange_w.png: New file.
	* examples/pacman/media/ghost_purple_e.png: New file.
	* examples/pacman/media/ghost_purple_n.png: New file.
	* examples/pacman/media/ghost_purple_s.png: New file.
	* examples/pacman/media/ghost_purple_w.png: New file.
	* examples/pacman/media/ghost_red_e.png: New file.
	* examples/pacman/media/ghost_red_n.png: New file.
	* examples/pacman/media/ghost_red_s.png: New file.
	* examples/pacman/media/ghost_red_w.png: New file.
	* examples/pacman/media/pacman.png: New file.
	* examples/pacman/media/pacman_dead.png: New file.
	* examples/pacman/media/pacman_e.png: New file.
	* examples/pacman/media/pacman_n.png: New file.
	* examples/pacman/media/pacman_s.png: New file.
	* examples/pacman/media/pacman_w.png: New file.
	* examples/pacman/media/wall_.png: New file.
	* examples/pacman/media/wall_b.png: New file.
	* examples/pacman/media/wall_bl.png: New file.
	* examples/pacman/media/wall_blr.png: New file.
	* examples/pacman/media/wall_br.png: New file.
	* examples/pacman/media/wall_l.png: New file.
	* examples/pacman/media/wall_lr.png: New file.
	* examples/pacman/media/wall_r.png: New file.
	* examples/pacman/media/wall_t.png: New file.
	* examples/pacman/media/wall_tb.png: New file.
	* examples/pacman/media/wall_tbl.png: New file.
	* examples/pacman/media/wall_tblr.png: New file.
	* examples/pacman/media/wall_tbr.png: New file.
	* examples/pacman/media/wall_tl.png: New file.
	* examples/pacman/media/wall_tlr.png: New file.
	* examples/pacman/media/wall_tr.png: New file.
	* examples/pacman/parser.lua: New file.

	build: Mark dist-deb target as PHONY
	* maint.mk: Likewise.

	doc: Update README
	* README: Likewise.

	build: Add dist-win32 target to maint.mk
	* maint.mk (dist-win32): New target; build Win32 package.

	doc: Update URLs in README
	* README: Likewise.

2014-07-10  Guilherme F. Lima  <gflima@sdf.org>

	build: Add contrib subdir with debian packaging stuff
	* contrib/debian/changelog: New file; debian packaging stuff.
	* contrib/debian/compat: Likewise.
	* contrib/debian/control: Likewise.
	* contrib/debian/copyright: Likewise.
	* contrib/debian/rules: Likewise.
	* contrib/debian/source/format: Likewise.
	* maint.mk (debuild): New rule; build debian packages.

	build: Sync Gnulib scripts
	* build-aux/git-log-fix: Updated to latest version.
	* build-aux/git-version-gen: Likewise.
	* build-aux/valgrind-tests.m4: Likewise.

	tests: Fix server.sh call when $(builddir) != $(srcdir)
	* tests/Makefile.am (EXTRA_DIST): Add server.sh
	* tests/server.sh: Use $1 as path to source dir.
	* tests/tests.lua (tests.server.start): Update os.execute string.

	maint: Add missing #include <glib-object.h> directive
	* nclua/canvas.c: Likewise; required in systems where g_type_init must
	be explicitly called.
	* nclua/event/socket.c: Likewise.
	* nclua/event/stopwatch.c: Likewise.
	* tests/tests0.c: Likewise.

	build: Fix some makefiles
	* build-aux/Makefile.am.link: Replace .so by $(SOEXT).
	* lib/Makefile.am (nclua.def, nclua.lib): Fix SOEXT usage.

	build: Check if g_type_init must be called explicitly
	* configure.ac: Define G_TYPE_INIT_WRAPPER in config.h if g_type_init
	must be called explicitly.

2014-07-09  Guilherme F. Lima  <gflima@sdf.org>

	maint: Port to mingw
	* configure.ac: Add Win32 checks and definitions.
	* Makefile.am: Setup Win32 stuff.
	* nclua/Makefile.am: Likewise.
	* nclua/event/Makefile.am: Likewise.
	* lib/nclua.rc.in: New file; windres input.
	* nclua/canvas.c (luaopen_nclua_canvas): Call G_TYPE_INIT_WRAPPER.
	* nclua/event/socket.c (luaopen_nclua_event_socket): Likewise.
	* nclua/event/stopwatch.c (luaopen_nclua_event_stopwatch): Likewise.
	* tests/tests0.c (luaopen_tests0): Likewise.
	* src/nclua.c (main): Replace gtk_widget_add_tick_callback by
	g_timeout_add if GTK < 3.8.
	* tests/Makefile.am: Likewise.
	* tests/server.sh: New file; tests.pl wrapper script.
	* tests/test-canvas-compose.lua: Use epsilon in all checks; skip checks
	that fail on Win32.
	* tests/test-event-socket-connect.lua: Fix typo; skip checks that fail
	on Win32.
	* tests/test-event-socket-receive.lua: Skip checks that fail on Win32.
	* tests/tests.h (INVALID_PATH): New macro; expands to an invalid path.
	* tests/test-libnclua-debug-dump-surface.c: Use INVALID_PATH.
	* tests/test-libnclua-open.c: Likewise.
	* tests/test-libncluaw-debug-dump-surface.c: Likewise.
	* tests/test-libncluaw-open.c: Likewise.
	* tests/tests.lua (tests.is_windows): New function; returns true if
	we're on Win32.
	(tests.server.start): Call server.pl via server.sh wrapper.
	(tests.server.stop): Send KILL signal to server, instead of TERM.

	examples: Add new example, luarocks
	* examples/luarocks/MEDIA-LICENSE: New file.
	* examples/luarocks/SOFTWARE-LICENSE: New file.
	* examples/luarocks/background.png: New file.
	* examples/luarocks/game.lua: New file.
	* examples/luarocks/main.ncl: New file.
	* examples/luarocks/rock_big.gif: New file.
	* examples/luarocks/rock_small.gif: New file.
	* examples/luarocks/satellite.gif: New file.
	* examples/luarocks/ship.gif: New file.

	examples: Display event on screen in the input.lua example
	* examples/input.lua: Likewise.

2014-04-29  Guilherme F. Lima  <gflima@sdf.org>

	build: Link canvas and stopwatch against C math library
	* nclua/Makefile.am (canvas_la_LDFLAGS): Likewise.
	* nclua/event/Makefile.am (stopwatch_la_LDFLAGS): Likewise.
	* configure.ac (LIBM): New variable, math library linker flags; defined
	by Libtool's macro LT_LIB_M.

	build: Add missing build-aux files to EXTRA_DIST
	* Makefile.am: Likewise.

2014-04-29  Rafael Diniz  <rafaeldiniz@telemidia.puc-rio.br>

	Added debian/ directory. Many information still missing.

2014-04-10  Guilherme F. Lima  <gflima@sdf.org>

	tests: Remove OS specific conditionals from tests
	* tests/tests.lua (tests.is_linux): New function; returns true if
	we're on Linux.
	(tests.is_freebsd): New function; returns true if we're on FreeBSD.
	* tests/test-event-init-uptime.lua: Updated accordingly.
	* tests/test-event.lua: Likewise.

2014-04-09  Guilherme F. Lima  <gflima@sdf.org>

	First commit
