Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What does DUMA_FAIL_ENV mean? #171

Open
sdbbs opened this issue Oct 11, 2021 · 1 comment
Open

What does DUMA_FAIL_ENV mean? #171

sdbbs opened this issue Oct 11, 2021 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@sdbbs
Copy link

sdbbs commented Oct 11, 2021

In gdb (under Cygwin), I got:

[Switching to Thread 13604.0x396c]
0x000000010056b969 in _duma_allocate (alignment=1, userSize=32, protectBelow=0, fillByte=0, protectAllocList=1,
    allocator=EFA_CALLOC, fail=DUMA_FAIL_ENV,
    filename=0x1005f21c0 <unknown_file> "UNKNOWN (use #include \"duma.h\")", lineno=0) at duma.c:1435
1435              if ( DUMAST_EMPTY == slot->state )

Since I couldn't quite figure out what DUMA_FAIL_ENV, I did a grep -r DUMA_FAIL_ENV . in the source directory, but I could find no mentions of it in common language; best I could find is this in duma.h:

    enum _DUMA_FailReturn
    {
      DUMA_FAIL_NULL
    , DUMA_FAIL_ENV
    };

I could intepret DUMA_FAIL_NULL as "the failure that happens, when you try to allocate memory, but get a null pointer instead, which means the memory allocation failed" - but I have a hard time understanding what DUMA_FAIL_ENV means.

Could anyone make a note about what the meaning of DUMA_FAIL_ENV is?

@johnsonjh johnsonjh self-assigned this Apr 24, 2022
@johnsonjh johnsonjh added the documentation Improvements or additions to documentation label Apr 24, 2022
@johnsonjh
Copy link
Owner

Will update documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants