require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_ALTQ_ALTQ_RMCLASS_DEBUG_H_)) {
    eval 'sub _ALTQ_ALTQ_RMCLASS_DEBUG_H_ () {1;}' unless defined(&_ALTQ_ALTQ_RMCLASS_DEBUG_H_);
    if(defined(&__cplusplus)) {
    }
    if(defined(&CBQ_TRACE)) {
	unless(defined(&NCBQTRACE)) {
	    eval 'sub NCBQTRACE () {(16* 1024);}' unless defined(&NCBQTRACE);
	}
	eval 'sub CBQTRACEINIT () {
	    eval q({  &if ( &cbqtrace_ptr ==  &NULL)  &cbqtrace_ptr =  &cbqtrace_buffer;  &else {  &cbqtrace_ptr =  &cbqtrace_buffer;  &bzero(( &void *) &cbqtrace_ptr, $sizeof{ &cbqtrace_buffer});  &cbqtrace_count = 0; } });
	}' unless defined(&CBQTRACEINIT);
	eval 'sub LOCK_TRACE () {
	    eval q( &splnet());
	}' unless defined(&LOCK_TRACE);
	eval 'sub UNLOCK_TRACE {
	    my($x) = @_;
    	    eval q( &splx($x));
	}' unless defined(&UNLOCK_TRACE);
	eval 'sub CBQTRACE {
	    my($func, $act, $obj) = @_;
    	    eval q({ \'int\'  &__s =  &LOCK_TRACE(); \'int\' * &_p =  ($cbqtrace_ptr->{count}); * &_p++ = ++ &cbqtrace_count; * &_p++ = ; * &_p++ = ; * &_p++ = ($obj);  &if (( &void *) &_p >=  $cbqtrace_buffer[ &NCBQTRACE])  &cbqtrace_ptr =  &cbqtrace_buffer;  &else  &cbqtrace_ptr = ( &void *) &_p;  &UNLOCK_TRACE( &__s); });
	}' unless defined(&CBQTRACE);
    } else {
	eval 'sub CBQTRACEINIT () {
	    eval q();
	}' unless defined(&CBQTRACEINIT);
	eval 'sub CBQTRACE {
	    my($a, $b, $c) = @_;
    	    eval q();
	}' unless defined(&CBQTRACE);
    }
    if(defined(&__cplusplus)) {
    }
}
1;
