Closed Bug 434397 Opened 17 years ago Closed 17 years ago

Duplicated code in |PR_snprintf()| and |PR_vsnprintf()|

Categories

(NSPR :: NSPR, defect)

4.7.1
defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sgautherie, Assigned: sgautherie)

References

()

Details

(Keywords: memory-footprint)

Attachments

(1 file)

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()| ? }}
Serge, By how many bytes does the removal of this duplicated test reduce the size of an optimized build?
No idea, probably very few.
NB: I noticed that this file is full of tabs. Would you accept a separate tabs->spaces cleanup patch ?
Assignee: wtc → sgautherie.bz
Status: NEW → ASSIGNED
Attachment #321586 - Flags: review?(wtc)
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+
(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
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
Attachment #321586 - Attachment description: (Av1) <prprf.c> → (Av1) <prprf.c> [Checkin: Comment 6]
Keywords: checkin-needed
Version: other → 4.7.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: