SisMaker 3 лет назад
Родитель
Сommit
ab19b0c607
8 измененных файлов: 12 добавлений и 11 удалений
  1. +4
    -4
      src/dataType/shq2.erl
  2. +1
    -0
      src/dataType/utGenTerm.erl
  3. +1
    -1
      src/hotUpdate/u.erl
  4. +1
    -1
      src/hotUpdate/u1.erl
  5. +1
    -1
      src/measure/testQueue.erl
  6. +1
    -1
      src/nifSrc/epqueue/test/integrity_test_SUITE.erl
  7. +2
    -2
      src/template/ut_gen_apu.erl
  8. +1
    -1
      src/testCase/utTestChange.erl

+ 4
- 4
src/dataType/shq2.erl Просмотреть файл

@ -59,10 +59,10 @@ handle_call(out, _From, State=#state{front=K, rear=K}) ->
{reply, empty, State}; {reply, empty, State};
handle_call(out_r, _From, State=#state{front=K, rear=K}) -> handle_call(out_r, _From, State=#state{front=K, rear=K}) ->
{reply, empty, State}; {reply, empty, State};
handle_call(out, _From, State=#state{tab=Tab, front=KF}) ->
handle_call(out, _From, State=#state{front=KF}) ->
V=erase(KF), V=erase(KF),
{reply, {ok, V}, State#state{front=KF+1}}; {reply, {ok, V}, State#state{front=KF+1}};
handle_call(out_r, _From, State=#state{tab=Tab, rear=KR0}) ->
handle_call(out_r, _From, State=#state{rear=KR0}) ->
KR1=KR0-1, KR1=KR0-1,
V=erase(KR1), V=erase(KR1),
{reply, {ok, V}, State#state{rear=KR1}}; {reply, {ok, V}, State#state{rear=KR1}};
@ -71,10 +71,10 @@ handle_call(size, _From, State=#state{front=KF, rear=KR}) ->
handle_call(_Msg, _From, State) -> handle_call(_Msg, _From, State) ->
{noreply, State}. {noreply, State}.
handle_cast({in, V}, State=#state{tab=Tab, rear=KR}) ->
handle_cast({in, V}, State=#state{rear=KR}) ->
put(KR, V), put(KR, V),
{noreply, State#state{rear=KR+1}}; {noreply, State#state{rear=KR+1}};
handle_cast({in_r, V}, State=#state{tab=Tab, front=KF0}) ->
handle_cast({in_r, V}, State=#state{front=KF0}) ->
KF1=KF0-1, KF1=KF0-1,
put(KF1, V), put(KF1, V),
{noreply, State#state{front=KF1}}; {noreply, State#state{front=KF1}};

+ 1
- 0
src/dataType/utGenTerm.erl Просмотреть файл

@ -11,6 +11,7 @@
genPid/1, genPid/1,
genTuple/1, genTuple/1,
genList/1, genList/1,
genString/1,
genShortString/1, genShortString/1,
genString/1, genString/1,
genBinary/1, genBinary/1,

+ 1
- 1
src/hotUpdate/u.erl Просмотреть файл

@ -15,7 +15,7 @@
%%---------------------------------------------------- %%----------------------------------------------------
-module(u). -module(u).
-compile(export_all).
-compile([export_all, nowarn_unused_function, nowarn_unused_vars, nowarn_export_all]).
-include_lib("kernel/include/file.hrl"). -include_lib("kernel/include/file.hrl").
%% %%

+ 1
- 1
src/hotUpdate/u1.erl Просмотреть файл

@ -15,7 +15,7 @@
%%---------------------------------------------------- %%----------------------------------------------------
-module(u1). -module(u1).
-compile(export_all).
-compile([export_all, nowarn_unused_function, nowarn_unused_vars, nowarn_export_all]).
-include_lib("kernel/include/file.hrl"). -include_lib("kernel/include/file.hrl").
c() -> c() ->

+ 1
- 1
src/measure/testQueue.erl Просмотреть файл

@ -1,6 +1,6 @@
-module(testQueue). -module(testQueue).
-compile([export_all]).
-compile([export_all, nowarn_unused_function, nowarn_unused_vars, nowarn_export_all]).
initFq(Name) -> initFq(Name) ->
fwQueue:new(Name). fwQueue:new(Name).

+ 1
- 1
src/nifSrc/epqueue/test/integrity_test_SUITE.erl Просмотреть файл

@ -1,6 +1,6 @@
-module(integrity_test_SUITE). -module(integrity_test_SUITE).
-compile(export_all).
-compile([export_all, nowarn_unused_function, nowarn_unused_vars, nowarn_export_all]).
all() -> [ all() -> [
{group, epqueue_group} {group, epqueue_group}

+ 2
- 2
src/template/ut_gen_apu.erl Просмотреть файл

@ -32,10 +32,10 @@ start_link() ->
init(_Args) -> init(_Args) ->
{ok, #state{}}. {ok, #state{}}.
xxxCall({xxxCall, Arg1, Arg2}, _State, _From) ->
xxxCall({xxxCall, _Arg1, _Arg2}, _State, _From) ->
{reply, ok}. {reply, ok}.
xxxCast({xxxCast, Arg1, Arg2}, _State) ->
xxxCast({xxxCast, _Arg1, _Arg2}, _State) ->
kpS. kpS.
handleInfo(_Msg, _State) -> handleInfo(_Msg, _State) ->

+ 1
- 1
src/testCase/utTestChange.erl Просмотреть файл

@ -1,6 +1,6 @@
-module(utTestChange). -module(utTestChange).
-compile([export_all]).
-compile([export_all, nowarn_unused_function, nowarn_unused_vars, nowarn_export_all]).
-record(test, {a, b, c, d}). -record(test, {a, b, c, d}).

Загрузка…
Отмена
Сохранить