aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@nabijaczleweli.xyz>2023-05-04 22:25:57 +0200
committerCarlos O'Donell <carlos@redhat.com>2023-05-08 09:59:45 -0400
commitcea74a4a24c36202309e8254f1f938e2166488f3 (patch)
tree35a3dd9704d1cdb22cd74478a50a2c942b22725f /stdlib
parent2f679937b35b7f9a8d448ab2ee03bc1fb3ace263 (diff)
downloadglibc-cea74a4a24c36202309e8254f1f938e2166488f3.zip
glibc-cea74a4a24c36202309e8254f1f938e2166488f3.tar.gz
glibc-cea74a4a24c36202309e8254f1f938e2166488f3.tar.bz2
testsuite: stdlib/isomac.c: fix REQUIREMENTS
All of the mentioned variables are gone. gcc is just the default and argv[1] can be used instead. /usr/include isn't hard-coded and you can pass argv[2] with -I... to adjust. Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/isomac.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/stdlib/isomac.c b/stdlib/isomac.c
index 3a6009d..a371bb2 100644
--- a/stdlib/isomac.c
+++ b/stdlib/isomac.c
@@ -45,14 +45,11 @@
compiler compiles some other language than Standard C.
REQUIREMENTS:
- This program calls gcc to get the list of defined macros. If you
+ This program calls ${1-gcc} to get the list of defined macros. If you
don't have gcc you're probably out of luck unless your compiler or
- preprocessor has something similar to gcc's -dM option. Tune
- PRINT_MACROS in this case. This program assumes headers are found
- under /usr/include and that there is a writable /tmp directory.
- Tune SYSTEM_INCLUDE if your system differs.
- #define BROKEN_SYSTEM if system(NULL) bombs -- one more violation
- of ISO C, by the way.
+ preprocessor has something similar to gcc's -dM option. This program
+ assumes headers are found in the default search path (pass -I... in
+ $2 if this is not the case) and that there is a writable /tmp directory.
OUTPUT:
Each header file name is printed, followed by illegal macro names