antmicro / zynq-mkbootimage

An open source replacement of the Xilinx bootgen application.
BSD 2-Clause "Simplified" License
99 stars 49 forks source link

Unify error codes #18

Closed kiryk closed 3 years ago

kiryk commented 3 years ago

All error codes have been defined in src/common.h and are used by the whole project. The codes are values of the error type and so all routines that can fail return that type now.

Since errors of different types always have different codes as well, they can be used as exit status.