mirror of
https://github.com/nmap/nmap.git
synced 2026-02-15 18:06:35 +00:00
removing these new files so I can move back the ones which still have their svn history
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
PLATFORM=@host@
|
||||
|
||||
CC = @CC@
|
||||
CXX = @CXX@
|
||||
CCOPT =
|
||||
DBGFLAGS =
|
||||
|
||||
|
||||
SHTOOL = ../shtool
|
||||
INSTALL = $(SHTOOL) install
|
||||
|
||||
LIBTOOL= ./libtool
|
||||
LTFLAGS = --tag=CC --silent
|
||||
|
||||
all: bit.so
|
||||
|
||||
bit.so: bit.c @LIBTOOL_DEPS@
|
||||
$(LIBTOOL) $(LTFLAGS) --mode=compile $(CC) @LUAINCLUDE@ $(CFLAGS) -c bit.c
|
||||
$(LIBTOOL) $(LTFLAGS) --mode=link $(CC) -avoid-version -module -rpath /usr/local/lib -o bit.la bit.lo
|
||||
mv .libs/bit.so bit.so
|
||||
|
||||
clean:
|
||||
rm -f bit.so *.la *.lo
|
||||
rm -rf .libs
|
||||
|
||||
distclean: clean
|
||||
rm -f Makefile config.log config.status libtool
|
||||
6578
nselib-bin/aclocal.m4
vendored
6578
nselib-bin/aclocal.m4
vendored
File diff suppressed because it is too large
Load Diff
@@ -1,70 +0,0 @@
|
||||
/* Bitwise operations library
|
||||
* by Reuben Thomas (rrt@sc3d.org)
|
||||
* bitlib is a C library for Lua 5.x that provides bitwise operations
|
||||
* It is copyright Reuben Thomas 2000-2006, and is released under the
|
||||
* MIT license, like Lua (see http://www.lua.org/copyright.html for the
|
||||
* full license; it's basically the same as the BSD license). There is no
|
||||
* warranty.
|
||||
* the most recent copy can be found at http://rrt.sc3d.org/Software/Lua/
|
||||
**/
|
||||
|
||||
#include "bit.h"
|
||||
|
||||
typedef long long Integer;
|
||||
typedef unsigned long long UInteger;
|
||||
|
||||
#define luaL_checkbit(L, n) ((Integer)luaL_checknumber(L, n))
|
||||
#define luaL_checkubit(L, n) ((UInteger)luaL_checkbit(L, n))
|
||||
|
||||
#define TDYADIC(name, op, checkbit1, checkbit2) \
|
||||
static int bit_ ## name(lua_State* L) { \
|
||||
lua_pushnumber(L, \
|
||||
(lua_Number)(checkbit1(L, 1) op checkbit2(L, 2))); \
|
||||
return 1; \
|
||||
}
|
||||
|
||||
#define DYADIC(name, op) \
|
||||
TDYADIC(name, op, luaL_checkbit, luaL_checkbit)
|
||||
|
||||
#define MONADIC(name, op) \
|
||||
static int bit_ ## name(lua_State* L) { \
|
||||
lua_pushnumber(L, (lua_Number)(op luaL_checkbit(L, 1))); \
|
||||
return 1; \
|
||||
}
|
||||
|
||||
#define VARIADIC(name, op) \
|
||||
static int bit_ ## name(lua_State *L) { \
|
||||
int n = lua_gettop(L), i; \
|
||||
Integer w = luaL_checkbit(L, 1); \
|
||||
for (i = 2; i <= n; i++) \
|
||||
w op luaL_checkbit(L, i); \
|
||||
lua_pushnumber(L, (lua_Number)w); \
|
||||
return 1; \
|
||||
}
|
||||
|
||||
MONADIC(bnot, ~)
|
||||
VARIADIC(band, &=)
|
||||
VARIADIC(bor, |=)
|
||||
VARIADIC(bxor, ^=)
|
||||
TDYADIC(lshift, <<, luaL_checkbit, luaL_checkubit)
|
||||
TDYADIC(rshift, >>, luaL_checkubit, luaL_checkubit)
|
||||
TDYADIC(arshift, >>, luaL_checkbit, luaL_checkubit)
|
||||
DYADIC(mod, %)
|
||||
|
||||
static const struct luaL_reg bitlib[] = {
|
||||
{"bnot", bit_bnot},
|
||||
{"band", bit_band},
|
||||
{"bor", bit_bor},
|
||||
{"bxor", bit_bxor},
|
||||
{"lshift", bit_lshift},
|
||||
{"rshift", bit_rshift},
|
||||
{"arshift", bit_arshift},
|
||||
{"mod", bit_mod},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
LUALIB_API int luaopen_bit(lua_State *L) {
|
||||
luaL_openlib(L, BITLIBNAME, bitlib, 0);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
#ifndef BITLIB
|
||||
#define BITLIB
|
||||
|
||||
#define BITLIBNAME "bit"
|
||||
|
||||
#include "lauxlib.h"
|
||||
#include "lua.h"
|
||||
|
||||
LUALIB_API int luaopen_bit(lua_State *L);
|
||||
|
||||
#endif
|
||||
|
||||
20299
nselib-bin/configure
vendored
20299
nselib-bin/configure
vendored
File diff suppressed because it is too large
Load Diff
@@ -1,23 +0,0 @@
|
||||
AC_PREREQ(2.13)
|
||||
AC_INIT([nselib.h])
|
||||
|
||||
AC_PROG_CC
|
||||
|
||||
# we want to compile lua modules written in C - which are shared libraries
|
||||
# therefore disable building static libs - we shouldn't need them
|
||||
AC_DISABLE_STATIC
|
||||
AC_LIBTOOL_DLOPEN
|
||||
AC_PROG_LIBTOOL
|
||||
AC_SUBST(LIBTOOL)
|
||||
|
||||
AC_SUBST(LIBTOOL_DEPS)
|
||||
|
||||
AC_CANONICAL_HOST
|
||||
|
||||
# needed for lua-includes
|
||||
AC_CHECK_HEADER([lua.h],,[AC_MSG_NOTICE(using lua-includefiles provided with nmap);[LUAINCLUDE=-I../liblua/]],)
|
||||
AC_SUBST(LUAINCLUDE)
|
||||
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_OUTPUT
|
||||
|
||||
@@ -1,205 +0,0 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
Name="nse_bitlib"
|
||||
ProjectGUID="{FB7F6FD2-A39D-40A1-86DD-9B08370BDEA6}"
|
||||
RootNamespace="nse_bitlib"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="Debug"
|
||||
IntermediateDirectory="Debug"
|
||||
ConfigurationType="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\liblua"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;NSE_BITLIB_EXPORTS;WIN32;LUA_BUILD_AS_DLL;LUA_LIB"
|
||||
MinimalRebuild="false"
|
||||
ExceptionHandling="0"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="2"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="0"
|
||||
CompileAs="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="liblua.lib"
|
||||
OutputFile=".\bit.dll"
|
||||
LinkIncremental="2"
|
||||
AdditionalLibraryDirectories="..\liblua"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
CommandLine="xcopy "$(SolutionDir)..\nselib\*.lua" "$(SolutionDir)\$(ConfigurationName)\nselib\" /y && xcopy "$(SolutionDir)..\nselib\*.dll" "$(SolutionDir)\$(ConfigurationName)\nselib\" /y"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="Release"
|
||||
IntermediateDirectory="Release"
|
||||
ConfigurationType="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="..\liblua"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;NSE_BITLIB_EXPORTS;WIN32;LUA_BUILD_AS_DLL;LUA_LIB"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="liblua.lib"
|
||||
OutputFile=".\bit.dll"
|
||||
LinkIncremental="2"
|
||||
AdditionalLibraryDirectories="..\liblua"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
CommandLine="xcopy "$(SolutionDir)..\nselib\*.lua" "$(SolutionDir)\$(ConfigurationName)\nselib\" /y && xcopy "$(SolutionDir)..\nselib\*.dll" "$(SolutionDir)\$(ConfigurationName)\nselib\" /y"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\bit.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\bit.c"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
@@ -1,8 +0,0 @@
|
||||
#ifndef NSE_LIB
|
||||
#define NSE_LIB
|
||||
|
||||
#define NSE_BITLIBNAME "bit"
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user