aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-09-03 03:54:34 +0200
committerMattias Andrée <maandree@operamail.com>2015-09-03 03:54:34 +0200
commit59ab740192bc26abfc33b37bb2d4719c49dfaec9 (patch)
tree7ef948290c21411959cf102d6fe9deabd46ee5a8
parentm (diff)
downloadmds-59ab740192bc26abfc33b37bb2d4719c49dfaec9.tar.gz
mds-59ab740192bc26abfc33b37bb2d4719c49dfaec9.tar.bz2
mds-59ab740192bc26abfc33b37bb2d4719c49dfaec9.tar.xz
info: strend
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--doc/info/mds.texinfo7
-rw-r--r--src/libmdsserver/macros.h3
2 files changed, 8 insertions, 2 deletions
diff --git a/doc/info/mds.texinfo b/doc/info/mds.texinfo
index 40c2dee..1af0556 100644
--- a/doc/info/mds.texinfo
+++ b/doc/info/mds.texinfo
@@ -6486,6 +6486,13 @@ failure will be printed to standard error.
@cpindex Terminating
If @code{condition} is satisfied, @code{instructions}
is invoked and @code{1} is @code{return}:ed.
+
+@item @code{STREND} [(@code{const char* str}) @arrow{} @code{char*}]
+@fnindex @code{STREND}
+@cpindex Optimisations
+Expands to @code{(strchr(str, '\0'))}. It is here to
+remain us that @code{str = strchr(str, '\0')} is faster
+than @code{str += strlen(str)}.
@end table
@cpindex Signals
diff --git a/src/libmdsserver/macros.h b/src/libmdsserver/macros.h
index f177c1e..9e6bd43 100644
--- a/src/libmdsserver/macros.h
+++ b/src/libmdsserver/macros.h
@@ -79,7 +79,7 @@
# define AF_FILE AF_LOCAL
#endif
-/* Ensure that all aliases for PF_UNIX are defined */
+x/* Ensure that all aliases for PF_UNIX are defined */
#if !defined(PF_LOCAL) && !defined(PF_UNIX) && defined(PF_FILE)
# define PF_LOCAL PF_FILE
# define PF_UNIX PF_FILE
@@ -735,7 +735,6 @@
*/
#define STREND(str) \
(strchr(str, '\0'))
-/* TODO Document STREND in the texinfo manual. */
/**