This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Parse error


I am using arm-elf-gcc to com´pile a C program, but it
show this error:

Decl_SON.h:46: error: parse error before "IRQHandler"


And this is the lib Decl_SON.h that hhas the error:



typedef struct {


    void (*TStart)(void);
    void *TStackLimit;
    unsigned long TStackPointer;



    char TName[10];
    unsigned long TStackSize;
    unsigned short TSuspTics;
} tcbstruc;



extern unsigned long TIC;
extern volatile unsigned long MainCounter;

extern unsigned EXECUTIC;
extern volatile unsigned PROTECT;
extern volatile int CurrentTask;
extern unsigned MainTask;

extern tcbstruc TCB[];
extern tcbstruc* CurrentTaskPointer;


void __irq IRQHandler(void);
void SaveAndRestore(tcbstruc* SaveTask,tcbstruc*
RestoreTask);
void InitialiseContext(tcbstruc* tcb);

void InitialiseTasks(void);
void Suspend(unsigned SuspTics, unsigned long
StartTic);
void GPISR(void);


Can somebody help me with this?

Thankyou

Wellington
Brazil
 
__________________________________________________________________________
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]