Skip to content

Name collisions for functions without prefix #754

Open
@KaruroChori

Description

@KaruroChori

There are several functions in qjs which are too easy to collide as:

  • they are not static
  • they are not namespaced with a prefix.

There are two specific offenders I encountered, pstrcat & pstrcpy, both colliding with their equivalent implementations in tinycc. There are few more which have just too much of a generic name, like has_suffix.
All these "offenders" are declared in cutils.h and implemented in cutils.c.

My suggestion would be for these functions to be scoped with some prefix, as I don't think they are really meant to be used from outside qjs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions