Annotate

libs/encodings.lua @ 125:b46921de1e03

verse: Add verse.log() to log a message using the default logger. Also add verse.set_error_handler() to, er, set an error handler.
author Matthew Wild <mwild1@gmail.com>
date Mon, 13 Sep 2010 14:07:41 +0100
parent 107:59c6f2deb8ab
child 130:5de7f66e4168
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
107
59c6f2deb8ab libs/encodings.lua: Throw error when calling unimplemented function
Matthew Wild <mwild1@gmail.com>
parents: 0
diff changeset
1 local function not_impl()
59c6f2deb8ab libs/encodings.lua: Throw error when calling unimplemented function
Matthew Wild <mwild1@gmail.com>
parents: 0
diff changeset
2 error("Encoding function not implemented");
59c6f2deb8ab libs/encodings.lua: Throw error when calling unimplemented function
Matthew Wild <mwild1@gmail.com>
parents: 0
diff changeset
3 end
59c6f2deb8ab libs/encodings.lua: Throw error when calling unimplemented function
Matthew Wild <mwild1@gmail.com>
parents: 0
diff changeset
4
0
caf260adc453 Beginning of new verse
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
5 module "encodings"
caf260adc453 Beginning of new verse
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
6
caf260adc453 Beginning of new verse
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
7 stringprep = {};
107
59c6f2deb8ab libs/encodings.lua: Throw error when calling unimplemented function
Matthew Wild <mwild1@gmail.com>
parents: 0
diff changeset
8 base64 = { encode = not_impl, decode = not_impl };
0
caf260adc453 Beginning of new verse
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
9
caf260adc453 Beginning of new verse
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
10 return _M;