Mercurial > emacs
comparison lisp/progmodes/compile.el @ 7876:bffe692e2844
(compilation-error-regexp-alist): Extend first regexp to handle Borland C++
msgs: "Warning" or "Error" before file name.
author | Roland McGrath <roland@gnu.org> |
---|---|
date | Mon, 13 Jun 1994 23:27:44 +0000 |
parents | 2032401dcc86 |
children | b91169855db4 |
comparison
equal
deleted
inserted
replaced
7875:e3a341341aeb | 7876:bffe692e2844 |
---|---|
106 ;; /usr/src/foo/foo.c(8): warning: w may be used before set | 106 ;; /usr/src/foo/foo.c(8): warning: w may be used before set |
107 ;; or GNU utilities: | 107 ;; or GNU utilities: |
108 ;; foo.c:8: error message | 108 ;; foo.c:8: error message |
109 ;; or HP-UX 7.0 fc: | 109 ;; or HP-UX 7.0 fc: |
110 ;; foo.f :16 some horrible error message | 110 ;; foo.f :16 some horrible error message |
111 ;; or Borland C++: | |
112 ;; Error ping.c 15: Unable to open include file 'sys/types.h' | |
113 ;; Warning ping.c 68: Call to function 'func' with no prototype | |
111 ;; | 114 ;; |
112 ;; We'll insist that the number be followed by a colon or closing | 115 ;; We'll insist that the number be followed by a colon or closing |
113 ;; paren, because otherwise this matches just about anything | 116 ;; paren, because otherwise this matches just about anything |
114 ;; containing a number with spaces around it. | 117 ;; containing a number with spaces around it. |
115 ("\n\\([^:( \t\n]+\\)[:(][ \t]*\\([0-9]+\\)[:) \t]" 1 2) | 118 ("\n\\(Error\\|Warning\\)[ \t]*\\([^:( \t\n]+\\)\ |
119 [:(][ \t]*\\([0-9]+\\)[:) \t]" 2 3) | |
116 | 120 |
117 ;; 4.3BSD lint pass 2 | 121 ;; 4.3BSD lint pass 2 |
118 ;; strcmp: variable # of args. llib-lc(359) :: /usr/src/foo/foo.c(8) | 122 ;; strcmp: variable # of args. llib-lc(359) :: /usr/src/foo/foo.c(8) |
119 ("[ \t:]\\([^:( \t\n]+\\)[:(](+[ \t]*\\([0-9]+\\))[:) \t]*$" 1 2) | 123 ("[ \t:]\\([^:( \t\n]+\\)[:(](+[ \t]*\\([0-9]+\\))[:) \t]*$" 1 2) |
120 | 124 |