Bug 1089446 - Remove config/make-atom-strings.pl, which is ancient and unused. r=bz.
authorNicholas Nethercote <nnethercote@mozilla.com>
Tue, 28 Oct 2014 15:04:03 -0700
changeset 212997 9e670b2869995266dbf1df6dd57d9e2751475e69
parent 212996 134b583fd7abf41496478aa08f63ac8f47ee09ff
child 212998 61c2235ebf165cd28e10c33d1b3743c85116ea3d
push id51111
push usernnethercote@mozilla.com
push dateWed, 29 Oct 2014 21:31:20 +0000
treeherdermozilla-inbound@61c2235ebf16 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1089446
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1089446 - Remove config/make-atom-strings.pl, which is ancient and unused. r=bz.
config/make-atom-strings.pl
deleted file mode 100644
--- a/config/make-atom-strings.pl
+++ /dev/null
@@ -1,57 +0,0 @@
-#! perl
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-
-# Converts a list of atoms in the form:
-# // OUTPUT_CLASS=<classname>
-# // MACRO_NAME=<macro>
-# <macroname>(atomName, "String")
-# <macroname>(atomName2, "String2")
-#
-# into a file suitable for gperf using static atoms
-#
-# usage:
-# make-atom-strings < file.h > file.gperf
-#
-# the lines in the C++ comments define two variables:
-# OUTPUT_CLASS is the class who has all the atoms as members
-# MACRO_NAME is the macro to look for in the rest of the file
-#
-# for example
-# // OUTPUT_CLASS=nsHTMLAtoms
-# // MACRO_NAME=HTML_ATOM
-# HTML_ATOM(a, "a")
-# HTML_ATOM(body, "body")
-#
-# etc...
-#
-# this will generate a file that looks like:
-# struct nsStaticAtom ( const char* mValue; nsIAtom** aAtom; }
-# %%
-# "a", &nsHTMLAtoms::a
-# "body", &nsHTMLAtoms::body
-#
-# etc...
-#
-# the output can be plugged into gperf to generate a perfect hash
-
-print "struct nsStaticAtom {const char* mValue; nsIAtom** aAtom; };\n";
-print "%%\n";
-
-my $classname, $macroname;
-
-while (<>) {
-  chop;
-  if (/OUTPUT_CLASS=(\S+)/) {
-    $classname=$1;
-  } elsif (/MACRO_NAME=(\S+)/) {
-    $macroname=$1;
-  }
-  elsif ($classname && $macroname &&
-         /$macroname\((\S+),\s*\"(.*?)\"\s*\)/) {
-    my ($str, $atom) = ($2, $1);
-    print "\"$str\", (nsIAtom**)&${classname}::$atom\n";
-  }
-}