瀏覽代碼

version0.47

pull/1/head
Patrick H. E. Foubet 10 年之前
父節點
當前提交
cfaac31344
共有 52 個檔案被更改,包括 301 行新增91 行删除
  1. +9
    -9
      AUTHORS
  2. +161
    -14
      ChangeLog
  3. +2
    -2
      Makefile.am
  4. +2
    -2
      Makefile.in
  5. +11
    -0
      NEWS
  6. +13
    -7
      README
  7. +3
    -0
      config.h.in
  8. +22
    -10
      configure
  9. +2
    -1
      configure.ac
  10. +1
    -0
      src/Makefile.am
  11. +4
    -1
      src/Makefile.in
  12. +2
    -2
      src/conf.h
  13. +1
    -1
      src/debug.c
  14. +1
    -1
      src/debug.h
  15. +1
    -1
      src/dev.c
  16. +1
    -1
      src/dev.h
  17. +13
    -3
      src/err.c
  18. +1
    -1
      src/err.h
  19. +1
    -1
      src/foncs.c
  20. +1
    -1
      src/foncs.h
  21. +1
    -1
      src/gplot.c
  22. +1
    -1
      src/gplot.h
  23. +1
    -1
      src/help.c
  24. +1
    -1
      src/help.h
  25. +1
    -1
      src/histo.c
  26. +1
    -1
      src/histo.h
  27. +6
    -1
      src/lib.c
  28. +1
    -1
      src/lib.h
  29. +1
    -1
      src/libmath.c
  30. +1
    -1
      src/libmath.h
  31. +1
    -1
      src/libmathc99.c
  32. +1
    -1
      src/mth.c
  33. +1
    -1
      src/mth.h
  34. +1
    -1
      src/net.c
  35. +1
    -1
      src/net.h
  36. +2
    -2
      src/nife.c
  37. +1
    -1
      src/nife.h
  38. +11
    -0
      src/nife.hlp
  39. +1
    -1
      src/scs.c
  40. +1
    -1
      src/scs.h
  41. +1
    -1
      src/stackC.c
  42. +1
    -1
      src/stackC.h
  43. +1
    -1
      src/stackF.c
  44. +1
    -1
      src/stackF.h
  45. +1
    -1
      src/stackL.c
  46. +1
    -1
      src/stackL.h
  47. +1
    -1
      src/stackN.c
  48. +1
    -1
      src/stackN.h
  49. +1
    -1
      src/stackV.c
  50. +1
    -1
      src/stackV.h
  51. +2
    -2
      src/tasks.c
  52. +1
    -1
      src/tasks.h

+ 9
- 9
AUTHORS 查看文件

@@ -1,22 +1,22 @@
This file lists people who have made significant contribution in the nife
This file lists people who have made significant contribution in the Nife
project. Please see the ChangeLog for specific changes by author.
-------------------------------------------------------------------------

Patrick H. E. Foubet <patrick.foubet@nife-project.org>
Patrick H. E. Foubet <nife@seriane.fr>
* Original program author, stable series maintainer.
* Cohesion of language supervisor. Multiple platform maintainer.
* Stack to Stack protocol developper, and much more.
* Stack to Stack protocol developer, and much more.

Christophe Ondrejec <christophe.ondrejec@nife-project.org>
* Administrator of the site nife-project.org.
Christophe Ondrejec <ondrejec@seriane.fr>
* Administrator of the site k-nife.org.
* Internationalization support head.
* Package tester.

Claude Mauvais <claude.mauvais@.nife-project.org>
* Mathematical functions supervisor and developper.
Claude Mauvais <mauvais@seriane.fr>
* Mathematical functions supervisor and developer.
* Package tester.

Bruno Guilbert <bruno.guilbert@nife-project.org>
* Devices interface tester and developper.
Bruno Guilbert <guilbert@seriane.fr>
* Devices interface tester and developer.
* Package tester.


+ 161
- 14
ChangeLog 查看文件

@@ -1,19 +1,166 @@
0.9.27 12 January 2005
History of Nife releases :

