diff --git a/nselib-bin/bit.c b/nselib-bin/bit.c deleted file mode 100644 index 9951a9347..000000000 --- a/nselib-bin/bit.c +++ /dev/null @@ -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; -} - diff --git a/nselib-bin/bit.h b/nselib-bin/bit.h deleted file mode 100644 index 9893403d5..000000000 --- a/nselib-bin/bit.h +++ /dev/null @@ -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 - diff --git a/nselib-bin/configure b/nselib-bin/configure index 33d38e473..b2336c12e 100755 --- a/nselib-bin/configure +++ b/nselib-bin/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61. +# Generated by GNU Autoconf 2.61 for nselib 0.0. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. @@ -724,13 +724,12 @@ MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. -PACKAGE_NAME= -PACKAGE_TARNAME= -PACKAGE_VERSION= -PACKAGE_STRING= -PACKAGE_BUGREPORT= +PACKAGE_NAME='nselib' +PACKAGE_TARNAME='nselib' +PACKAGE_VERSION='0.0' +PACKAGE_STRING='nselib 0.0' +PACKAGE_BUGREPORT='' -ac_unique_file="nselib.h" # Factoring default headers for most tests. ac_includes_default="\ #include @@ -892,7 +891,7 @@ sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' -docdir='${datarootdir}/doc/${PACKAGE}' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' @@ -1356,7 +1355,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures this package to adapt to many kinds of systems. +\`configure' configures nselib 0.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1404,7 +1403,7 @@ Fine tuning of the installation directories: --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] + --docdir=DIR documentation root [DATAROOTDIR/doc/nselib] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] @@ -1420,7 +1419,9 @@ _ACEOF fi if test -n "$ac_init_help"; then - + case $ac_init_help in + short | recursive ) echo "Configuration of nselib 0.0:";; + esac cat <<\_ACEOF Optional Features: @@ -1521,7 +1522,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -configure +nselib configure 0.0 generated by GNU Autoconf 2.61 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, @@ -1535,7 +1536,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by $as_me, which was +It was created by nselib $as_me 0.0, which was generated by GNU Autoconf 2.61. Invocation command line was $ $0 $@ @@ -1868,6 +1869,14 @@ fi + + + + + + + + @@ -3633,7 +3642,7 @@ ia64-*-hpux*) ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 3636 "configure"' > conftest.$ac_ext + echo '#line 3645 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -6255,11 +6264,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:6258: $lt_compile\"" >&5) + (eval echo "\"\$as_me:6267: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:6262: \$? = $ac_status" >&5 + echo "$as_me:6271: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -6523,11 +6532,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:6526: $lt_compile\"" >&5) + (eval echo "\"\$as_me:6535: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:6530: \$? = $ac_status" >&5 + echo "$as_me:6539: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -6627,11 +6636,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:6630: $lt_compile\"" >&5) + (eval echo "\"\$as_me:6639: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:6634: \$? = $ac_status" >&5 + echo "$as_me:6643: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -8924,7 +8933,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <&5) + (eval echo "\"\$as_me:11376: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:11371: \$? = $ac_status" >&5 + echo "$as_me:11380: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -11468,11 +11477,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:11471: $lt_compile\"" >&5) + (eval echo "\"\$as_me:11480: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:11475: \$? = $ac_status" >&5 + echo "$as_me:11484: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -13029,11 +13038,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:13032: $lt_compile\"" >&5) + (eval echo "\"\$as_me:13041: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:13036: \$? = $ac_status" >&5 + echo "$as_me:13045: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -13133,11 +13142,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:13136: $lt_compile\"" >&5) + (eval echo "\"\$as_me:13145: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:13140: \$? = $ac_status" >&5 + echo "$as_me:13149: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -15324,11 +15333,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:15327: $lt_compile\"" >&5) + (eval echo "\"\$as_me:15336: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:15331: \$? = $ac_status" >&5 + echo "$as_me:15340: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -15592,11 +15601,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:15595: $lt_compile\"" >&5) + (eval echo "\"\$as_me:15604: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:15599: \$? = $ac_status" >&5 + echo "$as_me:15608: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -15696,11 +15705,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:15699: $lt_compile\"" >&5) + (eval echo "\"\$as_me:15708: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:15703: \$? = $ac_status" >&5 + echo "$as_me:15712: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -19043,7 +19052,7 @@ exec 6>&1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by $as_me, which was +This file was extended by nselib $as_me 0.0, which was generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -19086,7 +19095,7 @@ Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ -config.status +nselib config.status 0.0 configured by $0, generated by GNU Autoconf 2.61, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" diff --git a/nselib-bin/configure.ac b/nselib-bin/configure.ac index 2846b3aca..ea1aeb931 100644 --- a/nselib-bin/configure.ac +++ b/nselib-bin/configure.ac @@ -1,5 +1,5 @@ AC_PREREQ([2.13]) -AC_INIT([nselib.h]) +AC_INIT([nselib], [0.0]) AC_PROG_CC diff --git a/nselib-bin/nse_bitlib.vcproj b/nselib-bin/nse_bitlib.vcproj deleted file mode 100644 index a5d0337f1..000000000 --- a/nselib-bin/nse_bitlib.vcproj +++ /dev/null @@ -1,204 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/nselib-bin/nselib.h b/nselib-bin/nselib.h deleted file mode 100644 index c3e1a5849..000000000 --- a/nselib-bin/nselib.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef NSE_LIB -#define NSE_LIB - -#define NSE_BITLIBNAME "bit" - - -#endif -