From 52a0bf19b8c13be830b0ad7fab1e41034ffb08d3 Mon Sep 17 00:00:00 2001 From: batrick Date: Fri, 14 Jan 2011 15:44:33 +0000 Subject: [PATCH] Relocate a local among other constants/configurations. --- nse_main.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/nse_main.lua b/nse_main.lua index 93ca6bc50..428f0b32a 100644 --- a/nse_main.lua +++ b/nse_main.lua @@ -49,6 +49,14 @@ local SELECTED_BY_NAME = "NSE_SELECTED_BY_NAME"; -- count worker threads started by scripts. local CONCURRENCY_LIMIT = 1000; +-- Table of different supported rules. +local NSE_SCRIPT_RULES = { + prerule = "prerule", + hostrule = "hostrule", + portrule = "portrule", + postrule = "postrule", +}; + local _G = _G; local assert = assert; @@ -124,14 +132,6 @@ local stdnse = require "stdnse"; -- differentiate between yields initiated by NSE or regular coroutine yields. local NSE_YIELD_VALUE = {}; --- Table of different supported rules. -local NSE_SCRIPT_RULES = { - prerule = "prerule", - hostrule = "hostrule", - portrule = "portrule", - postrule = "postrule", -}; - do -- This is the method by which we allow a script to have nested -- coroutines. If a sub-thread yields in an NSE function such as