Skip to content

Commit bf7a370

Browse files
committed
Port fmtscan to macOS with location tracking
This consolidates fmtscan.c to support both Linux and macOS through conditional compilation. - Add location tracking showing filename:line for each misspelling - Include comprehensive technical terms dictionary to reduce false positives on macOS where system dictionary lacks programming terms - Handle platform differences (memory mapping flags, dictionary paths) Close #265 Change-Id: I37d39960f245ea3984d49a21e7eb3123e0ffd128
1 parent a861206 commit bf7a370

File tree

2 files changed

+353
-49
lines changed

2 files changed

+353
-49
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ qtest: $(OBJS)
5757

5858
fmtscan: tools/fmtscan.c
5959
ifeq ($(UNAME_S),Darwin)
60-
$(Q)printf "#!/usr/bin/env bash\nexit 0\n" > $@
61-
$(Q)chmod +x $@
60+
$(VECHO) " CC+LD\t$@\n"
61+
$(Q)$(CC) -o $@ $(CFLAGS) -O2 $<
6262
else
6363
$(VECHO) " CC+LD\t$@\n"
6464
$(Q)$(CC) -o $@ $(CFLAGS) $< -lrt -lpthread

0 commit comments

Comments
 (0)