Script to NSPR-ize and 'PL-ize' jsdhash.[ch] so they fit (sort of) over in xpcom/ds.

This commit is contained in:
brendan%mozilla.org 2000-08-30 19:30:33 +00:00
Родитель 6a0d6d6a8d
Коммит c1a33908b2
1 изменённых файлов: 24 добавлений и 0 удалений

24
js/src/plify_jsdhash.sed Normal file
Просмотреть файл

@ -0,0 +1,24 @@
/ * Double hashing implementation./a\
* GENERATED BY js/src/plify_jsdhash.sed -- DO NOT EDIT!!!
/ * Double hashing, a la Knuth 6./a\
* GENERATED BY js/src/plify_jsdhash.sed -- DO NOT EDIT!!!
s/jsdhash_h___/pldhash_h___/
s/jstypes\.h/prtypes.h/
s/jsbit\.h/prbit.h/
s/jsdhash\.h/pldhash.h/
s/jsutil\.h/prlog.h/
s/JS_DHASH/PL_DHASH/g
s/JS_DHash/PL_DHash/g
s/JSDHash/PLDHash/g
s/uint32 /PRUint32/g
s/\([^U]\)int32 /\1PRInt32/g
s/uint16 /PRUint16/g
s/\([^U]\)int16 /\1PRInt16/g
s/uint32/PRUint32/g
s/\([^U]\)int32/\1PRInt32/g
s/uint16/PRUint16/g
s/\([^U]\)int16/\1PRInt16/g
s/JSBool/PRBool/g
s/extern JS_PUBLIC_API/PR_EXTERN/
s/JS_PUBLIC_API/PR_IMPLEMENT/
s/JS_/PR_/g