From 8895b27552498e59a8168270d79d608a7148c6ef Mon Sep 17 00:00:00 2001 From: Diptanshu8 Date: Mon, 10 Jul 2017 08:55:52 +0000 Subject: [PATCH] CC being shown in python script. --- api/api_testing.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/api/api_testing.py b/api/api_testing.py index b98628d3..e91e00b4 100644 --- a/api/api_testing.py +++ b/api/api_testing.py @@ -8,9 +8,12 @@ for i in sys.argv[1:]: cc.api_add_param(s,str(i)) compile_ret = cc.compile_params(s,len(sys.argv[1:])); start_ret = cc.api_start(s); -print cc.cvar.python_subs.number_of_lines -print type(cc.cvar.python_subs.subs) -#for item in xrange(cc.cc_to_python_get_subs_number_of_lines()): -# print cc.cc_to_python_get_sub[item] +#print cc.cc_to_python_get_subs_number_of_lines() +#print cc.cc_to_python_get_sub[0] + +#print cc.cvar.python_subs.number_of_lines +#print type(cc.cvar.python_subs.subs) +for item in xrange(cc.cc_to_python_get_subs_number_of_lines()): + print item, cc.cc_to_python_get_sub(item) #os.system('clear')