Re: [Tutor] Get the structure values from a c file

2012-12-17 Thread Marefe Serentas
On 12/18/2012 12:38 AM, tutor-requ...@python.org wrote: Re: Get the structure values from a c file I apologize for some syntax errors in my c file. I would like to correct my mistakes and append some lines in the c file to make it clearer. #define max (3) #define max_data_size (9600*2*8)

Re: [Tutor] Tutor Digest, Vol 106, Issue 42

2012-12-17 Thread Marefe Serentas
On 12/18/2012 12:38 AM, tutor-requ...@python.org wrote: Re: Get the structure values from a c file I apologize for some syntax errors in my c file. I would like to correct my mistakes and append some lines in the c file to make it clearer. #define max (3) #define max_data_size (9600*2*8)

[Tutor] Get the structure values from a c file

2012-12-16 Thread Marefe Serentas
Hi, I need help. I want to create a python script that will store the value of the structure /MainStruct/ from the c file. Suppose my c file looks like this: -- #define max (3) typedef struct A { int a; char b; }A; typedef struct