Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2012-08-02 03:15:24 +0400
committerVicent Marti <tanoku@gmail.com>2012-08-02 03:15:24 +0400
commit0c9eacf3d2c83256736a5bb2a240e73afd13d55f (patch)
tree8e8518ab95a63bba4fb8388c9b05496e614f537e /src/attr_file.h
parentcf81ded61caa66267be5f27539decae2292ace9a (diff)
attr: Do not export variables externallyattr-export
Fixes #824 Exporting variables in a dynamic library is a PITA. Let's keep these values internally and wrap them through a helper method. This doesn't break the external API. @arrbee, aren't you glad I turned the `GIT_ATTR_` macros into function macros? :sparkles:
Diffstat (limited to 'src/attr_file.h')
-rw-r--r--src/attr_file.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/attr_file.h b/src/attr_file.h
index 7939f838a..9d6730d90 100644
--- a/src/attr_file.h
+++ b/src/attr_file.h
@@ -24,6 +24,10 @@
#define GIT_ATTR_FNMATCH_HASWILD (1U << 5)
#define GIT_ATTR_FNMATCH_ALLOWSPACE (1U << 6)
+extern const char *git_attr__true;
+extern const char *git_attr__false;
+extern const char *git_attr__unset;
+
typedef struct {
char *pattern;
size_t length;