clang support
This commit is contained in:
parent
2efab21563
commit
c53919efcf
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}}
|
||||
|
@ -975,7 +975,7 @@ static char *lcasify(const char *s) {
|
||||
}
|
||||
|
||||
/* find the functions called by this function */
|
||||
char *findcalledby(const char *pattern) {
|
||||
char * findcalledby(const char *pattern) {
|
||||
char file[PATHLEN + 1]; /* source file name */
|
||||
char * found_caller = NULL; /* seen calling function? */
|
||||
bool macro = false;
|
||||
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user