Merge: Relocate examples
authorJean Privat <jean@pryen.org>
Fri, 28 Aug 2015 13:11:06 +0000 (09:11 -0400)
committerJean Privat <jean@pryen.org>
Fri, 28 Aug 2015 13:11:06 +0000 (09:11 -0400)
Some short programs in `examples` are related to specific libraries. Therefore to improve coupling and cohesion, these examples are moved into a subdirectory of their associated libs.

Basically, it means moving `examples/foo` into `lib/foo/examples`

Pull-Request: #1656
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

1  2 
lib/mpi/mpi.nit
lib/pnacl/pnacl.nit

diff --combined lib/mpi/mpi.nit
@@@ -31,7 -31,7 +31,7 @@@ module mpi i
  end
  
  import c
 -intrude import standard::text::flat
 +intrude import core::text::flat
  import serialization
  private import json::serialization
  
diff --combined lib/pnacl/pnacl.nit
@@@ -22,8 -22,8 +22,8 @@@
  # 'nacl_sdk/pepper_your_pepper_version/getting_started/your_project_folder'.
  module pnacl is platform
  
 -import standard
 -intrude import standard::stream
 +import core
 +intrude import core::stream
  
  in "C Header" `{
        #include "ppapi/c/pp_errors.h"
        }
  
        static PP_Bool Instance_HandleDocumentLoad(PP_Instance pp_instance, PP_Resource pp_url_loader) {
-               // TODO
+               // TODO
                return PP_FALSE;
        }
  
@@@ -391,8 -391,8 +391,8 @@@ extern class PepperDictionary `{ struc
                var native_value = native_get(native_key)
                return native_value.to_nit
        end
-       
-       # Set function using PepperVars. 
+       # Set function using PepperVars.
        #
        # Sets the value associated with the specified key.
        # 'key' must be a String typed PepperVar.
        fun native_delete(key: PepperVar) `{
                g_varDictionaryInterface->Delete(*self, *key);
        `}
-       
        # Deletes the specified key and its associated value, if the key exists.
        #
        # Takes a String.
-       fun delete(key: String) 
+       fun delete(key: String)
        do
                var native_key = key.to_pepper
                native_delete native_key