[svn:parrot] r46929 - in trunk: include/parrot src
plobsing at svn.parrot.org
plobsing at svn.parrot.org
Sun May 23 23:50:51 UTC 2010
Author: plobsing
Date: Sun May 23 23:50:51 2010
New Revision: 46929
URL: https://trac.parrot.org/parrot/changeset/46929
Log:
use pointer in stead of array. should fix linker warnings
Modified:
trunk/include/parrot/longopt.h
trunk/src/longopt.c
Modified: trunk/include/parrot/longopt.h
==============================================================================
--- trunk/include/parrot/longopt.h Sun May 23 23:00:42 2010 (r46928)
+++ trunk/include/parrot/longopt.h Sun May 23 23:50:51 2010 (r46929)
@@ -52,7 +52,7 @@
#define OPT_HASH_SEED 133
PARROT_DATA
-const struct longopt_opt_decl Parrot_cmd_options[];
+const struct longopt_opt_decl *Parrot_cmd_options;
/* HEADERIZER BEGIN: src/longopt.c */
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
Modified: trunk/src/longopt.c
==============================================================================
--- trunk/src/longopt.c Sun May 23 23:00:42 2010 (r46928)
+++ trunk/src/longopt.c Sun May 23 23:50:51 2010 (r46929)
@@ -62,8 +62,7 @@
static char longopt_error_buffer[512];
-PARROT_DATA
-const struct longopt_opt_decl Parrot_cmd_options[] = {
+static const struct longopt_opt_decl _Parrot_cmd_options[] = {
{ '.', '.', (OPTION_flags)0, { "--wait" } },
{ 'D', 'D', OPTION_optional_FLAG, { "--parrot-debug" } },
{ 'E', 'E', (OPTION_flags)0, { "--pre-process-only" } },
@@ -95,6 +94,8 @@
{ 0, 0, (OPTION_flags)0, { NULL } }
};
+const struct longopt_opt_decl *Parrot_cmd_options = _Parrot_cmd_options;
+
/*
=item C<int longopt_get(PARROT_INTERP, int argc, const char* argv[], const
More information about the parrot-commits
mailing list