forked from M-Labs/nac3
1
0
Fork 0

nac3standalone: consistent naming

This commit is contained in:
Sebastien Bourdeauducq 2021-12-13 11:18:44 +08:00
parent ccfcba4066
commit 69b9ac5152
2 changed files with 8 additions and 8 deletions

View File

@ -1,9 +1,9 @@
@extern @extern
def output_int(x: int32): def output_int32(x: int32):
... ...
@extern @extern
def output_long(x: int64): def output_int64(x: int64):
... ...
@ -31,10 +31,10 @@ class B:
def run() -> int32: def run() -> int32:
a = A(10) a = A(10)
output_int(a.a) output_int32(a.a)
a = A(20) a = A(20)
output_int(a.a) output_int32(a.a)
output_int(a.get_a()) output_int32(a.get_a())
output_int(a.get_b().b) output_int32(a.get_b().b)
return 0 return 0

View File

@ -1,11 +1,11 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
void output_int(int x) { void output_int32(int x) {
printf("%d\n", x); printf("%d\n", x);
} }
void output_long(long x) { void output_int64(long x) {
printf("%ld\n", x); printf("%ld\n", x);
} }