Closed
Bug 434397
Opened 17 years ago
Closed 17 years ago
Duplicated code in |PR_snprintf()| and |PR_vsnprintf()|
Categories
(NSPR :: NSPR, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
4.7.2
People
(Reporter: sgautherie, Assigned: sgautherie)
References
()
Details
(Keywords: memory-footprint)
Attachments
(1 file)
924 bytes,
patch
|
wtc
:
review+
|
Details | Diff | Splinter Review |
From bug 186547 comment 5:
{{
Serge Gautherie 2003-12-19 17:53:58 PDT
Is the |if ((PRInt32)outlen == 0) {| block needed in |PR_snprintf()|,
since it is already in |PR_vsnprintf()| ?
}}
Comment 1•17 years ago
|
||
Serge, By how many bytes does the removal of this duplicated test reduce
the size of an optimized build?
Assignee | ||
Comment 2•17 years ago
|
||
No idea, probably very few.
Assignee | ||
Comment 3•17 years ago
|
||
NB:
I noticed that this file is full of tabs.
Would you accept a separate tabs->spaces cleanup patch ?
Comment 4•17 years ago
|
||
Comment on attachment 321586 [details] [diff] [review]
(Av1) <prprf.c>
[Checkin: Comment 6]
r=wtc. Thanks for the patch.
Don't fix the tabs unless they mess up the indentation.
I often need to read diffs when fixing NSPR bugs. Unnecessary
whitespace changes will add noise to the diffs.
Attachment #321586 -
Flags: review?(wtc) → review+
Assignee | ||
Comment 5•17 years ago
|
||
(In reply to comment #4)
> Don't fix the tabs unless they mess up the indentation.
I prefer to do it all/none. I'll leave it as is then.
Keywords: checkin-needed
Comment 6•17 years ago
|
||
I checked in the patch on the NSPR trunk (NSPR 4.7.2).
Checking in prprf.c;
/cvsroot/mozilla/nsprpub/pr/src/io/prprf.c,v <-- prprf.c
new revision: 3.20; previous revision: 3.19
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: --- → 4.7.2
Assignee | ||
Updated•17 years ago
|
Attachment #321586 -
Attachment description: (Av1) <prprf.c> → (Av1) <prprf.c>
[Checkin: Comment 6]
Assignee | ||
Updated•17 years ago
|
Keywords: checkin-needed
Version: other → 4.7.1
You need to log in
before you can comment on or make changes to this bug.
Description
•