This has been a long time in the making... Release highlights:
o New stdio implementation
o New optimized string functions
o Major improvements to the shared lib loader
o Shared libraries work properly on powerpc
o Debugging works on mips
o New architectures: frv, nios, nios2, bfin
o Linux 2.6.x kernel support
o Lots and lots of bug fixes
2014-05-10 - Nife 0.47 is released.
* Beginning an I2C interface for Linux systems, inspired by the Linux
package i2c-tools.
* The I2C interface has been developped and tested by P. Foubet
with his students of ESIGETEL Villejuif, Elodie Kerfourn and Aymeric
Diankouika Ntinou. They connected a Raspberry Pi with an Arduino
board through the I2C bus and wrote a Nife program to highlight the
data exchange between the two elements.
* The Nife official site is now : http://www.k-nife.org.
* The installation has been tested by Bernard Bonno on a Raspberry Pi
board Model A with Porteus ARM (based on a Slackware ARM 14.0).

This release is NOT binary compatible with uClibc 0.9.26 or any earlier
release, so be prepared to recompile your software if you are still using
an old version of uClibc.
2013-09-25 - Nife 0.44 is released.
* Fixed a bug causing a "segmentation violation" during compilation
of the Nife code on some systems as Raspberry Pi A and B and others.
This bug was reported by Bernard Bonno during tests on a Raspberry Pi
Model A with 256 Mo of memory.
* The installation has been tested by Bernard Bonno on a PC i484
with a Linux Porteus 2.0.
All information about Porteus at http://www.porteus.org/.

-Erik
2013-09-09 - Nife 0.43 is released.
* Establishment of a sub-directory .nife to facilitate debugging and
store temporary files.
* Update some functions dependant on working directory.
* Fixed some bugs in the gplot tools due to new versions of gnuplot.
* The installation has been tested by Patrick Foubet on a Raspberry Pi
board Model B with standard Raspbian (Squeeze).
All information about the board at http://www.raspberrypi.org/faqs.

