Skip to content
Snippets Groups Projects
Commit 75c85d1f authored by edgrif's avatar edgrif
Browse files

Move some macros into zmapUtils.h

parent b6550098
No related branches found
No related tags found
No related merge requests found
......@@ -26,9 +26,9 @@
* Description:
* Exported functions: See XXXXXXXXXXXXX.h
* HISTORY:
* Last edited: Aug 6 10:37 2003 (edgrif)
* Last edited: Mar 12 14:06 2004 (edgrif)
* Created: Thu Jul 24 14:36:17 2003 (edgrif)
* CVS info: $Id: zmapSys.h,v 1.1 2004-03-03 12:51:52 edgrif Exp $
* CVS info: $Id: zmapSys.h,v 1.2 2004-03-12 15:10:39 edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_SYS_H
......@@ -39,41 +39,6 @@
#include <glib.h>
/* Debugging messages, TRUE for on... */
extern gboolean zmap_debug_G ;
/* Use this one like this: ZMAP_DEBUG(("format string" lots, of, args)) ; */
#define ZMAP_DEBUG(ALL_ARGS_WITH_BRACKETS) \
do { \
if (zmap_debug_G) \
printf ALL_ARGS_WITH_BRACKETS ; \
} while (0)
/* Zmap error messages. */
/* I'm defining this for now, I don't really want to use the whole messXXXX() thing
* unless it gets chopped out into a file on its own.... */
/* Use this one like this: ZMAPERR("complete error text") ; */
#define ZMAPERR(TEXT) \
do { \
fprintf(stderr, "%s (line %d), error:: \"%s\"\n", \
__FILE__, __LINE__, TEXT) ; \
exit(EXIT_FAILURE) ; \
} while (0)
/* Use this one like this: ZMAPSYSERR(errno_value, "complete error text") ; */
#define ZMAPSYSERR(CODE, TEXT) \
do { \
fprintf(stderr, "%s (line %d), error:: \"%s\" (errno = \"%s\")\n", \
__FILE__, __LINE__, TEXT, g_strerror(CODE)) ; \
exit(EXIT_FAILURE) ; \
} while (0)
/* I would like the data passed to be ZMapWinConn but this produces circularities
* in header dependencies between zmapApp.h and zmapManager.h....think about this. */
typedef void (*zmapAppCallbackFunc)(void *app_data, void * zmap) ;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment