ObjFW  Artifact [c923eabd0c]

Artifact c923eabd0cfc48468e7e397e4b0195a35f21ef7c023058c19bd615a29b77834c:

  • File src/crc32.h — part of check-in [c5b3c8ea87] at 2017-05-14 14:18:26 on branch trunk — Add nullability annotations to remaining headers

    This explicitly excludes threading.h, as adding nullability annotations
    requires adding them everywhere in the file. However, the types in there
    are implementation defined, and might be pointers or not: Adding none
    when it's a pointer would be an error, and adding one when it's not a
    pointer would be an error, too. (user: js, size: 893) [annotate] [blame] [check-ins using]


/*
 * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017
 *   Jonathan Schleifer <js@heap.zone>
 *
 * All rights reserved.
 *
 * This file is part of ObjFW. It may be distributed under the terms of the
 * Q Public License 1.0, which can be found in the file LICENSE.QPL included in
 * the packaging of this file.
 *
 * Alternatively, it may be distributed under the terms of the GNU General
 * Public License, either version 2 or 3, which can be found in the file
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#ifndef __STDC_LIMIT_MACROS
# define __STDC_LIMIT_MACROS
#endif
#ifndef __STDC_CONSTANT_MACROS
# define __STDC_CONSTANT_MACROS
#endif

#import "macros.h"

#ifdef __cplusplus
extern "C" {
#endif
extern uint32_t of_crc32(uint32_t crc, unsigned char *_Nonnull bytes,
    size_t length);
#ifdef __cplusplus
}
#endif