works (thanks to robin)

This commit is contained in:
Bernhard Amann 2011-10-19 13:16:09 -07:00
parent 6e6073ff4c
commit 0eafeb0369
3 changed files with 3 additions and 1 deletions

View file

@ -1508,3 +1508,5 @@ const parse_udp_tunnels = F &redef;
# Load the logging framework here because it uses fairly deep integration with # Load the logging framework here because it uses fairly deep integration with
# BiFs and script-land defined types. # BiFs and script-land defined types.
@load base/frameworks/logging @load base/frameworks/logging
@load base/input.bif

View file

@ -264,6 +264,7 @@ extern void init_net_var();
#include "types.bif.netvar_h" #include "types.bif.netvar_h"
#include "event.bif.netvar_h" #include "event.bif.netvar_h"
#include "logging.bif.netvar_h" #include "logging.bif.netvar_h"
#include "input.bif.netvar_h"
#include "reporter.bif.netvar_h" #include "reporter.bif.netvar_h"
#endif #endif

View file

@ -9,7 +9,6 @@ module Input;
function Input::__create_reader%(reader: Input::Reader, source: string%) : bool function Input::__create_reader%(reader: Input::Reader, source: string%) : bool
%{ %{
exit(5);
InputReader *the_reader = input_mgr->CreateReader(reader->AsEnumVal(), source->AsString()->CheckString()); InputReader *the_reader = input_mgr->CreateReader(reader->AsEnumVal(), source->AsString()->CheckString());
return new Val( the_reader != 0, TYPE_BOOL ); return new Val( the_reader != 0, TYPE_BOOL );
%} %}