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

issue with mqtt lib #119

Open
trollkarlen opened this issue Apr 5, 2023 · 0 comments
Open

issue with mqtt lib #119

trollkarlen opened this issue Apr 5, 2023 · 0 comments
Labels
Bug Something isn't working

Comments

@trollkarlen
Copy link
Contributor

Tried convert paho without success
https://github.com/eclipse/paho.mqtt.c

$ v run $HOME/.vmodules/c2v -d trace_verbose paho.mqtt.c/src
C to V translator 0.3.1
"paho.mqtt.c/src" is a directory, processing all C files in it recursively...

  translating ./MQTTProtocolClient.c ... C++ top level
&Node{
    id: '0x7fc2c18c4e98'
    kind_str: 'EmptyDecl'
    location: NodeLocation{
        offset: 19335
        file: ''
        line: 425
        source_file: SourceFile{
            path: './Socket.h'
        }
        spelling_file: SourceFile{
            path: ''
        }
    }
    range: Range{
        begin: Begin{
            spelling_file: SourceFile{
                path: ''
            }
        }
    }
    previous_declaration: ''
    name: ''
    ast_type: AstJsonType{
        desugared_qualified: ''
        qualified: ''
    }
    class_modifier: ''
    tags: ''
    initialization_type: ''
    value: ''
    value_number: 0
    opcode: ''
    ast_argument_type: AstJsonType{
        desugared_qualified: ''
        qualified: ''
    }
    array_filler: []
    declaration_id: ''
    label_id: ''
    is_postfix: false
    ast_line_nr: 0
    inner: []
    ref_declaration: RefDeclarationNode{
        kind_str: ''
        name: ''
        kind: BAD
    }
    kind: BAD
    current_child_id: 0
    is_builtin_type: false
    redeclarations_count: 0
}

Added a print because the error messages before this was very very sparse :)
The error messages when failing here can be improved.

@ArtemkaKun ArtemkaKun added the Bug Something isn't working label Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants