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
3a320b33
Commit
3a320b33
authored
19 years ago
by
rds
Browse files
Options
Downloads
Patches
Plain Diff
added --win_id option
parent
ff6612c7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/zmapUtils/zmapCmdLineArgs.c
+9
-3
9 additions, 3 deletions
src/zmapUtils/zmapCmdLineArgs.c
src/zmapUtils/zmapCmdLineArgs_P.h
+6
-3
6 additions, 3 deletions
src/zmapUtils/zmapCmdLineArgs_P.h
with
15 additions
and
6 deletions
src/zmapUtils/zmapCmdLineArgs.c
+
9
−
3
View file @
3a320b33
...
...
@@ -30,9 +30,9 @@
*
* Exported functions: See ZMap/zmapCmdLine.h
* HISTORY:
* Last edited:
Feb 10 15:3
8 2005 (
edgrif
)
* Last edited:
Jun 8 17:0
8 2005 (
rds
)
* Created: Fri Feb 4 18:24:37 2005 (edgrif)
* CVS info: $Id: zmapCmdLineArgs.c,v 1.
1
2005-0
2
-1
0 16:31:50 edgrif
Exp $
* CVS info: $Id: zmapCmdLineArgs.c,v 1.
2
2005-0
6
-1
3 20:20:32 rds
Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -186,7 +186,7 @@ static void makeContext(int argc, char *argv[])
arg_context
->
start
=
-
1
;
arg_context
->
end
=
-
1
;
arg_context
->
config_file_path
=
arg_context
->
config_dir
=
NULL
;
arg_context
->
window
=
NULL
;
makePoptContext
(
arg_context
)
;
return
;
...
...
@@ -215,6 +215,8 @@ static void makePoptContext(ZMapCmdLineArgs arg_context)
"Relative or full path to configuration file."
,
"file_path"
},
{
ZMAPARG_CONFIG_DIR
,
'\0'
,
POPT_ARG_STRING
,
NULL
,
ARG_CONF_DIR
,
"Relative or full path to configuration directory."
,
"directory"
},
{
ZMAPARG_WINDOW_ID
,
'\0'
,
POPT_ARG_STRING
,
NULL
,
ARG_WINID
,
"sdfghsjdfhghsjdfghsjdfhg win id, very drunk."
,
"0x0000000"
},
POPT_TABLEEND
}
;
static
struct
poptOption
options_table
[]
=
...
...
@@ -240,6 +242,7 @@ static void makePoptContext(ZMapCmdLineArgs arg_context)
setPoptArgPtr
(
ZMAPARG_SEQUENCE_END
,
&
arg_context
->
end
)
;
setPoptArgPtr
(
ZMAPARG_CONFIG_FILE
,
&
arg_context
->
config_file_path
)
;
setPoptArgPtr
(
ZMAPARG_CONFIG_DIR
,
&
arg_context
->
config_dir
)
;
setPoptArgPtr
(
ZMAPARG_WINDOW_ID
,
&
arg_context
->
window
)
;
/* Create the context. */
...
...
@@ -263,6 +266,9 @@ static void makePoptContext(ZMapCmdLineArgs arg_context)
case
ARG_CONF_DIR
:
setPoptValPtr
(
ZMAPARG_CONFIG_DIR
,
ARG_SET
)
;
break
;
case
ARG_WINID
:
setPoptValPtr
(
ZMAPARG_WINDOW_ID
,
ARG_SET
)
;
break
;
default:
zMapAssert
(
"coding error, bad popt value"
)
;
break
;
...
...
This diff is collapsed.
Click to expand it.
src/zmapUtils/zmapCmdLineArgs_P.h
+
6
−
3
View file @
3a320b33
...
...
@@ -26,9 +26,9 @@
* Description: Internals for command line parsing.
*
* HISTORY:
* Last edited:
Feb 10 15:19
2005 (
edgrif
)
* Last edited:
Jun 8 17:07
2005 (
rds
)
* Created: Fri Feb 4 19:11:23 2005 (edgrif)
* CVS info: $Id: zmapCmdLineArgs_P.h,v 1.
1
2005-0
2
-1
0 16:31:50 edgrif
Exp $
* CVS info: $Id: zmapCmdLineArgs_P.h,v 1.
2
2005-0
6
-1
3 20:20:32 rds
Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_CMDLINEARGS_P_H
...
...
@@ -41,7 +41,9 @@
enum
{
ARG_SET
=
1
,
/* Special value, do not alter. */
ARG_START
,
ARG_END
,
ARG_CONF_FILE
,
ARG_CONF_DIR
}
;
ARG_CONF_FILE
,
ARG_CONF_DIR
,
ARG_WINID
}
;
...
...
@@ -63,6 +65,7 @@ typedef struct _ZMapCmdLineArgsStruct
char
*
config_dir
;
char
*
config_file_path
;
char
*
window
;
}
ZMapCmdLineArgsStruct
,
*
ZMapCmdLineArgs
;
...
...
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