replace U_DRAFT/U_STABLE/U_INTERNAL with U_CAPI

Description

Original title: is U_DRAFT still useful?

... and U_STABLE, U_INTERNAL, U_OBSOLETE?

Or is #ifndef U_HIDE_DRAFT_API sufficient, and we can revert to just U_CAPI?

We tend to forget to use U_DRAFT and siblings, and then we tend to forget to change U_DRAFT to U_CAPI. These also don't work for C++.

U_DEPRECATED carries U_ATTRIBUTE_DEPRECATED which is useful, so we should keep that (and make sure to use it) – or else we just add U_ATTRIBUTE_DEPRECATED explicitly, in both C and C++.

I don't think there is anything compilers recognize for the other API states.

Activity

Show:
TracBot
July 1, 2018, 12:11 AM
Trac Comment 1 by —2013-02-27T18:52:02.757Z

Ok to revert to U_CAPI. Make a proposal for deprecated API, probably propose to revert to U_CAPI and to add U_ATTRIBUTE_DEPRECATED on both C and C++ APIs.

Fixed
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Markus Scherer

Reporter

Markus Scherer

Components

Priority

major

Time Needed

Hours

Fix versions