Clean up return code types

* Remove dds_return_t / dds_retcode_t distinction (now there is only
  dds_return_t and all error codes are always negative)

* Remove Q_ERR_... error codes and replace them by DDS_RETCODE_...
  ones so that there is only one set of error codes

* Replace a whole bunch "int" return types that were used to return
  Q_ERR_... codes by "dds_return_t" return types

Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
Erik Boasson 2019-05-23 16:51:43 +02:00 committed by eboasson
parent a652ecb78e
commit 19aec98b8a
126 changed files with 1565 additions and 1722 deletions

View file

@ -119,7 +119,7 @@ bool dds_err_check (dds_return_t err, unsigned flags, const char *where);
#define DDS_CHECK_FAIL 0x02
#define DDS_CHECK_EXIT 0x04
#define dds_err_str(x) (dds_strretcode(dds_err_nr(x)))
#define dds_err_str(x) (dds_strretcode(x))
#define DDS_TO_STRING(n) #n
#define DDS_INT_TO_STRING(n) DDS_TO_STRING(n)

View file

@ -2792,7 +2792,7 @@ int main(int argc, char *argv[]) {
ddsrt_threadattr_t attr;
ddsrt_threadattr_init(&attr);
dds_retcode_t osres;
dds_return_t osres;
if (want_writer) {
for (i = 0; i <= specidx; i++) {