summaryrefslogtreecommitdiffstats
path: root/libidu
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-07-04 16:52:04 +0200
committerJim Meyering <meyering@redhat.com>2009-07-04 18:47:49 +0200
commitb68e4848ca7cb75f25357ae04623b238a7aba745 (patch)
tree5653100736433003b519f2b35d0c2741ea032e46 /libidu
parentbcc83fc1af155750ed14d6eb5f9af476e930be52 (diff)
downloadidutils-b68e4848ca7cb75f25357ae04623b238a7aba745.tar.gz
idutils-b68e4848ca7cb75f25357ae04623b238a7aba745.tar.bz2
idutils-b68e4848ca7cb75f25357ae04623b238a7aba745.zip
mkid, xtokid: read and process --files0-from= input a name at a time,
rather than by reading the entire input into memory and *then* processing each file name. * src/mkid.c: Include "argv-iter.h", not "readtokens0.h". (main): Rewrite to use argv-iter. * src/xtokid.c: Likewise. Include <assert.h>. * bootstrap.conf (gnulib_modules): Add argv-iter. Remove readtokens0. * libidu/iduglobal.h (STREQ): Define. (bad_cast): Define.
Diffstat (limited to 'libidu')
-rw-r--r--libidu/iduglobal.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/libidu/iduglobal.h b/libidu/iduglobal.h
index fcddf63..5c0cc5b 100644
--- a/libidu/iduglobal.h
+++ b/libidu/iduglobal.h
@@ -2,7 +2,7 @@
#define _iduglobal_h
/* iduglobal.h -- global definitions for libidu
- Copyright (C) 1995, 1999, 2005, 2007 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1999, 2005, 2007, 2009 Free Software Foundation, Inc.
Written by Claudio Fontana <sick_soul@users.sourceforge.net>
This program is free software; you can redistribute it and/or modify
@@ -66,4 +66,12 @@
#define DOT_DOT_SLASH "..\\"
#endif
+#define STREQ(a, b) (strcmp (a, b) == 0)
+
+static inline char *
+bad_cast (char const *s)
+{
+ return (char *) s;
+}
+
#endif /* _iduglobal_h */