mblocal.h revision 475b496bc008381e64c802250441cc256622ce91
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Copyright (c) 2004 Tim J. Robbins.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * All rights reserved.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Redistribution and use in source and binary forms, with or without
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * modification, are permitted provided that the following conditions
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * are met:
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * 1. Redistributions of source code must retain the above copyright
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * notice, this list of conditions and the following disclaimer.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * 2. Redistributions in binary form must reproduce the above copyright
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * notice, this list of conditions and the following disclaimer in the
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * documentation and/or other materials provided with the distribution.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * SUCH DAMAGE.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Rune initialization function prototypes.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Conversion function pointers for current encoding.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl const char *_RESTRICT_KYWD, size_t, mbstate_t *_RESTRICT_KYWD);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl const char **_RESTRICT_KYWD, size_t, size_t, mbstate_t *_RESTRICT_KYWD);
9512fe850e98fdd448c638ca63fdd92a8a510255ahlextern size_t (*__wcrtomb)(char *_RESTRICT_KYWD, wchar_t,
9512fe850e98fdd448c638ca63fdd92a8a510255ahl const wchar_t **_RESTRICT_KYWD, size_t, size_t, mbstate_t *_RESTRICT_KYWD);
9512fe850e98fdd448c638ca63fdd92a8a510255ahlsize_t __mbsnrtowcs_std(wchar_t *_RESTRICT_KYWD, const char **_RESTRICT_KYWD,
9512fe850e98fdd448c638ca63fdd92a8a510255ahlsize_t __wcsnrtombs_std(char *_RESTRICT_KYWD, const wchar_t **_RESTRICT_KYWD,
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#define MIN(a, b) ((a) < (b) ? (a) : (b))
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#endif /* _MBLOCAL_H_ */