Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
bf8204c8
Commit
bf8204c8
authored
15 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
add code to support turning on/off debug messages.
parent
82369f8c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/include/ZMap/zmapXRemote.h
+7
-4
7 additions, 4 deletions
src/include/ZMap/zmapXRemote.h
src/zmapControl/remote/zmapXRemote.c
+30
-3
30 additions, 3 deletions
src/zmapControl/remote/zmapXRemote.c
src/zmapControl/remote/zmapXRemote_P.h
+8
-21
8 additions, 21 deletions
src/zmapControl/remote/zmapXRemote_P.h
with
45 additions
and
28 deletions
src/include/ZMap/zmapXRemote.h
+
7
−
4
View file @
bf8204c8
...
...
@@ -29,9 +29,9 @@
*
* Exported functions: See ZMap/zmapXRemote.h (this file)
* HISTORY:
* Last edited:
Jan 17 09:10
2010 (edgrif)
* Last edited:
Mar 2 10:44
2010 (edgrif)
* Created: Wed Apr 13 19:02:52 2005 (rds)
* CVS info: $Id: zmapXRemote.h,v 1.2
3
2010-0
1-18 09:02:50
edgrif Exp $
* CVS info: $Id: zmapXRemote.h,v 1.2
4
2010-0
3-03 11:01:21
edgrif Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -52,10 +52,10 @@
/* These are here just to allow checking */
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
#define ZMAP_XREMOTE_CURRENT_VERSION "$Revision: 1.2
3
$"
#define ZMAP_XREMOTE_CURRENT_VERSION "$Revision: 1.2
4
$"
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
#define ZMAP_XREMOTE_CURRENT_VERSION "$Revision: 1.2
3
$"
#define ZMAP_XREMOTE_CURRENT_VERSION "$Revision: 1.2
4
$"
#define ZMAP_XREMOTE_CURRENT_VERSION_ATOM "_ZMAP_XREMOTE_VERSION"
#define ZMAP_XREMOTE_APPLICATION_ATOM "_ZMAP_XREMOTE_APP"
...
...
@@ -155,6 +155,9 @@ extern gboolean externalPerl;
/* ================================================ */
/* COMMON MODE METHODS */
/* ================================================ */
void
zMapXRemoteSetDebug
(
gboolean
debug_on
)
;
ZMapXRemoteObj
zMapXRemoteNew
(
void
);
/* This just returns the object and checks XOpenDisplay(getenv(DISPLAY)) */
void
zMapXRemoteSetRequestAtomName
(
ZMapXRemoteObj
object
,
char
*
name
);
/* Better set in zMapXRemoteInitServer if Server though */
...
...
This diff is collapsed.
Click to expand it.
src/zmapControl/remote/zmapXRemote.c
+
30
−
3
View file @
bf8204c8
...
...
@@ -26,15 +26,15 @@
*
* Exported functions: See ZMap/zmapXRemote.h
* HISTORY:
* Last edited:
Feb 10 16:47
2010 (edgrif)
* Last edited:
Mar 2 10:51
2010 (edgrif)
* Created: Wed Apr 13 19:04:48 2005 (rds)
* CVS info: $Id: zmapXRemote.c,v 1.4
4
2010-0
2-10 16:52:09
edgrif Exp $
* CVS info: $Id: zmapXRemote.c,v 1.4
5
2010-0
3-03 11:01:21
edgrif Exp $
*-------------------------------------------------------------------
*/
#include
"zmapXRemote_P.h"
gboolean
externalPerl
=
TRUE
;
enum
{
...
...
@@ -96,6 +96,33 @@ static void zmapXRemoteUnLock();
static
gboolean
zmapXRemoteIsLocked
();
/* An external global which controls the two modes of the code
*
* - compiled into ZMap
*
* - compiled into a Perl module for otterlace to use.
*
*/
gboolean
externalPerl
=
TRUE
;
/* Controls debugging output. */
static
gboolean
debug_G
=
FALSE
;
/* Can be called at any time and controls debugging for all instances of ZMapXRemoteObj,
* TRUE turns debugging on and FALSE turns it off again. */
void
zMapXRemoteSetDebug
(
gboolean
debug_on
)
{
debug_G
=
debug_on
;
return
;
}
/*!
* \brief Create a ZMapXRemoteObj handle for later use
*
...
...
This diff is collapsed.
Click to expand it.
src/zmapControl/remote/zmapXRemote_P.h
+
8
−
21
View file @
bf8204c8
...
...
@@ -26,9 +26,9 @@
*
* Exported functions: None
* HISTORY:
* Last edited:
Feb 19
10:
22
2010 (edgrif)
* Last edited:
Mar 2
10:
56
2010 (edgrif)
* Created: Thu Apr 14 13:07:51 2005 (rds)
* CVS info: $Id: zmapXRemote_P.h,v 1.2
0
2010-0
2-19 10:23:00
edgrif Exp $
* CVS info: $Id: zmapXRemote_P.h,v 1.2
1
2010-0
3-03 11:01:21
edgrif Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -73,31 +73,18 @@ typedef struct
/*====================== DEBUGGING =========================*/
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
#define DO_DEBUGGING
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
#ifdef DO_DEBUGGING
extern
char
*
ZMAP_X_PROGRAM_G
;
#define zmapXDebug(FORMAT, ...) \
G_STMT_START { \
g_printerr("[%s] [" ZMAP_MSG_FORMAT_STRING "] " FORMAT, \
ZMAP_X_PROGRAM_G, \
ZMAP_MSG_FUNCTION_MACRO, \
__VA_ARGS__) ; \
if (debug_G) \
g_printerr("[%s] [" ZMAP_MSG_FORMAT_STRING "] " FORMAT, \
ZMAP_X_PROGRAM_G, \
ZMAP_MSG_FUNCTION_MACRO, \
__VA_ARGS__) ; \
} G_STMT_END
#else
#define zmapXDebug(FORMAT, ...) do {} while(0)
#endif
/*==========================================================*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment