Skip to content

Commit a9f794a

Browse files
committed
Some cleanup of FFI files
1 parent cdbe615 commit a9f794a

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

lib/prism/ffi.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
# frozen_string_literal: true
22
# :markup: markdown
3+
# --
34
# typed: ignore
45

6+
# This file is responsible for mirroring the API provided by the C extension. There
7+
# are two backends:
8+
#
9+
# * Native FFI based on the 'ffi' gem
10+
# * WASM compiled to JVM bytecode (JRuby only)
11+
512
require_relative "ffi/common"
613

714
begin

lib/prism/ffi/native_ffi.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# frozen_string_literal: true
22
# :markup: markdown
3+
# --
34
# typed: ignore
45

5-
# This file is responsible for mirroring the API provided by the C extension by
6-
# using FFI to call into the shared library.
7-
86
require "rbconfig"
97
require "ffi"
108

lib/prism/ffi/wasm_ffi.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# frozen_string_literal: true
22
# :markup: markdown
3+
# --
34
# typed: ignore
45

5-
# This file is responsible for mirroring the API provided by the C extension by
6-
# using FFI to call into the shared library.
7-
86
require "rbconfig"
97
require "ffi"
108

0 commit comments

Comments
 (0)