dnl Copyright (C) 2012 The Meme Factory, Inc. http://www.meme.com/ dnl Copyright (C) 2006, 2008, Karl O. Pinc dnl dnl This file is part of Gombe-MI. dnl dnl Gombe-MI is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 3 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with Gombe-MI. If not, see . dnl dnl Karl O. Pinc dnl dnl Macros that are used by multiple subdirectories. dnl dnl changequote([{[,]}])dnl m4 foolery so includes include only once. dnl Once the macro is in the text, change the quotes back ifdef([{[_globalmacros.m4]}], [{[changequote(`,')]}], [{[dnl changequote(`,')dnl dnl dnl Standard test for having already included the file. define(`_globalmacros.m4')dnl dnl dnl dnl Discard any output. Copyright and edit warning is all that's output. divert(-1) dnl m4 includes include(`constants.m4') dnl SET clause used in all function definition statements. define(`gmi_function_search_path', `gombemi, devel, pg_temp') define(`gmi_function_set_search_path', `SET search_path = gmi_function_search_path') dnl dnl Inline expressions dnl dnl sql fragment to cast values which might be NULL to text. dnl dnl Syntax: textualize(expr) dnl dnl expr An expression which might be NULL. dnl dnl Remarks: dnl Useful when raising errors to get a uniform external NULL dnl representation. dnl changequote({,}) define({textualize},{CASE WHEN $1 IS NULL THEN 'NULL' ELSE $1::TEXT END })dnl changequote(`,') dnl Turn output back on divert`'dnl ]}])dnl End of ifdef over the whole file.