+
+/* handle file names from either text file (-X) or the command line */
+#define NEXTFILE(p) \
+ p = NULL; \
+ if (argc) { \
+ --argc; \
+ p = *argv++; \
+ } \
+ else if (filelist) { \
+ if ((p = fgets(fname, MAXPATHLEN, filelist))) { \
+ if ( *p && *(p + strlen(p) - 1) == '\n' ) /* possible null string */ \
+ *(p + strlen(p) - 1) = '\0'; \
+ if ( !*p ) /* skip empty lines */ \
+ continue; \
+ } \
+ }
+