[stupid-crypto] push by ben@links.org - Handle uint8 parameters. on 2010-04-01 04:43 GMT

2 views
Skip to first unread message

stupid...@googlecode.com

unread,
Apr 1, 2010, 12:44:12 AM4/1/10
to stupi...@googlegroups.com
Revision: a51c39c82d
Author: Ben Laurie <b...@links.org>
Date: Tue Mar 30 02:51:04 2010
Log: Handle uint8 parameters.
http://code.google.com/p/stupid-crypto/source/detail?r=a51c39c82d

Modified:
/src/Stupid/C.pm

=======================================
--- /src/Stupid/C.pm Sun Mar 28 21:32:57 2010
+++ /src/Stupid/C.pm Tue Mar 30 02:51:04 2010
@@ -444,13 +444,22 @@

print "uint8 $name";
}
+
+sub Stupid::Type::UInt8::emitPointer {
+ my $self = shift;
+
+ print '&';
+}
+
+sub Stupid::Type::UInt8::emitParameter {
+ my $self = shift;
+}

sub Stupid::Type::UInt8::dereference {
my $self = shift;

print '*';
}
-

sub Stupid::Type::UInt8::emitReturnDecl {
my $self = shift;

Reply all
Reply to author
Forward
0 new messages