> From: Jhair Tocancipa Triana <[EMAIL PROTECTED]> > Date: Sat, 09 Jul 2005 13:54:04 +0200 > > 2005-07-09 Jhair Tocancipa Triana <[EMAIL PROTECTED]> > > * ebrowse.c (main): Don't hardcode executable name. > > --- ebrowse.c 08 Jul 2005 22:54:32 +0200 1.38 > +++ ebrowse.c 09 Jul 2005 13:36:33 +0200 > @@ -1,7 +1,7 @@ > /* ebrowse.c --- parsing files for the ebrowse C++ browser > > Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 99, > - 2000, 2001, 2002 Free Software Foundation Inc. > + 2000, 2001, 2002, 2005 Free Software Foundation Inc. > > This file is part of GNU Emacs. > > @@ -3800,7 +3800,7 @@ > static int input_filenames_size = 0; > static int n_input_files; > > - filename = "command line"; > + filename = argv [0]; > yyout = stdout; > > while ((i = getopt_long (argc, argv, "af:I:m:M:no:p:svVx",
Thank you for your report. However, this change looks wrong to me: `filename' is a global variable used throughout the rest of the program to report error messages. So I think it is okay to put "command line" into it while the command line arguments are processed, otherwise the error messages will pinpoint a wrong location. Later, inside process_file and elsewhere, the current file's name is stored in this variable. Could you please explain what caused you to submit this change, and why you think it's better to store argv[0] there? _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel