aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/ebrowse.c
diff options
context:
space:
mode:
authorJoakim Verona2011-02-05 11:23:09 +0100
committerJoakim Verona2011-02-05 11:23:09 +0100
commit4bd51ad5c3445b644dfb017d5b57b10a90aa325f (patch)
tree894801e7308ce4ecc34933f959e28f4b9cff9533 /lib-src/ebrowse.c
parent13cfe8df462ab8da9f0028e16cc84dcaceaca3d1 (diff)
parent9bcaafce5351d270ac514e23cb69ff1a5fd35229 (diff)
downloademacs-4bd51ad5c3445b644dfb017d5b57b10a90aa325f.tar.gz
emacs-4bd51ad5c3445b644dfb017d5b57b10a90aa325f.zip
merge from upstream. currently seems to have bitroted and i get segfaults
Diffstat (limited to 'lib-src/ebrowse.c')
-rw-r--r--lib-src/ebrowse.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c
index 1fcbb8662f5..59a1dde7634 100644
--- a/lib-src/ebrowse.c
+++ b/lib-src/ebrowse.c
@@ -1,8 +1,6 @@
1/* ebrowse.c --- parsing files for the ebrowse C++ browser 1/* ebrowse.c --- parsing files for the ebrowse C++ browser
2 2
3Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 3Copyright (C) 1992-2011 Free Software Foundation, Inc.
4 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5 Free Software Foundation, Inc.
6 4
7This file is part of GNU Emacs. 5This file is part of GNU Emacs.
8 6
@@ -30,7 +28,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
30#include <string.h> 28#include <string.h>
31#include <ctype.h> 29#include <ctype.h>
32#include <assert.h> 30#include <assert.h>
33#include "getopt.h" 31#include <getopt.h>
34 32
35/* The SunOS compiler doesn't have SEEK_END. */ 33/* The SunOS compiler doesn't have SEEK_END. */
36#ifndef SEEK_END 34#ifndef SEEK_END
@@ -1700,6 +1698,11 @@ yylex (void)
1700 case '/': 1698 case '/':
1701 while (GET (c) && c != '\n') 1699 while (GET (c) && c != '\n')
1702 ; 1700 ;
1701 /* Don't try to read past the end of the input buffer if
1702 the file ends in a C++ comment without a newline. */
1703 if (c == 0)
1704 return YYEOF;
1705
1703 INCREMENT_LINENO; 1706 INCREMENT_LINENO;
1704 break; 1707 break;
1705 1708
@@ -3562,7 +3565,7 @@ usage (int error)
3562 3565
3563 3566
3564/* Display version and copyright info. The VERSION macro is set 3567/* Display version and copyright info. The VERSION macro is set
3565 from the Makefile and contains the Emacs version. */ 3568 from config.h and contains the Emacs version. */
3566 3569
3567#ifndef VERSION 3570#ifndef VERSION
3568# define VERSION "21" 3571# define VERSION "21"
@@ -3572,7 +3575,7 @@ void
3572version (void) 3575version (void)
3573{ 3576{
3574 /* Makes it easier to update automatically. */ 3577 /* Makes it easier to update automatically. */
3575 char emacs_copyright[] = "Copyright (C) 2010 Free Software Foundation, Inc."; 3578 char emacs_copyright[] = "Copyright (C) 2011 Free Software Foundation, Inc.";
3576 3579
3577 printf ("ebrowse %s\n", VERSION); 3580 printf ("ebrowse %s\n", VERSION);
3578 puts (emacs_copyright); 3581 puts (emacs_copyright);
@@ -3809,7 +3812,7 @@ main (int argc, char **argv)
3809 yyerror ("error getting size of file `%s'", out_filename); 3812 yyerror ("error getting size of file `%s'", out_filename);
3810 exit (EXIT_FAILURE); 3813 exit (EXIT_FAILURE);
3811 } 3814 }
3812 3815
3813 else if (rc == 0) 3816 else if (rc == 0)
3814 { 3817 {
3815 yyerror ("file `%s' is empty", out_filename); 3818 yyerror ("file `%s' is empty", out_filename);
@@ -3872,7 +3875,4 @@ main (int argc, char **argv)
3872 return EXIT_SUCCESS; 3875 return EXIT_SUCCESS;
3873} 3876}
3874 3877
3875/* arch-tag: fc03b4bc-91a9-4c3d-b3b9-12a77fa86dd8
3876 (do not change this comment) */
3877
3878/* ebrowse.c ends here */ 3878/* ebrowse.c ends here */