Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The source code is not significantly larger because the function signatures do not change, and neither do functions that neither detect nor handle the error.
  • Allocated resources must still be freed despite the error.
  • The application must call setjmp() before invoking application-independent code.
  • Signals are not necessarily preserved through longjmp() calls.
  • The use of setjmp()/longjmp() bypasses the normal function call and return discipline.
  • Any function that allocates resources must ensure they are freed in cases where errors occur.

Summary

The following table below summarizes the characteristics of error reporting and detection mechanisms.

...