[parrot/parrot] a6ef19: Deprecate all exported non Parrot_ functions, #112...

GitHub noreply at github.com
Mon Jan 12 13:07:13 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/parrot/parrot
  Commit: a6ef194c0de9795a373a08a8619f42796818b64c
      https://github.com/parrot/parrot/commit/a6ef194c0de9795a373a08a8619f42796818b64c
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2015-01-11 (Sun, 11 Jan 2015)

  Changed paths:
    M api.yaml
    M compilers/imcc/optimizer.c
    M compilers/opsc/src/Ops/Emitter.pm
    M frontend/parrot_debugger/main.c
    M include/parrot/call.h
    M include/parrot/library.h
    M include/parrot/runcore_api.h
    M include/parrot/warnings.h
    M src/call/ops.c
    M src/debug.c
    M src/dynext.c
    M src/library.c
    M src/ops/core_ops.c
    M src/packfile/api.c
    M src/platform/win32/file.c
    M src/runcore/main.c
    M src/warnings.c

  Log Message:
  -----------
  Deprecate all exported non Parrot_ functions, #1122

All remaining exported functions with non Parrot_, PDB_, imcc_, and mem_
prefixes got now Parrot_> prefixes, and the old functions are deprecated.

* PackFile_               => Parrot_pf_ (some)
* dynop_register          => Parrot_dynop_register
* new_runloop_jump_point  => Parrot_runloop_new_jump_point
* free_runloop_jump_point => Parrot_runloop_free_jump_point
* parrot_split_path_ext   => Parrot_split_path_ext
* print_pbc_location      => Parrot_print_pbc_location

See GH #1122

Missing is clone_interpreter from parrotinterpreter.pmc,
and several Packfile_ functions. Only Packfile_destroy is yet deprecated


  Commit: 52866fc8cebfa91ae3622b7a77a84279acff394b
      https://github.com/parrot/parrot/commit/52866fc8cebfa91ae3622b7a77a84279acff394b
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2015-01-11 (Sun, 11 Jan 2015)

  Changed paths:
    M compilers/imcc/pbc.c
    M examples/c/pbc_info.c
    M examples/compilers/japhc.c
    M frontend/pbc_dump/main.c
    M frontend/pbc_merge/main.c
    M include/parrot/packfile.h
    M src/debug.c
    M src/ops/core.ops
    M src/ops/core_ops.c
    M src/packfile/api.c
    M src/packfile/segments.c
    M src/pmc/callcontext.pmc
    M src/pmc/continuation.pmc
    M src/pmc/coroutine.pmc
    M src/pmc/exception.pmc
    M src/pmc/exceptionhandler.pmc
    M src/pmc/parrotinterpreter.pmc
    M src/pmc/sub.pmc
    M src/runcore/profiling.c
    M src/runcore/subprof.c
    M src/runcore/trace.c
    M src/thread.c

  Log Message:
  -----------
  PackFile API refactor => Parrot_pf_. See GH #1170

See #1122 and TT #2140

static the unused PackFile_ functions.
rename and deprecate the PackFile_ functions, which are not static.
move the segments functions to segments.c

PackFile_new             => Parrot_pf_new
Parrot_new_debug_seg     => Parrot_pf_new_debug_segment
PackFile_Segment_new_seg => Parrot_pf_new_segment
Parrot_switch_to_cs      => Parrot_pf_switch_to_cs
Parrot_debug_add_mapping => Parrot_pf_debug_add_mapping
PackFile_destroy         => Parrot_pf_destroy
Parrot_fixup_subs        => Parrot_pf_fixup_subs
Parrot_debug_pc_to_filename => Parrot_pf_debug_pc_to_filename

PackFile_Annotations_lookup    => Parrot_pf_annotations_lookup
PackFile_Annotations_add_entry => Parrot_pf_annotations_add_entry

PackFile_Segment_destroy   => Parrot_pf_destroy_segment
PackFile_add_segment       =>
PackFile_map_segments      =>
PackFile_find_segment      => Parrot_pf_find_segment

unexport:

PackFile_Annotations_new
PackFile_ConstTable_*
PackFile_funcs_register


  Commit: 24d0eeff466621bcee678d6447c94c0b00114d4c
      https://github.com/parrot/parrot/commit/24d0eeff466621bcee678d6447c94c0b00114d4c
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2015-01-11 (Sun, 11 Jan 2015)

  Changed paths:
    M ChangeLog
    M api.yaml
    M compilers/imcc/main.c
    M compilers/imcc/pbc.c
    M docs/embed.pod
    M examples/compilers/japhc.c
    M frontend/pbc_dump/main.c
    M frontend/pbc_dump/packdump.c
    M frontend/pbc_merge/main.c
    M include/parrot/packfile.h
    M include/parrot/warnings.h
    M src/packfile/api.c
    M src/packfile/output.c
    M src/packfile/segments.c
    M src/pmc/coroutine.pmc
    M src/pmc/imageiofreeze.pmc
    M src/pmc/imageiosize.pmc
    M src/pmc/packfileannotations.pmc
    M src/pmc/packfiledirectory.pmc
    M src/pmc/sub.pmc
    M src/sub.c
    M src/warnings.c
    M t/src/warnings.t

  Log Message:
  -----------
  PackFile API refactor part 2. See GH #1170

Finish the PackFile deprecation refactor.

