anchor.diff:  -include_lib("eunit/include/eunit.hrl").
   -endif.
   
  +%% @doc Initialize idna NIF.
   init() ->
       SoName = filename:join(case code:priv_dir(?MODULE) of
                                  {error, bad_name} ->
  
positive.code:                            end, atom_to_list(?MODULE) ++ "_nif"),
      erlang:load_nif(SoName, 0).
  
  encode(_Data) ->
      erlang:nif_error(not_loaded).
  
  decode(_Data) ->
      erlang:nif_error(not_loaded).
  
  
negative.code: %%% @author Konstantin Sorokin <kvs@sigterm.ru>
  %%% @doc Implementation of the IDNA part of GNU libidn library in Erlang NIFs.
  %%%
  %%% @copyright 2011 Konstantin V. Sorokin, All rights reserved. Open source, BSD License
  %%% @version 1.0
  %%%
  -module(erlidna).
  -version(1.0).
  -on_load(init/0).
  -export([encode/1, decode/1]).
  
  