diff contrib/tools/org_to_fd.pl @ 1324:729e5074839f

Consistently start names of Enumerated types with 'Enumerated'.
author Thomas Klausner <tk@giga.or.at>
date Mon, 27 Nov 2017 15:15:59 +0100
parents b6885b0d8b10
children 3338f135989d
line wrap: on
line diff
--- a/contrib/tools/org_to_fd.pl	Sun Oct 15 21:33:22 2017 +0800
+++ b/contrib/tools/org_to_fd.pl	Mon Nov 27 15:15:59 2017 +0100
@@ -40,7 +40,7 @@
         $avp_type = "NULL";
     } elsif ($type =~ m/Enumerated/) {
         print "\t\tstruct dict_object		*type;\n";
-        print "\t\tstruct dict_type_data	 tdata = { AVP_TYPE_INTEGER32, \"" . ($vendor_name ? "$vendor_name/" : "") ."Enumerated($name)\", NULL, NULL, NULL };\n";
+        print "\t\tstruct dict_type_data	 tdata = { AVP_TYPE_INTEGER32, \"Enumerated(" . ($vendor_name ? "$vendor_name/" : "") ."$name)\", NULL, NULL, NULL };\n";
         # XXX: add enumerated values
         print "\t\tCHECK_dict_new(DICT_TYPE, &tdata, NULL, &type);\n";
         $avp_type = "type";
"Welcome to our mercurial repository"