anchor.diff:  decode_base64([], Acc) ->
       lists:reverse(Acc);
   decode_base64([Sextet1,Sextet2,$=,$=|Rest], Acc) ->
  -    Bits2x6=
  +    Bits2x6 =
           (d(Sextet1) bsl 18) bor
           (d(Sextet2) bsl 12),
  -    Octet1=Bits2x6 bsr 16,
  +    Octet1 = Bits2x6 bsr 16,
       decode_base64(Rest, [Octet1|Acc]);
   decode_base64([Sextet1,Sextet2,Sextet3,$=|Rest], Acc) ->
  -    Bits3x6=
  +    Bits3x6 =
           (d(Sextet1) bsl 18) bor
           (d(Sextet2) bsl 12) bor
           (d(Sextet3) bsl 6),
  -    Octet1=Bits3x6 bsr 16,
  -    Octet2=(Bits3x6 bsr 8) band 16#ff,
  +    Octet1 = Bits3x6 bsr 16,
  +    Octet2 = (Bits3x6 bsr 8) band 16#ff,
       decode_base64(Rest, [Octet2,Octet1|Acc]);
   decode_base64([Sextet1,Sextet2,Sextet3,Sextet4|Rest], Acc) ->
  -    Bits4x6=
  +    Bits4x6 =
           (d(Sextet1) bsl 18) bor
           (d(Sextet2) bsl 12) bor
           (d(Sextet3) bsl 6) bor
           d(Sextet4),
  -    Octet1=Bits4x6 bsr 16,
  -    Octet2=(Bits4x6 bsr 8) band 16#ff,
  -    Octet3=Bits4x6 band 16#ff,
  +    Octet1 = Bits4x6 bsr 16,
  +    Octet2 = (Bits4x6 bsr 8) band 16#ff,
  +    Octet3 = Bits4x6 band 16#ff,
       decode_base64(Rest, [Octet3,Octet2,Octet1|Acc]);
   decode_base64(_CatchAll, _Acc) ->
       {error, bad_base64}.
   
  -d(X) when X >= $A, X =<$Z ->
  -    X-65;
  -d(X) when X >= $a, X =<$z ->
  -    X-71;
  -d(X) when X >= $0, X =<$9 ->
  -    X+4;
  -d($+) -> 62;
  -d($/) -> 63;
  -d(_) -> 63.
  -
  -
  -flag(CurFlag, Bit, true) ->
  -    CurFlag bor Bit;
  -flag(CurFlag, Bit, false) ->
  -    CurFlag band (bnot Bit).
  -
  +d(X) when X >= $A, X =<$Z -> X-65;
  +d(X) when X >= $a, X =<$z -> X-71;
  +d(X) when X >= $0, X =<$9 -> X+4;
  +d($+)                     -> 62;
  +d($/)                     -> 63;
  +d(_)                      -> 63.
  +
  +
  +flag(CurFlag, Bit, true)  -> CurFlag bor Bit;
  +flag(CurFlag, Bit, false) -> CurFlag band (bnot Bit).
   
   
   %% misc debug funcs .... use from cli only
  
positive.code: dohup(Sock) ->
      Env = yaws_sup:get_app_args(),
      Res = try yaws_config:load(Env) of
                {ok, Gconf, Sconfs} ->
                    yaws_api:setconf(Gconf, Sconfs);
                Err ->
                    Err
            catch
                _:X ->
                    X
  
negative.code: 
  ensure_exist(Path) ->
      case file:read_file_info(Path) of
          {ok, _} ->
              ok;
          _ ->
              case file:make_dir(Path) of
                  ok ->
                      ok;
                  ERR ->
                      error_logger:format("Failed to mkdir ~p: ~p~n", [Path, ERR])
              end
      end.
  
  
  