Changeset c7a67c4 in mainline


Ignore:
Timestamp:
2017-05-22T17:55:43Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b942a66
Parents:
e540bc87
Message:

libc should provide limits.h from the C std. Here's a first crude approximation.

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • tools/autotool.py

    re540bc87 rc7a67c4  
    934934                                {'type': 'long int', 'tag': 'LONG', 'strc': '"l"', 'conc': '"L"'},
    935935                                {'type': 'int', 'tag': 'INT', 'strc': '""', 'conc': '""'},
    936                                 {'type': 'short int', 'tag': 'SHORT', 'strc': '"h"', 'conc': '"@"'},
     936                                {'type': 'short int', 'tag': 'SHRT', 'strc': '"h"', 'conc': '"@"'},
    937937                                {'type': 'char', 'tag': 'CHAR', 'strc': '"hh"', 'conc': '"@@"'}
    938938                        ],
     
    946946                int128 = probe_int128(common)
    947947               
    948                 maps = detect_sizes(probe, [1, 2, 4, 8], ['CHAR', 'SHORT', 'INT', 'LONG', 'LLONG'], ['LONG_DOUBLE', 'DOUBLE', 'FLOAT'])
     948                maps = detect_sizes(probe, [1, 2, 4, 8], ['CHAR', 'SHRT', 'INT', 'LONG', 'LLONG'], ['LONG_DOUBLE', 'DOUBLE', 'FLOAT'])
    949949               
    950950        finally:
  • uspace/lib/posix/include/posix/limits.h

    re540bc87 rc7a67c4  
    3636#define POSIX_LIMITS_H_
    3737
    38 #include "stdint.h"
    39 #include "libc/sys/types.h"
    40 
    41 #undef SHRT_MIN
    42 #undef SHRT_MAX
    43 #undef USHRT_MAX
    44 #define SHRT_MIN SHORT_MIN
    45 #define SHRT_MAX SHORT_MAX
    46 #define USHRT_MAX USHORT_MAX
     38#include "posix/stdint.h"
     39#include "libc/limits.h"
    4740
    4841#undef PATH_MAX
Note: See TracChangeset for help on using the changeset viewer.