summaryrefslogtreecommitdiffstats
path: root/m_option.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-18 16:08:17 +0200
committerwm4 <wm4@nowhere>2012-10-12 10:10:31 +0200
commit426640204b409d1034a1c32ad01b9bc547e93684 (patch)
tree8dda3035239acb0b7cfea30dd8f05813bd444bce /m_option.c
parent1a5a7a49293c2c70a5caf9d51dad7bd5aa938471 (diff)
downloadmpv-426640204b409d1034a1c32ad01b9bc547e93684.tar.bz2
mpv-426640204b409d1034a1c32ad01b9bc547e93684.tar.xz
options: simplify somewhat by introducing a union for option values
The m_option_value union is supposed to contain a field for each possible option type (as long as it actually stores data). This helps avoiding silly temporary memory alocations. Using a pointer to an union and to a field of the union interchangeably should be allowed by standard C.
Diffstat (limited to 'm_option.c')
0 files changed, 0 insertions, 0 deletions