2012-10-23 - Nife 0.405 is released.
* Fixed a bug in the data transfer protocol STSP.
* Adding Dt indicators in the list giving by ?n function.
* Fixed a bug in the netDt> function.
* The installation has been tested by Patrick Foubet on a Beaglebone
board (Linux beaglebone 3.2.5+ #1 ... armv7l GNU/Linux) lended by the
school ESME Sudria for preparing a course on Linux drivers.
All information about the board at http://beagleboard.org/bone.

2012-09-01 - Nife 0.401 is released.
* Beginning the multi-threading mechanisms based on POSIX thread.
* Adding programmation tools end: and goto_end.
* Increasing error tracking :
- giving the file name and the line number,
- stopping compilation at first error,
- allowing load in load.
- adding functions ?err, noerr, messerr, ?lasterr and onerr: label.
* Dynamic code tools :
- "load to load a file in a user function,
- "exec to compile some code in a user function,
- functions ' and ` to specify names to be executed latter.
* Limit for all names at 24 characters.
* Modifying install variables functions to work in user functions.
* Adding the free-context loop with do mechanisms :
- do_next to bypass a loop in free-context,
- do_leave and *do_leave to leave one or many loops in free-context,
* Updating the sh command to use the SHELL environment variable.

2012-07-05 - Nife 0.341 is released.
* Adding more fonctions to deal with devices with Comedilib :
- write fonction available,
- define a default set of parameters to simplify programs.
* Update documentation for theses new commands.

2012-06-10 - Nife 0.323 is released.
* Continuing distributed systems tools elaborated with Thomas Pabst :
- Adding netCompile to load a Nife file on a remote Nife using NetKey.
If this file contains a call of one or more functions, they will be
executed, and the result will be send on the Net using NetKey.
- Adding NetErr to get the Net Error value.
* Adding the ex directory in src with some program examples :
- gp.nif, an example for gplot functions,
- rpc.nif and rpc2.nif for Nife RPC example.

2012-06-06 - Nife 0.320 is released.
* Beginning of the gplot module for use of gnuplot (www.gnuplot.info).
* adding theses functions :
- gplot and gplotM (multiple) to create gplots,
- gplotCmd to append text to the plot command,
- ?gp to list the gplots,
- del_gplot to delete a gplot,
- gplotAdd and gplotRepl (with replacement) to add values to plots,
- gplotClear to clear a display panel.
* The installation has been tested by Bruno Guilbert on a Fox board G20
(Debian debarm 2.6.38 with CPU Atmel AT91SAM9G20 based on ARM926EJ-S)
with the students TRSE2 of Ingesup-Paris :
All information about the board at www.acmesystems.it.

2012-05-22 - Nife 0.317 is released.
* Adding ndepth giving network stack depth using NetKey,
* Definition of principles for Nife RPC (remote procedure call).
* Adding netExec to execute a function on a remote Nife using NetKey.
* The installation has been tested by Dr Alain Empain (ulg.ac.be) on
Ubuntu Lucid 10.O4 (Linux 2.6.38-15 - x86_64)
* The installation has been tested by Paul Bartoldi (unige.ch) on
Ubuntu 12.O4 LTS (Linux 3.0.0-12 - x86_32)

2012-05-11 - Nife 0.315 is released.
* Beginning of distributed systems tools elaborated with Thomas Pabst :
- automatic evaluation of the dt values at network connection,
- adding netDt> to get the clock difference value beetween "network"
and Nife system.
* The installation has been tested on
Debian Wheezy Testing (Linux 3.2.0-2 - x86_32)

2012-05-04 - Nife 0.311 is released.
* Modifying errors traps to get a better bug resolution.
* The installation has been tested by Bernard Perrin (csem.ch) on
MacOS X Snow Leopard 10.6.8 (Darwin Kernel Vers 10.8.0 - x86_32)

2012-03-16 - Nife 0.307 is released.
* Adding auto-convergent loop : do ... loop
* Adding standards loop : do ... +loop
* Possibility to test the loop level and use indexes I, J and K.
* Adding del_ofunc to delete, by name, the oldest function,
* Adding del_afunc to delete all functions beginning by a prefix,
* Adding "exec to execute a user function giving her name on the
character stack.
* Adding "Var to create a variable giving her name on the character
stack.
* Rename functions sub[] in []-sub and *sub[] in *[]-sub to adopt a
more logical notation.

2012-03-08 - Nife 0.303 is released.
* This release is specially dedicated to my wife Christine.
* Now you can use nife with redirection or pîpe :
nife < fic.nif or cat fic.nif | nife
Thank you to Denis Bodor for the idea !

2012-02-22 - Nife 0.302 is released.
* Christophe Ondrejec has validate the site nife-project.org
* Updating README, NEWS and all informations files.
* The installation has been tested on :
- Debian Lenny (Linux 2.6.26-2 - x86_32)
- Debian Squeeze (Linux 2.6.32-5 - x86_64)
- Mac OS X (Darwin Kernel Version 8.11.1 - x86_32)
- Open BSD (Version 5.0 GENERIC#43 - x86_32)
- Solaris 11 (SunOS v 5.11 - x86_32)
- Fedora Core 15 (Linux 2.6.38-6 - x86_32)
- Open Suze 12.1 (Linux 3.1.0-1 - x86_64)
* Adding a benchmark test.

2012-02-13 - Nife 0.300 is released (internal).
* Upgrading for working on both 32 or 64 bits.
* Upgrading SCS (Sister Chip Signature) to accept data from machine
differents on code or addresses but using compatible datas.
* Integration of the GNU Autotools to generate the packages.

2011-11-13 - Nife 0.212 is released.
* Network tools with STSP (stack to stack protocol) v0.5 :
ie WITH ScS (Sister chip signature) v 1.
* correction of function []trot.
* new function []transp to transpose matrix.

2011-11-09 - Nife 0.209 is released.
* Network tools with STSP (stack to stack protocol) v.0 :
ie without ScS (Sister chip signature).

2011-10-31 - Nife 0.204 is released.

2011-10-26 - Nife 0.200 is released.

2011-09-18 - Nife 0.113 the first public release on Sourceforge.net.


+ 2
- 2
Makefile.am 查看文件

@@ -1,8 +1,8 @@
##################################################
# Makefile.am for nife project : upper derectory #
# Makefile.am for nife project : upper directory #
##################################################

EXTRA_DIST = src/nife.hlp src/test.sh src/benchm.nif src/ex
EXTRA_DIST = src/nife.hlp src/test.sh src/benchm.nif src/ex src/i2cbusses.c src/i2cbusses.h

SUBDIRS=src


+ 2
- 2
Makefile.in 查看文件

@@ -15,7 +15,7 @@
@SET_MAKE@

##################################################
# Makefile.am for nife project : upper derectory #
# Makefile.am for nife project : upper directory #
##################################################
srcdir = @srcdir@
top_srcdir = @top_srcdir@
@@ -153,7 +153,7 @@ sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
EXTRA_DIST = src/nife.hlp src/test.sh src/benchm.nif src/ex
EXTRA_DIST = src/nife.hlp src/test.sh src/benchm.nif src/ex src/i2cbusses.c src/i2cbusses.h
SUBDIRS = src
all: config.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive


+ 11
- 0
NEWS 查看文件

@@ -1,5 +1,16 @@
History of Nife releases :

2014-05-10 - Nife 0.47 is released.
* Beginning an I2C interface for Linux systems, inspired by the Linux
package i2c-tools.
* The I2C interface has been developped and tested by P. Foubet
with his students Elodie Kerfourn and Aymeric Diankouika. They
connected a Raspberry Pi with an Arduino board through the I2C bus
and wrote a Nife program to highlight the data exchange between the
two elements.
* The installation has been tested by Bernard Bonno on a Raspberry Pi
board Model A with Porteus ARM (based on a Slackware ARM 14.0).

2013-09-25 - Nife 0.44 is released.
* Fixed a bug causing a "segmentation violation" during compilation
of the Nife code on some systems as Raspberry Pi A and B and others.


+ 13
- 7
README 查看文件

@@ -79,28 +79,34 @@ How to compile and install nife

Web Page

http://www.nife-project.org
http://www.k-nife.org


Mailing List and Bug Reports

nife-project.org hosts all the nife-related mailing-lists.
+ help-nife@nife-project.org is for those seeking to get help without
wanting to hear about the technical details of its development.
k-nife.org hosts all the nife-related mailing-lists.

+ nife-devel@nife-project.org is the list used by the people
+ nife-mailing-list@googlegroups.com is the list used by the people
that make Nife and a general development discussion list, with
moderate traffic.

To subscribe, go directely to :
http://nife-project.org/general/newsletter/subone/view-subscribe
http://k-nife.org/mailing_list.html

+ nife-project@mailman.k-nife.org is the list reserved for people
who want to discuss Nife in French, with also a moderate traffic.

To subscribe, go directely to :
http://mailman.k-nife.org/mailman/listinfo/nife-project

For general bug reports, send a description of the problem to
nife@seriane.fr or directly to the development list.


Current Status

nife is still in beta version.

Patrick Foubet (patrick.foubet@nife-project.org)
Patrick Foubet (nife@seriane.fr)



+ 3
- 0
config.h.in 查看文件

@@ -33,6 +33,9 @@
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H

/* Define to 1 if you have the <linux/i2c-dev.h> header file. */
#undef HAVE_LINUX_I2C_DEV_H

/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
to 0 otherwise. */
#undef HAVE_MALLOC


+ 22
- 10
configure 查看文件

@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.67 for nife 0.44.
# Generated by GNU Autoconf 2.67 for nife 0.47.
#
# Report bugs to <nife@seriane.fr>.
#
@@ -552,8 +552,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='nife'
PACKAGE_TARNAME='nife'
PACKAGE_VERSION='0.44'
PACKAGE_STRING='nife 0.44'
PACKAGE_VERSION='0.47'
PACKAGE_STRING='nife 0.47'
PACKAGE_BUGREPORT='nife@seriane.fr'
PACKAGE_URL=''

@@ -1231,7 +1231,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures nife 0.44 to adapt to many kinds of systems.
\`configure' configures nife 0.47 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

@@ -1297,7 +1297,7 @@ fi

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of nife 0.44:";;
short | recursive ) echo "Configuration of nife 0.47:";;
esac
cat <<\_ACEOF

@@ -1384,7 +1384,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
nife configure 0.44
nife configure 0.47
generated by GNU Autoconf 2.67

Copyright (C) 2010 Free Software Foundation, Inc.
@@ -1807,7 +1807,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by nife $as_me 0.44, which was
It was created by nife $as_me 0.47, which was
generated by GNU Autoconf 2.67. Invocation command line was

$ $0 $@
@@ -2473,7 +2473,7 @@ fi

# Define the identity of the package.
PACKAGE='nife'
VERSION='0.44'
VERSION='0.47'


cat >>confdefs.h <<_ACEOF
@@ -4055,6 +4055,18 @@ fi

done

for ac_header in linux/i2c-dev.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "linux/i2c-dev.h" "ac_cv_header_linux_i2c_dev_h" "$ac_includes_default"
if test "x$ac_cv_header_linux_i2c_dev_h" = x""yes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LINUX_I2C_DEV_H 1
_ACEOF

fi

done


# Checks for typedefs, structures, and compiler characteristics.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
@@ -5383,7 +5395,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by nife $as_me 0.44, which was
This file was extended by nife $as_me 0.47, which was
generated by GNU Autoconf 2.67. Invocation command line was

CONFIG_FILES = $CONFIG_FILES
@@ -5449,7 +5461,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
nife config.status 0.44
nife config.status 0.47
configured by $0, generated by GNU Autoconf 2.67,
with options \\"\$ac_cs_config\\"



+ 2
- 1
configure.ac 查看文件

@@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.67])
AC_INIT([nife], [0.44], [nife@seriane.fr])
AC_INIT([nife], [0.47], [nife@seriane.fr])
AM_INIT_AUTOMAKE

AC_CONFIG_SRCDIR([src/tasks.c])
@@ -18,6 +18,7 @@ AC_PROG_MAKE_SET
AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h netdb.h stdlib.h string.h strings.h sys/socket.h sys/time.h termios.h unistd.h])
AC_CHECK_HEADERS([pthread.h])
AC_CHECK_HEADERS([comedilib.h])
AC_CHECK_HEADERS([linux/i2c-dev.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL


+ 1
- 0
src/Makefile.am 查看文件

@@ -19,6 +19,7 @@ nife_SOURCES = nife.c nife.h conf.h \
libmathc99.c \
help.c help.h \
dev.c dev.h \
i2c.c i2c.h \
net.c net.h \
gplot.c gplot.h \
scs.c scs.h \


+ 4
- 1
src/Makefile.in 查看文件

@@ -56,7 +56,8 @@ am_nife_OBJECTS = nife.$(OBJEXT) mth.$(OBJEXT) err.$(OBJEXT) \
stackL.$(OBJEXT) stackC.$(OBJEXT) stackF.$(OBJEXT) \
stackV.$(OBJEXT) tasks.$(OBJEXT) libmath.$(OBJEXT) \
libmathc99.$(OBJEXT) help.$(OBJEXT) dev.$(OBJEXT) \
net.$(OBJEXT) gplot.$(OBJEXT) scs.$(OBJEXT) debug.$(OBJEXT)
i2c.$(OBJEXT) net.$(OBJEXT) gplot.$(OBJEXT) scs.$(OBJEXT) \
debug.$(OBJEXT)
nife_OBJECTS = $(am_nife_OBJECTS)
nife_LDADD = $(LDADD)
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
@@ -167,6 +168,7 @@ nife_SOURCES = nife.c nife.h conf.h \
libmathc99.c \
help.c help.h \
dev.c dev.h \
i2c.c i2c.h \
net.c net.h \
gplot.c gplot.h \
scs.c scs.h \
@@ -245,6 +247,7 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gplot.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/help.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/histo.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i2c.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmath.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmathc99.Po@am__quote@


+ 2
- 2
src/conf.h 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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
@@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
#ifdef HAVE_CONFIG_H
#include "../config.h"
#else
#define VERSION "0.44"
#define VERSION "0.47"
#endif

#ifdef HAVE_COMEDILIB_H


+ 1
- 1
src/debug.c 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/debug.h 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/dev.c 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/dev.h 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 13
- 3
src/err.c 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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
@@ -106,9 +106,19 @@ static char *TabErr[] = {
"too many loads",
"label onerr: already found",
"label end: already found",
"inside compilation aborted"
"inside compilation aborted",
"I2C is not available",
"invalid I2C bus", /* 50 */
"error open I2C device",
"could not get I2C adapter functionality matrix",
"bad I2C address",
"bad I2C offset",
"value out of range",
"I2C write failed",
"I2C read failed",
"-"
};
#define ERR_MAX 48
#define ERR_MAX 57

void stopErr(char *M, char *F)
{


+ 1
- 1
src/err.h 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/foncs.c 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/foncs.h 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/gplot.c 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/gplot.h 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/help.c 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/help.h 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/histo.c 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/histo.h 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 6
- 1
src/lib.c 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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
@@ -33,6 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
#include "libmath.h"
#include "help.h"
#include "dev.h"
#include "i2c.h"
#include "net.h"
#include "gplot.h"
#include "debug.h"
@@ -487,6 +488,10 @@ void initLib(void)
addFonD("?dev_dflt",IF_devShowDflt);
addFonD("dev_dflW",IF_devDflW);
addFonD("dev_dflR",IF_devDflR);
addFonD("?i2c",IF_listI2C);
addFonD("i2c_info",IF_showI2C);
addFonD("i2c_read",IF_I2CRead);
addFonD("i2c_write",IF_I2CWrite);
addFonN("?n",IF_netList);
addFonN("netOn",IF_netOn);
addFonN("netOff",IF_netOff);


+ 1
- 1
src/lib.h 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/libmath.c 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/libmath.h 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/libmathc99.c 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/mth.c 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/mth.h 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/net.c 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/net.h 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 2
- 2
src/nife.c 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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
@@ -106,7 +106,7 @@ char Lib[8];
#ifdef _MULTI_THREADING_
strcpy(Lib,"mt-");
#endif
printf("nife (Networking Industrial Forth-like Environment) - version %s%s-%ld/%ld\n\t (c) S.E.R.I.A.N.E. 2009-13\n",Lib,VERSION,sizeof(long)*8,sizeof(double)*8);
printf("nife (Networking Industrial Forth-like Environment) - version %s%s-%ld/%ld\n\t (c) S.E.R.I.A.N.E. 2009-2014\n",Lib,VERSION,sizeof(long)*8,sizeof(double)*8);
}

int isSepa(char c, int m)


+ 1
- 1
src/nife.h 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 11
- 0
src/nife.hlp 查看文件

@@ -639,4 +639,15 @@ messerr : [ n -- ] { -- "error message" }
puts on the character stack the error message number n.
noerr : [ -- n ]
gives the number of last error.
?i2c :
lists all the I2C buses available. The I2C-ID is at the beginning of the lines.
i2c_info : [ I2C-ID -- ]
shows informations (matrix) about the I2C-ID interface.
i2c_write : [ Value Offset Address I2C-ID -- ]
write Value at data-address Offset for chip-address Address of I2C interface
I2C-ID.
i2c_read : [ Offset Address I2C-ID -- Value ]
read at data-address Offset for chip-address Address of I2C interface I2C-ID.
If Offset equal -1, the read is done directly at Address.



+ 1
- 1
src/scs.c 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/scs.h 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/stackC.c 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/stackC.h 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/stackF.c 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/stackF.h 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/stackL.c 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/stackL.h 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/stackN.c 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/stackN.h 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/stackV.c 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 1
- 1
src/stackV.h 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


+ 2
- 2
src/tasks.c 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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
@@ -144,8 +144,8 @@ int i;
return;
}
}
TASKp[i] = 0;
}
TASKp[i] = 0;
}

void IF_showCons( void)


+ 1
- 1
src/tasks.h 查看文件

@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2013 Patrick H. E. Foubet - S.E.R.I.A.N.E.
/* Copyright (C) 2011-2014 Patrick H. E. Foubet - S.E.R.I.A.N.E.

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


正在載入中…
取消
儲存