]> mj.ucw.cz Git - libucw.git/commitdiff
Undefine all the parameter macros at the end. (The hash tables already do it
authorMartin Mares <mj@ucw.cz>
Wed, 5 Nov 2003 20:42:20 +0000 (20:42 +0000)
committerMartin Mares <mj@ucw.cz>
Wed, 5 Nov 2003 20:42:20 +0000 (20:42 +0000)
and it showed up to be very useful.)

lib/sorter.h

index 574096bc526d1b4e26474e54513197ca661059a4..e4682b33c5a30de6e4adbbd880331089c3680292 100644 (file)
@@ -67,6 +67,9 @@
  *                     from the list of items, but not deallocated, so
  *                     the remaining item can freely reference data of the
  *                     other one.
+ *
+ *  After including this file, all parameter macros are automatically
+ *  undef'd.
  */
 
 /* Declarations of externals from sorter.c */
@@ -410,5 +413,14 @@ struct fastbuf *fb1, struct fastbuf *fb2
 #undef LESS
 #undef SWAP
 #undef SORT_NODE
+#undef SORT_KEY
+#undef SORT_PREFIX
+#undef SORT_UNIFY
+#undef SORT_DELETE_INPUT
+#undef SORT_INPUT_FILE
+#undef SORT_INPUT_FB
+#undef SORT_INPUT_FBPAIR
+#undef SORT_OUTPUT_FILE
+#undef SORT_OUTPUT_FB
 
 #endif         /* !SORT_DECLARE_ONLY */