Jean Privat [Thu, 11 Jul 2013 08:21:39 +0000 (10:21 +0200)]
tests: fix base_virtual_type3 for new model
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 10 Jul 2013 22:11:23 +0000 (00:11 +0200)]
Merge branch 'nitg-s'
Jean Privat [Tue, 9 Jul 2013 22:30:09 +0000 (00:30 +0200)]
test_parser: do not crash on syntax error
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 5 Jul 2013 06:42:43 +0000 (08:42 +0200)]
poset: remove attribute `nodes`, use `elements.keys` instead
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 5 Jul 2013 04:52:21 +0000 (06:52 +0200)]
poset: move the transitions in the nodes
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 4 Jul 2013 09:41:23 +0000 (11:41 +0200)]
nitg: move the GC stuff in a runtime C libray `gc_chooser`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 10 Jul 2013 13:57:56 +0000 (15:57 +0200)]
Merge remote-tracking branch 'lucas/strings-fix'
Jean Privat [Thu, 4 Jul 2013 09:39:07 +0000 (11:39 +0200)]
nitg: add the possibility to have runtime library written in C
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 4 Jul 2013 09:35:38 +0000 (11:35 +0200)]
nitg: add the possibility to have specific CFLAGS for extern C bodies
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 3 Jul 2013 10:37:55 +0000 (12:37 +0200)]
nitg: add --cc-paths & cc_paths
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 3 Jul 2013 04:13:43 +0000 (06:13 +0200)]
nitg-s: cache *RuntimeFunction in the MMethodDef
Also does not instantiate them directly
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 3 Jul 2013 03:58:50 +0000 (05:58 +0200)]
nitg-s: VIRTUAL_ method just call the non-virtual one
No need to compile the same method twice.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 3 Jul 2013 03:57:23 +0000 (05:57 +0200)]
nitg-s: fix method comment on 'self' parameter
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 1 Jul 2013 10:09:31 +0000 (12:09 +0200)]
Merge branch 'sepcomp'
Jean Privat [Fri, 21 Jun 2013 09:03:10 +0000 (11:03 +0200)]
nitg: use`*_declaration` to include extern #incudes once
And only in files that request them.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 21 Jun 2013 08:42:16 +0000 (10:42 +0200)]
nitg: new `provide_declaration` and `require_declaration`
They allows a more separated C compilation since C-compiled modules only
depends on what they use. Therefore modifying unrelated thing in
super-modules should not triggers a new C-compilation of client modules.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 21 Jun 2013 05:45:19 +0000 (07:45 +0200)]
nitg: name of the header file is specific for each engine
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 21 Jun 2013 05:43:23 +0000 (07:43 +0200)]
nitg: the header writer is a full-declaration header file
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 21 Jun 2013 05:38:37 +0000 (07:38 +0200)]
nitg: global compiler do not write definition in the header
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 21 Jun 2013 05:37:12 +0000 (07:37 +0200)]
nitg: separate compiler writes class-related colors in the *.class.c files
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 1 Jul 2013 10:07:00 +0000 (12:07 +0200)]
nitg: write_and_make skips empty writers
Signed-off-by: Jean Privat <jean@pryen.org>
Lucas Bajolet [Mon, 10 Jun 2013 16:19:20 +0000 (12:19 -0400)]
stdlib : AbstractString/String, Added trim function and unit test
Signed-off-by: Lucas Bajolet <lucas.bajolet@hotmail.com>
Alexandre Terrasa [Sat, 22 Jun 2013 03:14:42 +0000 (23:14 -0400)]
lib: added 'slice' method to List
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Sat, 22 Jun 2013 02:58:48 +0000 (22:58 -0400)]
lib: added init.from in array and hashset
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Fri, 14 Jun 2013 23:23:24 +0000 (01:23 +0200)]
nitg-s&e: remove many structs and some casts
In separated compilation, the module knows that a given class or
type will exist but the associated C struct cannot contains some global
information like a size of a table.
Thus, use abstract structs to statically type those.
The specific structs then become useless and can be removed.
Moreover, some C casts become irrelevant.
The commit also manage NativeArray instances in a specific way
in `compile_class_to_c`.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 14 Jun 2013 22:16:17 +0000 (00:16 +0200)]
nitg: move add_extern to the visitor
So add_extern could be made contextual.
Signed-off-by: Jean Privat <jean@pryen.org>
Alexandre Terrasa [Fri, 14 Jun 2013 14:48:39 +0000 (10:48 -0400)]
lib: HTML clear children before each render to avoid duplicates
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Lucas Bajolet [Mon, 10 Jun 2013 23:48:37 +0000 (19:48 -0400)]
stdlib : String, added test for copy constructor
Signed-off-by: Lucas Bajolet <lucas.bajolet@hotmail.com>
Lucas Bajolet [Fri, 7 Jun 2013 18:46:28 +0000 (14:46 -0400)]
stdlib: Strings, added function to avoid passing refs with a NativeString (can cause bugs if auto/manually deallocated with FFI).
Signed-off-by: Lucas Bajolet <lucas.bajolet@hotmail.com>
Lucas Bajolet [Thu, 13 Jun 2013 15:26:31 +0000 (11:26 -0400)]
stdlib : Cleaned the code for the Strings, renamed attributes to be compliant with Nit's naming policy.
Also added more comments for a better lisibility.
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Thu, 13 Jun 2013 12:08:25 +0000 (14:08 +0200)]
ngall.sh: accepts options
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 13 Jun 2013 12:08:13 +0000 (14:08 +0200)]
nitg: compile extern files separately
file names does not depends on the program name.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 13 Jun 2013 11:49:58 +0000 (13:49 +0200)]
tests: save html.res and html_page.res
Signed-off-by: Jean Privat <jean@pryen.org>
Alexandre Terrasa [Sat, 8 Jun 2013 04:53:55 +0000 (00:53 -0400)]
examples: html lib example
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Tue, 11 Jun 2013 21:45:39 +0000 (17:45 -0400)]
lib: Introduced new html lib
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Tue, 11 Jun 2013 02:36:17 +0000 (04:36 +0200)]
lib: add for_abuse.nit
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 7 Jun 2013 03:16:21 +0000 (23:16 -0400)]
nitg: new class CodeFile to regroup CodeWriter into autonomous files
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 7 Jun 2013 02:45:09 +0000 (22:45 -0400)]
nitg: add class CodeWriter
thus extract the parts of files from the visitors
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 6 Jun 2013 18:38:59 +0000 (14:38 -0400)]
lib: fix string comparaison
commit
27602007 broke the implementation of < when comparing strings
of different lengths.
Signed-off-by: Jean Privat <privat@ciara.pryen.org>
Jean Privat [Thu, 6 Jun 2013 02:37:31 +0000 (22:37 -0400)]
Merge branch 'nitg-fixes' into next
Jean Privat [Thu, 6 Jun 2013 02:29:30 +0000 (22:29 -0400)]
src: add ngall.sh to bootstrap nitg
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 6 Jun 2013 02:28:02 +0000 (22:28 -0400)]
nitg: create .nit_compile before creating file inside
This solves the crash if missing .nit_compile problem.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 28 May 2013 22:42:37 +0000 (18:42 -0400)]
Merge remote-tracking branch 'stefan/nitdoc' into next
Stefan Lage [Tue, 28 May 2013 20:43:59 +0000 (16:43 -0400)]
nitdoc: Fix bug: problem when getting function information
There was a 'bug' when we tried to commit, we didn't get the right
informations about the function which was editing, we get somes chars
which causes somes troubles in commit query. Because of the
adding of a tag in the last commit.
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Tue, 28 May 2013 20:40:25 +0000 (16:40 -0400)]
nitdoc: Inform if a comment was already modify
Adding a function in 'edit mode' which inform if the comment the
customer if the function which he is editing was already modify, it
allow to show this update to compare it with the original comment
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Tue, 28 May 2013 21:42:15 +0000 (17:42 -0400)]
nitdoc: Added function to resize textbox
Adding a function which resize a textbox in terms of its content
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Tue, 28 May 2013 22:12:01 +0000 (18:12 -0400)]
nitdoc: Added Signed-Off management
Adding a Signed-Off field in the 'Sign In' form which allow to
'generate' its own signed-off for commits.
Addign a checkbox in commit form to obliged the customer to sign his
commit
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Mon, 27 May 2013 02:51:21 +0000 (22:51 -0400)]
nitdoc: Set all data type to JSON in Ajax queries
Change data type to JSON because there was somes troubles in commit
process
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Tue, 28 May 2013 20:38:33 +0000 (16:38 -0400)]
nitdoc: Added some field to github form
Adding a title field to its form, and a field to inform about which
repository was selected when the user signed in.
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Tue, 28 May 2013 20:34:46 +0000 (16:34 -0400)]
nitdoc: Added best way to check authentification
Adding a function to check if credentials informed are correct, if they
are or not a message is displaying to inform us.
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Sun, 26 May 2013 22:31:44 +0000 (18:31 -0400)]
nitdoc: Correcting message box
Correcting error message displaying when we try to sing in without
informed user/password fields.
Adding a better way to center the message box in terms of the screen
size
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Jean Privat [Tue, 28 May 2013 15:15:23 +0000 (11:15 -0400)]
tests: add sav/json.res
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 28 May 2013 15:13:07 +0000 (11:13 -0400)]
Merge remote-tracking branch 'alexis/libs/json' into next
Conflicts:
tests/nitg-e.skip
tests/nitg-s.skip
tests/nitg.skip
tests/niti.skip
Alexis Laferrière [Tue, 28 May 2013 15:04:39 +0000 (11:04 -0400)]
lib/json: removes spaces in test for retro-compatibility
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 28 May 2013 14:52:22 +0000 (10:52 -0400)]
lib/json: fix const char* errors
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Mon, 27 May 2013 20:12:33 +0000 (16:12 -0400)]
parser: add a Package to the nit grammar
So the eclipse plugin will be happy.
Signed-off-by: Jean Privat <jean@pryen.org>
Alexis Laferrière [Mon, 27 May 2013 18:16:15 +0000 (14:16 -0400)]
lib/json: also check for null in Sequence
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Mon, 27 May 2013 17:49:02 +0000 (13:49 -0400)]
doc: be more clever to guess existing libraries
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 27 May 2013 17:26:48 +0000 (13:26 -0400)]
Merge remote-tracking branch 'alexis/libs/realtime' into next
Alexis Laferrière [Mon, 27 May 2013 17:07:54 +0000 (13:07 -0400)]
libs/json: duplicate null check for retro-compatibility
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 31 May 2012 00:09:36 +0000 (20:09 -0400)]
lib: adds the realtime module to keep time of real time flow
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Mon, 27 May 2013 16:30:01 +0000 (12:30 -0400)]
Merge remote-tracking branch 'alexis/ieee-example' into next
Alexis Laferrière [Mon, 27 May 2013 15:11:12 +0000 (11:11 -0400)]
examples: add the draw_operation example from the IEEE competition
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Mon, 20 May 2013 22:41:14 +0000 (18:41 -0400)]
contrib/mpd&rpi: intro of a physical interface for MPD on Raspberry Pi
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 26 May 2013 03:15:11 +0000 (23:15 -0400)]
examples: adds example for the Raspberry Pi
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 26 May 2013 03:05:45 +0000 (23:05 -0400)]
lib/bcm2835: intro of the bcm2835 module to do GPIO on a Raspberry Pi
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Mon, 27 May 2013 13:44:14 +0000 (09:44 -0400)]
lib/gpio: intro of a basic GPIO abstraction library
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Mon, 20 May 2013 21:30:33 +0000 (17:30 -0400)]
lib/mpd: intro of the MPD client module
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 14 May 2013 19:27:25 +0000 (15:27 -0400)]
lib: adds the subarray method to the Sequence class
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Sat, 25 May 2013 17:19:44 +0000 (13:19 -0400)]
Merge branch 'nitdoc' into next
Jean Privat [Sat, 25 May 2013 17:18:49 +0000 (13:18 -0400)]
doc: update Makefile to run nitdoc with extended options
add also a doc/newmodel/index.html rule
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 25 May 2013 15:11:07 +0000 (11:11 -0400)]
tests: add more tests of libs
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 25 May 2013 13:34:47 +0000 (09:34 -0400)]
tests: update sav/nitdoc
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 25 May 2013 09:46:24 +0000 (05:46 -0400)]
test: add testfull.sh
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 25 May 2013 09:05:41 +0000 (05:05 -0400)]
tests: remove # in args, this break TAP
Signed-off-by: Jean Privat <jean@pryen.org>
Stefan Lage [Thu, 23 May 2013 23:19:13 +0000 (19:19 -0400)]
nitdoc: Adding automatic commit message
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Thu, 23 May 2013 20:26:19 +0000 (16:26 -0400)]
nitdoc: Correcting cursor style hover a comment
When the cursor is hover a comment, it is update to a hand only on edit mode
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Fri, 24 May 2013 01:02:08 +0000 (21:02 -0400)]
nitdoc: Fix bug when signing in
Before creating the session, we check if the repository and the branch
informed are existing, whose causing some bugs when one of these do not
exist. If the repository does not exist then we stop the process. If
the branch does not exist we ask to the customer if he wants to create
it.
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Thu, 16 May 2013 14:25:54 +0000 (10:25 -0400)]
nitdoc: Fix bug : Generating the documentation.
One closure tag 'div' was in excess which caused the appearance of the
button 'Sign In' on the index page.
A missing part of tag 'div' closure causing a bug in the style on each
module pages.
Signed-off-by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Wed, 8 May 2013 20:38:23 +0000 (16:38 -0400)]
nitdoc: Add a hover behavior to the mouse
When the cursor is hover a comment it display a 'hand' and disable it
when it is not hover.
signed-off by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Fri, 24 May 2013 01:01:16 +0000 (21:01 -0400)]
nitdoc: Fix bug: Add a function to close comments
Adding function which close all comments which are being edit when we close the session
signed-off by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Fri, 24 May 2013 01:22:31 +0000 (21:22 -0400)]
nitdoc: Adding a way to switch of branch
Adding dropdown in the loggin form, visible only when we are
logged, which list all branches of the
repository on github, it allow to switch between all branch and load all
comment of the branch selected
signed-off by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Thu, 23 May 2013 23:49:05 +0000 (19:49 -0400)]
nitdoc: Fix bugs: Forgot variable definition
This variable is supposed to contain the new comment so the commit was empty...
Now all comments are loaded when a user is logged.
signed-off by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Fri, 24 May 2013 00:17:41 +0000 (20:17 -0400)]
nitdoc: Adds function to create a new comment
Adding function which allow to comment a function which is not yet.
signed-off by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Thu, 23 May 2013 23:48:18 +0000 (19:48 -0400)]
nitdoc: Add a secure when the user reload the page
If a the page is reloaded or quit when a comment is being edit,
we ask if the customer really want to continue.
signed-off by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Fri, 24 May 2013 00:42:54 +0000 (20:42 -0400)]
nitdoc: Add a function to load all comments
That function load all comment from the original repository
signed-off by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Fri, 24 May 2013 01:26:25 +0000 (21:26 -0400)]
nitdoc: Adds function to check the github branch
This function check the existing of the branch informed,
if it does not exist then ask if the customer want to create it or not,
if he agree the branch is created then the commit is created too, or he
disagree and the commit process is stopped
signed-off by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Fri, 24 May 2013 00:55:52 +0000 (20:55 -0400)]
nitdoc: Add a function to check the repo github.
Check if the repository, informed by the user when he signed in, is
existing, obviously the function is called before the commit
signed-off by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Thu, 23 May 2013 21:11:12 +0000 (17:11 -0400)]
nitdoc: Add an action on "Commit" button
This function start the commit process and return a message to inform
the user if the commit ended successfully or if there was an error during
commit
signed-off by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Fri, 24 May 2013 01:20:53 +0000 (21:20 -0400)]
nitdoc: Adds action to commit button when we are in "edit mode".
This function display a commit form.
Adds a another function to close this form.
signed-off by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Thu, 23 May 2013 21:09:07 +0000 (17:09 -0400)]
nitdoc: Added a function to display the edit mode of a comment
This function load comment content in a "texterea" and display it with two
buttons "commit" and "cancel". Actually cancel can hide/disable the edit
mode.
signed-off by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Fri, 24 May 2013 01:15:03 +0000 (21:15 -0400)]
nitdoc: Adds a way to hide all edit tags
signed-off by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Thu, 23 May 2013 20:48:17 +0000 (16:48 -0400)]
nitdoc: Add a css style
Adds a style to the commit form and edit tags
signed-off by: Stefan Lage <lagestfan@gmail.com>
Conflicts:
share/nitdoc/styles/main.css
Stefan Lage [Sat, 4 May 2013 00:14:42 +0000 (20:14 -0400)]
nitdoc: Added function to get the commit form
This function add all necessary tags for the commit form.
Add also all tags for editing a comment, each are placed after a 'pre' tag
which correspond at a comment zone
signed-off by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Thu, 23 May 2013 23:03:59 +0000 (19:03 -0400)]
nitdoc: Adding an action to "sign in" button
Adding function to save github loggin in a cookie (client-side only).
It is the same thing for "sign out" action which delete the cookie
signed-off by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Fri, 3 May 2013 23:31:41 +0000 (19:31 -0400)]
nitdoc: Adds the github authenfication
Adds the github authenfication form with its style and JS functions which displays it or not
signed-off by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Fri, 3 May 2013 22:45:01 +0000 (18:45 -0400)]
nitdoc: Adding a command line option
This option allow to inform about the github repository.
If this option is used it's added in each HTML file built
signed-off by: Stefan Lage <lagestfan@gmail.com>
Stefan Lage [Thu, 23 May 2013 20:42:27 +0000 (16:42 -0400)]
nitdoc: Cleaning js/css files
Deleted all windows spaces in js and css files
signed-off by: Stefan Lage <lagestfan@gmail.com>
Jean Privat [Thu, 16 May 2013 15:08:52 +0000 (11:08 -0400)]
test: new script testall.sh
test most engines easily.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 16 May 2013 14:58:59 +0000 (10:58 -0400)]
tests: less regression tests (disable most nitg variants)
Signed-off-by: Jean Privat <jean@pryen.org>