Add Ryan Sturgell to AUTHORS
Extract helper functions from main link loop.

This enables future changes which will re-scan archives for objects
(either grouped with -Wl,--start-group, -Wl,--end-group or some new
emcc specific flag).

This is mostly moving lines around and adding some comments. The only
functional change is that if you specify the same archive multiple times
(a workaround for the lack of grouping flags), we will now only extract
it once instead of multiple times. But it will still be scanned multiple
times.
Track original flag positions in emcc.

Source files, libs, and linker flags all need to be separately
processed.  This allows them to be correctly shuffled back together for
further link processing.
Add support for archive groups.

emcc now understands -Wl,--start-group, -Wl,--end-group to group static
libraries. Static libraries in a group need not be specified in
dependent to dependency order and can have circular dependencies.
Optimize ccall and cwrap
Remove useless spaces
Fix typo: 'litterally' -> 'literally'

In French, it's spelled 'littéralement', with 2 't' ;)
Correct indentation
Use JSfuncs.stackrestore instead of duplicating its code
Adds support for SDL Window Events with event ids:
- `SDL_WINDOWEVENT_FOCUS_GAINED`
- `SDL_WINDOWEVENT_FOCUS_LOST`
- `SDL_WINDOWEVENT_SHOWN`
- `SDL_WINDOWEVENT_HIDDEN`

Includes a fix for FFOS phones that prevent the `blur` event when
audio is playing (Bugzilla 910340)

Conflicts:
	src/library_sdl.js
v1.18.2
do not move around loop variable incrementations when the helper is used outside the loop
add line bisector tool
fix emitsBoolean handling of conditional, and add handling of num
add conditional to hasSideEffects
add testcases for last few commits
Merge pull request #2362 from juj/sdl_windowevent_focus

Sdl windowevent focus
Merge remote-tracking branch 'upstream/incoming' into fast-cwrap
Implement Web Audio API playback backend to SDL Mix_* interface. This fixes https://github.com/kripken/emscripten/commit/5b41371bb5897a49e1fdcad18d053f775105c846 when Web Audio API is available, and works around the Firefox bug https://bugzilla.mozilla.org/show_bug.cgi?id=654787.
Merge pull request #2361 from juj/sdl_mix_webaudio

Sdl mix webaudio