comparison extensions/dict_legacy_xml/dict_lxml_xml.c @ 1318:2a5620128a9a

Remove '*' from the couple enumerated values that had them. This was inconsistent and caused trouble with extensions that want to add enumerated values to existing enumerations.
author Thomas Klausner <tk@giga.or.at>
date Mon, 23 Jan 2017 15:26:25 +0100
parents bb5dd52bb9b8
children 566bb46cc73f
comparison
equal deleted inserted replaced
1317:bb5dd52bb9b8 1318:2a5620128a9a
1477 /* We create a new type to hold the enumerated values -- fD specifics */ 1477 /* We create a new type to hold the enumerated values -- fD specifics */
1478 char typename[256]; 1478 char typename[256];
1479 struct dict_type_data tdata; 1479 struct dict_type_data tdata;
1480 1480
1481 enumerated: 1481 enumerated:
1482 snprintf(typename, sizeof(typename), "Enumerated*(%s)", ad.avp_name); 1482 snprintf(typename, sizeof(typename), "Enumerated(%s)", ad.avp_name);
1483 memset(&tdata, 0, sizeof(tdata)); 1483 memset(&tdata, 0, sizeof(tdata));
1484 tdata.type_base = AVP_TYPE_INTEGER32; 1484 tdata.type_base = AVP_TYPE_INTEGER32;
1485 tdata.type_name = &typename[0]; 1485 tdata.type_name = &typename[0];
1486 CHECK_FCT( fd_dict_new ( fD_dict, DICT_TYPE, &tdata, fd_appl, &type ) ); 1486 CHECK_FCT( fd_dict_new ( fD_dict, DICT_TYPE, &tdata, fd_appl, &type ) );
1487 if (nb_added) 1487 if (nb_added)
"Welcome to our mercurial repository"