From bf4fae89bcf4ac3452453b8adce308b42ed8cbe0 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Tue, 24 Jan 2012 06:06:24 +0200 Subject: fix the case where the first statement in a file is empty (just a semicolon). Fix provided by Andreas Kloeckner --- examples/c-to-c.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/c-to-c.py b/examples/c-to-c.py index ca76cc5..c40d162 100644 --- a/examples/c-to-c.py +++ b/examples/c-to-c.py @@ -33,6 +33,7 @@ def zz_test_translate(): int main(void) { unsigned int long k = 4; + int p = - - k; return 0; } ''' @@ -52,7 +53,7 @@ int main(void) #------------------------------------------------------------------------------ if __name__ == "__main__": - #zz_test_translate() + zz_test_translate() if len(sys.argv) > 1: translate_to_c(sys.argv[1]) else: -- cgit v1.2.3