]> git.mdlowis.com Git - proto/labwc.git/commit
action: Reduce code duplication
authorConsus <consus@ftml.net>
Mon, 28 Aug 2023 15:21:49 +0000 (18:21 +0300)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 1 Oct 2023 13:17:29 +0000 (14:17 +0100)
commitccca62e4bc534ed0738f1376dbcd8e611dd858bd
tree68ee623469c76f4099d50f59d062d20f8198a0ca
parent2e07bc754e024aa4beeb865ef09482d06957f2b7
action: Reduce code duplication

Introduce function action_get_arg() and a set of thin wrappers around
it. This function is responsible for finding the argument and checking
it's type, while the wrappers only to do the necessary type casting.
src/action.c