[stupid-crypto] 2 new revisions pushed by b.clifford on 2010-03-28 13:37 GMT

0 views
Skip to first unread message

stupid...@googlecode.com

unread,
Mar 28, 2010, 9:38:42 AM3/28/10
to stupi...@googlegroups.com
2 new revisions:

Revision: d85749f2b1
Author: Ben Clifford <be...@hawaga.org.uk>
Date: Mon Mar 22 08:48:51 2010
Log: a couple of tests for returning structures. They should...
http://code.google.com/p/stupid-crypto/source/detail?r=d85749f2b1

Revision: 3553d143c2
Author: Ben Clifford <be...@hawaga.org.uk>
Date: Mon Mar 22 08:50:38 2010
Log: Document (a single) prerequisite. Maybe more will be noted later.
http://code.google.com/p/stupid-crypto/source/detail?r=3553d143c2

==============================================================================
Revision: d85749f2b1
Author: Ben Clifford <be...@hawaga.org.uk>
Date: Mon Mar 22 08:48:51 2010
Log: a couple of tests for returning structures. They should
do almost the same thing, although one works in the
present C backend and the other doesn't.
http://code.google.com/p/stupid-crypto/source/detail?r=d85749f2b1

Added:
/test/struct-returns-init.stupid
/test/struct-returns.stupid

=======================================
--- /dev/null
+++ /test/struct-returns-init.stupid Mon Mar 22 08:48:51 2010
@@ -0,0 +1,19 @@
+"EXPECT:";
+
+struct test (
+ uint32 a,
+ uint32 b
+);
+
+function (struct test t) inner() {
+ t.a = 5;
+}
+
+function () test() {
+ struct test c = [0,0];
+
+ c = inner();
+ c.a = 1;
+ c.b = 23;
+}
+
=======================================
--- /dev/null
+++ /test/struct-returns.stupid Mon Mar 22 08:48:51 2010
@@ -0,0 +1,17 @@
+"EXPECT:";
+
+struct test (
+ uint32 a,
+ uint32 b
+);
+
+function (struct test t) inner() {
+ t.a = 5;
+}
+
+function () test() {
+ struct test c = inner();
+ c.a = 1;
+ c.b = 23;
+}
+

==============================================================================
Revision: 3553d143c2
Author: Ben Clifford <be...@hawaga.org.uk>
Date: Mon Mar 22 08:50:38 2010
Log: Document (a single) prerequisite. Maybe more will be noted later.
http://code.google.com/p/stupid-crypto/source/detail?r=3553d143c2

Added:
/README

=======================================
--- /dev/null
+++ /README Mon Mar 22 08:50:38 2010
@@ -0,0 +1,4 @@
+A non-exhaustive list of prerequisites:
+
+ Perl File::Slurp (p5-file-slurp)
+

Reply all
Reply to author
Forward
0 new messages