From: SourceForge.net <no...@so...> - 2007-10-14 17:00:49
|
Feature Requests item #1813248, was opened at 2007-10-14 18:17 Message generated for change (Comment added) made by frief You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=350599&aid=1813248&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Deleted Priority: 5 Private: No Submitted By: Frieder Ferlemann (frief) Assigned to: Nobody/Anonymous (nobody) Summary: duplicate strings in initialized struct not recognized Initial Comment: while duplicate strings in a __code array are recognized (and are only once in the asm file), duplicate strings within a struct appear multiply in the asm file: -----8<-------------------------------------------------------- /* fine: only one "Y" entry in ROM generated */ unsigned char __code *name[] = {"Y", "Y", "Y"}; typedef struct { unsigned char number; unsigned char pin; unsigned char __code *ec_name; unsigned char __code *alt_out_name; unsigned char __code *alt_in_name; } ec_gpio_type; /* each of the "?" or empty strings "" gets an own entry */ ec_gpio_type __code ec_gpio[] = { { 0x00, 6, "VR_ON#", "?", "?" }, { 0x01, 9, "WLAN_EN", "?", "?" }, { 0x02, 10, "SWI#", "?", "?" }, { 0x03, 10, "", "", "" }, }; -----8<-------------------------------------------------------- __str_0: .ascii "Y" .db 0x00 _str_1: .ascii "VR_ON#" .db 0x00 _str_2: .ascii "?" .db 0x00 _str_3: .ascii "?" .db 0x00 _str_4: .ascii "WLAN_EN" .db 0x00 _str_5: .ascii "?" .db 0x00 _str_6: .ascii "?" .db 0x00 -----8<-------------------------------------------------------- ---------------------------------------------------------------------- >Comment By: Frieder Ferlemann (frief) Date: 2007-10-14 19:00 Message: Logged In: YES user_id=589052 Originator: YES Yes, thanks. I only scanned through the feature request list (not through the bug list) before filing this request. Deleting. ---------------------------------------------------------------------- Comment By: Maarten Brock (maartenbrock) Date: 2007-10-14 18:52 Message: Logged In: YES user_id=888171 Originator: NO This seems identical to BUG 983491. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=350599&aid=1813248&group_id=599 |