xref: /freebsd/sys/contrib/zstd/lib/deprecated/zbuff_common.c (revision 5ff13fbc199bdf5f0572845351c68ee5ca828e71)
10c16b537SWarner Losh /*
2*5ff13fbcSAllan Jude  * Copyright (c) Yann Collet, Facebook, Inc.
30c16b537SWarner Losh  * All rights reserved.
40c16b537SWarner Losh  *
50c16b537SWarner Losh  * This source code is licensed under both the BSD-style license (found in the
60c16b537SWarner Losh  * LICENSE file in the root directory of this source tree) and the GPLv2 (found
70c16b537SWarner Losh  * in the COPYING file in the root directory of this source tree).
80c16b537SWarner Losh  * You may select, at your option, one of the above-listed licenses.
90c16b537SWarner Losh  */
100c16b537SWarner Losh 
110c16b537SWarner Losh /*-*************************************
120c16b537SWarner Losh *  Dependencies
130c16b537SWarner Losh ***************************************/
1437f1f268SConrad Meyer #include "../common/error_private.h"
150c16b537SWarner Losh #include "zbuff.h"
160c16b537SWarner Losh 
170c16b537SWarner Losh /*-****************************************
180c16b537SWarner Losh *  ZBUFF Error Management  (deprecated)
190c16b537SWarner Losh ******************************************/
200c16b537SWarner Losh 
210c16b537SWarner Losh /*! ZBUFF_isError() :
220c16b537SWarner Losh *   tells if a return value is an error code */
ZBUFF_isError(size_t errorCode)230c16b537SWarner Losh unsigned ZBUFF_isError(size_t errorCode) { return ERR_isError(errorCode); }
240c16b537SWarner Losh /*! ZBUFF_getErrorName() :
250c16b537SWarner Losh *   provides error code string from function result (useful for debugging) */
ZBUFF_getErrorName(size_t errorCode)260c16b537SWarner Losh const char* ZBUFF_getErrorName(size_t errorCode) { return ERR_getErrorName(errorCode); }
27