Ver código fonte

协议文件命名 全匹配修改

master v1.0.0
AICells 4 anos atrás
pai
commit
83ecd9825d
2 arquivos alterados com 2 adições e 2 exclusões
  1. +1
    -1
      src/protoGen.erl
  2. +1
    -1
      test/test.erl

+ 1
- 1
src/protoGen.erl Ver arquivo

@ -667,7 +667,7 @@ convertDir(ProtoDir, HrlDir, ErlDir) ->
end
end,
%% .mpdf结尾的文件 FunRead函数中纠正处理一下
SProtoListOfList = filelib:fold_files(ProtoDir, "\\.mpdf", true, FunRead, []),
SProtoListOfList = filelib:fold_files(ProtoDir, "\\.mpdf$", true, FunRead, []),
SProtoList = lists:append(SProtoListOfList),
ErrCodeList = erlang:get(pd_errlist),
initSubRec(),

+ 1
- 1
test/test.erl Ver arquivo

@ -21,7 +21,7 @@ decode_int32(N) ->
tt2(N, iolist_to_binary(Bin)).
tt2(0, Bin) ->
Bin;
{protoMsg:decode(Bin), Bin};
tt2(N, Bin) ->
protoMsg:decode(Bin),
tt2(N - 1, Bin).

Carregando…
Cancelar
Salvar