[wesnoth-commits] [wesnoth/wesnoth] a99062: When writing WML, output preprocessor-safe strings

Celtic Minstrel noreply at github.com
Tue Aug 17 17:56:36 UTC 2021


  Branch: refs/heads/1.16
  Home:   https://github.com/wesnoth/wesnoth
  Commit: a9906226a7c34f2a8b9db3dbb1613d2ea6bfb146
      https://github.com/wesnoth/wesnoth/commit/a9906226a7c34f2a8b9db3dbb1613d2ea6bfb146
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-08-17 (Tue, 17 Aug 2021)

  Changed paths:
    M src/serialization/parser.cpp

  Log Message:
  -----------
  When writing WML, output preprocessor-safe strings

Basically, this means that the output will parse to the original value even if run through the preprocessor.


  Commit: b1b79bfd14d7fae770066e54f31c1254617cd2ea
      https://github.com/wesnoth/wesnoth/commit/b1b79bfd14d7fae770066e54f31c1254617cd2ea
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-08-17 (Tue, 17 Aug 2021)

  Changed paths:
    M src/utils/optional_reference.hpp

  Log Message:
  -----------
  Make optional_reference bool conversion explicit

If this is non-explicit, then the following code:

optional_reference<config> ref = ...;
auto str = ref["key"]

results in ref being converted to bool and used as an index into the key string.


  Commit: a9dcc25b208c10179b0b895b34ebe89834244dc8
      https://github.com/wesnoth/wesnoth/commit/a9dcc25b208c10179b0b895b34ebe89834244dc8
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-08-17 (Tue, 17 Aug 2021)

  Changed paths:
    M src/serialization/preprocessor.cpp

  Log Message:
  -----------
  Include deprecation info in preprocess-output-macros file


  Commit: b39d9b02227ba8758b26a4035328b5599142b935
      https://github.com/wesnoth/wesnoth/commit/b39d9b02227ba8758b26a4035328b5599142b935
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-08-17 (Tue, 17 Aug 2021)

  Changed paths:
    M src/serialization/preprocessor.cpp
    M src/serialization/preprocessor.hpp

  Log Message:
  -----------
  Include optional arguments in preprocess-output-macros file

Fixes #4697


  Commit: 6145abd4ade3263aab14fca8392f8442b2613cc6
      https://github.com/wesnoth/wesnoth/commit/6145abd4ade3263aab14fca8392f8442b2613cc6
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-08-17 (Tue, 17 Aug 2021)

  Changed paths:
    M src/serialization/preprocessor.cpp

  Log Message:
  -----------
  fix whitespace


  Commit: 0880d7807744823eb86d117f3825f75645d62e27
      https://github.com/wesnoth/wesnoth/commit/0880d7807744823eb86d117f3825f75645d62e27
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-08-17 (Tue, 17 Aug 2021)

  Changed paths:
    M data/schema/ai/stage.cfg

  Log Message:
  -----------
  Schema: Add [candidate_action][filter_own]


  Commit: add54769645c55f1d0faa32c136f7a2087f33125
      https://github.com/wesnoth/wesnoth/commit/add54769645c55f1d0faa32c136f7a2087f33125
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-08-17 (Tue, 17 Aug 2021)

  Changed paths:
    M src/ai/lua/engine_lua.cpp

  Log Message:
  -----------
  AI: Fix missing serialization code for sticky candidate actions


  Commit: 4fbf33a0ca92e166207e4e24ae46090bc4cdb657
      https://github.com/wesnoth/wesnoth/commit/4fbf33a0ca92e166207e4e24ae46090bc4cdb657
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-08-17 (Tue, 17 Aug 2021)

  Changed paths:
    M data/lua/ilua.lua

  Log Message:
  -----------
  Lua: Fix console pretty-print output not showing zero or negative keys in tables


  Commit: 8b27a8e3050a9e2b89ad630ce833b9c199c523ff
      https://github.com/wesnoth/wesnoth/commit/8b27a8e3050a9e2b89ad630ce833b9c199c523ff
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-08-17 (Tue, 17 Aug 2021)

  Changed paths:
    M src/ai/lua/engine_lua.cpp

  Log Message:
  -----------
  Lua AI: Fix non-integer candidate evaluation scores being treated as 0


  Commit: 4f0de69cd2e56d2983ceea84b509dcc479bb8476
      https://github.com/wesnoth/wesnoth/commit/4f0de69cd2e56d2983ceea84b509dcc479bb8476
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-08-17 (Tue, 17 Aug 2021)

  Changed paths:
    M src/ai/actions.cpp
    M src/ai/actions.hpp

  Log Message:
  -----------
  AI: Fix assertion when trying to move to an off-map location

This could, for example, be triggered using ai.move().


  Commit: 19c61374ff5017d1012564387eebbdb57756631c
      https://github.com/wesnoth/wesnoth/commit/19c61374ff5017d1012564387eebbdb57756631c
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-08-17 (Tue, 17 Aug 2021)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  Lua API: Fix an incorrect error message


  Commit: 45f47fc3e6e01b86904456ab283dbb1b2c9e3778
      https://github.com/wesnoth/wesnoth/commit/45f47fc3e6e01b86904456ab283dbb1b2c9e3778
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-08-17 (Tue, 17 Aug 2021)

  Changed paths:
    M data/lua/core/map.lua

  Log Message:
  -----------
  Lua API: Fix an error in the terrain hex API

Attempting to access a non-string key was an error.


  Commit: bd556a7405c3866480d7a6b81619a905f245b0b6
      https://github.com/wesnoth/wesnoth/commit/bd556a7405c3866480d7a6b81619a905f245b0b6
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-08-17 (Tue, 17 Aug 2021)

  Changed paths:
    M data/lua/functional.lua

  Log Message:
  -----------
  Lua API: Fix functional.map returning the wrong answer if used on a table that contains numeric keys but is not strictly an array


Compare: https://github.com/wesnoth/wesnoth/compare/55d12404aa3f...bd556a7405c3



More information about the Commits mailing list