Jean Privat [Mon, 11 May 2015 23:24:54 +0000 (19:24 -0400)]
Merge: Rosettacode grayscale implementation
An implementation of Rosettacode's grayscale task (http://rosettacode.org/wiki/Grayscale_image) with additional features, including creating a Bitmap from scratch and manipulating its individual pixels.
Pull-Request: #1282
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Mon, 11 May 2015 23:22:55 +0000 (19:22 -0400)]
Merge: Fix C compiler warning on Java FFI and Android apps
The generated C code used `static JNIEXPORT`, when the macro was expanded it duplicated the visibility attribute. It was reported by the C compiler as a warning. This PR removes the `static` part.
Pull-Request: #1327
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>
Jean Privat [Mon, 11 May 2015 23:22:48 +0000 (19:22 -0400)]
Merge: Clean up Android and Linux app.nit libraries
The prefix in `linux_data_store` and `android_data_store` is no longer needed.
Importing only `dalvik` from an Android module makes it compatible with both implementations: the newer nit_activity and the older native_app_glue still used by games.
Pull-Request: #1325
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>
Jean Privat [Mon, 11 May 2015 23:22:40 +0000 (19:22 -0400)]
Merge: nit rpg ack
Consider :shipit: and :+1: to also be the acknowledgment of reviewers.
Pull-Request: #1324
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>
Jean Privat [Mon, 11 May 2015 23:22:31 +0000 (19:22 -0400)]
Merge: Intro the light FFI and use it in nith
The new light FFI use only features that should be easy to implement in new/alternative engines to quickly achieve a bootstrap. For this reason, core features of the Nit standard library should be limited to use the light FFI.
## Features of the light FFI
* **Extern methods** implemented in C, nested within the Nit code.
The body of these method is copied directly to the generated C files for compilation.
Also supports extern `new` factories.
* Module level **C code blocks**, both "C Body" (the default) and "C Header".
They will be copied to the beginning of the generated C files.
* Automatic transformation of Nit **primitive types** from/to their equivalent in C.
* **Extern classes** to create a Nit class around a C pointer.
Allows to specify the equivalent C type of the Nit extern class.
## Features of the full FFI
* More foreign languages: **C++, Java and Objective-C**.
* **Callbacks** to Nit from foreign codes.
The callbacks are declared in Nit using the `import` annotation on extern methods.
They are then generated on demand for the target foreign language.
* **Static Nit types** in C for precise typing and static typing errors in C.
* **Propagating public code blocks** at the module level (C Header).
This allows to use extern classes in foreign code in other modules
without having to import the related headers.
This is optional in C as it is easy to find the correct importation.
However it is important in Java and other complex FFIs.
* **Reference pinning** of Nit objects from foreign code.
This ensure that objects referenced from foreign code are not liberated by the GC.
* FFI **annotations**:
* `cflags`, `ldflags` and `cppflags` pass arguments to the C and C++
compilers and linker.
* `pkgconfig` calls the `pkg-config` program to get the arguments
to pass to the C copiler and linker.
* `extra_java_files` adds Java source file to the compilation chain.
## Light FFI only compilation
Compilers using the module `compiler_ffi::light_only` do not compile extern method with callbacks. This is a good heuristic to determine whether the method uses the full FFI of the light FFI.
The limitation of this heuristic is on 3 features: static Nit types, propagating public code blocks and reference pinning. These features do not required any declaration on the Nit side so they are not reliably detectable by the compiler. Using these features will cause GGC to raise errors on unfound types and functions.
In the case of public code block propagation, the user can fix it by importing the needed C headers in each module. In the other cases, static Nit types and reference pinning, they are used for callbacks, the method should probably declare callbacks. Still, there is some very rare situations where these features could be used correctly and the method would still be recognized as light FFI. If this is becomes a problem, we could add an annotation such as `is light_ffi` to force the heuristic.
> This PR should be read commit by commit. The first 4 commits separate modules in 2 their light/full versions. The only code modification is adding supers, redefs and tweaking the imports.
Pull-Request: #1323
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Mon, 11 May 2015 23:22:25 +0000 (19:22 -0400)]
Merge: nitiwiki: introduce wikilinks
Nitiwiki now understand the wikilink format using double brackets.
Examples:
`[[foo]]`: link to the page named `foo`
`[[foo/bar]]`: link to the page named `bar` in `foo`
`[[/foo/bar]]`: link to the page located exactly here
It's also possible to add a custom name:
`[[foo|My cute custom name <3]]`: link to the page named `foo`
And to use anchors:
`[[foo#bar]]`: link to the page named `foo`
nitiwiki will display warnings if a link seems broken.
Pull-Request: #1317
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Mon, 11 May 2015 23:22:19 +0000 (19:22 -0400)]
Merge: contrib: Introduce refund
`refund` is a tool developped for the correction of the course INF2015: Développement de logiciels dans un environnement Agile.
Its purpose is to parse a reclamation sheet submitted by an insurrance client in Json format then to compute the allowed refunds depending on the policy contracted by the client.
Even if this program is not really usefull for the Nit project, it makes a concrete example on how we can use the language in the real world, so I submit it.
Pull-Request: #1313
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 11 May 2015 23:22:16 +0000 (19:22 -0400)]
Merge: lib: introduce MongoDB wrapper
This is my first real use of the FFI, @xymus you input on that?
Also poking @BlackMinou because he likes to review C code.
Pull-Request: #1303
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Budi Kurniawan [Sun, 19 Apr 2015 14:11:25 +0000 (10:11 -0400)]
Bitmap class as part of the bitmap library
Signed-off-by: Budi Kurniawan <budi2020@gmail.com>
Alexandre Terrasa [Wed, 6 May 2015 23:53:03 +0000 (19:53 -0400)]
lib: introduce MongoDB wrapper
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexis Laferrière [Fri, 8 May 2015 14:23:36 +0000 (10:23 -0400)]
src/ffi: add some missing doc and clean up
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 8 May 2015 14:05:12 +0000 (10:05 -0400)]
src/ffi: document the differences between the light and full FFI
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexandre Terrasa [Mon, 11 May 2015 00:18:48 +0000 (20:18 -0400)]
lib/c: introduce char** wrapper
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 6 May 2015 17:10:17 +0000 (13:10 -0400)]
contrib/refund: add refund tmp files to gitignore.
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 6 May 2015 17:09:57 +0000 (13:09 -0400)]
contrib/refund: add Makefile
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 6 May 2015 17:09:41 +0000 (13:09 -0400)]
contrib/refund: add tests
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 7 May 2015 05:57:45 +0000 (01:57 -0400)]
contrib/nitiwiki: update README
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 7 May 2015 14:06:11 +0000 (10:06 -0400)]
contrib/nitiwiki: update tests
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 7 May 2015 05:42:31 +0000 (01:42 -0400)]
contrib/nitiwiki: introduce wikilinks
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 6 May 2015 17:08:48 +0000 (13:08 -0400)]
contrib: introduce `refund` calculator
This project was used to the correction of the course
INF2015: Développement de logiciels dans un environnement Agile"
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexis Laferrière [Sat, 9 May 2015 02:31:19 +0000 (22:31 -0400)]
src/ffi: avoid duplicating visibility attributes of JNI native functions in C
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 9 May 2015 02:28:23 +0000 (22:28 -0400)]
src/c_tools: revamp doc and style of some `CCompilationUnit` services
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Sat, 9 May 2015 01:23:47 +0000 (21:23 -0400)]
Merge: Autoinit abstract attributes
Fix #1316
Pull-Request: #1321
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Sat, 9 May 2015 01:23:39 +0000 (21:23 -0400)]
Merge: Add missing nodes in the AST
Originally, the AST was very abstract and included only node that useful semantically, thus dropped most keywords and symbols during the AST transformation done by sablecc.
After all these years, I was a very bad idea that cause useless complexity for preople that wanted to program precise error messages or develop tools like nitlight or nitpretty.
So, this PR add back most of these nodes in the AST. Future PR may simplify the code of the tools to deal we a more complete AST thus remove heuristics to retrieve the missing tokens.
Pull-Request: #1320
Reviewed-by: Ait younes Mehdi Adel <overpex@gmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Sat, 9 May 2015 01:23:37 +0000 (21:23 -0400)]
Merge: i18n annot: superstrings
Added the support of superstrings in the i18n annotation.
The first commit introduces a string format to use when replacing superstrings.
The second and third commits are updates to the i18n annotation and the test that goes along with it.
Pull-Request: #1319
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 9 May 2015 01:23:29 +0000 (21:23 -0400)]
Merge: vim: look for `{ in deciding to highlight ffi language name. eg "C".
so `"C"` is now contextually highlighted.
Note: `\ze` means the end mark. What follows is looked for to be matched but is not considered in the token (some kind of lookahead)
Pull-Request: #1326
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Sat, 9 May 2015 01:23:20 +0000 (21:23 -0400)]
Merge: GTK clean up and a few new features
You should read this PR commit by commit as the style update touches almost every line. The style update adds and removes spaces, and it removes empty and commented methods. It does not touch the documentation, there is still a lot of work to do there.
Please read the commit description of "lib/gtk: ignore deprecated warnings" for the rationale of the change.
GTK will be used to implement the abstract UI on GNU/Linux.
Pull-Request: #1312
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Alexis Laferrière [Fri, 8 May 2015 21:18:50 +0000 (17:18 -0400)]
examples/mnit_simple: update to latest `Intent` API
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Fri, 8 May 2015 20:40:17 +0000 (16:40 -0400)]
vim: look for `{ in deciding to highlight ffi language name. eg "C".
Signed-off-by: Jean Privat <jean@pryen.org>
Lucas Bajolet [Thu, 7 May 2015 15:05:46 +0000 (11:05 -0400)]
examples: langannot example updated with superstring capabilities
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Lucas Bajolet [Thu, 7 May 2015 14:50:40 +0000 (10:50 -0400)]
src/frontend: i18n phase updated to support superstrings in a correct way
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Lucas Bajolet [Thu, 7 May 2015 14:50:17 +0000 (10:50 -0400)]
lib/standard/string: Added function to format a String using a new notation
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Alexis Laferrière [Tue, 5 May 2015 20:32:00 +0000 (16:32 -0400)]
lib/android/ui: move up some services the extern classes hierarchy
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 5 May 2015 17:28:54 +0000 (13:28 -0400)]
lib/android: make `ui` a group and clean doc
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 8 May 2015 18:23:18 +0000 (14:23 -0400)]
lib/android: the `vibration` module only needs `dalvik`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 8 May 2015 18:23:12 +0000 (14:23 -0400)]
lib/android: the `toast` module only needs `dalvik`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 8 May 2015 18:42:19 +0000 (14:42 -0400)]
lib/android: `Intent` do not need a context and update its constructor
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 8 May 2015 18:17:16 +0000 (14:17 -0400)]
lib/android: move intent launching services out of `Intent`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 8 May 2015 16:27:42 +0000 (12:27 -0400)]
lib/android: shared preferences only need `dalvik`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 8 May 2015 17:59:23 +0000 (13:59 -0400)]
lib/android: rename android_data_store to data_store
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 8 May 2015 16:24:01 +0000 (12:24 -0400)]
lib/linux: rename linux_data_store to data_store
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Fri, 8 May 2015 01:28:16 +0000 (21:28 -0400)]
tests: add base_attr_abstract2.nit
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 8 May 2015 01:26:34 +0000 (21:26 -0400)]
modelize: abstract attributes included in autoinit signature
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 8 May 2015 18:21:10 +0000 (14:21 -0400)]
nitrpg: use is_ack
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 8 May 2015 18:20:33 +0000 (14:20 -0400)]
lib/github: add `Comment::is_ack` to detect acknowledgments
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 8 May 2015 01:05:18 +0000 (21:05 -0400)]
tests: update sav with new location on error messages
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 5 May 2015 01:03:41 +0000 (21:03 -0400)]
parser: regenerate
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 5 May 2015 01:03:24 +0000 (21:03 -0400)]
astbuilder: inject non-nullable token for AIfExpr creation
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 5 May 2015 01:01:57 +0000 (21:01 -0400)]
grammar: add missing nodes in the AST
Signed-off-by: Jean Privat <jean@pryen.org>
Alexis Laferrière [Fri, 8 May 2015 13:08:19 +0000 (09:08 -0400)]
src/nith: activate light FFI in nith
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 8 May 2015 13:12:43 +0000 (09:12 -0400)]
src/ffi: add the light_only FFI compiler
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 8 May 2015 13:07:19 +0000 (09:07 -0400)]
src/ffi: add a check before compiling FFI methods to see if supported
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 8 May 2015 12:58:24 +0000 (08:58 -0400)]
src/nitni: add indirection for the C type name of normal nit classes
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 8 May 2015 13:07:55 +0000 (09:07 -0400)]
src/ffi: restrict importations in extern_classes
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 6 May 2015 11:47:52 +0000 (07:47 -0400)]
src/ffi: separate compiler_ffi in light/full modules
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 8 May 2015 13:10:55 +0000 (09:10 -0400)]
src/ffi: separate ffi::ffi in light/full version
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 8 May 2015 12:52:51 +0000 (08:52 -0400)]
src/ffi: separate ffi::c in light/full modules
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 8 May 2015 12:53:10 +0000 (08:53 -0400)]
src/ffi: separate ffi::ffi_base in light/full modules
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Fri, 8 May 2015 02:11:24 +0000 (22:11 -0400)]
Merge: Nitdoc: some fixes and cleaning
* Fixes the topmenu brand display
* Update bootstrap version to v3.3.4
* Avoid nesting of DefinitionArticle to facilitate tabular display (next PR)
Demos are ready: [stdlib](http://gresil.org/jenkins/job/CI-nitdoc/ws/doc/stdlib/index.html) [nitc](http://gresil.org/jenkins/job/CI-nitdoc/ws/doc/nitc/index.html)
Pull-Request: #1314
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Fri, 8 May 2015 02:11:21 +0000 (22:11 -0400)]
Merge: Fix calls on primitive receivers
Fix #1301
Pull-Request: #1318
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Thu, 7 May 2015 14:17:37 +0000 (10:17 -0400)]
tests: add base_primitive_recv.nit
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 7 May 2015 14:11:40 +0000 (10:11 -0400)]
compiler: use `adapt_signature` to simplify and clean `table_send`
Signed-off-by: Jean Privat <jean@pryen.org>
Alexandre Terrasa [Thu, 7 May 2015 05:39:55 +0000 (01:39 -0400)]
contrib/nitiwiki: extract link handling in its own module
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 7 May 2015 05:35:09 +0000 (01:35 -0400)]
contrib/nitiwiki: avoid crash on `WikiArticle.md` with auto generated articles
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 7 May 2015 05:34:05 +0000 (01:34 -0400)]
contrib/nitiwiki: move `render` to `wiki_base`
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 7 May 2015 05:31:26 +0000 (01:31 -0400)]
contrib/nitiwiki: better logging
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 7 May 2015 05:30:03 +0000 (01:30 -0400)]
contrib/nitiwiki: display status if no other option requested
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 7 May 2015 05:44:27 +0000 (01:44 -0400)]
lib/markdown: fix whitespaces and indent
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Thu, 7 May 2015 01:56:10 +0000 (21:56 -0400)]
Merge: Semicolumn
Propose that `;` is usable as a hard line break. While this is not really nit-ish, the only need is in fact to be able to write short one-line scripts in environment where linefeeds are not an option.
~~~sh
$ ./nit -e 'for line in stdin.each_line do; var xs = line.split(":"); if xs.not_empty then print xs.first; end' < /etc/passwd
~~~
Pull-Request: #1305
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Thu, 7 May 2015 01:56:08 +0000 (21:56 -0400)]
Merge: Balanced brackets
The PR started as a simple implementation for the task http://rosettacode.org/wiki/Balanced_brackets but some improvements on the lib and tests.sh where also added
Pull-Request: #1307
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Alexis Laferrière [Tue, 5 May 2015 10:08:45 +0000 (06:08 -0400)]
examples & tests: update users of the gtk module
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexandre Terrasa [Fri, 24 Apr 2015 15:58:33 +0000 (11:58 -0400)]
nitdoc: do not nest DefinitionArticle
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 24 Apr 2015 15:50:42 +0000 (11:50 -0400)]
nitdoc: update bootstrap version
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 24 Apr 2015 03:24:39 +0000 (23:24 -0400)]
nitdoc: fixes double span on topmenu brand
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 6 May 2015 17:05:03 +0000 (13:05 -0400)]
lib/json: add pretty printing services on Jsonable instances
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexis Laferrière [Tue, 5 May 2015 12:37:06 +0000 (08:37 -0400)]
lib/gtk: revamp `GtkWindow::new`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 5 May 2015 11:24:56 +0000 (07:24 -0400)]
lib/gtk: add more services to GtkBox
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 5 May 2015 10:08:28 +0000 (06:08 -0400)]
lib/gtk: add a constructor to GtkBox
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 5 May 2015 10:08:13 +0000 (06:08 -0400)]
lib/gtk: intro the interface GtkOrientable
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 5 May 2015 10:00:35 +0000 (06:00 -0400)]
lib/gtk: update coding style
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 5 May 2015 09:56:01 +0000 (05:56 -0400)]
lib/gtk: fix GdkColor to produce something other than red
This service is deprecated, but it is still worth updating it for
consistency.
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 5 May 2015 09:51:48 +0000 (05:51 -0400)]
lib/gtk: remove unimplemented GdkRGBA::new
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 5 May 2015 09:38:21 +0000 (05:38 -0400)]
lib/gtk: remove unused parameters from the GtkGrid constructor
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 5 May 2015 09:37:02 +0000 (05:37 -0400)]
lib/gtk: ignore deprecated warnings
Previously, all programs using the GTK module were compiled using global
compilation to silence deprecated warnings. However, separate compilation
would raise warnings even on unused code.
There are more and more deprecated warnings as the local GTK library
gets updated. However, we cannot remove all the usage of the deprecated
services as their replacement are not yet available on each computers
using this library.
We could do it entirely by class refinement and never call the
deprecated services on precise, more recent version of the lib.
However, the deprecated error would still remain in separate
compilation. Global compilation would be fine as the unreachable C code
is not be generated.
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Tue, 5 May 2015 19:23:33 +0000 (15:23 -0400)]
tests: update sav/nitunit_args6.res because `;` is no more a bad character
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 4 May 2015 19:42:37 +0000 (15:42 -0400)]
tests: add syntax_semi*.nit
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 6 May 2015 01:21:33 +0000 (21:21 -0400)]
misc_analysis: warn on superfluous `;`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 4 May 2015 19:27:28 +0000 (15:27 -0400)]
parser: regenerate
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 4 May 2015 19:26:18 +0000 (15:26 -0400)]
grammar: distinguish `nd` for doc and `no` for optional eol
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 4 May 2015 19:25:21 +0000 (15:25 -0400)]
grammar: add `;` as an alternative hard line-break
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 6 May 2015 01:29:03 +0000 (21:29 -0400)]
Merge: nitdoc: migrate the DocPage rendering to composite rendering
Also delete old nitdoc components.
Pull-Request: #1306
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Tue, 5 May 2015 18:27:57 +0000 (14:27 -0400)]
example/rosettacode: add task balanced_brackets
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 5 May 2015 18:24:41 +0000 (14:24 -0400)]
lib/math: add `Collection::to_shuffle` and `Array::shuffle`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 5 May 2015 18:23:57 +0000 (14:23 -0400)]
lib/math: nitunit `Collection::rand`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 5 May 2015 18:23:29 +0000 (14:23 -0400)]
lib/mnit: remove `MNIT_SRAND` and use `NIT_SRAND` instead
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 5 May 2015 18:22:53 +0000 (14:22 -0400)]
lib/standard: use `NIT_SRAND` envvar to control the random number generator
Signed-off-by: Jean Privat <jean@pryen.org>
Alexandre Terrasa [Fri, 24 Apr 2015 03:02:18 +0000 (23:02 -0400)]
src/doc: fix anchor url following the rendering migration
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Tue, 24 Feb 2015 13:47:04 +0000 (14:47 +0100)]
src/doc: clean old components
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Tue, 24 Feb 2015 13:28:42 +0000 (14:28 +0100)]
src/doc: migrate showsource links to new templates
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Tue, 24 Feb 2015 13:18:47 +0000 (14:18 +0100)]
src/doc: move linearization list to `doc_phases`
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>