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:
alisdair sullivan 2010-08-19 18:22:34 -07:00
parent 86b4fbbec9
commit c098b06e88
16 changed files with 247 additions and 147 deletions

View file

@ -24,9 +24,12 @@
-module(jsx_verify).
-author("alisdairsullivan@yahoo.ca").
-export([is_json/2]).
-include("./include/jsx_types.hrl").
-include("./include/jsx_verify.hrl").
-ifdef(test).
-include_lib("eunit/include/eunit.hrl").
@ -34,8 +37,6 @@
-spec is_json(JSON::binary(), Opts::verify_opts()) -> true | false.
is_json(JSON, Opts) ->
Encoding = proplists:get_value(encoding, Opts, utf8),
Comments = proplists:get_value(comments, Opts, false),