summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2016-04-08 12:34:09 -0600
committerKarl Williamson <khw@cpan.org>2016-05-09 11:19:05 -0600
commit4ee010a8de7e086d97cebe73ad4c69d91d1ae7f0 (patch)
treed67ec9389b0aa57dd53fba172ea82df4c8844b7e /util.h
parent1656665e748b80ad0727244ca0eae788f521f64f (diff)
downloadperl-4ee010a8de7e086d97cebe73ad4c69d91d1ae7f0.tar.gz
Reinstate "Make instr() a macro"
This reverts commit 2e08dfb2b133af0fbcb4346f8d096ca68454ca54, thus reinstating the commit it reverted. This was delayed until 5.25. The next commit will solve some problems with c++ that this commit causes
Diffstat (limited to 'util.h')
-rw-r--r--util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.h b/util.h
index 3310b119d8..3a74bd02bd 100644
--- a/util.h
+++ b/util.h
@@ -229,6 +229,8 @@ means arg not present, 1 is empty string/null byte */
# define HS_CXT cv
#endif
+#define instr(haystack, needle) strstr(haystack, needle)
+
/*
* ex: set ts=8 sts=4 sw=4 et:
*/