Skip to content

Commit

Permalink
Readability improvements for decode.c:
Browse files Browse the repository at this point in the history
Several data arrays that are used in only one function have been moved from file scope to the function that uses them.

Updated to use C99 array designators so we can specify values by array index.  This is more readable and less error-prone than using comments to label each value.

There is no functional change for the vast majority of this CL.  The only exception is that we now test for OOM when creating a map.

PiperOrigin-RevId: 475191072
  • Loading branch information
haberman authored and copybara-github committed Sep 19, 2022
1 parent ba511fd commit f44653b
Showing 1 changed file with 218 additions and 185 deletions.
Loading

0 comments on commit f44653b

Please sign in to comment.