liquid_feedback_frontend

annotate lib/mldap/convert_errorcodes.lua @ 1186:f01239f154a8

Added tag v3.0.6 for changeset fef745f9e22f
author jbe
date Thu Mar 26 21:31:10 2015 +0100 (2015-03-26)
parents 58f48a8a202a
children
rev   line source
bsw@1071 1 #!/usr/bin/env lua
bsw@1071 2 for line in io.lines() do
bsw@1071 3 local ident, code = line:match("^#define[ \t]+LDAP_([A-Z][A-Z_]*)[ \t]+([^ \t/]+)")
bsw@1071 4 if ident then
bsw@1071 5 io.stdout:write(' {"', ident:lower(), '", ', tonumber(code) or code, '},\n')
bsw@1071 6 end
bsw@1071 7 end

Impressum / About Us