mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Recursive references between globals are now correctly handled.
This commit is contained in:
committed by
Christoffer Lerno
parent
7fc12192f4
commit
26d25e3f74
@@ -115,15 +115,14 @@ public func int! decode(char[] in, byte* out)
|
||||
}
|
||||
|
||||
extern func void printf(char *fmt, ...);
|
||||
|
||||
public func void main()
|
||||
{
|
||||
printf("Startin...\n");
|
||||
char *helloworld = "Hello World\n";
|
||||
char[1000] buffer;
|
||||
encode(cast(helloworld as byte*)[0..12], &buffer);
|
||||
printf("Printres\n");
|
||||
printf("Result: %s\n", &buffer);
|
||||
char *to_decode = "aGVsbG8gd29ybGRcMA==";
|
||||
decode(to_decode[0..19], cast(&buffer as byte*));
|
||||
printf("2Result: %s\n", &buffer);
|
||||
printf("Result: %s\n", &buffer);
|
||||
}
|
||||
Reference in New Issue
Block a user