Ticket #45428

Sanity check rule_name uniqueness

오픈 날짜: 2022-08-23 05:02 마지막 업데이트: 2024-02-09 15:42

Reporter:
소유자:
(None)
Type:
Status:
Open
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
1

Details

There's no check against multiple ruleset items (of the same type) having the same rule_name.

Ticket History (3/5 Histories)

2022-08-23 05:02 Updated by: cazfi
  • New Ticket "Sanity check rule_name uniqueness" created
2023-02-28 02:08 Updated by: lachu
댓글 올리기

Reply To cazfi

There's no check against multiple ruleset items (of the same type) having the same rule_name.

0001-OSDN-TICKET-45428-S-awomir-Lach-slawek-lach.art.pl.patch(19KB)
Done. Using SPECHASH.

I did not analyze Freeciv code, but in general programming dictionaries/hashtables are generating numbers for each kind of key, even it is a string. I remember that. So I use spechash with CString as key and CString as value. We store game name as key and ruledit section name as value. When key exist, we print current name (key) with previous section name (value), with the same game name.

EDIT: Remove typo in this comment.

(Edited, 2023-03-06 01:57 Updated by: lachu)
2023-09-06 21:55 Updated by: cazfi
2024-02-09 15:42 Updated by: cazfi

Attachment File List

Edit

Please login to add comment to this ticket » Login