1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-14 22:42:41 +01:00
nix/src/perl
John Ericson c204e307ac Cleanup config headers
There are two big changes:

1. Public and private config is now separated. Configuration variables
   that are only used internally do not go in a header which is
   installed.

   (Additionally, libutil has a unix-specific private config header,
   which should only be used in unix-specific code. This keeps things a
   bit more organized, in a purely private implementation-internal way.)

2. Secondly, there is no more `-include`. There are very few config
   items that need to be publically exposed, so now it is feasible to
   just make the headers that need them just including the (public)
   configuration header.

And there are also a few more small cleanups on top of those:

- The configuration files have better names.

- The few CPP variables that remain exposed in the public headers are
  now also renamed to always start with `NIX_`. This ensures they should
  not conflict with variables defined elsewhere.

- We now always use `#if` and not `#ifdef`/`#ifndef` for our
  configuration variables, which helps avoid bugs by requiring that
  variables must be defined in all cases.
2025-03-31 23:28:36 -04:00
..
lib/Nix Cleanup config headers 2025-03-31 23:28:36 -04:00
t Integrate perl with the other meson builds 2024-06-17 14:48:20 -04:00
.version Integrate perl with the other meson builds 2024-06-17 14:48:20 -04:00
.yath.rc.in Integrate perl with the other meson builds 2024-06-17 14:48:20 -04:00
MANIFEST Integrate perl with the other meson builds 2024-06-17 14:48:20 -04:00
meson.build Fix a few warnings 2025-02-17 19:29:01 +01:00
meson.options Integrate perl with the other meson builds 2024-06-17 14:48:20 -04:00
package.nix Format .nix files 2025-01-24 17:04:02 +01:00