diff options
author | Micael Karlberg <[email protected]> | 2010-12-03 16:13:18 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2010-12-03 16:13:18 +0100 |
commit | 314e80f58bbee2924bf61bdc7b987750d58ca2ef (patch) | |
tree | adb70ece58251746adecc5a07a82e5f82740013b /lib/snmp/src/compile/snmpc.erl | |
parent | 66dc042ce9a0e888cfdb8f1b0f5a2e9d4d046f9e (diff) | |
download | otp-314e80f58bbee2924bf61bdc7b987750d58ca2ef.tar.gz otp-314e80f58bbee2924bf61bdc7b987750d58ca2ef.tar.bz2 otp-314e80f58bbee2924bf61bdc7b987750d58ca2ef.zip |
Typed more of the info. Also added more of it in the compiled mib.
Also prepared for future module_compilance addition.
Diffstat (limited to 'lib/snmp/src/compile/snmpc.erl')
-rw-r--r-- | lib/snmp/src/compile/snmpc.erl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/snmp/src/compile/snmpc.erl b/lib/snmp/src/compile/snmpc.erl index 84c9c46fc9..d6abf273a1 100644 --- a/lib/snmp/src/compile/snmpc.erl +++ b/lib/snmp/src/compile/snmpc.erl @@ -1366,18 +1366,17 @@ save(Filename, MibName, Options) -> parse(FileName) -> - ?vtrace("parse -> start tokenizer for ~p", [FileName]), +%% ?vtrace("parse -> start tokenizer for ~p", [FileName]), case snmpc_tok:start_link(reserved_words(), [{file, FileName ++ ".mib"}, {forget_stringdata, true}]) of {error,ReasonStr} -> snmpc_lib:error(lists:flatten(ReasonStr),[]); {ok, TokPid} -> - ?vtrace("parse -> tokenizer start, now get tokens", []), +%% ?vtrace("parse -> tokenizer start, now get tokens", []), Toks = snmpc_tok:get_all_tokens(TokPid), - ?vtrace("parse -> tokens: ~p", [Toks]), +%% ?vtrace("parse -> tokens: ~p", [Toks]), set_version(Toks), - %% io:format("parse -> lexical analysis: ~n~p~n", [Toks]), %% ?vtrace("parse -> lexical analysis: ~n~p", [Toks]), CDataArg = case lists:keysearch(module, 1, get(options)) of @@ -1385,7 +1384,8 @@ parse(FileName) -> _ -> {file, FileName ++ ".funcs"} end, put(cdata,snmpc_lib:make_cdata(CDataArg)), - ?vtrace("parse -> stop tokenizer and then do the actual parse", []), +%% ?vtrace("parse -> stop tokenizer and then do the actual parse", +%% []), snmpc_tok:stop(TokPid), Res = if is_list(Toks) -> @@ -1393,7 +1393,7 @@ parse(FileName) -> true -> Toks end, - ?vtrace("parse -> parsed result: ~n~p", [Res]), +%% ?vtrace("parse -> parsed result: ~n~p", [Res]), case Res of {ok, PData} -> {ok, PData}; |