Move supported versions declaration

Supported versions declaration is moved from "yaml_tokens.hrl" to
"yaml_parser.hrl" because it's used there.
This commit is contained in:
Jean-Sébastien Pédron 2011-03-29 10:34:33 +02:00
parent fdadcf4500
commit b0404a0290
2 changed files with 13 additions and 13 deletions

View File

@ -1,16 +1,3 @@
%% -------------------------------------------------------------------
%% Supported versions range.
%% -------------------------------------------------------------------
-define(MIN_YAML_MAJOR_VERSION_SUPPORTED, 1).
-define(MIN_YAML_MINOR_VERSION_SUPPORTED, 1).
-define(MAX_YAML_MAJOR_VERSION_SUPPORTED, 1).
-define(MAX_YAML_MINOR_VERSION_SUPPORTED, 2).
-define(IMPLICIT_YAML_VERSION, {
?MAX_YAML_MAJOR_VERSION_SUPPORTED,
?MAX_YAML_MINOR_VERSION_SUPPORTED
}).
%% -------------------------------------------------------------------
%% Options.
%% -------------------------------------------------------------------

View File

@ -4,6 +4,19 @@
%% Erlang won't add "undefined" in our back to the allowed values in the
%% type specifications.
%% -------------------------------------------------------------------
%% Supported versions range.
%% -------------------------------------------------------------------
-define(MIN_YAML_MAJOR_VERSION_SUPPORTED, 1).
-define(MIN_YAML_MINOR_VERSION_SUPPORTED, 1).
-define(MAX_YAML_MAJOR_VERSION_SUPPORTED, 1).
-define(MAX_YAML_MINOR_VERSION_SUPPORTED, 2).
-define(IMPLICIT_YAML_VERSION, {
?MAX_YAML_MAJOR_VERSION_SUPPORTED,
?MAX_YAML_MINOR_VERSION_SUPPORTED
}).
%% -------------------------------------------------------------------
%% Data types specifications.
%% -------------------------------------------------------------------