OSDN Git Service

Add license header and credit to github user
authora <a@b.c>
Tue, 20 Jun 2017 15:36:54 +0000 (17:36 +0200)
committera <a@b.c>
Tue, 20 Jun 2017 15:36:54 +0000 (17:36 +0200)
src/ocaml.c
src/pinky.ml

index b98cd40..bb527c9 100644 (file)
@@ -32,6 +32,8 @@
 #include "prototypes/ocaml.h"
 
 #if WITH_OCAML == 1
+/* Based on: 
+ *  https://github.com/gmcabrita/embed-ocaml-c */
 void
 get_ocaml(char *str1) {
   char *dummy[] = {(char *)"pinkybar", NULL};
index d85ddc8..01584cd 100644 (file)
@@ -1,3 +1,33 @@
+(* 06/20/2017 
+
+* This program is free software; you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation; either version 2 of the License, or
+* (at your option) any later version.
+
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+* GNU General Public License for more details.
+
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+* MA 02110-1301, USA.
+
+
+* Your script should always return a single string.
+* Read the above line again.
+*
+* pinky-bar will always call uzer_func,
+* you can write other subroutines/functions
+* but they should be called inside uzer_func
+*
+* Dont worry about the colorization, it's
+* handled by pinky-bar.
+*
+* The entire language is in your hands. *)
+
 let uzer_func () = "Hello World";;
 
 let () =