From f78126bfd6b6c8477fcdbc09b2f98772dbe9a1e7 Mon Sep 17 00:00:00 2001 From: Guillaume Maudoux Date: Fri, 25 Nov 2016 15:48:27 +0100 Subject: Get rid of unicode quotes (#1140) --- src/libstore/store-api.hh | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'src/libstore/store-api.hh') diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index 2ea74d90e78e..36c2df79ad87 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -131,16 +131,16 @@ struct ValidPathInfo Ideally, the content-addressability assertion would just be a Boolean, and the store path would be computed from - ‘storePathToName(path)’, ‘narHash’ and ‘references’. However, + 'storePathToName(path)', 'narHash' and 'references'. However, 1) we've accumulated several types of content-addressed paths over the years; and 2) fixed-output derivations support multiple hash algorithms and serialisation methods (flat file - vs NAR). Thus, ‘ca’ has one of the following forms: + vs NAR). Thus, 'ca' has one of the following forms: - * ‘text:sha256:’: For paths + * 'text:sha256:': For paths computed by makeTextPath() / addTextToStore(). - * ‘fixed:::’: For paths computed by + * 'fixed:::': For paths computed by makeFixedOutputPath() / addToStore(). */ std::string ca; @@ -242,15 +242,15 @@ public: virtual std::string getUri() = 0; - /* Return true if ‘path’ is in the Nix store (but not the Nix + /* Return true if 'path' is in the Nix store (but not the Nix store itself). */ bool isInStore(const Path & path) const; - /* Return true if ‘path’ is a store path, i.e. a direct child of + /* Return true if 'path' is a store path, i.e. a direct child of the Nix store. */ bool isStorePath(const Path & path) const; - /* Throw an exception if ‘path’ is not a store path. */ + /* Throw an exception if 'path' is not a store path. */ void assertStorePath(const Path & path) const; /* Chop off the parts after the top-level store name, e.g., @@ -363,7 +363,7 @@ public: /* Query substitute info (i.e. references, derivers and download sizes) of a set of paths. If a path does not have substitute - info, it's omitted from the resulting ‘infos’ map. */ + info, it's omitted from the resulting 'infos' map. */ virtual void querySubstitutablePathInfos(const PathSet & paths, SubstitutablePathInfos & infos) = 0; @@ -401,7 +401,7 @@ public: virtual void buildPaths(const PathSet & paths, BuildMode buildMode = bmNormal) = 0; /* Build a single non-materialized derivation (i.e. not from an - on-disk .drv file). Note that ‘drvPath’ is only used for + on-disk .drv file). Note that 'drvPath' is only used for informational purposes. */ virtual BuildResult buildDerivation(const Path & drvPath, const BasicDerivation & drv, BuildMode buildMode = bmNormal) = 0; @@ -503,8 +503,8 @@ public: relation. If p refers to q, then p preceeds q in this list. */ Paths topoSortPaths(const PathSet & paths); - /* Export multiple paths in the format expected by ‘nix-store - --import’. */ + /* Export multiple paths in the format expected by 'nix-store + --import'. */ void exportPaths(const Paths & paths, Sink & sink); void exportPath(const Path & path, Sink & sink); @@ -573,7 +573,7 @@ string storePathToName(const Path & path); /* Extract the hash part of the given store path. */ string storePathToHash(const Path & path); -/* Check whether ‘name’ is a valid store path name part, i.e. contains +/* Check whether 'name' is a valid store path name part, i.e. contains only the characters [a-zA-Z0-9\+\-\.\_\?\=] and doesn't start with a dot. */ void checkStoreName(const string & name); @@ -596,17 +596,17 @@ void removeTempRoots(); /* Return a Store object to access the Nix store denoted by - ‘uri’ (slight misnomer...). Supported values are: + 'uri' (slight misnomer...). Supported values are: - * ‘direct’: The Nix store in /nix/store and database in + * 'direct': The Nix store in /nix/store and database in /nix/var/nix/db, accessed directly. - * ‘daemon’: The Nix store accessed via a Unix domain socket + * 'daemon': The Nix store accessed via a Unix domain socket connection to nix-daemon. - * ‘file://’: A binary cache stored in . + * 'file://': A binary cache stored in . - If ‘uri’ is empty, it defaults to ‘direct’ or ‘daemon’ depending on + If 'uri' is empty, it defaults to 'direct' or 'daemon' depending on whether the user has write access to the local Nix store/database. set to true *unless* you're going to collect garbage. */ ref openStore(const std::string & uri = getEnv("NIX_REMOTE")); @@ -622,8 +622,8 @@ enum StoreType { StoreType getStoreType(const std::string & uri = getEnv("NIX_REMOTE"), const std::string & stateDir = settings.nixStateDir); /* Return the default substituter stores, defined by the - ‘substituters’ option and various legacy options like - ‘binary-caches’. */ + 'substituters' option and various legacy options like + 'binary-caches'. */ std::list> getDefaultSubstituters(); -- cgit 1.4.1