Changeset 002fd5f in mainline for uspace/lib/c


Ignore:
Timestamp:
2017-10-24T04:54:05Z (8 years ago)
Author:
jzr <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b639d56
Parents:
9ddcb0b
Message:

Replace parts of system headers with <_bits/…>.

Location:
uspace/lib/c
Files:
40 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/arch/ia64/include/libarch/faddr.h

    r9ddcb0b r002fd5f  
    3838#include <types/common.h>
    3939
     40typedef struct {
     41        uintptr_t fnc;
     42        uintptr_t gp;
     43} __attribute__((may_alias)) fncptr_t;
     44
    4045/**
    4146 *
  • uspace/lib/c/generic/str.c

    r9ddcb0b r002fd5f  
    4848
    4949/** Check the condition if wchar_t is signed */
    50 #ifdef WCHAR_IS_UNSIGNED
     50#ifdef __WCHAR_UNSIGNED__
    5151        #define WCHAR_SIGNED_CHECK(cond)  (true)
    5252#else
  • uspace/lib/c/include/inttypes.h

    r9ddcb0b r002fd5f  
    3636#define LIBC_INTTYPES_H_
    3737
    38 #include <libarch/inttypes.h>
     38// TODO: Remove
     39#include <_bits/all.h>
     40
     41#include <_bits/inttypes.h>
    3942
    4043#endif
  • uspace/lib/c/include/limits.h

    r9ddcb0b r002fd5f  
    3636#define LIBC_LIMITS_H_
    3737
    38 /* XXX Make this more accurate */
    39 #include <stdint.h>
    40 #include <libarch/stdint.h>
     38#include <_bits/limits.h>
    4139
    4240#endif
  • uspace/lib/c/include/stddef.h

    r9ddcb0b r002fd5f  
    3636#define LIBC_STDDEF_H_
    3737
    38 #include <libarch/stddef.h>
     38// TODO: Remove
     39#include <_bits/all.h>
     40
     41#include <_bits/size_t.h>
     42#include <_bits/ptrdiff_t.h>
     43#include <_bits/wchar_t.h>
    3944
    4045#ifndef NULL
  • uspace/lib/c/include/stdint.h

    r9ddcb0b r002fd5f  
    3636#define LIBC_STDINT_H_
    3737
    38 #define INT8_MIN  INT8_C(0x80)
    39 #define INT8_MAX  INT8_C(0x7F)
     38// TODO: Remove
     39#include <_bits/all.h>
    4040
    41 #define UINT8_MIN  UINT8_C(0)
    42 #define UINT8_MAX  UINT8_C(0xFF)
    43 
    44 #define INT16_MIN  INT16_C(0x8000)
    45 #define INT16_MAX  INT16_C(0x7FFF)
    46 
    47 #define UINT16_MIN  UINT16_C(0)
    48 #define UINT16_MAX  UINT16_C(0xFFFF)
    49 
    50 #define INT32_MIN  INT32_C(0x80000000)
    51 #define INT32_MAX  INT32_C(0x7FFFFFFF)
    52 
    53 #define UINT32_MIN  UINT32_C(0)
    54 #define UINT32_MAX  UINT32_C(0xFFFFFFFF)
    55 
    56 #define INT64_MIN  INT64_C(0x8000000000000000)
    57 #define INT64_MAX  INT64_C(0x7FFFFFFFFFFFFFFF)
    58 
    59 #define UINT64_MIN  UINT64_C(0)
    60 #define UINT64_MAX  UINT64_C(0xFFFFFFFFFFFFFFFF)
    61 
    62 #include <libarch/stdint.h>
     41#include <_bits/stdint.h>
    6342
    6443#endif
  • uspace/lib/c/include/types/common.h

    r9ddcb0b r002fd5f  
    3636#define LIBC_TYPES_COMMON_H_
    3737
    38 #include <libarch/types.h>
     38#if __SIZEOF_POINTER__ == 4
     39#define __32_BITS__
     40#elif __SIZEOF_POINTER__ == 8
     41#define __64_BITS__
     42#else
     43#error __SIZEOF_POINTER__ is not defined.
     44#endif
     45
     46#include <_bits/all.h>
    3947
    4048#endif
Note: See TracChangeset for help on using the changeset viewer.