summaryrefslogtreecommitdiff
path: root/include/my_getopt.h
diff options
context:
space:
mode:
authorunknown <jani@rhols221.adsl.netsonic.fi>2002-02-06 17:22:43 +0200
committerunknown <jani@rhols221.adsl.netsonic.fi>2002-02-06 17:22:43 +0200
commitdc7af9f035f1a82051cd96d91825fee7a953bd8e (patch)
tree9b6c7f8d4bae81a51733bc6fab5f0a3bac545c2c /include/my_getopt.h
parent9adfd2e8d9ac6d709ab070505a8ad96bce8b3c06 (diff)
downloadmariadb-git-dc7af9f035f1a82051cd96d91825fee7a953bd8e.tar.gz
Bug fixes and new functionality added in my_getopt and myisamchk
include/my_getopt.h: Removed a member from my_getopt struct. myisam/myisamchk.c: pdated myisamchk. More features in use from my_getopt mysys/my_getopt.c: Fixed a bug in handle_options(). Short options were not tested whether existed when given from the command line. Fixed a bug in getopt_ll, got division by zero in some cases. Added new functions my_print_help() and my_print_variables() to be used by mysql server and most clients.
Diffstat (limited to 'include/my_getopt.h')
-rw-r--r--include/my_getopt.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/my_getopt.h b/include/my_getopt.h
index a1a052ac8e2..2e40fb8ffaa 100644
--- a/include/my_getopt.h
+++ b/include/my_getopt.h
@@ -42,7 +42,6 @@ struct my_option
longlong sub_size; /* Subtract this from given value */
long block_size; /* Value should be a mult. of this */
int app_type; /* To be used by an application */
- my_bool opt_is_var; /* If true, the option is a variable */
};
extern int handle_options (int *argc, char ***argv,
@@ -50,3 +49,5 @@ extern int handle_options (int *argc, char ***argv,
my_bool (*get_one_option)(int,
const struct my_option *,
char *));
+extern void my_print_help(const struct my_option *options);
+extern void my_print_variables(const struct my_option *options);