Commit 2eb0b999 authored by Mark A. Grondona's avatar Mark A. Grondona
Browse files

spank: consolidate globals in plugstack.c

The use of globals in plugstack.c is cumbersome and prevents the
future expansion of spank plugins, e.g. calling spank plugins from
multiple contexts within the same process or reinitializing the
spank plugin state.

This patch consolidates the current globals (spank_stack, spank_ctx,
spank_optval, and option_cache) into a global "spank stack" structure
and expands many of the functions internal to plugstack.c to operate
on a struct spank_stack instead of globally.
parent 3a522459
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment