Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Error... Have no idea why....
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:3:15: error: redefinition of ‘union Word’
typedef union Word{
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:3:15: note: originally defined here
typedef union Word{
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:19:9: error: redefinition of ‘struct paddress’
struct paddress{
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:19:9: note: originally defined here
struct paddress{
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:27:9: error: redefinition of ‘struct pvalue’
struct pvalue{
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:27:9: note: originally defined here
struct pvalue{
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:32:9: error: redefinition of ‘struct base8’
struct base8{
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:32:9: note: originally defined here
struct base8{
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:40:2: error: conflicting types for ‘Word’
}Word;
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:40:2: note: previous declaration of ‘Word’ was here
}Word;
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:46:2: error: conflicting types for ‘Words’
}Words;
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:46:2: note: previous declaration of ‘Words’ was here
}Words;
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:49:6: error: redeclaration of enumerator ‘INSTANT_ADDRESS_RESOLUTION’
enum{INSTANT_ADDRESS_RESOLUTION = 0,DIRECT_ADDRESS_RESOLUTION, INSTANT_DYNAMIC_ADDRESS_RESOLUTION, DIRECT_REGISTER_ADDRESS_RESOLUTION, NONE = -1};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:49:6: note: previous definition of ‘INSTANT_ADDRESS_RESOLUTION’ was here
enum{INSTANT_ADDRESS_RESOLUTION = 0,DIRECT_ADDRESS_RESOLUTION, INSTANT_DYNAMIC_ADDRESS_RESOLUTION, DIRECT_REGISTER_ADDRESS_RESOLUTION, NONE = -1};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:49:37: error: redeclaration of enumerator ‘DIRECT_ADDRESS_RESOLUTION’
enum{INSTANT_ADDRESS_RESOLUTION = 0,DIRECT_ADDRESS_RESOLUTION, INSTANT_DYNAMIC_ADDRESS_RESOLUTION, DIRECT_REGISTER_ADDRESS_RESOLUTION, NONE = -1};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:49:37: note: previous definition of ‘DIRECT_ADDRESS_RESOLUTION’ was here
enum{INSTANT_ADDRESS_RESOLUTION = 0,DIRECT_ADDRESS_RESOLUTION, INSTANT_DYNAMIC_ADDRESS_RESOLUTION, DIRECT_REGISTER_ADDRESS_RESOLUTION, NONE = -1};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:49:64: error: redeclaration of enumerator ‘INSTANT_DYNAMIC_ADDRESS_RESOLUTION’
enum{INSTANT_ADDRESS_RESOLUTION = 0,DIRECT_ADDRESS_RESOLUTION, INSTANT_DYNAMIC_ADDRESS_RESOLUTION, DIRECT_REGISTER_ADDRESS_RESOLUTION, NONE = -1};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:49:64: note: previous definition of ‘INSTANT_DYNAMIC_ADDRESS_RESOLUTION’ was here
enum{INSTANT_ADDRESS_RESOLUTION = 0,DIRECT_ADDRESS_RESOLUTION, INSTANT_DYNAMIC_ADDRESS_RESOLUTION, DIRECT_REGISTER_ADDRESS_RESOLUTION, NONE = -1};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:49:100: error: redeclaration of enumerator ‘DIRECT_REGISTER_ADDRESS_RESOLUTION’
enum{INSTANT_ADDRESS_RESOLUTION = 0,DIRECT_ADDRESS_RESOLUTION, INSTANT_DYNAMIC_ADDRESS_RESOLUTION, DIRECT_REGISTER_ADDRESS_RESOLUTION, NONE = -1};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:49:100: note: previous definition of ‘DIRECT_REGISTER_ADDRESS_RESOLUTION’ was here
enum{INSTANT_ADDRESS_RESOLUTION = 0,DIRECT_ADDRESS_RESOLUTION, INSTANT_DYNAMIC_ADDRESS_RESOLUTION, DIRECT_REGISTER_ADDRESS_RESOLUTION, NONE = -1};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:49:136: error: redeclaration of enumerator ‘NONE’
enum{INSTANT_ADDRESS_RESOLUTION = 0,DIRECT_ADDRESS_RESOLUTION, INSTANT_DYNAMIC_ADDRESS_RESOLUTION, DIRECT_REGISTER_ADDRESS_RESOLUTION, NONE = -1};
 ^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:49:136: note: previous definition of ‘NONE’ was here
enum{INSTANT_ADDRESS_RESOLUTION = 0,DIRECT_ADDRESS_RESOLUTION, INSTANT_DYNAMIC_ADDRESS_RESOLUTION, DIRECT_REGISTER_ADDRESS_RESOLUTION, NONE = -1};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:51:6: error: redeclaration of enumerator ‘ABSULUT’
enum{ABSULUT=0,EXTERNAL,RELOCATABLE};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:51:6: note: previous definition of ‘ABSULUT’ was here
enum{ABSULUT=0,EXTERNAL,RELOCATABLE};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:51:16: error: redeclaration of enumerator ‘EXTERNAL’
enum{ABSULUT=0,EXTERNAL,RELOCATABLE};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:51:16: note: previous definition of ‘EXTERNAL’ was here
enum{ABSULUT=0,EXTERNAL,RELOCATABLE};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:51:25: error: redeclaration of enumerator ‘RELOCATABLE’
enum{ABSULUT=0,EXTERNAL,RELOCATABLE};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:51:25: note: previous definition of ‘RELOCATABLE’ was here
enum{ABSULUT=0,EXTERNAL,RELOCATABLE};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:53:6: error: redeclaration of enumerator ‘NOP’
enum{NOP = 0, ONEOP,TWOP};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:53:6: note: previous definition of ‘NOP’ was here
enum{NOP = 0, ONEOP,TWOP};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:53:15: error: redeclaration of enumerator ‘ONEOP’
enum{NOP = 0, ONEOP,TWOP};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:53:15: note: previous definition of ‘ONEOP’ was here
enum{NOP = 0, ONEOP,TWOP};
 ^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:53:21: error: redeclaration of enumerator ‘TWOP’
enum{NOP = 0, ONEOP,TWOP};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:53:21: note: previous definition of ‘TWOP’ was here
enum{NOP = 0, ONEOP,TWOP};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:6: error: redeclaration of enumerator ‘mov’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:56:6: note: previous definition of ‘mov’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:12: error: redeclaration of enumerator ‘cmp’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:56:12: note: previous definition of ‘cmp’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:16: error: redeclaration of enumerator ‘add’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:56:16: note: previous definition of ‘add’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:20: error: redeclaration of enumerator ‘sub’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:56:20: note: previous definition of ‘sub’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:24: error: redeclaration of enumerator ‘nt’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:56:24: note: previous definition of ‘nt’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:27: error: redeclaration of enumerator ‘clr’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:56:27: note: previous definition of ‘clr’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:31: error: redeclaration of enumerator ‘lea’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:56:31: note: previous definition of ‘lea’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:35: error: redeclaration of enumerator ‘inc’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:56:35: note: previous definition of ‘inc’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:39: error: redeclaration of enumerator ‘dec’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:56:39: note: previous definition of ‘dec’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:43: error: redeclaration of enumerator ‘jmp’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:56:43: note: previous definition of ‘previous definition of ‘jmp’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:47: error: redeclaration of enumerator ‘bne’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:56:47: note: previous definition of ‘bne’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:51: error: redeclaration of enumerator ‘red’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:56:51: note: previous definition of ‘red’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:55: error: redeclaration of enumerator ‘prn’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:56:55: note: previous definition of ‘prn’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:59: error: redeclaration of enumerator ‘jsr’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:56:59: note: previous definition of ‘jsr’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:63: error: redeclaration of enumerator ‘rts’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:56:63: note: previous definition of ‘rts’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:67: error: redeclaration of enumerator ‘stop’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:56:67: note: previous definition of ‘stop’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:57:6: error: conflicting types for ‘createInstanceOfWordWithParam’
Word createInstanceOfWordWithParam(Word word);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:57:6: note: previous declaration of ‘createInstanceOfWordWithParam’ was here
Word createInstanceOfWordWithParam(Word word);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:58:6: error: conflicting types for ‘createInstanceOfWord’
Word createInstanceOfWord();
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:58:6: note: previous declaration of ‘createInstanceOfWord’ was here
Word createInstanceOfWord();
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:59:6: error: conflicting types for ‘createInstaceOfCommandWithParam’
Word createInstaceOfCommandWithParam(unsigned int pERA,unsigned int pdestar,unsigned int psrcar,unsigned int popcode,unsigned int pgrp);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:59:6: note: previous declaration of ‘createInstaceOfCommandWithParam’ was here
Word createInstaceOfCommandWithParam(unsigned int pERA,unsigned int pdestar,unsigned int psrcar,unsigned int popcode,unsigned int pgrp);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:60:6: error: conflicting types for ‘createInstaceOfCommand’
Word createInstaceOfCommand(unsigned int action);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:60:6: note: previous declaration of ‘createInstaceOfCommand’ was here
Word createInstaceOfCommand(unsigned int action);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:61:6: error: conflicting types for ‘createInstaceOfParameterAdrressWithParam’
Word createInstaceOfParameterAdrressWithParam(unsigned int pERA, unsigned int param1, unsigned int param2);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:61:6: note: previous declaration of ‘createInstaceOfParameterAdrressWithParam’ was here
Word createInstaceOfParameterAdrressWithParam(unsigned int pERA, unsigned int param1, unsigned int param2);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:62:6: error: conflicting types for ‘createInstaceOfParameterAdrress’
Word createInstaceOfParameterAdrress();
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:62:6: note: previous declaration of ‘createInstaceOfParameterAdrress’ was here
Word createInstaceOfParameterAdrress();
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:63:6: error: conflicting types for ‘createInstaceOfParameterValueWithParam’
Word createInstaceOfParameterValueWithParam(unsigned int pERA, unsigned int pvalue);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:63:6: note: previous declaration of ‘createInstaceOfParameterValueWithParam’ was here
Word createInstaceOfParameterValueWithParam(unsigned int pERA, unsigned int pvalue);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:64:6: error: conflicting types for ‘createInstaceOfParameterValue’
Word createInstaceOfParameterValue();
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:64:6: note: previous declaration of ‘createInstaceOfParameterValue’ was here
Word createInstaceOfParameterValue();
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:65:5: error: conflicting types for ‘setWordValue’
int setWordValue(Word *word, unsigned int value);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:65:5: note: previous declaration of ‘setWordValue’ was here
int setWordValue(Word *word, unsigned int value);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:66:5: error: conflicting types for ‘checkSize’
int checkSize(Words *words);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:66:5: note: previous declaration of ‘checkSize’ was here
int checkSize(Words *words);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:67:6: error: conflicting types for ‘printInstructionsArray’
void printInstructionsArray(Words *words);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:67:6: note: previous declaration of ‘printInstructionsArray’ was here
void printInstructionsArray(Words *words);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:3:15: error: redefinition of ‘union Word’
typedef union Word{
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:3:15: note: originally defined here
typedef union Word{
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:19:9: error: redefinition of ‘struct paddress’
struct paddress{
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:19:9: note: originally defined here
struct paddress{
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:27:9: error: redefinition of ‘struct pvalue’
struct pvalue{
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:27:9: note: originally defined here
struct pvalue{
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:32:9: error: redefinition of ‘struct base8’
struct base8{
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:32:9: note: originally defined here
struct base8{
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:40:2: error: conflicting types for ‘Word’
}Word;
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:40:2: note: previous declaration of ‘Word’ was here
}Word;
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:46:2: error: conflicting types for ‘Words’
}Words;
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:46:2: note: previous declaration of ‘Words’ was here
}Words;
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:49:6: error: redeclaration of enumerator ‘INSTANT_ADDRESS_RESOLUTION’
enum{INSTANT_ADDRESS_RESOLUTION = 0,DIRECT_ADDRESS_RESOLUTION, INSTANT_DYNAMIC_ADDRESS_RESOLUTION, DIRECT_REGISTER_ADDRESS_RESOLUTION, NONE = -1};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:49:6: note: previous definition of ‘INSTANT_ADDRESS_RESOLUTION’ was here
enum{INSTANT_ADDRESS_RESOLUTION = 0,DIRECT_ADDRESS_RESOLUTION, INSTANT_DYNAMIC_ADDRESS_RESOLUTION, DIRECT_REGISTER_ADDRESS_RESOLUTION, NONE = -1};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:49:37: error: redeclaration of enumerator ‘DIRECT_ADDRESS_RESOLUTION’
enum{INSTANT_ADDRESS_RESOLUTION = 0,DIRECT_ADDRESS_RESOLUTION, INSTANT_DYNAMIC_ADDRESS_RESOLUTION, DIRECT_REGISTER_ADDRESS_RESOLUTION, NONE = -1};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:49:37: note: previous definition of ‘DIRECT_ADDRESS_RESOLUTION’ was here
enum{INSTANT_ADDRESS_RESOLUTION = 0,DIRECT_ADDRESS_RESOLUTION, INSTANT_DYNAMIC_ADDRESS_RESOLUTION, DIRECT_REGISTER_ADDRESS_RESOLUTION, NONE = -1};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:49:64: error: redeclaration of enumerator ‘INSTANT_DYNAMIC_ADDRESS_RESOLUTION’
enum{INSTANT_ADDRESS_RESOLUTION = 0,DIRECT_ADDRESS_RESOLUTION, INSTANT_DYNAMIC_ADDRESS_RESOLUTION, DIRECT_REGISTER_ADDRESS_RESOLUTION, NONE = -1};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:49:64: note: previous definition of ‘INSTANT_DYNAMIC_ADDRESS_RESOLUTION’ was here
enum{INSTANT_ADDRESS_RESOLUTION = 0,DIRECT_ADDRESS_RESOLUTION, INSTANT_DYNAMIC_ADDRESS_RESOLUTION, DIRECT_REGISTER_ADDRESS_RESOLUTION, NONE = -1};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:49:100: error: redeclaration of enumerator ‘DIRECT_REGISTER_ADDRESS_RESOLUTION’
enum{INSTANT_ADDRESS_RESOLUTION = 0,DIRECT_ADDRESS_RESOLUTION, INSTANT_DYNAMIC_ADDRESS_RESOLUTION, DIRECT_REGISTER_ADDRESS_RESOLUTION, NONE = -1};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:49:100: note: previous definition of ‘DIRECT_REGISTER_ADDRESS_RESOLUTION’ was here
enum{INSTANT_ADDRESS_RESOLUTION = 0,DIRECT_ADDRESS_RESOLUTION, INSTANT_DYNAMIC_ADDRESS_RESOLUTION, DIRECT_REGISTER_ADDRESS_RESOLUTION, NONE = -1};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:49:136: error: redeclaration of enumerator ‘NONE’
enum{INSTANT_ADDRESS_RESOLUTION = 0,DIRECT_ADDRESS_RESOLUTION, INSTANT_DYNAMIC_ADDRESS_RESOLUTION, DIRECT_REGISTER_ADDRESS_RESOLUTION, NONE = -1};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:49:136: note: previous definition of ‘NONE’ was here
enum{INSTANT_ADDRESS_RESOLUTION = 0,DIRECT_ADDRESS_RESOLUTION, INSTANT_DYNAMIC_ADDRESS_RESOLUTION, DIRECT_REGISTER_ADDRESS_RESOLUTION, NONE = -1};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:51:6: error: redeclaration of enumerator ‘ABSULUT’
enum{ABSULUT=0,EXTERNAL,RELOCATABLE};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:51:6: note: previous definition of ‘ABSULUT’ was here
enum{ABSULUT=0,EXTERNAL,RELOCATABLE};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:51:16: error: redeclaration of enumerator ‘EXTERNAL’
enum{ABSULUT=0,EXTERNAL,RELOCATABLE};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:51:16: note: previous definition of ‘EXTERNAL’ was here
enum{ABSULUT=0,EXTERNAL,RELOCATABLE};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:51:25: error: redeclaration of enumerator ‘RELOCATABLE’
enum{ABSULUT=0,EXTERNAL,RELOCATABLE};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:51:25: note: previous definition of ‘RELOCATABLE’ was here
enum{ABSULUT=0,EXTERNAL,RELOCATABLE};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:53:6: error: redeclaration of enumerator ‘NOP’
enum{NOP = 0, ONEOP,TWOP};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:53:6: note: previous definition of ‘NOP’ was here
enum{NOP = 0, ONEOP,TWOP};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:53:15: error: redeclaration of enumerator ‘ONEOP’
enum{NOP = 0, ONEOP,TWOP};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:53:15: note: previous definition of ‘ONEOP’ was here
enum{NOP = 0, ONEOP,TWOP};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:53:21: error: redeclaration of enumerator ‘TWOP’
enum{NOP = 0, ONEOP,TWOP};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:53:21: note: previous definition of ‘TWOP’ was here
enum{NOP = 0, ONEOP,TWOP};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:56:6: error: redeclaration of enumerator ‘mov’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:6: note: previous definition of ‘mov’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:56:12: error: redeclaration of enumerator ‘cmp’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:12: note: previous definition of ‘cmp’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:56:16: error: redeclaration of enumerator ‘add’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:16: note: previous definition of ‘add’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:56:20: error: redeclaration of enumerator ‘sub’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:20: note: previous definition of ‘sub’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:56:24: error: redeclaration of enumerator ‘nt’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:24: note: previous definition of ‘nt’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:56:27: error: redeclaration of enumerator ‘clr’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:27: note: previous definition of ‘clr’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:56:31: error: redeclaration of enumerator ‘redeclaration of enumerator ‘lea’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:31: note: previous definition of ‘lea’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:56:35: error: redeclaration of enumerator ‘inc’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:35: note: previous definition of ‘inc’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:56:39: error: redeclaration of enumerator ‘dec’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:39: note: previous definition of ‘dec’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:56:43: error: redeclaration of enumerator ‘jmp’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:43: note: previous definition of ‘jmp’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:56:47: error: redeclaration of enumerator ‘bne’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:47: note: previous definition of ‘bne’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:56:51: error: redeclaration of enumerator ‘red’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:51: note: previous definition of ‘red’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:56:55: error: redeclaration of enumerator ‘prn’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:55: note: previous definition of ‘prn’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:56:59: error: redeclaration of enumerator ‘jsr’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:59: note: previous definition of ‘jsr’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:56:63: error: redeclaration of enumerator ‘rts’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:63: note: previous definition of ‘rts’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:56:67: error: redeclaration of enumerator ‘stop’
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:6:0:
/home/asaf/GitHub/Assembler/protocols.h:56:67: note: previous definition of ‘stop’ was here
enum{mov=0,cmp,add,sub,nt,clr,lea,inc,dec,jmp,bne,red,prn,jsr,rts,stop};
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:57:6: error: conflicting types for ‘createInstanceOfWordWithParam’
Word createInstanceOfWordWithParam(Word word);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:57:6: note: previous declaration of ‘createInstanceOfWordWithParam’ was here
Word createInstanceOfWordWithParam(Word word);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:58:6: error: conflicting types for ‘createInstanceOfWord’
Word createInstanceOfWord();
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:58:6: note: previous declaration of ‘createInstanceOfWord’ was here
Word createInstanceOfWord();
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:59:6: error: conflicting types for ‘createInstaceOfCommandWithParam’
Word createInstaceOfCommandWithParam(unsigned int pERA,unsigned int pdestar,unsigned int psrcar,unsigned int popcode,unsigned int pgrp);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:59:6: note: previous declaration of ‘createInstaceOfCommandWithParam’ was here
Word createInstaceOfCommandWithParam(unsigned int pERA,unsigned int pdestar,unsigned int psrcar,unsigned int popcode,unsigned int pgrp);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:60:6: error: conflicting types for ‘createInstaceOfCommand’
Word createInstaceOfCommand(unsigned int action);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:60:6: note: previous declaration of ‘createInstaceOfCommand’ was here
Word createInstaceOfCommand(unsigned int action);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:61:6: error: conflicting types for ‘createInstaceOfParameterAdrressWithParam’
Word createInstaceOfParameterAdrressWithParam(unsigned int pERA, unsigned int param1, unsigned int param2);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:61:6: note: previous declaration of ‘createInstaceOfParameterAdrressWithParam’ was here
Word createInstaceOfParameterAdrressWithParam(unsigned int pERA, unsigned int param1, unsigned int param2);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:62:6: error: conflicting types for ‘createInstaceOfParameterAdrress’
Word createInstaceOfParameterAdrress();
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:62:6: note: previous declaration of ‘createInstaceOfParameterAdrress’ was here
Word createInstaceOfParameterAdrress();
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:63:6: error: conflicting types for ‘createInstaceOfParameterValueWithParam’
Word createInstaceOfParameterValueWithParam(unsigned int pERA, unsigned int pvalue);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:63:6: note: previous declaration of ‘createInstaceOfParameterValueWithParam’ was here
Word createInstaceOfParameterValueWithParam(unsigned int pERA, unsigned int pvalue);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:64:6: error: conflicting types for ‘createInstaceOfParameterValue’
Word createInstaceOfParameterValue();
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:64:6: note: previous declaration of ‘createInstaceOfParameterValue’ was here
Word createInstaceOfParameterValue();
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:65:5: error: conflicting types for ‘setWordValue’
int setWordValue(Word *word, unsigned int value);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:65:5: note: previous declaration of ‘setWordValue’ was here
int setWordValue(Word *word, unsigned int value);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:66:5: error: conflicting types for ‘checkSize’
int checkSize(Words *words);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:66:5: note: previous declaration of ‘checkSize’ was here
int checkSize(Words *words);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/assembler.h:1,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/protocols.h:67:6: error: conflicting types for ‘printInstructionsArray’
void printInstructionsArray(Words *words);
^
In file included from /home/asaf/GitHub/Assembler/lineparser.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:5:
/home/asaf/GitHub/Assembler/protocols.h:67:6: note: previous declaration of ‘printInstructionsArray’ was here
void printInstructionsArray(Words *words);
^
In file included from /home/asaf/GitHub/Assembler/assembler.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/lineparser.h:9:14: error: redeclaration of enumerator ‘ACTIONT’
typedef enum{ACTIONT = 0,INSTRUCTION}Type;
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:5:0:
/home/asaf/GitHub/Assembler/lineparser.h:9:14: note: previous definition of ‘ACTIONT’ was here
typedef enum{ACTIONT = 0,INSTRUCTION}Type;
^
In file included from /home/asaf/GitHub/Assembler/assembler.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/lineparser.h:9:26: error: redeclaration of enumerator ‘INSTRUCTION’
typedef enum{ACTIONT = 0,INSTRUCTION}Type;
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:5:0:
/home/asaf/GitHub/Assembler/lineparser.h:9:26: note: previous definition of ‘INSTRUCTION’ was here
typedef enum{ACTIONT = 0,INSTRUCTION}Type;
^
In file included from /home/asaf/GitHub/Assembler/assembler.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/lineparser.h:9:38: error: conflicting types for ‘Type’
typedef enum{ACTIONT = 0,INSTRUCTION}Type;
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:5:0:
/home/asaf/GitHub/Assembler/lineparser.h:9:38: note: previous declaration of ‘Type’ was here
typedef enum{ACTIONT = 0,INSTRUCTION}Type;
^
In file included from /home/asaf/GitHub/Assembler/assembler.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/lineparser.h:16:2: error: conflicting types for ‘Symbol’
}Symbol;
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:5:0:
/home/asaf/GitHub/Assembler/lineparser.h:16:2: note: previous declaration of ‘Symbol’ was here
}Symbol;
^
In file included from /home/asaf/GitHub/Assembler/assembler.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/lineparser.h:21:2: error: conflicting types for ‘Symbols’
}Symbols;
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:5:0:
/home/asaf/GitHub/Assembler/lineparser.h:21:2: note: previous declaration of ‘Symbols’ was here
}Symbols;
^
In file included from /home/asaf/GitHub/Assembler/assembler.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/lineparser.h:26:2: error: conflicting types for ‘Show’
}Show;
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:5:0:
/home/asaf/GitHub/Assembler/lineparser.h:26:2: note: previous declaration of ‘Show’ was here
}Show;
^
In file included from /home/asaf/GitHub/Assembler/assembler.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/lineparser.h:32:2: error: conflicting types for ‘Undefined’
}Undefined;
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:5:0:
/home/asaf/GitHub/Assembler/lineparser.h:32:2: note: previous declaration of ‘Undefined’ was here
}Undefined;
^
In file included from /home/asaf/GitHub/Assembler/assembler.h:1:0,
from /home/asaf/GitHub/Assembler/lineparser.c:7:
/home/asaf/GitHub/Assembler/lineparser.h:37:2: error: conflicting types for ‘Undefineds’
}Undefineds;
^
In file included from /home/asaf/GitHub/Assembler/lineparser.c:5:0:
/home/asaf/GitHub/Assembler/lineparser.h:37:2: note: previous declaration of ‘Undefineds’ was here
}Undefineds;
^
/home/asaf/GitHub/Assembler/lineparser.c: In function ‘printUndefineds’:
/home/asaf/GitHub/Assembler/lineparser.c:919:20: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘Show {aka struct <anonymous>}’ [-Wformat=]
printf("%d, ", unds.array[i].shows[j]);
^
CMakeFiles/Assembler.dir/build.make:86: recipe for target 'CMakeFiles/Assembler.dir/lineparser.c.o' failed
make[3]: *** [CMakeFiles/Assembler.dir/lineparser.c.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/Assembler.dir/all' failed
make[2]: *** [CMakeFiles/Assembler.dir/all] Error 2
CMakeFiles/Makefile2:79: recipe for target 'CMakeFiles/Assembler.dir/rule' failed
make[1]: *** [CMakeFiles/Assembler.dir/rule] Error 2
Makefile:118: recipe for target 'Assembler' failed
make: *** [Assembler] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment