| Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
if vis actually wants to be a library exported symbols may need
mark up depending on the platform (eg. __declspec(dllexport)).
This needs to be hidden behind a macro because the way you export
is not the same on every platform.
I did this based on the assumption that vis.h was supposed to be
the only interface to the "vis" library. Since nobody actually
uses vis as a library I have no idea if this is actually correct.
Anyway marking up all prototypes like this allows for one to
convert all functions to static if a single translation unit is
used by inserting at the start:
#define VIS_INTERNAL static
#define VIS_EXPORT static
|
|
This would be less of an issue if vis was compiled as a single
translation unit but even then compiler may not inline them if
they are not marked as static.
|
|
|
|
This is based on the implementation of text_line_width_get
from text-motions.c. There might be an opportunity for code
sharing.
|
|
|
|
|
|
|
|
|
|
|