| /* ********************************************************** |
| * Copyright (c) 2014 Google, Inc. All rights reserved. |
| * **********************************************************/ |
| |
| /* Dr. Memory: the memory debugger |
| * |
| * This library 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; |
| * version 2.1 of the License, and no later version. |
| |
| * This library 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 |
| * Library General Public License for more details. |
| |
| * You should have received a copy of the GNU Lesser General Public |
| * License along with this library; if not, write to the Free Software |
| * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| */ |
| |
| #include <windows.h> |
| #include <stdio.h> |
| #include <tchar.h> |
| |
| /* We hardcode each named constant using separate structures for |
| * each group of constants. We generate each structure name by using |
| * first constant name in the group of constants. |
| */ |
| typedef struct const_values_t { |
| int value; /* value of the named constant */ |
| const char *const_name; /* name of the named constant */ |
| } const_values_t; |
| |
| extern const_values_t *const_struct_array[]; |