/[man-db]/man-db/zsoelim/zsoelim.l
ViewVC logotype

Diff of /man-db/zsoelim/zsoelim.l

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

revision 1.8 by cjwatson, Fri Feb 21 15:53:59 2003 UTC revision 1.9 by cjwatson, Thu May 1 15:54:03 2003 UTC
# Line 337  int main(int argc, char *argv[]) Line 337  int main(int argc, char *argv[])
337  {  {
338          int c, option_index;          int c, option_index;
339    
340          program_name = basename(argv[0]);          program_name = xstrdup(basename(argv[0]));
341    
342          while ( (c = getopt_long(argc, argv, args,          while ( (c = getopt_long(argc, argv, args,
343                                   long_options, &option_index)) != EOF ) {                                   long_options, &option_index)) != EOF ) {
# Line 359  int main(int argc, char *argv[]) Line 359  int main(int argc, char *argv[])
359          /* if we have any arguments, parse them in command line order, else          /* if we have any arguments, parse them in command line order, else
360             open stdin */             open stdin */
361          if (optind == argc) {          if (optind == argc) {
362                  so_name[0] = "-";                  so_name[0] = xstrdup("-");
363                  parse_file();                  parse_file();
364          } else {          } else {
365                  while (optind < argc) {                  while (optind < argc) {

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

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