annotate lib/mldap/convert_errorcodes.lua @ 1453:d310cca38a87
Fix layout of search form in admin member list view
 | author | 
 bsw | 
 | date | 
 Thu Oct 18 17:21:41 2018 +0200 (2018-10-18) | 
 | 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
 |