diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-12-11 03:24:58 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-12-11 03:24:58 -0500 |
commit | f3b344acf997c691dcb4280504bbfaf4686b7d17 (patch) | |
tree | d22049916f28040dcd97aae5ad8256cd5b478180 | |
parent | d6d7a0971b4efa938521869935ad2a10b0f7d162 (diff) | |
download | deheader-f3b344acf997c691dcb4280504bbfaf4686b7d17.tar.gz deheader-f3b344acf997c691dcb4280504bbfaf4686b7d17.tar.bz2 deheader-f3b344acf997c691dcb4280504bbfaf4686b7d17.tar.xz deheader-f3b344acf997c691dcb4280504bbfaf4686b7d17.zip |
Explain the depedency table better.
-rwxr-xr-x | deheader | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -37,9 +37,11 @@ version = "0.3" # Difference in various compiler implementations and OSes mean that for cross- # platform compatibility you sometimes want to leave "unneeded" headers alone # because they're required in order to satify dependencies on other platforms. -# We list those here. Home port is Linux; these are mostly extracted from -# observing compiles on BSD systems. +# We list those here. In general they fall into two categrories: requirements = map(lambda (r, h): (re.compile(r), h), ( + # Headers mandated by SuS that may not be required by a particular compiler, + # usually because all the argument types and the return type are composed + # from C scalar types. (r"a64l\s*\(", ["<stdlib.h>"]), (r"l64a\s*\(", ["<stdlib.h>"]), (r"access\s*\(", ["<unistd.h>"]), @@ -51,6 +53,8 @@ requirements = map(lambda (r, h): (re.compile(r), h), ( (r"atan2\s*\(", ["<math.h>"]), (r"basename\s*\(", ["<libgen.h>"]), (r"umask\s*\(", ["<sys/stat.h>", "<sys/types.h>"]), + # Dependencies observed on systems other than the Linux this was + # developed under. (r"<sys/socket.h>", ["<sys/stat.h>", "<sys/types.h>"]), )) |