Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :!gcc -o -m64 -DIS_TEST -std=c99 memory.c && time ./a.out
- memory.c: In function ‘memory_initialize’:
- memory.c:107: warning: implicit declaration of function ‘wdata’
- memory.c:107: warning: implicit declaration of function ‘rsize’
- memory.c:107: warning: passing argument 1 of ‘memset’ makes pointer from integer without a cast
- /usr/include/string.h:64: note: expected ‘void *’ but argument is of type ‘int’
- memory.c:108: warning: implicit declaration of function ‘winfo’
- memory.c:108: error: invalid type argument of ‘unary *’ (have ‘int’)
- memory.c: In function ‘snew’:
- memory.c:115: error: ‘op’ undeclared (first use in this function)
- memory.c:115: error: (Each undeclared identifier is reported only once
- memory.c:115: error: for each function it appears in.)
- memory.c:116: error: expected ‘;’ before ‘fprintf’
- memory.c: In function ‘copy’:
- memory.c:134: warning: implicit declaration of function ‘wtype’
- memory.c:134: error: invalid type argument of ‘unary *’ (have ‘int’)
- memory.c:135: warning: passing argument 1 of ‘memcpy’ makes pointer from integer without a cast
- /usr/include/string.h:43: note: expected ‘void * restrict’ but argument is of type ‘int’
- memory.c: At top level:
- memory.c:139: error: conflicting types for ‘delete’
- memory.h:105: note: previous declaration of ‘delete’ was here
- memory.c: In function ‘delete’:
- memory.c:143: error: request for member ‘info’ in something not a structure or union
- memory.c: At top level:
- memory.c:199: error: conflicting types for ‘rinfo’
- memory.h:110: note: previous declaration of ‘rinfo’ was here
- memory.c:204: error: conflicting types for ‘rtype’
- memory.h:111: note: previous declaration of ‘rtype’ was here
- memory.c:222: error: conflicting types for ‘wtype’
- memory.c:134: note: previous implicit declaration of ‘wtype’ was here
- memory.c: In function ‘wtype’:
- memory.c:225: error: request for member ‘type’ in something not a structure or union
- memory.c: At top level:
- memory.c:228: error: conflicting types for ‘winfo’
- memory.c:108: note: previous implicit declaration of ‘winfo’ was here
- memory.c: In function ‘winfo’:
- memory.c:231: error: request for member ‘info’ in something not a structure or union
- memory.c: At top level:
- memory.c:234: error: conflicting types for ‘wdata’
- memory.c:107: note: previous implicit declaration of ‘wdata’ was here
- memory.c: In function ‘wdata’:
- memory.c:237: error: request for member ‘data’ in something not a structure or union
- memory.c: At top level:
- memory.c:240: error: conflicting types for ‘rsize’
- memory.c:107: note: previous implicit declaration of ‘rsize’ was here
- shell returned 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement