summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2016-03-11 16:22:49 -0700
committerKarl Williamson <khw@cpan.org>2016-03-17 21:31:03 -0600
commitfea1d2dd5d210564d442a09fe034b62f262f35f9 (patch)
treef6ce46c0c616f6e619a2e038777768398e070c2a /util.h
parentd708a1fbecea9996703282b58186c8bb4e429663 (diff)
downloadperl-fea1d2dd5d210564d442a09fe034b62f262f35f9.tar.gz
Make instr() a macro
... thus avoiding a function call overhead
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:
*/