mirror of
				https://github.com/osmarks/ngircd.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	Reformatted some comments.
This commit is contained in:
		| @@ -8,7 +8,7 @@ | |||||||
|  * libarray - dynamically allocate arrays. |  * libarray - dynamically allocate arrays. | ||||||
|  * Copyright (c) 2005 Florian Westphal (westphal@foo.fh-furtwangen.de) |  * Copyright (c) 2005 Florian Westphal (westphal@foo.fh-furtwangen.de) | ||||||
|  * |  * | ||||||
|  * $Id: array.h,v 1.1 2005/07/07 18:38:14 fw Exp $ |  * $Id: array.h,v 1.2 2005/07/14 09:11:38 alex Exp $ | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| #ifndef array_h_included | #ifndef array_h_included | ||||||
| @@ -25,7 +25,6 @@ typedef struct { | |||||||
| /* allocated: mem != NULL, used >= 0 && used <= allocated, allocated > 0 | /* allocated: mem != NULL, used >= 0 && used <= allocated, allocated > 0 | ||||||
|    unallocated: mem == NULL, allocated == 0, used == 0 */ |    unallocated: mem == NULL, allocated == 0, used == 0 */ | ||||||
|  |  | ||||||
|  |  | ||||||
| #define array_unallocated(x)	(array_bytes(x)==0) | #define array_unallocated(x)	(array_bytes(x)==0) | ||||||
| #define INIT_ARRAY		{ NULL, 0, 0 } | #define INIT_ARRAY		{ NULL, 0, 0 } | ||||||
|  |  | ||||||
| @@ -40,8 +39,8 @@ extern void * array_alloc PARAMS((array *a, unsigned int size, unsigned int pos) | |||||||
| extern unsigned int array_length PARAMS((const array* const a, unsigned int elemsize)); | extern unsigned int array_length PARAMS((const array* const a, unsigned int elemsize)); | ||||||
|  |  | ||||||
| /* _copy functions: copy src to dest. | /* _copy functions: copy src to dest. | ||||||
| return true if OK, else false. (e.g. realloc failure, invalid src/dest array, ..) |    return true if OK, else false (e. g. realloc failure, invalid src/dest | ||||||
| In that case dest is left unchanged. */ |    array, ...). In that case dest is left unchanged. */ | ||||||
|  |  | ||||||
| /* copy array src to dest */ | /* copy array src to dest */ | ||||||
| extern bool array_copy PARAMS((array* dest, const array* const src)); | extern bool array_copy PARAMS((array* dest, const array* const src)); | ||||||
| @@ -53,8 +52,8 @@ extern bool array_copyb PARAMS((array* dest, const char* src, unsigned int len)) | |||||||
| extern bool array_copys PARAMS((array* dest, const char* src)); | extern bool array_copys PARAMS((array* dest, const char* src)); | ||||||
|  |  | ||||||
| /* _cat functions: append src to dest. | /* _cat functions: append src to dest. | ||||||
| return true if OK, else false. (e.g. realloc failure, invalid src/dest array, ..) |    return true if OK, else false (e. g. realloc failure, invalid src/dest | ||||||
| In that case dest is left unchanged. */ |    array, ...). In that case dest is left unchanged. */ | ||||||
|  |  | ||||||
| /* append len bytes from src to array dest. */ | /* append len bytes from src to array dest. */ | ||||||
| extern bool array_catb PARAMS((array* dest, const char* src, unsigned int len)); | extern bool array_catb PARAMS((array* dest, const char* src, unsigned int len)); | ||||||
| @@ -92,4 +91,5 @@ extern void array_truncate PARAMS((array* a, unsigned int membersize, unsigned i | |||||||
| extern void array_moveleft PARAMS((array* a, unsigned int membersize, unsigned int pos)); | extern void array_moveleft PARAMS((array* a, unsigned int membersize, unsigned int pos)); | ||||||
|  |  | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| /* -eof- */ | /* -eof- */ | ||||||
|   | |||||||
| @@ -7,7 +7,7 @@ | |||||||
|  * |  * | ||||||
|  * I/O abstraction interface header |  * I/O abstraction interface header | ||||||
|  * |  * | ||||||
|  * $Id: io.h,v 1.2 2005/07/09 20:22:29 fw Exp $ |  * $Id: io.h,v 1.3 2005/07/14 09:15:58 alex Exp $ | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| #ifndef io_H_inclucded | #ifndef io_H_inclucded | ||||||
| @@ -19,8 +19,9 @@ | |||||||
| #define IO_WANTREAD	1 | #define IO_WANTREAD	1 | ||||||
| #define IO_WANTWRITE	2 | #define IO_WANTWRITE	2 | ||||||
|  |  | ||||||
| /* init library.  sets up epoll/kqueue descriptors and tries to allocate space for ioevlen file descriptors. | /* init library. | ||||||
|    ioevlen is just the _initial_ size, not a limit. */ |    sets up epoll/kqueue descriptors and tries to allocate space for ioevlen | ||||||
|  |    file descriptors. ioevlen is just the _initial_ size, not a limit. */ | ||||||
| bool io_library_init PARAMS((unsigned int ioevlen)); | bool io_library_init PARAMS((unsigned int ioevlen)); | ||||||
|  |  | ||||||
| /* shutdown and free all internal data structures */ | /* shutdown and free all internal data structures */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Alexander Barton
					Alexander Barton