diff options
| author | 2009-10-21 05:18:32 +0000 | |
|---|---|---|
| committer | 2009-10-21 05:18:32 +0000 | |
| commit | d81f1f98d3cd255d962b760a6286828a8f31e504 (patch) | |
| tree | 9a9ccf10461b807c25f34fa57fe678279191a367 /src/tools/src2html.c | |
| parent | c79245f95c5f17be6e420646cfb586de95504cd5 (diff) | |
> From: atari_ace@verizon.net
> To: submit@mamedev.org
> CC: atariace@hotmail.com
> Subject: [patch] Eliminate more .data
> Date: Wed, 7 Oct 2009 08:51:56 -0700
>
> Hi mamedev,
>
> Most variables in .data are likely to lead to multisession bugs, so it
> is best to eliminate them and add explicit init/reset code for them
> instead. This patch does that for almost all the cases, with a few
> changes deserving some comments:
>
> z180: cc was global when it should be per-cpu.
> nesapu: the noise table would be different run to run in multisession
> which probably wasn't intended.
> astring: i constified the dummy string to make it impossible to
> modify.
> mediagx: hits was separated from the constant data
> tecmosys: i reduced the number of exports and renamed them to use
> tecmosys_ as a prefix.
> atari: i moved the renderer function into ANTIC.
> naomibd: the array provided to x76f100 was too small and might have
> caused memory corruption.
> n64: i constified the one and zero colors, requiring many more const
> qualifiers to be added.
> ldverify: i encapsulated the audio and video variables to reduce the
> amount of global state.
Diffstat (limited to 'src/tools/src2html.c')
| -rw-r--r-- | src/tools/src2html.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/src2html.c b/src/tools/src2html.c index 6f5719f74b6..55266fd0f0d 100644 --- a/src/tools/src2html.c +++ b/src/tools/src2html.c @@ -88,7 +88,6 @@ struct _list_entry ***************************************************************************/ static include_path *incpaths; -static include_path **incpathhead = &incpaths; static const ext_to_type extension_lookup[] = { @@ -207,6 +206,7 @@ int main(int argc, char *argv[]) void *buffer; int result; int argnum; + include_path **incpathhead = &incpaths; /* loop over arguments */ for (argnum = 1; argnum < argc; argnum++) |
