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

Defining interface for parsers (part 2 of N) #1925

Merged
merged 14 commits into from
Oct 28, 2018

Conversation

masatake
Copy link
Member

Continuation of #1917.
As the result of adding features randomly, the main part of ctags is a bit mess.
I would like to start the process for cleaning.

The most dirty part is that we cannot know whether an extern'ed function is for parsers or the main part itself.

I would like to split header files in the main part into two groups.

  1. common between the parsers and the main part. This is the interface for the parrsers.
  2. used only the main part.

Header files in group 2 should have following file name "foo_p.h".

The changes are so many. Therefore, I would like to do this cleaning up incrementally.

I would like to introduce ctags_ or something prefix in the symbols in the interface for the parsers.
However, splitting the header files must be the first.

The most of changes have no impact on the parsers. They just change the name of header files and the order of inclusion.

@coveralls
Copy link

coveralls commented Oct 23, 2018

Coverage Status

Coverage decreased (-0.0005%) to 84.893% when pulling f60f4e0 on masatake:cleanup-inclusions into 59c2a32 on universal-ctags:master.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
In *.h files, don't include entry.h is is really needed.
Include types.h instead. types.h exposes much limited interface
than entry.h.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
To simplify the interface between main part and parsers,
this change cleans up parse.h.

All main's private items are moved to newly introduced parse_p.h header.

Signed-off-by: Mastake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
@masatake masatake merged commit c06ea57 into universal-ctags:master Oct 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants