-
Notifications
You must be signed in to change notification settings - Fork 64
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
Update SET
, schedule and tag APIs in the C target
#1103
Conversation
.c
fileSET
APIs to lowercase and deprecate uppercase variants
I don't know the background of this change, but I would like to comment on another aspect of naming in C. "set" is a very common term and likely used in many C libraries. By using such a common function name ( |
Undefining the macros will have the side effect that |
Not being able to invoke |
Another way to avoid this conflict once and for all is to put The programmer would then access them via |
|
I agree that this is a feature. |
You're right. |
SET
APIs to lowercase and deprecate uppercase variantsSET
, schedule and tag APIs in the C target
This PR changes the
SET
,schedule
andtag
APIs in the C target. Here are the changes:Format:
old name -> new name
means that the API is renamed fromold name
tonew name
.old name
is still available in the current release, but will be removed in a future release.old name
(deprecated) means that theold name
has not been renamed, and will be removed in a future release.new name
(new) means that the API is introduced in the linked PR.C target:
SET
related APIs:SET
->lf_set
SET_ARRAY
(deprecated)SET_NEW
(deprecated)SET_NEW_ARRAY
(deprecated)SET_PRESENT
(deprecated)SET_TOKEN
->lf_set_token
SET_MODE
->lf_set_mode
lf_set_destructor
(new)lf_set_copy_constructor
(new)schedule
related APIs:schedule
->lf_schedule
schedule_int
->lf_schedule_int
schedule_token
->lf_schedule_token
schedule_copy
->lf_schedule_copy
schedule_value
->lf_schedule_value
check_deadline
->lf_check_deadline
tag_t
related APIs:compare_tags
->lf_tag_compare
get_elapsed_logical_time
->lf_time_logical_elapsed
get_logical_time
->lf_time_logical
get_current_tag
->lf_tag
get_microstep
(deprecated)get_physical_time
->lf_time_physical
get_elapsed_physical_time
->lf_time_physical_elapsed
set_physical_clock_offset
->lf_set_physical_clock_offset
get_start_time
->lf_time_start
These are copied from #1108. Please refer to that issue for details