/* ;; ;; Chicken interface to the GLPK API. ;; ;; Copyright 2008 Ivan Raikov and the Okinawa Institute of Science and ;; Technology. ;; ;; This program is free software: you can redistribute it and/or ;; modify it under the terms of the GNU General Public License as ;; published by the Free Software Foundation, either version 3 of the ;; License, or (at your option) any later version. ;; ;; This program 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 ;; General Public License for more details. ;; ;; A full copy of the GPL license can be found at ;; . ;; */ #include #include typedef struct chicken_LPX_struct { C_header tag; void *lpx_data; } chicken_LPX_t; static const C_header LPX_TAG = ((sizeof(chicken_LPX_t) - sizeof(C_header)) / sizeof(C_word)) | C_POINTER_TYPE; #define LPX_val(x) (C_c_pointer_nn(x))