/* ***************************************************************************** * type/setup.c -- get the setup entry id/string using an id/string. * Copyright (C) 2017 Thomas "Cakeisalie5" Touhey * * This file is part of libg1m. * libg1m is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3.0 of the License, * or (at your option) any later version. * * libg1m is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with libg1m; if not, see . * ************************************************************************** */ #include struct corresp { char *name; int offset; }; static struct corresp correspondances[] = { {"Angle", 0x13}, {"Mode", 0x14}, {"Func Type", 0x18}, {"Draw Type", 0x19}, {"Derivative", 0x1A}, {"Coord", 0x1B}, {"Grid", 0x1C}, {"Axes", 0x1D}, {"Label", 0x1E}, {"Stat Wind", 0x20}, {"Graph Func", 0x21}, {"Dual Screen", 0x22}, {"Simul Graph", 0x23}, {"Dynamic Type", 0x24}, {"SigmaDisplay", 0x25}, {"Slope", 0x26}, {"Payment", 0x27}, {"Date Mode", 0x28}, {"Answer Type", 0x29}, {"Complex Mode", 0x2A}, {"Display", 0x2B}, {"Background", 0x2C}, {"Resid List", 0x2D}, {"List File", 0x2E}, {"Variable", 0x2F}, {"Recur Dual", 0x31}, {"Auto Calc", 0x4E}, {"Show Sell", 0x4F}, {"Move", 0x50}, {"Sub Name", 0x51}, {"Input Mode", 0x53}, {"Locus", 0x54}, {"Y=Draw Speed", 0x55}, {"Sketch Line", 0x56}, {"Frac Result", 0x57}, {"Recur Type", 0x30}, {"Inequa Type", 0x5D}, {"Periods YR", 0x5E}, {"Q1Q3 Type", 0x5C}, {"Simplify", 0x5F}, };