Bug 675627: Fix unrecognized directive error in nsIURIRefObject.idl and make this error fatal in the future. r=bsmedberg

This commit is contained in:
Kyle Huey 2011-08-01 14:26:13 -04:00
Родитель 8b23d8f061
Коммит b5c51d1c84
2 изменённых файлов: 3 добавлений и 10 удалений

Просмотреть файл

@ -35,9 +35,6 @@
*
* ***** END LICENSE BLOCK ***** */
#ifndef nsIURIRefObject_h__
#define nsIURIRefObject_h__
#include "nsISupports.idl"
#include "domstubs.idl"
@ -76,6 +73,3 @@ interface nsIURIRefObject : nsISupports
void RewriteAllURIs(in DOMString aOldPat, in DOMString aNewPat,
in boolean aMakeRel);
};
#endif /* nsIURIRefObject_h__ */

Просмотреть файл

@ -994,10 +994,9 @@ class IDLParser(object):
def t_directive(self, t):
r'\#(?P<directive>[a-zA-Z]+)[^\n]+'
print >>sys.stderr, IDLError("Unrecognized directive %s" % t.lexer.lexmatch.group('directive'),
Location(lexer=self.lexer,
lineno=self.lexer.lineno,
lexpos=self.lexer.lexpos))
raise IDLError("Unrecognized directive %s" % t.lexer.lexmatch.group('directive'),
Location(lexer=self.lexer, lineno=self.lexer.lineno,
lexpos=self.lexer.lexpos))
def t_newline(self, t):
r'\n+'