guix/nix/libstore
Congcong Kuo d1a9fb85a4
daemon: Use inline functions and variables instead of extern
Avoid separate declarations and definitions for so-called 'global' objects.

* nix/libstore/derivations.{cc, hh} (drvHashes): Use inline instead of separate
declaration and definition.
* nix/libstore/globals.{cc, hh} (settings, nixVersion): Same.
* nix/libstore/local-store.hh (drvsLogDir, deduplicationMinSize): Same.
* nix/libstore/optimise-store.cc (deduplicationMinSize): Same.
* nix/libstore/store-api.{cc, hh} (store): Same.
* nix/libutil/archive.{cc, hh} (defaultPathFilter): Same.
* nix/libutil/hash.{cc, hh} (base32Chars): Same and modify header files.
* nix/libutil/util.{cc, hh} (logType, verbosity, _writeToStderr,
_isInterrupted): Same.
* nix/local.mk: Modified according to the rename of shared.hh.
* nix/nix-daemon/guix-daemon.cc (blockInt, argvSaved, run): Same and
modify header files.
* nix/nix-daemon/nix-daemon.cc: Modify header files.
* nix/nix-daemon/shared.hh: Renamed to nix-daemon.hh

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2025-11-12 18:34:06 +01:00
..
.gitignore
build.cc daemon: Use inline functions and variables instead of extern 2025-11-12 18:34:06 +01:00
builtins.cc daemon: Use starts_with() and ends_with() instead of string() or hasSuffix() 2025-11-03 17:18:37 +01:00
builtins.hh daemon: Use starts_with() and ends_with() instead of string() or hasSuffix() 2025-11-03 17:18:37 +01:00
derivations.cc daemon: Use inline functions and variables instead of extern 2025-11-12 18:34:06 +01:00
derivations.hh daemon: Use inline functions and variables instead of extern 2025-11-12 18:34:06 +01:00
gc.cc daemon: Use starts_with() and ends_with() instead of string() or hasSuffix() 2025-11-03 17:18:37 +01:00
globals.cc daemon: Use inline functions and variables instead of extern 2025-11-12 18:34:06 +01:00
globals.hh daemon: Use inline functions and variables instead of extern 2025-11-12 18:34:06 +01:00
local-store.cc daemon: Use starts_with() and ends_with() instead of string() or hasSuffix() 2025-11-03 17:18:37 +01:00
local-store.hh daemon: Use inline functions and variables instead of extern 2025-11-12 18:34:06 +01:00
misc.cc daemon: Use starts_with() and ends_with() instead of string() or hasSuffix() 2025-11-03 17:18:37 +01:00
misc.hh guix gc: Adjust size suffix based on the amount of data. 2025-07-28 13:57:53 +03:00
optimise-store.cc daemon: Use inline functions and variables instead of extern 2025-11-12 18:34:06 +01:00
pathlocks.cc daemon: Bump to C++20 and use ‘std::format’ instead of ‘boost::format’. 2025-10-19 21:29:39 +02:00
pathlocks.hh
references.cc daemon: Bump to C++20 and use ‘std::format’ instead of ‘boost::format’. 2025-10-19 21:29:39 +02:00
references.hh
sqlite.cc daemon: Bump to C++20 and use ‘std::format’ instead of ‘boost::format’. 2025-10-19 21:29:39 +02:00
sqlite.hh daemon: Bump to C++20 and use ‘std::format’ instead of ‘boost::format’. 2025-10-19 21:29:39 +02:00
store-api.cc daemon: Use inline functions and variables instead of extern 2025-11-12 18:34:06 +01:00
store-api.hh daemon: Use inline functions and variables instead of extern 2025-11-12 18:34:06 +01:00
worker-protocol.hh daemon: Implement ‘substitute-urls’ RPC. 2023-12-11 23:18:53 +01:00