[Commit] nickle/examples Makefile.am, NONE, 1.1 menace2.5c, 1.5,
1.6 randtest.5c, 1.3, 1.4 rsa.5c, 1.1, 1.2
Keith Packard
commit at keithp.com
Wed May 26 01:01:44 PDT 2004
- Previous message: [Commit] nickle/bench Makefile.am,1.1,1.2
- Next message: [Commit] nickle/examples/smlng .cvsignore, NONE, 1.1 Makefile.am,
NONE, 1.1 data.sgml, NONE, 1.1 parse.5c, 1.7, 1.8 test.5c, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: keithp
Update of /local/src/CVS/nickle/examples
In directory home.keithp.com:/tmp/cvs-serv7599/examples
Modified Files:
menace2.5c randtest.5c rsa.5c
Added Files:
Makefile.am
Log Message:
2004-05-26 Keith Packard <keithp at keithp.com>
version 2.35
* compile.c: (CompileArrayDimValue):
Array dimension values are always local in static initializers
* Makefile.am:
* bench/Makefile.am:
* configure.in:
* examples/Makefile.am:
* examples/menace2.5c:
* examples/randtest.5c:
* examples/rsa.5c:
* examples/smlng/.cvsignore:
* examples/smlng/Makefile.am:
* examples/smlng/data.sgml:
* examples/smlng/parse.5c:
* examples/smlng/test.5c:
* examples/turtle/Makefile.am:
* examples/turtle/snowflake.5c:
* make-version.sh:
* scanf.5c:
* update-version.sh:
Clean up examples so they all work again. Remove old files.
add 'scanf' to top-level namespace
--- NEW FILE: Makefile.am ---
SUBDIRS=smlng turtle
NICKLEFILES=\
circle.5c \
comb.5c \
cribbage.5c \
erat.5c \
initializer.5c \
is-prime.5c \
kaiser.5c \
menace2.5c \
miller-rabin.5c \
mutextest.5c \
numbers.5c \
polynomial.5c \
prime.5c \
qbrating.5c \
randtest.5c \
restart.5c \
rijndael.5c \
roman.5c \
rsa-demo.5c \
rsa.5c \
sort.5c
exampledir=$(pkgdatadir)/examples
example_DATA=$(NICKLEFILES)
EXTRA_DIST=$(NICKLEFILES)
Index: menace2.5c
===================================================================
RCS file: /local/src/CVS/nickle/examples/menace2.5c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- a/menace2.5c 27 Jul 2002 04:53:15 -0000 1.5
+++ b/menace2.5c 26 May 2004 08:01:42 -0000 1.6
@@ -225,8 +225,8 @@
union switch (p) {
case x: return "X";
case o: return "O";
+ case none: abort("label: blank label"); return "";
}
- abort("label: blank label");
}
if (b[i,j] == piece.none)
printf("%8d", t->val[i,j]);
Index: randtest.5c
===================================================================
RCS file: /local/src/CVS/nickle/examples/randtest.5c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- a/randtest.5c 27 Jul 2002 04:53:15 -0000 1.3
+++ b/randtest.5c 26 May 2004 08:01:42 -0000 1.4
@@ -13,4 +13,4 @@
return s;
}
-printf ("%d\n", t (string_to_integer (argv[1])));
+File::vprintf ("%d %d\n", t (string_to_integer (argv[1])));
Index: rsa.5c
===================================================================
RCS file: /local/src/CVS/nickle/examples/rsa.5c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/rsa.5c 22 Mar 2001 04:28:56 -0000 1.1
+++ b/rsa.5c 26 May 2004 08:01:42 -0000 1.2
@@ -22,9 +22,9 @@
* return the decryption of c
*/
-namespace RSA {
+autoimport Numbers
- import Numbers;
+namespace RSA {
global int e; /* encryption exponent */
global int n; /* public key */
- Previous message: [Commit] nickle/bench Makefile.am,1.1,1.2
- Next message: [Commit] nickle/examples/smlng .cvsignore, NONE, 1.1 Makefile.am,
NONE, 1.1 data.sgml, NONE, 1.1 parse.5c, 1.7, 1.8 test.5c, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Commit
mailing list