Skip to content

Problems in naming #436

Description

@EugeneDar

https://github.com/polystat/c2eo/blob/master/project/src/transpiler/main.cpp here we have package_name variable, but I'm not sure that's true.

This variable changed only here:

package_name = filename.substr(0, filename.size() - 3);
if (package_name.rfind('/') != std::string::npos) {
    package_name = package_name.substr(package_name.rfind('/') + 1);
}

For example I would like to run c2eo <dist.c> out.eo. Then package_name will equal "out", but it's name of file, not of the package.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions