mowgli.h | mowgli.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli.h: Base header for libmowgli. Includes everything. | * mowgli.h: Base header for libmowgli. Includes everything. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
skipping to change at line 63 | skipping to change at line 53 | |||
#include "mowgli_logger.h" | #include "mowgli_logger.h" | |||
#include "mowgli_assert.h" | #include "mowgli_assert.h" | |||
#include "mowgli_exception.h" | #include "mowgli_exception.h" | |||
#include "mowgli_iterator.h" | #include "mowgli_iterator.h" | |||
#include "mowgli_alloc.h" | #include "mowgli_alloc.h" | |||
#include "mowgli_spinlock.h" | #include "mowgli_spinlock.h" | |||
#include "mowgli_list.h" | #include "mowgli_list.h" | |||
#include "mowgli_object_class.h" | #include "mowgli_object_class.h" | |||
#include "mowgli_object.h" | #include "mowgli_object.h" | |||
#include "mowgli_allocation_policy.h" | ||||
#include "mowgli_dictionary.h" | #include "mowgli_dictionary.h" | |||
#include "mowgli_mempool.h" | #include "mowgli_mempool.h" | |||
#include "mowgli_module.h" | #include "mowgli_module.h" | |||
#include "mowgli_queue.h" | #include "mowgli_queue.h" | |||
#include "mowgli_hash.h" | #include "mowgli_hash.h" | |||
#include "mowgli_heap.h" | #include "mowgli_heap.h" | |||
#include "mowgli_init.h" | #include "mowgli_init.h" | |||
#include "mowgli_bitvector.h" | #include "mowgli_bitvector.h" | |||
#include "mowgli_hook.h" | #include "mowgli_hook.h" | |||
#include "mowgli_signal.h" | #include "mowgli_signal.h" | |||
#include "mowgli_error_backtrace.h" | #include "mowgli_error_backtrace.h" | |||
#include "mowgli_random.h" | #include "mowgli_random.h" | |||
#include "mowgli_ioevent.h" | #include "mowgli_ioevent.h" | |||
#include "mowgli_argstack.h" | #include "mowgli_argstack.h" | |||
#include "mowgli_object_messaging.h" | #include "mowgli_object_messaging.h" | |||
#include "mowgli_object_metadata.h" | #include "mowgli_object_metadata.h" | |||
#include "mowgli_global_storage.h" | #include "mowgli_global_storage.h" | |||
#include "mowgli_string.h" | #include "mowgli_string.h" | |||
#include "mowgli_allocator.h" | ||||
MOWGLI_DECLS_END | MOWGLI_DECLS_END | |||
#endif | #endif | |||
End of changes. 3 change blocks. | ||||
14 lines changed or deleted | 5 lines changed or added | |||
mowgli_alloc.h | mowgli_alloc.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_alloc.h: Safe, portable implementations of malloc, calloc, and fr ee. | * mowgli_alloc.h: Safe, portable implementations of malloc, calloc, and fr ee. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_argstack.h | mowgli_argstack.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_argstack.h: Argument stacks. | * mowgli_argstack.h: Argument stacks. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_assert.h | mowgli_assert.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_assert.h: Assertions. | * mowgli_assert.h: Assertions. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_bitvector.h | mowgli_bitvector.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_bitvector.h: Bitvectors. | * mowgli_bitvector.h: Bitvectors. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_config.h | mowgli_config.h | |||
---|---|---|---|---|
skipping to change at line 133 | skipping to change at line 133 | |||
slash. */ | slash. */ | |||
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |||
/* Define to the address where bug reports for this package should be sent. */ | /* Define to the address where bug reports for this package should be sent. */ | |||
#define PACKAGE_BUGREPORT "bugs+libmowgli@atheme.org" | #define PACKAGE_BUGREPORT "bugs+libmowgli@atheme.org" | |||
/* Define to the full name of this package. */ | /* Define to the full name of this package. */ | |||
#define PACKAGE_NAME "libmowgli" | #define PACKAGE_NAME "libmowgli" | |||
/* Define to the full name and version of this package. */ | /* Define to the full name and version of this package. */ | |||
#define PACKAGE_STRING "libmowgli 0.4.0" | #define PACKAGE_STRING "libmowgli 0.5.0" | |||
/* Define to the one symbol short name of this package. */ | /* Define to the one symbol short name of this package. */ | |||
#define PACKAGE_TARNAME "libmowgli" | #define PACKAGE_TARNAME "libmowgli" | |||
/* Define to the version of this package. */ | /* Define to the version of this package. */ | |||
#define PACKAGE_VERSION "0.4.0" | #define PACKAGE_VERSION "0.5.0" | |||
/* Define the shared module suffix extension on your platform. */ | ||||
#define SHARED_SUFFIX ".so" | ||||
/* Define to 1 if you have the ANSI C header files. */ | /* Define to 1 if you have the ANSI C header files. */ | |||
#define STDC_HEADERS 1 | #define STDC_HEADERS 1 | |||
/* Define to empty if `const' does not conform to ANSI C. */ | /* Define to empty if `const' does not conform to ANSI C. */ | |||
/* #undef const */ | /* #undef const */ | |||
End of changes. 2 change blocks. | ||||
5 lines changed or deleted | 2 lines changed or added | |||
mowgli_dictionary.h | mowgli_dictionary.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_dictionary.h: Dictionary-based storage. | * mowgli_dictionary.h: Dictionary-based storage. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* Copyright (c) 2007 Jilles Tjoelker <jilles -at- stack.nl> | * Copyright (c) 2007 Jilles Tjoelker <jilles -at- stack.nl> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_error_backtrace.h | mowgli_error_backtrace.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_error_backtrace.h: Print errors and explain how they were reached . | * mowgli_error_backtrace.h: Print errors and explain how they were reached . | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_exception.h | mowgli_exception.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_exception.h: Exceptions. | * mowgli_exception.h: Exceptions. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_formatter.h | mowgli_formatter.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_formatter.h: Reusable formatting. | * mowgli_formatter.h: Reusable formatting. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_global_storage.h | mowgli_global_storage.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_global_storage.h: Simple key->value global storage tool. | * mowgli_global_storage.h: Simple key->value global storage tool. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_hash.h | mowgli_hash.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_hash.h: FNV-1 hashing implementation. | * mowgli_hash.h: FNV-1 hashing implementation. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_heap.h | mowgli_heap.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_heap.h: Heap allocation. | * mowgli_heap.h: Heap allocation. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* Copyright (c) 2005-2006 Theo Julienne <terminal -at- atheme.org> | * Copyright (c) 2005-2006 Theo Julienne <terminal -at- atheme.org> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
skipping to change at line 73 | skipping to change at line 63 | |||
unsigned int elem_size; | unsigned int elem_size; | |||
unsigned int mowgli_heap_elems; | unsigned int mowgli_heap_elems; | |||
unsigned int free_elems; | unsigned int free_elems; | |||
unsigned int alloc_size; | unsigned int alloc_size; | |||
unsigned int flags; | unsigned int flags; | |||
mowgli_list_t blocks; | mowgli_list_t blocks; | |||
mowgli_allocation_policy_t *allocator; | ||||
mowgli_boolean_t use_mmap; | ||||
}; | }; | |||
/* Flag for mowgli_heap_create */ | /* Flag for mowgli_heap_create */ | |||
#define BH_DONTCARE 0 | #define BH_DONTCARE 0 | |||
#define BH_NOW 1 | #define BH_NOW 1 | |||
#define BH_LAZY 0 | #define BH_LAZY 0 | |||
/* Functions for heaps */ | /* Functions for heaps */ | |||
extern mowgli_heap_t *mowgli_heap_create(size_t elem_size, size_t mowgli_he ap_elems, unsigned int flags); | extern mowgli_heap_t *mowgli_heap_create(size_t elem_size, size_t mowgli_he ap_elems, unsigned int flags); | |||
extern mowgli_heap_t *mowgli_heap_create_full(size_t elem_size, size_t mowg | ||||
li_heap_elems, unsigned int flags, | ||||
mowgli_allocation_policy_t *allocator); | ||||
extern void mowgli_heap_destroy(mowgli_heap_t *heap); | extern void mowgli_heap_destroy(mowgli_heap_t *heap); | |||
/* Functions for blocks */ | /* Functions for blocks */ | |||
extern void *mowgli_heap_alloc(mowgli_heap_t *heap); | extern void *mowgli_heap_alloc(mowgli_heap_t *heap); | |||
extern void mowgli_heap_free(mowgli_heap_t *heap, void *data); | extern void mowgli_heap_free(mowgli_heap_t *heap, void *data); | |||
#endif | #endif | |||
End of changes. 3 change blocks. | ||||
14 lines changed or deleted | 9 lines changed or added | |||
mowgli_hook.h | mowgli_hook.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_hook.h: Hooks. | * mowgli_hook.h: Hooks. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* Copyright (c) 2007 Giacomo Lozito <james -at- develia.org> | * Copyright (c) 2007 Giacomo Lozito <james -at- develia.org> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_init.h | mowgli_init.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_init.c: Initialization of libmowgli. | * mowgli_init.c: Initialization of libmowgli. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_ioevent.h | mowgli_ioevent.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_ioevent.h: Portable I/O event layer. | * mowgli_ioevent.h: Portable I/O event layer. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |||
* POSSIBILITY OF SUCH DAMAGE. | * POSSIBILITY OF SUCH DAMAGE. | |||
*/ | */ | |||
#ifndef __MOWGLI_IOEVENT_H__ | #ifndef __MOWGLI_IOEVENT_H__ | |||
#define __MOWGLI_IOEVENT_H__ | #define __MOWGLI_IOEVENT_H__ | |||
typedef struct { | typedef struct { | |||
void *impldata; /* implementation-specific data */ | int impldata; /* implementation-specific data: this is almost alwa ys an FD */ | |||
} mowgli_ioevent_handle_t; | } mowgli_ioevent_handle_t; | |||
typedef enum { | typedef enum { | |||
MOWGLI_SOURCE_FD = 1 | MOWGLI_SOURCE_FD = 1 | |||
} mowgli_ioevent_source_t; | } mowgli_ioevent_source_t; | |||
typedef struct { | typedef struct { | |||
mowgli_ioevent_source_t ev_source; | mowgli_ioevent_source_t ev_source; | |||
unsigned int ev_status; | unsigned int ev_status; | |||
int ev_object; | int ev_object; | |||
End of changes. 2 change blocks. | ||||
15 lines changed or deleted | 4 lines changed or added | |||
mowgli_iterator.h | mowgli_iterator.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_iterator.h: Iterators. | * mowgli_iterator.h: Iterators. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_list.h | mowgli_list.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_list.c: Linked lists. | * mowgli_list.c: Linked lists. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_logger.h | mowgli_logger.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_logger.h: Event and debugging message logging. | * mowgli_logger.h: Event and debugging message logging. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_mempool.h | mowgli_mempool.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_mempool.h: Memory pooling. | * mowgli_mempool.h: Memory pooling. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_module.h | mowgli_module.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_module.h: Loadable modules. | * mowgli_module.h: Loadable modules. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_object.h | mowgli_object.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_object.h: Object management. | * mowgli_object.h: Object management. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
skipping to change at line 46 | skipping to change at line 36 | |||
typedef struct { | typedef struct { | |||
char *name; | char *name; | |||
int refcount; | int refcount; | |||
mowgli_object_class_t *klass; | mowgli_object_class_t *klass; | |||
mowgli_list_t message_handlers; | mowgli_list_t message_handlers; | |||
mowgli_list_t metadata; | mowgli_list_t metadata; | |||
} mowgli_object_t; | } mowgli_object_t; | |||
extern void mowgli_object_init(mowgli_object_t *, const char *name, mowgli_ object_class_t *klass, mowgli_destructor_t destructor); | extern void mowgli_object_init(mowgli_object_t *, const char *name, mowgli_ object_class_t *klass, mowgli_destructor_t destructor); | |||
extern void mowgli_object_init_from_class(mowgli_object_t *, const char *, mowgli_object_class_t *klass); | ||||
extern void *mowgli_object_ref(void *); | extern void *mowgli_object_ref(void *); | |||
extern void mowgli_object_unref(void *); | extern void mowgli_object_unref(void *); | |||
#define mowgli_object(x) ((mowgli_object_t *) x) | #define mowgli_object(x) ((mowgli_object_t *) x) | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
14 lines changed or deleted | 4 lines changed or added | |||
mowgli_object_class.h | mowgli_object_class.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_object_class.h: Object class and type management, | * mowgli_object_class.h: Object class and type management, | |||
* cast checking. | * cast checking. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_object_messaging.h | mowgli_object_messaging.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_object_messaging.h: Object event notification and message passing . | * mowgli_object_messaging.h: Object event notification and message passing . | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_object_metadata.h | mowgli_object_metadata.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_object_metadata.h: Object metadata. | * mowgli_object_metadata.h: Object metadata. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_queue.h | mowgli_queue.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_queue.h: Double-ended queues, also known as deque. | * mowgli_queue.h: Double-ended queues, also known as deque. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_random.h | mowgli_random.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_random.h: Portable mersinne-twister based psuedo-random number ge nerator. | * mowgli_random.h: Portable mersinne-twister based psuedo-random number ge nerator. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_signal.h | mowgli_signal.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_signal.c: Safe signal handling. | * mowgli_signal.c: Safe signal handling. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_spinlock.h | mowgli_spinlock.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_spinlock.h: Spinlocks. | * mowgli_spinlock.h: Spinlocks. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||
mowgli_stdinc.h | mowgli_stdinc.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_stdinc.h: Pulls in the base system includes for libmowgli. | * mowgli_stdinc.h: Pulls in the base system includes for libmowgli. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
skipping to change at line 48 | skipping to change at line 38 | |||
#include <stdio.h> | #include <stdio.h> | |||
#include <stdlib.h> | #include <stdlib.h> | |||
#include <string.h> | #include <string.h> | |||
#include <signal.h> | #include <signal.h> | |||
#include <time.h> | #include <time.h> | |||
#include <errno.h> | #include <errno.h> | |||
#include <setjmp.h> | #include <setjmp.h> | |||
#include <sys/stat.h> | #include <sys/stat.h> | |||
#include <ctype.h> | #include <ctype.h> | |||
#ifdef HAVE_GETOPT_H | ||||
#include <getopt.h> | ||||
#endif | ||||
#ifdef HAVE_LINK_H | ||||
#include <link.h> | ||||
#endif | ||||
/* socket stuff */ | /* socket stuff */ | |||
#ifndef _WIN32 | #ifndef _WIN32 | |||
# include <netdb.h> | # include <netdb.h> | |||
# include <netinet/in.h> | # include <netinet/in.h> | |||
# include <unistd.h> | # include <unistd.h> | |||
# include <grp.h> | # include <grp.h> | |||
# include <sys/time.h> | # include <sys/time.h> | |||
# include <sys/wait.h> | # include <sys/wait.h> | |||
# include <sys/resource.h> | # include <sys/resource.h> | |||
# include <sys/socket.h> | # include <sys/socket.h> | |||
End of changes. 2 change blocks. | ||||
22 lines changed or deleted | 3 lines changed or added | |||
mowgli_string.h | mowgli_string.h | |||
---|---|---|---|---|
/* | /* | |||
* libmowgli: A collection of useful routines for programming. | * libmowgli: A collection of useful routines for programming. | |||
* mowgli_string.h: Immutable string buffers with cheap manipulation. | * mowgli_string.h: Immutable string buffers with cheap manipulation. | |||
* | * | |||
* Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | * Copyright (c) 2007 William Pitcock <nenolod -at- sacredspiral.co.uk> | |||
* Copyright (c) 2007 Pippijn van Steenhoven <pippijn -at- one09.net> | * Copyright (c) 2007 Pippijn van Steenhoven <pippijn -at- one09.net> | |||
* | * | |||
* Redistribution and use in source and binary forms, with or without | * Permission to use, copy, modify, and/or distribute this software for any | |||
* modification, are permitted provided that the following conditions are | * purpose with or without fee is hereby granted, provided that the above | |||
* met: | * copyright notice and this permission notice is present in all copies. | |||
* | ||||
* 1. Redistributions of source code must retain the above copyright notice | ||||
, | ||||
* this list of conditions and the following disclaimer. | ||||
* | ||||
* 2. Redistributions in binary form must reproduce the above copyright | ||||
* notice, this list of conditions and the following disclaimer in the | ||||
* documentation and/or other materials provided with the distribution. | ||||
* | ||||
* 3. The name of the author may not be used to endorse or promote products | ||||
* derived from this software without specific prior written permission. | ||||
* | * | |||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |||
End of changes. 1 change blocks. | ||||
14 lines changed or deleted | 3 lines changed or added | |||