XCache is a fast, stable PHP opcode cacher that has been proven and is now running on production servers under high load. https://xcache.lighttpd.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
571 B

#!/usr/bin/awk -f
# vim:ts=4:sw=4
# process eaccelerator/opcodes.c
BEGIN {
FS=" "
max = 0;
started = 0
delete opcodes;
}
/OPDEF/ {
if (started) {
sub(/".*"/, "")
if (!match($0, /EXT_([^ |]+).*OP[1S]_([^ |]+).*OP2_([^ |]+).*RES_([^ |)]+).*/, array)) {
print "error" $0
exit
}
printf "\tOPSPEC(%10s, %10s, %10s, %10s)\n", array[1], array[2], array[3], array[4]
next
}
}
/^}/ {
print $0
exit;
}
/^[ ]*,[ ]*$/ {
next
}
{
if (started) {
print $0
next
}
}
/^static/ {
started = 1;
print "static const xc_opcode_spec_t xc_opcode_spec[] = {"
}