From 69b9ac5152279a544e6cd3db2555db5acb669c3b Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 13 Dec 2021 11:18:44 +0800 Subject: [PATCH] nac3standalone: consistent naming --- nac3standalone/demo/classes.py | 12 ++++++------ nac3standalone/demo/demo.c | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/nac3standalone/demo/classes.py b/nac3standalone/demo/classes.py index 14df8f2ff..f3cf95177 100644 --- a/nac3standalone/demo/classes.py +++ b/nac3standalone/demo/classes.py @@ -1,9 +1,9 @@ @extern -def output_int(x: int32): +def output_int32(x: int32): ... @extern -def output_long(x: int64): +def output_int64(x: int64): ... @@ -31,10 +31,10 @@ class B: def run() -> int32: a = A(10) - output_int(a.a) + output_int32(a.a) a = A(20) - output_int(a.a) - output_int(a.get_a()) - output_int(a.get_b().b) + output_int32(a.a) + output_int32(a.get_a()) + output_int32(a.get_b().b) return 0 diff --git a/nac3standalone/demo/demo.c b/nac3standalone/demo/demo.c index 90e4c05b9..ad19ee1eb 100644 --- a/nac3standalone/demo/demo.c +++ b/nac3standalone/demo/demo.c @@ -1,11 +1,11 @@ #include #include -void output_int(int x) { +void output_int32(int x) { printf("%d\n", x); } -void output_long(long x) { +void output_int64(long x) { printf("%ld\n", x); }