Replace PL_strcasecmp with nsCRT::strcasecmp
Categories
(Core :: XPCOM, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox98 | --- | fixed |
People
(Reporter: smurfd, Assigned: smurfd)
Details
Attachments
(4 files)
We should replace NSPR functions with standard C functions when they are available on all platforms, or in this case a wrapper since a standard C function is not available on all platforms.
Following work done in this bug https://bugzilla.mozilla.org/show_bug.cgi?id=1308104 and some others like that, i filed this bug https://bugzilla.mozilla.org/show_bug.cgi?id=1724649 that needed more work before being possible
Lets :
-
Replace PL_strcasecmp() calls with nsCRT::strcasecmp() outside of
nsprpub/
andsecurity/
code
https://searchfox.org/mozilla-central/search?case=true&q=PL_strcasecmp -
Add #include "nsCRT.h" if it's needed for nsCRT::strcasecmp()'s function declaration.
-
Remove #include "plstr.h" if it's no longer needed for other NSPR string function declarations.
Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
Assignee | ||
Comment 3•3 years ago
|
||
Assignee | ||
Comment 4•3 years ago
|
||
Assignee | ||
Comment 5•3 years ago
|
||
Hey, will skip this part for now, will instead file a specific bug to replace all possible PL_ in nsCRT.h
It could probably be ok to change the nsCRT implementation to use the standard C function instead of the PL_
https://searchfox.org/mozilla-central/rev/f71cb98fc35da418d2cb9ce31a0416d532dc9d69/xpcom/ds/nsCRT.h#43-53
i see there was a warning in layout/base/PresShell.cpp
but the line where i did the changes is allright.
It could be that i was not up-to-date with the tree. updated yesterday.
Let me know if there is questions :)
Assignee | ||
Comment 6•3 years ago
•
|
||
edited....
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 7•3 years ago
|
||
Im thinking this should still be ok to land...
Pushed by archaeopteryx@coole-files.de: https://hg.mozilla.org/integration/autoland/rev/eb288627e25c Replace PL_strcasecmp with nsCRT::strcasecmp modules/libjar/ r=valentin
Pushed by archaeopteryx@coole-files.de: https://hg.mozilla.org/integration/autoland/rev/b5794d191c27 Replace PL_strcasecmp with nsCRT::strcasecmp image/ r=aosmond
Comment 10•2 years ago
|
||
Pushed by archaeopteryx@coole-files.de: https://hg.mozilla.org/integration/autoland/rev/d0877f8a8fac Replace PL_strcasecmp with nsCRT::strcasecmp r=jrmuizel
Comment 11•2 years ago
|
||
Pushed by archaeopteryx@coole-files.de: https://hg.mozilla.org/integration/autoland/rev/c568a569c161 Replace PL_strcasecmp with nsCRT::strcasecmp layout/ r=tnikkel
Comment 12•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/eb288627e25c
https://hg.mozilla.org/mozilla-central/rev/b5794d191c27
https://hg.mozilla.org/mozilla-central/rev/d0877f8a8fac
https://hg.mozilla.org/mozilla-central/rev/c568a569c161
Description
•