diff options
author | midipix <writeonce@midipix.org> | 2019-01-01 05:30:34 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-01-01 05:37:59 -0500 |
commit | b6f827d6939397e99d72b1dc8480c72364d8905c (patch) | |
tree | 74c198de06f27fa0e7fd8649838924ead5a879a6 /src/internal/sofort_errinfo_impl.c | |
parent | b95a5b04a4a3b6bf0b86080abce1436f0b7aee1c (diff) | |
download | sofort-b6f827d6939397e99d72b1dc8480c72364d8905c.tar.bz2 sofort-b6f827d6939397e99d72b1dc8480c72364d8905c.tar.xz |
sofort: split-up: keep build-system elements, move extras to sofortex.
Diffstat (limited to 'src/internal/sofort_errinfo_impl.c')
-rw-r--r-- | src/internal/sofort_errinfo_impl.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/internal/sofort_errinfo_impl.c b/src/internal/sofort_errinfo_impl.c deleted file mode 100644 index 31b008a..0000000 --- a/src/internal/sofort_errinfo_impl.c +++ /dev/null @@ -1,39 +0,0 @@ -#include <sofort/sofort.h> -#include "sofort_driver_impl.h" -#include "sofort_errinfo_impl.h" - -int sfrt_record_error( - const struct sfrt_driver_ctx * dctx, - int esyscode, - int elibcode, - const char * efunction, - int eline, - unsigned eflags, - void * eany) -{ - struct sfrt_driver_ctx_impl * ictx; - struct sfrt_error_info * erri; - - ictx = sfrt_get_driver_ictx(dctx); - - if (ictx->errinfp == ictx->erricap) - return -1; - - *ictx->errinfp = &ictx->erribuf[ictx->errinfp - ictx->erriptr]; - erri = *ictx->errinfp; - - erri->euctx = ictx->euctx; - erri->eunit = ictx->eunit; - - erri->edctx = dctx; - erri->esyscode = esyscode; - erri->elibcode = elibcode; - erri->efunction = efunction; - erri->eline = eline; - erri->eflags = eflags; - erri->eany = eany; - - ictx->errinfp++; - - return -1; -} |