anchor.diff:              false
       end.
   
  -gen_rpc_callback_specs(ErlTypePrefix, FuncList) ->
  -    [gen_callback_spec(ErlTypePrefix, F) || F <- FuncList].
  -
  -gen_callback_spec(ErlTypePrefix, F) ->
  -    gen_spec("-callback", ErlTypePrefix, F).
  +gen_rpc_callback_specs(Context, FuncList) ->
  +    [gen_callback_spec(Context, F) || F <- FuncList].
  +
  +gen_callback_spec(Context, F) ->
  +    gen_spec("-callback", Context, F).
   
   %
   % Generating Piqi-RCP function specs: <ErlMod>_impl.hrl
   %
   
  -gen_impl_hrl(Piqi) ->
  +gen_impl_hrl(Context) ->
  +    Piqi = Context#context.piqi,
       ErlMod = to_string(Piqi#piqi.erlang_module),
  -    ErlTypePrefix = Piqi#piqi.erlang_type_prefix,
       FuncList = Piqi#piqi.func,
   
       Filename = ErlMod ++ "_impl.hrl",
  
positive.code:             'undefined' -> % the function doesn't produce errors
                  [];
              _ ->
                  [[
  "                {error, Error} ->\n"
  "                    piqi_rpc_runtime:encode_error(?MODULE, fun ", ErlMod, ":gen_", ErlTypeName, "_error/1, <<\"", ScopedName, "-error\">>, _OutputFormat, Error, Options)"
                  ]]
          end,
  
  
negative.code: gen_export(F) ->
      ["-export([", F#func.erlang_name, "/1]).\n"].
  
  gen_default_impls(Context, FuncList) ->
      [ gen_default_impl(Context, X) || X <- FuncList ].
  
  gen_default_impl(Context, F) ->
      Piqi = Context#context.piqi,
      ErlMod = Piqi#piqi.erlang_module,
  
      Input =
          case F#func.input of
              'undefined' -> "'undefined'";
  