/[global]/global/libutil/xargs.c
ViewVC logotype

Diff of /global/libutil/xargs.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by h-iwamoto, Fri Nov 4 16:56:26 2005 UTC revision 1.5 by shigio, Sat Nov 5 14:07:11 2005 UTC
# Line 125  repeat_find_next(void) Line 125  repeat_find_next(void)
125    
126  /*  /*
127   * Common processing for each XARGS_XXXX type.   * Common processing for each XARGS_XXXX type.
  *  
  * o Always ignore path names which start with a blank.  
128   */   */
129  #define APPEND_ARGUMENT(p) {\  #define APPEND_ARGUMENT(p) {\
130          char *path = (p);\          char *path = (p);\
         int skip = 0;\  
131          length = strlen(path);\          length = strlen(path);\
132          if (*path == ' ')\          if (*path == ' ') {\
133                    if (!test("b", ++path))\
134                            gpath_put(path, 1);\
135                  continue;\                  continue;\
136            }\
137          if (strbuf_getlen(comline) + length > limit)\          if (strbuf_getlen(comline) + length > limit)\
138                  break;\                  break;\
139          xp->seqno++;\          xp->seqno++;\
140          if (xp->put_gpath)\          if (xp->put_gpath)\
141                  gpath_put(path);\                  gpath_put(path, 0);\
142          if (xp->skip_assembly && locatestring(path, ".s", MATCH_AT_LAST|IGNORE_CASE) != NULL)\          if (xp->skip_assembly && locatestring(path, ".s", MATCH_AT_LAST|IGNORE_CASE) != NULL) {\
143                  skip = 1;\                  if (xp->verbose)\
144          if (xp->verbose)\                          xp->verbose(path + 2, xp->seqno, 1);\
145                  xp->verbose(path + 2, xp->seqno, skip);\          } else {\
146          if (!skip) {\                  if (xp->verbose)\
147                            xp->verbose(path + 2, xp->seqno, 0);\
148                  strbuf_putc(comline, ' ');\                  strbuf_putc(comline, ' ');\
149                  strbuf_puts(comline, path);\                  strbuf_puts(comline, path);\
150                  count++;\                  count++;\

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26