| 1 |
libmowgli - A useful collection of routines for programming |
| 2 |
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |
| 3 |
|
| 4 |
libmowgli is a free but copyrighted library, check COPYING for details. |
| 5 |
|
| 6 |
|
| 7 |
Contents |
| 8 |
-------- |
| 9 |
|
| 10 |
1. What is libmowgli? |
| 11 |
2. Installation |
| 12 |
3. Bug Reports |
| 13 |
|
| 14 |
|
| 15 |
What is libmowgli? |
| 16 |
------------------ |
| 17 |
|
| 18 |
libmowgli is a class library containing performance and usability oriented |
| 19 |
extensions to C. |
| 20 |
|
| 21 |
It contains: |
| 22 |
- mowgli.alloc: A safe wrapper around malloc/free. |
| 23 |
- mowgli.argstack: Safe serialization of valists. |
| 24 |
- mowgli.assert: Various assertion routines that can be used. |
| 25 |
- mowgli.bitvector: Bitmasks with an unlimited level of precision. |
| 26 |
- mowgli.patricia: A dictionary implementation based on a modified |
| 27 |
patricia tree algorithm (uses nibbles instead of |
| 28 |
bits for branching). |
| 29 |
- mowgli.error_backtrace: Provide feedback to users on what caused |
| 30 |
the error they are recieving. |
| 31 |
- mowgli.formatter: A simple token formatter which is sometimes useful. |
| 32 |
- mowgli.global_storage: A simple global storage library. |
| 33 |
- mowgli.hash: A portable implementation of the FNV-1 hash. |
| 34 |
- mowgli.heap: An optimistic heap-based memory allocator |
| 35 |
- mowgli.hook: A simple hooks API you can use for your application, |
| 36 |
which allows for hooks to provide both application |
| 37 |
data and user data. |
| 38 |
- mowgli.json: A simple, flexible, reentrant JSON parser |
| 39 |
- mowgli.list: A high performance linked lists implementation with |
| 40 |
O(1) scalability for most common operations. |
| 41 |
- mowgli.logger: An internal class for handling logging of exceptions. |
| 42 |
- mowgli.module: A wrapper around dlopen(3) and dlsym(3). |
| 43 |
- mowgli.object: A simple class which provides reference counted |
| 44 |
pointers and polymorphism of structs. |
| 45 |
- mowgli.object_class: Classing and subclassing for objects. |
| 46 |
- mowgli.object_metadata: Metadata for objects. |
| 47 |
- mowgli.object_messaging: Messaging and signalling for objects. |
| 48 |
- mowgli.queue: A simple class which implements double-ended queues. |
| 49 |
- mowgli.random: A high performance psuedo-random number generator. |
| 50 |
- mowgli.signal: A wrapper for sigaction(2). |
| 51 |
- mowgli.eventloop: A portable event loop implementation. |
| 52 |
- mowgli.vio: An abstraction layer for I/O. |
| 53 |
- mowgli.linebuf: A line-buffering implementation for clients. |
| 54 |
- mowgli.thread: Minimal thread abstraction. |
| 55 |
|
| 56 |
More classes will be added with later releases. Please use GitHub's |
| 57 |
issue tracker if you have suggestions on what should be implemented. |
| 58 |
|
| 59 |
Installation |
| 60 |
------------ |
| 61 |
|
| 62 |
Installation is fairly typical: |
| 63 |
|
| 64 |
$ ./configure |
| 65 |
$ make |
| 66 |
$ sudo make install |
| 67 |
|
| 68 |
(If sudo isn't on your system, su to root. On GNU systems you can even do |
| 69 |
"su -c 'make install'", which is basically the same thing as using sudo.) |
| 70 |
|
| 71 |
|
| 72 |
Bug Reports |
| 73 |
----------- |
| 74 |
|
| 75 |
Bugs can be reported using the GitHub issue tracker on the libmowgli-2 |
| 76 |
project page: https://github.com/atheme/libmowgli-2/issues |
| 77 |
|