diff options
| author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-02-23 18:06:16 +0200 |
|---|---|---|
| committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-02-23 18:06:16 +0200 |
| commit | 1b6302647302f459fdb63008c3842a1b0d43d1b7 (patch) | |
| tree | 8da823a51b8e3dca3a8b441d10a559bfa50a50a7 /src/interfaces/ecpg/test | |
| parent | bc208a5a2f9eb34bf795374fa5381e0c82073255 (diff) | |
Refactor unit conversions code in guc.c.
Replace the if-switch-case constructs with two conversion tables,
containing all the supported conversions between human-readable unit
strings and the base units used in GUC variables. This makes the code
easier to read, and makes adding new units simpler.
Diffstat (limited to 'src/interfaces/ecpg/test')
0 files changed, 0 insertions, 0 deletions
