Skip to content

Commit ac13dba

Browse files
committed
xdl_regex_buf should be static inline
1 parent 4a4ceb3 commit ac13dba

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

git-2.48.1.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
diff --git a/git-xdiff.h b/git-xdiff.h
22
new file mode 100644
3-
index 0000000..4091d22
3+
index 0000000..e3a6ef8
44
--- /dev/null
55
+++ b/git-xdiff.h
66
@@ -0,0 +1,79 @@
@@ -57,7 +57,7 @@ index 0000000..4091d22
5757
+# define xdl_regex_t void *
5858
+# define xdl_regmatch_t void *
5959
+
60-
+inline int xdl_regexec_buf(
60+
+static inline int xdl_regexec_buf(
6161
+ const xdl_regex_t *preg, const char *buf, size_t size,
6262
+ size_t nmatch, xdl_regmatch_t pmatch[], int eflags)
6363
+{
@@ -70,7 +70,7 @@ index 0000000..4091d22
7070
+# define xdl_regex_t regex_t
7171
+# define xdl_regmatch_t regmatch_t
7272
+
73-
+inline int xdl_regexec_buf(
73+
+static inline int xdl_regexec_buf(
7474
+ const xdl_regex_t *preg, const char *buf, size_t size,
7575
+ size_t nmatch, xdl_regmatch_t pmatch[], int eflags)
7676
+{

git-xdiff.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
# define xdl_regex_t void *
5252
# define xdl_regmatch_t void *
5353

54-
inline int xdl_regexec_buf(
54+
static inline int xdl_regexec_buf(
5555
const xdl_regex_t *preg, const char *buf, size_t size,
5656
size_t nmatch, xdl_regmatch_t pmatch[], int eflags)
5757
{
@@ -64,7 +64,7 @@ inline int xdl_regexec_buf(
6464
# define xdl_regex_t regex_t
6565
# define xdl_regmatch_t regmatch_t
6666

67-
inline int xdl_regexec_buf(
67+
static inline int xdl_regexec_buf(
6868
const xdl_regex_t *preg, const char *buf, size_t size,
6969
size_t nmatch, xdl_regmatch_t pmatch[], int eflags)
7070
{

0 commit comments

Comments
 (0)