diff options
author | Micael Karlberg <[email protected]> | 2011-02-22 10:51:48 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2011-02-22 10:51:48 +0100 |
commit | 5c8ae44362086700002fdda25fffe2c210efa059 (patch) | |
tree | 56b85389b77bb38114475093aea741fbc1284ad3 /lib/snmp/src/compile/snmpc_tok.erl | |
parent | 031613986bf597c879cefbd64581b5fbd7cfb2ea (diff) | |
parent | d7c6e2781c64e5e75add8a89d1b553bd5e9283f1 (diff) | |
download | otp-5c8ae44362086700002fdda25fffe2c210efa059.tar.gz otp-5c8ae44362086700002fdda25fffe2c210efa059.tar.bz2 otp-5c8ae44362086700002fdda25fffe2c210efa059.zip |
Merge branch 'bmk/snmp/add_compiler_support_agent_capabilities/OTP-8966' into bmk/snmp/snmpc/OTP-9004
Conflicts:
lib/snmp/doc/src/notes.xml
lib/snmp/vsn.mk
Diffstat (limited to 'lib/snmp/src/compile/snmpc_tok.erl')
-rw-r--r-- | lib/snmp/src/compile/snmpc_tok.erl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/snmp/src/compile/snmpc_tok.erl b/lib/snmp/src/compile/snmpc_tok.erl index 6b99e7ae43..e238b256d0 100644 --- a/lib/snmp/src/compile/snmpc_tok.erl +++ b/lib/snmp/src/compile/snmpc_tok.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1996-2009. All Rights Reserved. +%% Copyright Ericsson AB 1996-2010. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -37,6 +37,8 @@ -export([null_get_line/0, format_error/1, terminate/2, handle_call/3, init/1, test/0]). +-include("snmpc_lib.hrl"). + %%---------------------------------------------------------------------- %% Reserved_words: list of KeyWords. Example: ['IF', 'BEGIN', ..., 'GOTO'] @@ -130,6 +132,10 @@ test() -> 'current','deprecated','not-accessible','obsolete', 'read-create','read-only','read-write', 'IMPORTS', 'FROM', 'MODULE-COMPLIANCE', + 'AGENT-CAPABILITIES', + 'PRODUCT-RELEASE', + 'SUPPORTS', + 'INCLUDES', 'DisplayString', 'PhysAddress', 'MacAddress', @@ -225,6 +231,7 @@ get_all_tokens(Str,Toks) -> case catch tokenise(Str) of {error, ErrorInfo} -> {error, ErrorInfo}; {Token, RestChars} when is_tuple(Token) -> + %% ?vtrace("get_all_tokens -> Token: ~p", [Token]), get_all_tokens(RestChars, [Token|Toks]) end. |