[webkit-changes] [WebKit/WebKit] d0cbdc: Create compile-time CFString instead of C literal ...

Rose noreply at github.com
Wed Feb 1 17:56:13 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d0cbdc8286e32465118f4e01ceb89567f4431ecd
      https://github.com/WebKit/WebKit/commit/d0cbdc8286e32465118f4e01ceb89567f4431ecd
  Author: Rose <83477269+AtariDreams at users.noreply.github.com>
  Date:   2023-02-01 (Wed, 01 Feb 2023)

  Changed paths:
    M Source/JavaScriptCore/API/tests/testapi.c

  Log Message:
  -----------
  Create compile-time CFString instead of C literal https://bugs.webkit.org/show_bug.cgi?id=250937

Reviewed by Yusuke Suzuki.

Creating a CFString from a C literal at runtime is inefficient.
Let's create the string at compile-time instead.

* Source\JavaScriptCore\API\tests\testapi.c:
(static void testCFStrings(void)): Use CFSTR macro

Canonical link: https://commits.webkit.org/259730@main




More information about the webkit-changes mailing list