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>2013-06-12 23:05:48 +0400
committerVicent Marti <tanoku@gmail.com>2013-06-12 23:05:48 +0400
commiteb58e2d0be4e07c2ef873a5f0562eaa90826c2de (patch)
tree41959050b1e3adb428e140102a0c321949be516b /src/util.h
parent3b5001b4c911db9c47d62399c1adc03bd8a3ca72 (diff)
parent3e9e6cdaff8acb11399736abbf793bf2d000d037 (diff)
Merge remote-tracking branch 'arrbee/minor-paranoia' into development
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/util.h b/src/util.h
index 43ba79240..9417515a3 100644
--- a/src/util.h
+++ b/src/util.h
@@ -295,8 +295,7 @@ GIT_INLINE(bool) git__iswildcard(int c)
}
/*
- * Parse a string value as a boolean, just like Core Git
- * does.
+ * Parse a string value as a boolean, just like Core Git does.
*
* Valid values for true are: 'true', 'yes', 'on'
* Valid values for false are: 'false', 'no', 'off'
@@ -311,7 +310,7 @@ extern int git__parse_bool(int *out, const char *value);
* - "July 17, 2003"
* - "2003-7-17 08:23"
*/
-int git__date_parse(git_time_t *out, const char *date);
+extern int git__date_parse(git_time_t *out, const char *date);
/*
* Unescapes a string in-place.
@@ -322,4 +321,10 @@ int git__date_parse(git_time_t *out, const char *date);
*/
extern size_t git__unescape(char *str);
+/*
+ * Memset that will not be optimized away by the compiler.
+ * You usually should just use regular `memset()`.
+ */
+extern void git__memset(void *data, int c, size_t size);
+
#endif /* INCLUDE_util_h__ */