Jean Privat [Sat, 29 Nov 2014 02:32:42 +0000 (21:32 -0500)]
compiler: the type poset contains only directed casts
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 29 Nov 2014 02:31:10 +0000 (21:31 -0500)]
model: add another level of cache for MClassType::collect_mclasses
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 29 Nov 2014 01:55:50 +0000 (20:55 -0500)]
model: cache types in a hashmap instead of in a list
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 28 Nov 2014 19:51:34 +0000 (14:51 -0500)]
Merge: Use tagged-fences to discriminate docunits
Using heuristics to know what is a docunit and what is a raw block of code is not nice because syntax-errors in docunits happen and we do not want to silence them.
This PR introduces (and documents) the usage of tagged fences to force the programmer to explicit the role of the blocks of code.
By default (with indented block or untagged fences) code blocks are considered docunits to be checked by nitunit.
The tag `nit` does the same.
Any other tag cause docunit to ignore the whole block.
The special tag `nitish` makes docunit ignore the block but allows nitdoc to highlight it.
~~~~
~~~~
Pull-Request: #941
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Fri, 28 Nov 2014 19:50:37 +0000 (14:50 -0500)]
Merge: FFI with C: fix line offset in gcc error reports
Pull-Request: #944
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 28 Nov 2014 19:05:30 +0000 (14:05 -0500)]
tests: niti skips tests with args for test_docdown and nitunit
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 28 Nov 2014 01:51:40 +0000 (20:51 -0500)]
all: add `nitish` tag for code-blocks skipped by nitunit
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 28 Nov 2014 01:46:08 +0000 (20:46 -0500)]
all: fix broken markdown comments with missing or unwanted code blocks
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 28 Nov 2014 01:58:27 +0000 (20:58 -0500)]
Merge: Document the doc/ directory
The directory is empty except an outdated README.
So, maybe not the best user-experience for people that look for documentation and naively open the `doc/` directory...
So update the README and offer a `Makefile` to generate something in the directory.
Pull-Request: #942
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Fri, 28 Nov 2014 01:58:22 +0000 (20:58 -0500)]
Merge: Less warnings in lib
Pull-Request: #939
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Fri, 28 Nov 2014 01:58:16 +0000 (20:58 -0500)]
Merge: Document more libs
Less warnings and more docunits.
Libraries improved are pipeline, hash_debug, more_collections, ordered_tree, and poset.
Pull-Request: #937
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Fri, 28 Nov 2014 01:34:35 +0000 (20:34 -0500)]
all: fix broken docunits
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 27 Nov 2014 17:03:08 +0000 (12:03 -0500)]
tests: test tagged fences for test_docdown and nitunit
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 27 Nov 2014 02:49:06 +0000 (21:49 -0500)]
nitdoc: increase the verbosity level for the numerous skip messages
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 27 Nov 2014 02:43:30 +0000 (21:43 -0500)]
man: explain docunits in man nitdoc
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 27 Nov 2014 02:16:35 +0000 (21:16 -0500)]
nitunit: enforce the testing of docunits (unless explicitely fence-tagged)
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 27 Nov 2014 02:14:40 +0000 (21:14 -0500)]
src: nitunit and docdown use the fence-tag to skip non-nit code
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 19 Nov 2014 04:43:11 +0000 (23:43 -0500)]
docdown: read simple fence tag (type)
Signed-off-by: Jean Privat <jean@pryen.org>
Alexis Laferrière [Thu, 27 Nov 2014 20:28:49 +0000 (15:28 -0500)]
FFI with C: fix line offset in gcc error reports
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Thu, 27 Nov 2014 17:56:48 +0000 (12:56 -0500)]
doc: update the README (since the directory is empty by default)
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 26 Nov 2014 03:53:18 +0000 (22:53 -0500)]
lib/poset: improve doc and docunits
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 26 Nov 2014 03:46:44 +0000 (22:46 -0500)]
lib/poset: add POSet::add_chain
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 26 Nov 2014 03:44:20 +0000 (22:44 -0500)]
lib/ordered_tree: improve doc and docunits
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 26 Nov 2014 03:42:46 +0000 (22:42 -0500)]
lib/more_collections: improve doc and docunits
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 26 Nov 2014 03:41:38 +0000 (22:41 -0500)]
lib: remove warnings on hash_debug, more_collections, ordered_tree, and poset
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 26 Nov 2014 01:33:37 +0000 (20:33 -0500)]
lib/pipeline: add a missing docunit
Signed-off-by: Jean Privat <jean@pryen.org>
Alexis Laferrière [Wed, 26 Nov 2014 21:34:26 +0000 (16:34 -0500)]
lib/cpp: fix behavior of `Text::to_cpp_string`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 26 Nov 2014 20:00:23 +0000 (15:00 -0500)]
lib/emscripten: add missing doc
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 26 Nov 2014 19:51:57 +0000 (14:51 -0500)]
lib/emscripten: move up services from `String` to `Text`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 26 Nov 2014 16:47:05 +0000 (11:47 -0500)]
lib/mpi: add some doc
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 26 Nov 2014 16:46:44 +0000 (11:46 -0500)]
libevent: add missing doc
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 26 Nov 2014 16:46:32 +0000 (11:46 -0500)]
libevent: fix unused var warning
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 26 Nov 2014 16:45:53 +0000 (11:45 -0500)]
lib/gpio: add missing doc
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 26 Nov 2014 16:45:43 +0000 (11:45 -0500)]
lib/cpp: add missing doc
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 26 Nov 2014 16:45:31 +0000 (11:45 -0500)]
lib/cpp: move up `to_cpp_string` to `Text`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 26 Nov 2014 16:44:57 +0000 (11:44 -0500)]
lib/a_star: add missing doc
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Thu, 27 Nov 2014 03:20:53 +0000 (22:20 -0500)]
doc: add a placebo Makefile
Signed-off-by: Jean Privat <jean@pryen.org>
Alexis Laferrière [Wed, 26 Nov 2014 16:44:45 +0000 (11:44 -0500)]
lib/a_star: clean up inits
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Wed, 26 Nov 2014 23:05:19 +0000 (18:05 -0500)]
Merge: new method `has_exaclty` on collections
This is used to compare collections without taking the order into account.
Pull-Request: #940
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Wed, 26 Nov 2014 23:05:15 +0000 (18:05 -0500)]
Merge: jwrapper: no whitespace before new line
Pull-Request: #938
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 26 Nov 2014 23:05:08 +0000 (18:05 -0500)]
Merge: Android UI, notifications, toasts and calculator
This is the base of a the API for native controls on Android. As such, is it a work in progress.
Example applications:
* app.nit UI test
* Calculator
Features still to do:
* Wrap `ViewGroup`s with Nity classes. This will allow us to make all native classes private.
* Implement `ListView` and other useful views.
* Offer more notifications features from later APIs.
Pull-Request: #934
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 26 Nov 2014 20:42:42 +0000 (15:42 -0500)]
lib/collections: add `Collection::has_exactly`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 26 Nov 2014 20:40:32 +0000 (15:40 -0500)]
lib/collection: improve documentation of `has_all`
Signed-off-by: Jean Privat <jean@pryen.org>
Alexis Laferrière [Wed, 26 Nov 2014 16:44:00 +0000 (11:44 -0500)]
lib/privileges: fix old workaround for nitc
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 26 Nov 2014 16:43:41 +0000 (11:43 -0500)]
lib/privileges: remove old inits
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 26 Nov 2014 16:43:06 +0000 (11:43 -0500)]
lib/sqlite3: add missing doc
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 26 Nov 2014 16:42:56 +0000 (11:42 -0500)]
lib/sqlite3: remove old inits
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 26 Nov 2014 15:45:43 +0000 (10:45 -0500)]
jwrapper: no whitespace before end of line
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 3 Aug 2014 18:52:19 +0000 (14:52 -0400)]
calculator: intro android UI
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 21 Nov 2014 14:29:14 +0000 (09:29 -0500)]
calculator: add an icon
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Mon, 4 Aug 2014 19:29:50 +0000 (15:29 -0400)]
examples: intro app.nit Android UI test
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 25 Nov 2014 17:26:55 +0000 (12:26 -0500)]
lib/android: intro the `ui` module
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Mon, 4 Aug 2014 15:47:54 +0000 (11:47 -0400)]
android: add super classes to `NativeActivity`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 2 Aug 2014 04:06:49 +0000 (00:06 -0400)]
lib/android: intro the `notifications` module
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Tue, 25 Nov 2014 22:56:53 +0000 (17:56 -0500)]
Merge: pthreads on OS X
Fix #869
Pull-Request: #933
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 25 Nov 2014 22:56:49 +0000 (17:56 -0500)]
Merge: neo4j: Sanitize the inputs
![](http://imgs.xkcd.com/comics/exploits_of_a_mom.png )
— xkcd
Pull-Request: #930
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Tue, 25 Nov 2014 22:56:44 +0000 (17:56 -0500)]
Merge: neo_doxygen: Be more professional
Add tests, correct minor mistakes and add missing documentation.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Pull-Request: #928
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 25 Nov 2014 22:56:25 +0000 (17:56 -0500)]
Merge: standard: Clean warnings
Just enough cleaning to get rid of all those warnings.
Pull-Request: #921
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexandre Terrasa [Mon, 24 Nov 2014 22:11:32 +0000 (17:11 -0500)]
tests: adjust line number in test_new_native test
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Tue, 25 Nov 2014 21:16:33 +0000 (16:16 -0500)]
re: fix useless var warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Tue, 25 Nov 2014 21:09:40 +0000 (16:09 -0500)]
range: implements `hash` method on ranges
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Mon, 24 Nov 2014 18:44:23 +0000 (13:44 -0500)]
range: implements `==` method on ranges
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Mon, 24 Nov 2014 18:37:53 +0000 (13:37 -0500)]
neo4j: fix malformed licence header in jsonable
Note: this file will disappear once merged with master.
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 19 Nov 2014 04:48:27 +0000 (23:48 -0500)]
file: fix useless var warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 20 Nov 2014 01:59:53 +0000 (20:59 -0500)]
file: fix missing documentation warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 20 Nov 2014 03:29:24 +0000 (22:29 -0500)]
exec: fix init warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 20 Nov 2014 01:57:04 +0000 (20:57 -0500)]
exec: fix missing documentation warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 19 Nov 2014 04:42:11 +0000 (23:42 -0500)]
time: fix missing documentation warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 19 Nov 2014 04:28:09 +0000 (23:28 -0500)]
stream: fix missing documentation warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 19 Nov 2014 04:22:43 +0000 (23:22 -0500)]
string_search: fix useless var warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 19 Nov 2014 04:22:26 +0000 (23:22 -0500)]
string_search: fix missing documentation warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 20 Nov 2014 03:41:04 +0000 (22:41 -0500)]
ropes: fix missing documentation warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 19 Nov 2014 04:00:10 +0000 (23:00 -0500)]
ropes: fix useless var warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 20 Nov 2014 03:38:19 +0000 (22:38 -0500)]
ropes: fix init warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 19 Nov 2014 03:55:34 +0000 (22:55 -0500)]
string: fix missing documentation warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 19 Nov 2014 03:55:15 +0000 (22:55 -0500)]
string: fix useless var warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 19 Nov 2014 03:54:56 +0000 (22:54 -0500)]
string: fix useless private visibility warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 19 Nov 2014 03:54:32 +0000 (22:54 -0500)]
string: fix init warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 19 Nov 2014 03:36:43 +0000 (22:36 -0500)]
math: add some nitunits
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 19 Nov 2014 03:33:38 +0000 (22:33 -0500)]
math: fix missing documentation warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 19 Nov 2014 02:37:55 +0000 (21:37 -0500)]
collection: fix missing documentation warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 19 Nov 2014 02:36:02 +0000 (21:36 -0500)]
has_collection: fix useless private visibility warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 19 Nov 2014 02:35:48 +0000 (21:35 -0500)]
hash_collection: fix missing documentation warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 19 Nov 2014 02:33:46 +0000 (21:33 -0500)]
array: fix missing documentation warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 19 Nov 2014 02:31:29 +0000 (21:31 -0500)]
array: fix useless private visibility warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 19 Nov 2014 02:28:39 +0000 (21:28 -0500)]
list: fix missing documentation warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 19 Nov 2014 02:26:11 +0000 (21:26 -0500)]
range: fix the behavior of `length` on empty ranges
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean-Christophe Beaupré [Mon, 24 Nov 2014 14:39:24 +0000 (09:39 -0500)]
neo_doxygen: Register tests.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Tue, 25 Nov 2014 18:19:55 +0000 (13:19 -0500)]
neo_doxygen: Add some integration tests.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Alexis Laferrière [Thu, 17 Jul 2014 14:51:12 +0000 (10:51 -0400)]
lib/android: intro the `toast` module
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean-Christophe Beaupré [Mon, 24 Nov 2014 14:37:54 +0000 (09:37 -0500)]
neo_doxygen: Add some unit tests.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Mon, 24 Nov 2014 14:35:28 +0000 (09:35 -0500)]
neo_doxygen: Add generated test data.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Mon, 24 Nov 2014 19:58:21 +0000 (14:58 -0500)]
neo_doxygen: Add dummy projects.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Mon, 24 Nov 2014 19:28:30 +0000 (14:28 -0500)]
neo_doxygen: Add scripts to generate test data.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Mon, 24 Nov 2014 14:54:42 +0000 (09:54 -0500)]
neo_doxygen: Add a “README” for `sh-lib`.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Mon, 24 Nov 2014 19:22:18 +0000 (14:22 -0500)]
neo_doxygen: Add a “README”.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Mon, 24 Nov 2014 19:27:12 +0000 (14:27 -0500)]
neo_doxygen: Document the actual logic for relationships between compounds.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Mon, 24 Nov 2014 14:22:19 +0000 (09:22 -0500)]
neo_doxygen: Trim whitespace and empty descriptions.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Mon, 24 Nov 2014 01:41:37 +0000 (20:41 -0500)]
neo_doxygen: Force the standard output to flush.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Alexis Laferrière [Tue, 25 Nov 2014 16:57:30 +0000 (11:57 -0500)]
pthreads: delete `NativePthread::attr` as it is not portable and unused
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>