general cleanup of modules, moved most types, specs, defines and records to header files and did some minor reformatting to adhere to style guidelines
This commit is contained in:
parent
86b4fbbec9
commit
c098b06e88
16 changed files with 247 additions and 147 deletions
|
@ -8,9 +8,7 @@
|
|||
|
||||
-file("./include/jsx_decoder.hrl", 1).
|
||||
|
||||
-file("priv/jsx_decoder_template.erl", 35).
|
||||
|
||||
-file("./include/jsx_types.hrl", 1).
|
||||
-file("./include/jsx_common.hrl", 1).
|
||||
|
||||
-type jsx_opts() :: [jsx_opt()].
|
||||
|
||||
|
@ -51,6 +49,12 @@
|
|||
| {error, badjson}
|
||||
| ok.
|
||||
|
||||
-type supported_utf() :: utf8
|
||||
| utf16
|
||||
| {utf16, little}
|
||||
| utf32
|
||||
| {utf32, little}.
|
||||
|
||||
-type eep0018() :: eep0018_object() | eep0018_array().
|
||||
|
||||
-type eep0018_array() :: [eep0018_term()].
|
||||
|
@ -71,12 +75,6 @@
|
|||
|
||||
-type eep0018_number() :: float() | integer().
|
||||
|
||||
-type supported_utf() :: utf8
|
||||
| utf16
|
||||
| {utf16, little}
|
||||
| utf32
|
||||
| {utf32, little}.
|
||||
|
||||
-type encoder_opts() :: [encoder_opt()].
|
||||
|
||||
-type encoder_opt() :: {strict, true | false}
|
||||
|
@ -111,11 +109,13 @@
|
|||
| indent
|
||||
| {output_encoding, supported_utf()}.
|
||||
|
||||
-file("priv/jsx_decoder_template.erl", 36).
|
||||
-file("./include/jsx_decoder.hrl", 24).
|
||||
|
||||
-spec parse(JSON :: eep0018(), Opts :: jsx_opts()) ->
|
||||
jsx_parser_result().
|
||||
|
||||
-file("priv/jsx_decoder_template.erl", 35).
|
||||
|
||||
parse(JSON, Opts) ->
|
||||
start(JSON, [], Opts).
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue