Просмотр исходного кода

Merge branch 'master' into nSquirrel

Eiyeron Fulmincendii лет назад: 9
Родитель
Сommit
16965f03da
4 измененных файлов с 16 добавлено и 2 удалено
  1. 9 0
      COMPILE
  2. 4 0
      HISTORY
  3. 1 1
      README
  4. 2 1
      include/sqconfig.h

+ 9 - 0
COMPILE

@@ -85,3 +85,12 @@ The default makefile support compilation for Ti-Nspire, as long as
 the binaries are in the PATH.
 
  $ make sqnspire
+
+Note
+----
+
+In sqconfig.h there is a small point to notice : scprintf's function
+must be chosen according to which use of squirrel you want to do.
+As nspireio doesn't take over printf, you have to replace it with
+nio_printf if you even intend to use Nspire-IO or keep it at printf
+if you will embed the interpreter in a project.

+ 4 - 0
HISTORY

@@ -1,3 +1,7 @@
+***2016-04-06        ***
+***version Ndless 1.0***
+-added support to Ti-Nspire
+
 ***version 3.1 stable***
 -added slice range for tolower and toupper
 -added startswith() and endswith() in string lib

+ 1 - 1
README

@@ -22,7 +22,7 @@ The following compilers have been confirmed to be working:
               5.3.1 (amd64)
     Illumos gcc 4.0.0 (x86 and amd64)
     ARM Linux gcc 4.6.3 (Raspberry Pi Model B)
-    Ndless-SDK 5.3.0 (arm)
+    Ndless-SDK 4.2 gcc 5.3.0 (arm)
 
 
 Feedback and suggestions are appreciated

+ 2 - 1
include/sqconfig.h

@@ -123,7 +123,8 @@ typedef char SQChar;
 #define sciscntrl   iscntrl
 #define scisalpha   isalpha
 #define scisalnum   isalnum
-// TODO : What to do with this one?
+// Use this function instead if you want to bundle squirrel in a lib and not using Nspire-IO for output.
+// #define scprintf    printf
 #define scprintf    nio_printf
 #define MAX_CHAR 0xFF