clang support
This commit is contained in:
1
Makefile
1
Makefile
@ -1,6 +1,5 @@
|
||||
LIBS:=ncurses readline
|
||||
|
||||
CC:=gcc
|
||||
CFLAGS += $(if $(SAN),-fsanitize=${SAN})
|
||||
CPPFLAGS:=-I config/ ${shell pkg-config --cflags ${LIBS}}
|
||||
LDLIBS=${shell pkg-config --libs ${LIBS}}
|
||||
|
@ -990,7 +990,7 @@ char *findcalledby(const char *pattern) {
|
||||
case FCNDEF:
|
||||
if(dbseek(p->lineoffset) != -1 &&
|
||||
scanpast('\t') != NULL) { /* skip def */
|
||||
found_caller = 0x01;
|
||||
found_caller = (char*)0x01;
|
||||
findcalledbysub(srcfiles[p->fileindex], macro);
|
||||
}
|
||||
}
|
||||
@ -1018,7 +1018,7 @@ char *findcalledby(const char *pattern) {
|
||||
case FCNDEF:
|
||||
skiprefchar(); /* match name to pattern */
|
||||
if(match()) {
|
||||
found_caller = 0x01;
|
||||
found_caller = (char*)0x01;
|
||||
findcalledbysub(file, macro);
|
||||
}
|
||||
break;
|
||||
|
@ -36,6 +36,7 @@
|
||||
*/
|
||||
|
||||
#include "global.h"
|
||||
#include "build.h"
|
||||
#include <ncurses.h>
|
||||
#include <setjmp.h> /* jmp_buf */
|
||||
#include <stdlib.h>
|
||||
|
Reference in New Issue
Block a user