зеркало из https://github.com/mozilla/pjs.git
Mac doesn't have ctype.h, or something.
This commit is contained in:
Родитель
97072a9b83
Коммит
2563e3588d
|
@ -20,9 +20,6 @@
|
|||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#ifdef NS_DEBUG
|
||||
#include <ctype.h>
|
||||
#endif
|
||||
#include "nsJSEnvironment.h"
|
||||
#include "nsIScriptObjectOwner.h"
|
||||
#include "nsIScriptContextOwner.h"
|
||||
|
@ -460,7 +457,7 @@ AtomToEventHandlerName(nsIAtom *aName, char *charName, PRUint32 charNameSize)
|
|||
c = char(name[i]);
|
||||
|
||||
// The HTML content sink must have folded to lowercase already.
|
||||
NS_ASSERTION(c == '\0' || islower(c), "non-alphabetic event handler name");
|
||||
NS_ASSERTION(c == '\0' || ('a' <= c && c <= 'z'), "non-alphabetic event handler name");
|
||||
|
||||
NS_ASSERTION(i < charNameSize, "overlong event handler name");
|
||||
charName[i++] = c;
|
||||
|
|
Загрузка…
Ссылка в новой задаче