diff options
author | Björn Gustavsson <[email protected]> | 2014-03-03 13:50:23 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2014-03-18 17:47:51 +0100 |
commit | f3cee0e9f409c5850709f11ba15cec22d7387401 (patch) | |
tree | 7a8f41eba7505f54d3a22c94fb625e04834c4372 /lib/hipe/icode/hipe_icode.hrl | |
parent | 237264bc018b0cc17afeac5d3f6030073f314f9d (diff) | |
download | otp-f3cee0e9f409c5850709f11ba15cec22d7387401.tar.gz otp-f3cee0e9f409c5850709f11ba15cec22d7387401.tar.bz2 otp-f3cee0e9f409c5850709f11ba15cec22d7387401.zip |
epp: Make it possible to specify a default encoding
In the next commit, we will need a way to tell epp which the
default encoding should be for files that have no encoding comment.
We could add new open() and parse_file() functions with one
extra argument for the encoding, but there are already too many
variants.
To avoid having to add an additional argument to epp:open() and
epp:parse_file() each time new options are needed, introduce
epp:open/1 and epp:parse_file/2 that takes a property list with
options. Also support the new 'default_encoding' option for specifying
the default encoding for source files.
Thanks to Richard Carlsson for the idea and the implementation
of the new functionality in epp.erl.
Diffstat (limited to 'lib/hipe/icode/hipe_icode.hrl')
0 files changed, 0 insertions, 0 deletions