From 01fd967479bc7542a183ff16fb0bc59f3fe78226 Mon Sep 17 00:00:00 2001 From: kris Date: Fri, 12 Jan 2007 21:33:58 +0000 Subject: [PATCH] This may sound weird, but I just cut nse_macros.h in half. The same thing was put in twice, so I deleted the second one (half of the file). I split it into two files/halves to test it out, and a diff came up empty. So yeah :) --- nse_macros.h | 57 ---------------------------------------------------- 1 file changed, 57 deletions(-) diff --git a/nse_macros.h b/nse_macros.h index e56a1b7f6..dab99a51e 100644 --- a/nse_macros.h +++ b/nse_macros.h @@ -55,60 +55,3 @@ #endif -#ifndef NSE_MACROS -#define NSE_MACROS - -#define HOSTRULE "hostrule" -#define HOSTTESTS "hosttests" -#define PORTRULE "portrule" -#define PORTTESTS "porttests" -#define ACTION "action" -#define DESCRIPTION "description" -#define AUTHOR "author" -#define LICENSE "license" -#define RUNLEVEL "runlevel" -#define FILES 1 -#define DIRS 2 - -#define SCRIPT_ENGINE "SCRIPT ENGINE" -#define SCRIPT_ENGINE_LUA "LUA INTERPRETER" -#define SCRIPT_ENGINE_SUCCESS 0 -#define SCRIPT_ENGINE_ERROR 2 -#define SCRIPT_ENGINE_LUA_ERROR 3 - -#ifdef WIN32 - #define SCRIPT_ENGINE_LUA_DIR "scripts\\" -#else - #define SCRIPT_ENGINE_LUA_DIR "scripts/" -#endif - -#define SCRIPT_ENGINE_DATABASE "script.db" -#define SCRIPT_ENGINE_EXTENSION ".nse" - -#define SCRIPT_ENGINE_LUA_TRY(func) if (func != 0) {\ - error("LUA INTERPRETER in %s:%d: %s", __FILE__, __LINE__, (char *)lua_tostring(l, -1));\ - return SCRIPT_ENGINE_LUA_ERROR;\ -} - -#define SCRIPT_ENGINE_TRY(func) if (func != 0) {\ - return SCRIPT_ENGINE_ERROR;\ -} - -#define SCRIPT_ENGINE_VERBOSE(msg) if (o.debugging || o.verbose > 0) {msg}; -#define SCRIPT_ENGINE_DEBUGGING(msg) if (o.debugging) {msg}; - -#define MATCH 0 -#define MAX_FILENAME_LEN 4096 - -#define NOT_PRINTABLE '.' - -// if the character is not printable -// and the character is not a tab -// and the character is not a new line -// and the character is not a carriage return -// return 0 -// otherwise return 1 -#define ISPRINT(c) ((!(c > 31 && c < 127) && c != 9 && c != 10 && c != 13)? 0 : 1) - -#endif -