mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-27 01:01:52 -07:00
Bracketing out unused stringequal and tidying up stringlength.
Copied from Perforce Change: 190333 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
dd96d7cc5c
commit
405aed6b34
1 changed files with 9 additions and 4 deletions
|
|
@ -619,16 +619,19 @@ Res WriteF_firstformat_v(mps_lib_FILE *stream, Count depth,
|
|||
|
||||
size_t StringLength(const char *s)
|
||||
{
|
||||
size_t i;
|
||||
size_t i = 0;
|
||||
|
||||
AVER(s != NULL);
|
||||
|
||||
for(i = 0; s[i] != '\0'; i++)
|
||||
NOOP;
|
||||
return(i);
|
||||
while (s[i] != '\0')
|
||||
++i;
|
||||
|
||||
return i;
|
||||
}
|
||||
|
||||
|
||||
#if 0 /* This code is currently not in use in the MPS */
|
||||
|
||||
/* StringEqual -- slow substitute for (strcmp == 0) */
|
||||
|
||||
Bool StringEqual(const char *s1, const char *s2)
|
||||
|
|
@ -649,6 +652,8 @@ Bool StringEqual(const char *s1, const char *s2)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
#endif /* not currently in use */
|
||||
|
||||
|
||||
|
||||
/* C. COPYRIGHT AND LICENSE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue