1984not-GmbH / molch

An implementation of the axolotl ratchet based on libsodium.
Other
23 stars 3 forks source link

New return status datatype for returning data and propagating errors #48

Closed FSMaxB closed 8 years ago

FSMaxB commented 8 years ago

This implements a datatype that can propagate errors and be used to return a status. Based on the idea of #7.

The idea is that every function returns a struct that contains the current status and optionally data via a data pointer and/or a stack of heap allocated error messages. This allows building a trace.

Helper macros are provided that work with the current concept of goto cleanup; and status variables. Those are throw, on_error and throw_on_error.

FSMaxB commented 8 years ago

TODO:

FSMaxB commented 8 years ago

The ARMv7 failures are related to a problem in my build machine, it's fixed now.