clang support

This commit is contained in:
anon
2024-11-04 19:03:40 +01:00
parent 2efab21563
commit c53919efcf
3 changed files with 4 additions and 4 deletions

View File

@ -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}}

View File

@ -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;

View File

@ -36,6 +36,7 @@
*/
#include "global.h"
#include "build.h"
#include <ncurses.h>
#include <setjmp.h> /* jmp_buf */
#include <stdlib.h>