mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
4f128298d2
r=mstoltz
86 lines
2.3 KiB
Perl
86 lines
2.3 KiB
Perl
#!/usr/bin/perl
|
|
#
|
|
# The contents of this file are subject to the Mozilla Public
|
|
# License Version 1.1 (the "License"); you may not use this file
|
|
# except in compliance with the License. You may obtain a copy of
|
|
# the License at http://www.mozilla.org/MPL/
|
|
#
|
|
# Software distributed under the License is distributed on an "AS
|
|
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
# implied. See the License for the specific language governing
|
|
# rights and limitations under the License.
|
|
#
|
|
# The Original Code is mozilla.org code.
|
|
#
|
|
# The Initial Developer of the Original Code is Netscape
|
|
# Communications Corporation. Portions created by Netscape are
|
|
# Copyright (C) 1999 Netscape Communications Corporation. All
|
|
# Rights Reserved.
|
|
#
|
|
# Contributor(s):
|
|
# Norris Boyd
|
|
#
|
|
|
|
open(IN, "nsDOMPropEnums.h") ||
|
|
die("Error opening 'nsDOMPropEnums.h': $!\n");
|
|
|
|
open(OUT, ">nsDOMPropNames.h") ||
|
|
die("Error opening 'nsDOMPropNames.h': $!\n");
|
|
|
|
while (<IN>) {
|
|
if (/^enum nsDOMProp/) {
|
|
last;
|
|
}
|
|
}
|
|
|
|
print OUT <<'EOF';
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
*
|
|
* The contents of this file are subject to the Netscape Public
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy of
|
|
* the License at http://www.mozilla.org/NPL/
|
|
*
|
|
* Software distributed under the License is distributed on an "AS
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
* implied. See the License for the specific language governing
|
|
* rights and limitations under the License.
|
|
*
|
|
* The Original Code is mozilla.org code.
|
|
*
|
|
* The Initial Developer of the Original Code is Netscape
|
|
* Communications Corporation. Portions created by Netscape are
|
|
* Copyright (C) 1999 Netscape Communications Corporation. All
|
|
* Rights Reserved.
|
|
*
|
|
* Contributor(s):
|
|
* Norris Boyd
|
|
*/
|
|
|
|
/* nsDOMPropNames.h -- an definition of all DOM property names used to provide
|
|
** per-property security policies.
|
|
** AUTOMATICALLY GENERATED -- See genPropNames.pl
|
|
*/
|
|
|
|
#ifndef nsDOMPropNames_h__
|
|
#define nsDOMPropNames_h__
|
|
|
|
#define NS_DOM_PROP_NAMES \
|
|
EOF
|
|
|
|
while (<IN>) {
|
|
if (/NS_DOM_PROP_MAX/) {
|
|
last;
|
|
}
|
|
s/NS_DOM_PROP_/"/;
|
|
s/_/./;
|
|
s/,.*/", \\/;
|
|
print OUT lc($_);
|
|
}
|
|
|
|
print OUT <<EOF;
|
|
|
|
#endif // nsDOMPropNames_h__
|
|
EOF
|
|
|