Use a shorter/simpler license convention, stops the header taking so much space. Follow the SPDX license specification: https://spdx.org/licenses - C/C++/objc/objc++ - Python - Shell Scripts - CMake, GNUmakefile While most of the source tree has been included - `./extern/` was left out. - `./intern/cycles` & `./intern/atomic` are also excluded because they use different header conventions. doc/license/SPDX-license-identifiers.txt has been added to list SPDX all used identifiers. See P2788 for the script that automated these edits. Reviewed By: brecht, mont29, sergey Ref D14069
		
			
				
	
	
		
			50 lines
		
	
	
		
			914 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			914 B
		
	
	
	
		
			C++
		
	
	
	
	
	
/* SPDX-License-Identifier: GPL-2.0-or-later
 | 
						|
 * Copyright 2013 Blender Foundation. All rights reserved. */
 | 
						|
 | 
						|
#pragma once
 | 
						|
 | 
						|
/** \file
 | 
						|
 * \ingroup bli
 | 
						|
 */
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
extern "C" {
 | 
						|
#endif
 | 
						|
 | 
						|
/**
 | 
						|
 * \note keep \a sort_value first,
 | 
						|
 * so cmp functions can be reused.
 | 
						|
 */
 | 
						|
struct SortPtrByFloat {
 | 
						|
  float sort_value;
 | 
						|
  void *data;
 | 
						|
};
 | 
						|
 | 
						|
struct SortIntByFloat {
 | 
						|
  float sort_value;
 | 
						|
  int data;
 | 
						|
};
 | 
						|
 | 
						|
struct SortPtrByInt {
 | 
						|
  int sort_value;
 | 
						|
  void *data;
 | 
						|
};
 | 
						|
 | 
						|
struct SortIntByInt {
 | 
						|
  int sort_value;
 | 
						|
  int data;
 | 
						|
};
 | 
						|
 | 
						|
int BLI_sortutil_cmp_float(const void *a_, const void *b_);
 | 
						|
int BLI_sortutil_cmp_float_reverse(const void *a_, const void *b_);
 | 
						|
 | 
						|
int BLI_sortutil_cmp_int(const void *a_, const void *b_);
 | 
						|
int BLI_sortutil_cmp_int_reverse(const void *a_, const void *b_);
 | 
						|
 | 
						|
int BLI_sortutil_cmp_ptr(const void *a_, const void *b_);
 | 
						|
int BLI_sortutil_cmp_ptr_reverse(const void *a_, const void *b_);
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
}
 | 
						|
#endif
 |