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

[NFC] C code clearn up #37185

Merged
merged 1 commit into from
Aug 28, 2020
Merged

[NFC] C code clearn up #37185

merged 1 commit into from
Aug 28, 2020

Conversation

yuyichao
Copy link
Contributor

  • Remove unused functions that are not obviously kept for debugging

  • Make functions/variables not used in other files static

  • Move non-static declarations of function and variables to headers

  • Remove non-exported API and it's users from julia.h (moved to julia_internal.h)

    This removes jl_vararg_kind_t from public header. It's technically breaking.
    But since no one could actually use its value due to the function that produces this being not callable,
    this shouldn't break any actual/useful code.


For reviewing, the main things to check are,

  • The moving of vararg related functions from julia.h to julia_internal.h
  • No actual code change otherwise
  • No removal of JL_DLLEXPORT definition.
  • No removal of JL_DLLEXPORT declaration and static/inline definition from julia.h

* Remove unused functions that are not obviously kept for debugging
* Make functions/variables not used in other files static
* Move non-static declarations of function and variables to headers
* Remove non-exported API and it's users from `julia.h` (moved to `julia_internal.h`)

  This removes `jl_vararg_kind_t` from public header. It's technically breaking.
  But since no one could actually use its value due to the function that produces this being not callable,
  this shouldn't break any actual/useful code.
@JeffBezanson JeffBezanson merged commit 0b0e219 into master Aug 28, 2020
@JeffBezanson JeffBezanson deleted the yyc/c-cleanup branch August 28, 2020 19:44
simeonschaub pushed a commit to simeonschaub/julia that referenced this pull request Aug 29, 2020
* Remove unused functions that are not obviously kept for debugging
* Make functions/variables not used in other files static
* Move non-static declarations of function and variables to headers
* Remove non-exported API and it's users from `julia.h` (moved to `julia_internal.h`)

  This removes `jl_vararg_kind_t` from public header. It's technically breaking.
  But since no one could actually use its value due to the function that produces this being not callable,
  this shouldn't break any actual/useful code.
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.

None yet

2 participants