Relocate a local among other constants/configurations.

This commit is contained in:
batrick 2011-01-14 15:44:33 +00:00
parent 583f65227c
commit 52a0bf19b8

View file

@ -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