Closed
Bug 3559
Opened 26 years ago
Closed 22 years ago
#defining an existing routine name is bad idea
Categories
(Core Graveyard :: Tracking, defect, P2)
Tracking
(Not tracked)
RESOLVED
WONTFIX
Future
People
(Reporter: elig, Assigned: sdagley)
Details
Marking 3405 as verified. Yanking out John & Simon's comments into a separate
bug, so that Steve can fix or punt as appropriate.
"
------- Additional Comments From mcmullen@netscape.com 03/05/99 11:50 -------
Great. But two things:
1. There are three files called mactime.c in the tree. One of them is in NSPR,
and is in use.
2. It's "daylight-saving time". (It's not a man-eatings tiger, but a man-eating
tiger, see).
------- Additional Comments From sfraser@netscape.com 03/05/99 11:59 -------
Yeah, and kudos to the person who #defined an existing routine name to something
else. That's always a bad idea. The real fix for this problem would have been
to change that #define.
"
Reporter | ||
Updated•26 years ago
|
QA Contact: 3853 → 1698
I am not clear on what this bug is. elig, can you put in a better summary line?
And info in this bug on what exactly this it?
Reporter | ||
Comment 2•26 years ago
|
||
Probably because I'm not clear on what the bug is, either. ;)
E-mailed sfraser to request clarification on what was meant by the comments in
bug 3405.
Comment 3•26 years ago
|
||
This bug (and my comments in 3405) is about a dangerous coding practice, that
could cause problems in future if #include patterns change. That practice is
redefining an existing function name to something else, like
#define ctime MacCTime
because there is always the danger the the macros will be expanded incorrectly,
and you end up calling yourself recursively (as happened last week).
The right thing to do is redefine the symbol on all platforms, or to do the
ctime messing in NSStdLib, where conflicts are unlikely.
Comment 4•26 years ago
|
||
Is there a specific instance of this practice that this bug seeks to fix, and
is it a blocker for M3?
Updated•26 years ago
|
Target Milestone: M3 → M4
Comment 5•26 years ago
|
||
in xp_mcom.h:
#define XP_TIME() GetTimeMac()
#define time(t) Mactime(t)
#define gmtime(t) Macgmtime(t)
#define mktime(t) Macmktime(t)
#define ctime(t) Macctime(t)
#define localtime(t) Maclocaltime(t)
No, this isn't needed for M3, but don't blame me if it comes back to bite us
later.
Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•26 years ago
|
Target Milestone: M4 → M5
Assignee | ||
Comment 6•26 years ago
|
||
Not a must fix for M4.
Summary: [broken out of 3405] #defining an existing routine name issue → [PP][broken out of 3405] #defining an existing routine name issue
Assignee | ||
Updated•25 years ago
|
Summary: [PP][broken out of 3405] #defining an existing routine name issue → #defining an existing routine name is bad idea
Target Milestone: M5 → M8
Assignee | ||
Comment 7•25 years ago
|
||
Updated the summary as it isn't a platform parity issue, just a bad coding
practice than needs to be rectified. Pushing back to M8 to get it out of my hair
while I address feature work I need to get done.
Comment 8•25 years ago
|
||
Note: this came back to bite us in bug # 4357 (broken FTP).
Moving all Apprunner bugs past and present to Other component temporarily whilst
don and I set correct component. Apprunner component will be deleted/retired
shortly.
Assignee | ||
Updated•25 years ago
|
Target Milestone: M8 → M10
Assignee | ||
Updated•25 years ago
|
Target Milestone: M10 → M12
Comment 10•25 years ago
|
||
mass-moving all m12 bugs to m13
Assignee | ||
Updated•25 years ago
|
Target Milestone: M13 → M15
Assignee | ||
Updated•25 years ago
|
Target Milestone: M15 → M20
Updated•24 years ago
|
QA Contact: elig → chofmann
Assignee | ||
Updated•24 years ago
|
Target Milestone: --- → Future
Comment 11•23 years ago
|
||
can this bug closed ?
last comment in this bug : Peter Trudelle 1999-11-02 15:05
Assignee | ||
Comment 12•22 years ago
|
||
(18 month pause)
Why, yes it can be closed.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → WONTFIX
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•