Deprecated:
  PackFile_ConstTable_*
Removed:
  PackFile_Annotations_*, PackFile_ConstTable_*, PackFile_funcs_register,
  PackFile_Segment_*, PackFile_Constant_pack.


  Commit: 19d18b9b1079ed7bbe10033aa1988502737bdd77
      https://github.com/parrot/parrot/commit/19d18b9b1079ed7bbe10033aa1988502737bdd77
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2015-01-11 (Sun, 11 Jan 2015)

  Changed paths:
    M src/packfile/output.c
    M src/packfile/segments.c

  Log Message:
  -----------
  [codingstd] fix linelength and missing asserts


  Commit: 6802e32f9e893757771419667e6bc93aa9908ae9
      https://github.com/parrot/parrot/commit/6802e32f9e893757771419667e6bc93aa9908ae9
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2015-01-11 (Sun, 11 Jan 2015)

  Changed paths:
    M examples/tools/pgegrep

  Log Message:
  -----------
  pgegrep: Fix for -V (end after help)


  Commit: 5e173e1656a3ccd85ec12ddc76f661437d37dd45
      https://github.com/parrot/parrot/commit/5e173e1656a3ccd85ec12ddc76f661437d37dd45
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2015-01-12 (Mon, 12 Jan 2015)

  Changed paths:
    M include/parrot/packfile.h
    M src/packfile/segments.c

  Log Message:
  -----------
  [cage] SHIM_INTERP in pf_register_standard_funcs


  Commit: 5534dfd35483fee0059728225b9c75c471b08b64
      https://github.com/parrot/parrot/commit/5534dfd35483fee0059728225b9c75c471b08b64
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2015-01-12 (Mon, 12 Jan 2015)

  Changed paths:
    M docs/deprecations/deprecations.pod
    M include/parrot/packfile.h
    M src/packfile/api.c
    M src/packfile/output.c
    M src/packfile/segments.c

  Log Message:
  -----------
  PackFile API refactor part 3. See GH #1170

Leave some Parrot_pf_ConstTable_ functions in the API.
Add a precise summary to docs/deprecations/deprecations.pod.
PackFile_funcs_register => pf_register_funcs.


  Commit: 4ba076cb2ea07ef4c0374ed0d0f7ade0a04be82a
      https://github.com/parrot/parrot/commit/4ba076cb2ea07ef4c0374ed0d0f7ade0a04be82a
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2015-01-12 (Mon, 12 Jan 2015)

  Changed paths:
    M api.yaml
    M docs/deprecations/deprecations.pod
    M include/parrot/interpreter.h
    M src/interp/api.c
    M src/pmc/parrotinterpreter.pmc
    M src/thread.c

  Log Message:
  -----------
  Rename clone_interpreter => Parrot_interp_clone

and move it from the pmc to the API (auto-headerized).
deprecate clone_interpreter.
refactor Parrot_interp_clone s => interp

Closes GH #1122


  Commit: eca4758e39f1ccc645f5bb7a311ee44c8d1624d3
      https://github.com/parrot/parrot/commit/eca4758e39f1ccc645f5bb7a311ee44c8d1624d3
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2015-01-12 (Mon, 12 Jan 2015)

  Changed paths:
    M ChangeLog
    M api.yaml
    M compilers/imcc/main.c
    M compilers/imcc/optimizer.c
    M compilers/imcc/pbc.c
    M compilers/opsc/src/Ops/Emitter.pm
    M docs/deprecations/deprecations.pod
    M docs/embed.pod
    M examples/c/pbc_info.c
    M examples/compilers/japhc.c
    M examples/tools/pgegrep
    M frontend/parrot_debugger/main.c
    M frontend/pbc_dump/main.c
    M frontend/pbc_dump/packdump.c
    M frontend/pbc_merge/main.c
    M include/parrot/call.h
    M include/parrot/interpreter.h
    M include/parrot/library.h
    M include/parrot/packfile.h
    M include/parrot/runcore_api.h
    M include/parrot/warnings.h
    M src/call/ops.c
    M src/debug.c
    M src/dynext.c
    M src/interp/api.c
    M src/library.c
    M src/ops/core.ops
    M src/ops/core_ops.c
    M src/packfile/api.c
    M src/packfile/output.c
    M src/packfile/segments.c
    M src/platform/win32/file.c
    M src/pmc/callcontext.pmc
    M src/pmc/continuation.pmc
    M src/pmc/coroutine.pmc
    M src/pmc/exception.pmc
    M src/pmc/exceptionhandler.pmc
    M src/pmc/imageiofreeze.pmc
    M src/pmc/imageiosize.pmc
    M src/pmc/packfileannotations.pmc
    M src/pmc/packfiledirectory.pmc
    M src/pmc/parrotinterpreter.pmc
    M src/pmc/sub.pmc
    M src/runcore/main.c
    M src/runcore/profiling.c
    M src/runcore/subprof.c
    M src/runcore/trace.c
    M src/sub.c
    M src/thread.c
    M src/warnings.c
    M t/src/warnings.t

  Log Message:
  -----------
  Merge branch 'smoke-me/exports+depr-gh1122'

Smoked ok,
Tested ok with nqp and rakudo.
There are some deprecation warnings todos with perl6.ops


Compare: https://github.com/parrot/parrot/compare/07c87f43f0fb...eca4758e39f1


More information about the parrot-commits mailing list