]> granicus.if.org Git - libjpeg-turbo/commit
j*huff.c: Remove crufty ASSIGN_STATE() macro dev
authorDRC <information@libjpeg-turbo.org>
Thu, 17 Oct 2019 01:11:59 +0000 (20:11 -0500)
committerDRC <information@libjpeg-turbo.org>
Thu, 24 Oct 2019 07:13:34 +0000 (02:13 -0500)
commitadf9cc942fc63787e830e02ee073548919b8d6fd
tree03eb3b77f8397519439c39c20549ce35ba247f5b
parent95f4d6ef8b045d3e76d003ce7d23244f89927788
j*huff.c: Remove crufty ASSIGN_STATE() macro

This macro is a relic of libjpeg's historic need to support a wide
variety of C compilers with varying degrees of compatibility.  Such was
necessary during the open systems era, because C compilers were often
supplied by the system vendor.  Prior to 1989, there was no C standard
per se, and even after ANSI C became a thing, there were still compilers
in use that didn't conform to it (libjpeg was first released in 1991.)

Realistically, only a handful of C compilers are in widespread use these
days, and all modern C compilers should support structure assignment.
jchuff.c
jdhuff.c
jdphuff.c