Skip to content

Needs better error handler at C code #23

@macabeus

Description

@macabeus

We are using code written in C at Scissors to resolve compress logic. This code is compiled using emscripten.
To interop the compiled code with the rest of project we have one wrapper to huffman and another wrapper to lzss.

But we have some problems in this interop:

  • since printed messages at C is only passed to console at browser when a \n is printed, some error messages (for example, line 276 at huffman.c and line 227 at lzss.c) isn't showed
  • these errors isn't handled at JS either showed to the user

These errors happens currently. I think that it happens because we are using the same filename to read and to write (see wrappers). We should test if using a different file names these errors are resolved - but we still need make these erros more noticeable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions