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

1 visning
Hoppa till det första olästa meddelandet

stupid...@googlecode.com

oläst,
1 apr. 2010 00:44:122010-04-01
till 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;

Svara alla
Svara författaren
Vidarebefordra
0 nya meddelanden