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

Add "deprecated" warnings for uses of old C runtime function names #10675

Merged
merged 7 commits into from
Oct 7, 2021

Commits on Oct 4, 2021

  1. Configuration menu
    Copy the full SHA
    082341c View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2021

  1. Deprecation of C macros

    Add macro CAML_DEPRECATED(oldname,newname) to emit a deprecation warning
    every time this macro is processed.
    
    Use it to produce deprecation warnings when macros from <caml/compatibility.h>
    are used.
    xavierleroy committed Oct 7, 2021
    Configuration menu
    Copy the full SHA
    e165c28 View commit details
    Browse the repository at this point in the history
  2. Extend CAML_DEPRECATE to VS2019

    dra27 authored and xavierleroy committed Oct 7, 2021
    Configuration menu
    Copy the full SHA
    f63965c View commit details
    Browse the repository at this point in the history
  3. Deprecation of C macros, continued

    Deprecate caml_aligned_malloc, caml_strdup and caml_strconcat from misc.h
    xavierleroy committed Oct 7, 2021
    Configuration menu
    Copy the full SHA
    b7ec62b View commit details
    Browse the repository at this point in the history
  4. Rename field of internal structure from alloc to allocated

    If CAML_NAME_SPACE is not defined but CAML_INTERNALS is defined,
    `alloc` is a compatibility macro that produces a warning when expanded.
    
    The renaming to `allocated` is transparent, as all uses of this field
    are through the `Chunk_alloc` macro.
    xavierleroy committed Oct 7, 2021
    Configuration menu
    Copy the full SHA
    e88608c View commit details
    Browse the repository at this point in the history
  5. Remove tests/compatibility

    This test exercises support for old, short names for runtime functions.
    Now, it just triggers the new deprecation warning for these short names,
    hence the test always fails.
    xavierleroy committed Oct 7, 2021
    Configuration menu
    Copy the full SHA
    d57a4bd View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f0bdb45 View commit details
    Browse the repository at this point in the history