-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpp.ansi, em_m2: include correct prototype for sprint( ).
This should mostly fix the crashes which were observed on GitHub CI (e.g. https://github.com/davidgiven/ack/actions/runs/11410639087/job/31753347141) when building ACK for a macOS host on 64-bit ARM. It turns out that Apple's ARM64 ABI handles variable arguments in variadic functions differently from named arguments (developer.apple.com/documentation/xcode/application-binary-interfaces). Thus callees which want to call the variadic function sprint( ) must declare the correct prototype, otherwise they will pass arguments to it wrongly.
- Loading branch information
Showing
8 changed files
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,8 @@ | |
|
||
/* $Id$ */ | ||
|
||
#include "print.h" | ||
|
||
struct f_info { | ||
unsigned short f_lineno; | ||
char *f_filename; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,8 @@ | |
|
||
/* $Id$ */ | ||
|
||
#include "print.h" | ||
|
||
struct f_info { | ||
unsigned short f_lineno; | ||
char *f_fn; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters