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

Remove ext/ folder, use macros instead #36

Open
duarm opened this issue Dec 7, 2023 · 0 comments
Open

Remove ext/ folder, use macros instead #36

duarm opened this issue Dec 7, 2023 · 0 comments
Labels
feature request Feature requests

Comments

@duarm
Copy link

duarm commented Dec 7, 2023

Feature Request Template

What is the nature of this request?

  • Change in standards

Is your feature request related to a problem? Please describe.

I always use CMC_EXT_INIT. So I generate a collection like this

#define V struct timeline
#define PFX timeline_list
#define SNAME timeline_list
#define CMC_EXT_INIT
#include <lib/ds/list/code.h>
#include <lib/ds/list/ext/code.h>
#include <lib/ds/cor/undef.h>

which is very verbose, I also need a copy of this on the header in order to share declarations.

Describe the solution you'd like

Ditch the ext/ folder, e.g· merge everything inside list/ext/code.h into list/code.h, list/header.h etc... and activate the feature with a macro. Like this

#define V struct timeline
#define PFX timeline_list
#define SNAME timeline_list
#define CMC_EXT_INIT
#include <lib/ds/list/code.h>
#include <lib/ds/cor/undef.h>

What is worth being an extension or included by default is another discussion, but for this particular case of CMC_EXT_INIT #37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature requests
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant