limits.h (49545b3891a707a543faab07822d56d86c4ee73c) limits.h (b30a7779d40ef3bf129053529d232478553f1941)
1/*
2 * Copyright (c) 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 24 unchanged lines hidden (view full) ---

33 * @(#)limits.h 8.3 (Berkeley) 1/4/94
34 * $FreeBSD$
35 */
36
37#ifndef _MACHINE_LIMITS_H_
38#define _MACHINE_LIMITS_H_
39
40#define CHAR_BIT 8 /* number of bits in a char */
1/*
2 * Copyright (c) 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 24 unchanged lines hidden (view full) ---

33 * @(#)limits.h 8.3 (Berkeley) 1/4/94
34 * $FreeBSD$
35 */
36
37#ifndef _MACHINE_LIMITS_H_
38#define _MACHINE_LIMITS_H_
39
40#define CHAR_BIT 8 /* number of bits in a char */
41#define MB_LEN_MAX 6 /* Allow 31 bit UTF2 */
42
43/*
44 * According to ANSI (section 2.2.4.2), the values below must be usable by
45 * #if preprocessing directives. Additionally, the expression must have the
46 * same type as would an expression that is an object of the corresponding
47 * type converted according to the integral promotions. The subtraction for
48 * INT_MIN, etc., is so the value is not unsigned; e.g., 0x80000000 is an
49 * unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2).

--- 57 unchanged lines hidden ---
41
42/*
43 * According to ANSI (section 2.2.4.2), the values below must be usable by
44 * #if preprocessing directives. Additionally, the expression must have the
45 * same type as would an expression that is an object of the corresponding
46 * type converted according to the integral promotions. The subtraction for
47 * INT_MIN, etc., is so the value is not unsigned; e.g., 0x80000000 is an
48 * unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2).

--- 57 unchanged lines hidden ---