antmicro / zynq-mkbootimage

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

Unify error codes #18

Closed kiryk closed 2 years ago

kiryk commented 2 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.