Ignore:
Timestamp:
2018-01-22T22:42:57Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7a08c70
Parents:
e0f47f5
Message:

Remove unnecessary symbol renaming from libposix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/src/stdlib/strtold.c

    re0f47f5 r7f9df7b9  
    3232/** @file Backend for floating point conversions.
    3333 */
    34 
    35 #define LIBPOSIX_INTERNAL
    36 #define __POSIX_DEF__(x) posix_##x
    3734
    3835#include "../internal/common.h"
     
    407404 * @return An approximate representation of the input floating-point number.
    408405 */
    409 long double posix_strtold(const char *restrict nptr, char **restrict endptr)
     406long double strtold(const char *restrict nptr, char **restrict endptr)
    410407{
    411408        assert(nptr != NULL);
     
    433430       
    434431        /* check for NaN */
    435         if (posix_strncasecmp(&nptr[i], "nan", 3) == 0) {
     432        if (strncasecmp(&nptr[i], "nan", 3) == 0) {
    436433                // FIXME: return NaN
    437434                // TODO: handle the parenthesised case
     
    445442       
    446443        /* check for Infinity */
    447         if (posix_strncasecmp(&nptr[i], "inf", 3) == 0) {
     444        if (strncasecmp(&nptr[i], "inf", 3) == 0) {
    448445                i += 3;
    449                 if (posix_strncasecmp(&nptr[i], "inity", 5) == 0) {
     446                if (strncasecmp(&nptr[i], "inity", 5) == 0) {
    450447                        i += 5;
    451448                }
Note: See TracChangeset for help on using the changeset viewer.