this assumes EXTEND_PROTOYPES is true.