The other half of the re-implementation of 'enable/disable_object'

Signed-off-by: Tom Eastep <teastep@shorewall.net>

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9825 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2009-04-07 03:22:49 +00:00
parent 0744df13d6
commit b1e9453c62

View File

@ -639,8 +639,9 @@ sub compiler {
# #
setup_notrack; setup_notrack;
enable_object;
unless ( $command eq 'check' ) { unless ( $command eq 'check' ) {
enable_object;
# #
# Place Header in the object # Place Header in the object
# #
@ -683,15 +684,16 @@ sub compiler {
unless ( $command eq 'check' ) { unless ( $command eq 'check' ) {
pop_indent; pop_indent;
emit '}'; emit '}';
disable_object;
} }
disable_object;
# #
# R O U T I N G _ A N D _ T R A F F I C _ S H A P I N G # R O U T I N G _ A N D _ T R A F F I C _ S H A P I N G
# (Writes the setup_routing_and_traffic_shaping() function to the compiled script) # (Writes the setup_routing_and_traffic_shaping() function to the compiled script)
# #
enable_object;
unless ( $command eq 'check' ) { unless ( $command eq 'check' ) {
enable_object;
emit( "\n#", emit( "\n#",
'# Setup routing and traffic shaping', '# Setup routing and traffic shaping',