remove license replication from include files, move json_escape/2 to jsx_utils

This commit is contained in:
alisdair sullivan 2011-09-14 06:44:52 -07:00
parent 0d72a07aa7
commit 59a983bbe9
8 changed files with 180 additions and 274 deletions

View file

@ -0,0 +1,11 @@
parse_opts(Opts) ->
parse_opts(Opts, #opts{}).
parse_opts([], Opts) ->
Opts;
parse_opts([loose_unicode|Rest], Opts) ->
parse_opts(Rest, Opts#opts{loose_unicode=true});
parse_opts([escape_forward_slash|Rest], Opts) ->
parse_opts(Rest, Opts#opts{escape_forward_slash=true});
parse_opts(_, _) ->
{error, badarg}.