[svn:parrot] r46943 - in trunk: include/parrot src
petdance at svn.parrot.org
petdance at svn.parrot.org
Mon May 24 05:23:47 UTC 2010
Author: petdance
Date: Mon May 24 05:23:46 2010
New Revision: 46943
URL: https://trac.parrot.org/parrot/changeset/46943
Log:
add annotations and update some docs
Modified:
trunk/include/parrot/longopt.h
trunk/src/longopt.c
Modified: trunk/include/parrot/longopt.h
==============================================================================
--- trunk/include/parrot/longopt.h Mon May 24 04:12:37 2010 (r46942)
+++ trunk/include/parrot/longopt.h Mon May 24 05:23:46 2010 (r46943)
@@ -1,13 +1,9 @@
/* longopt.h
- * Copyright (C) 2001-2003, Parrot Foundation.
+ * Copyright (C) 2001-2010, Parrot Foundation.
* SVN Info
* $Id$
* Overview:
* Command line option parsing (for pre-initialized code)
- * Data Structure and Algorithms:
- * History:
- * Notes:
- * References:
*/
#ifndef PARROT_LONGOPT_H_GUARD
@@ -55,6 +51,7 @@
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
PARROT_EXPORT
+PARROT_WARN_UNUSED_RESULT
int longopt_get(PARROT_INTERP,
int argc,
ARGIN(const char* argv[]),
Modified: trunk/src/longopt.c
==============================================================================
--- trunk/src/longopt.c Mon May 24 04:12:37 2010 (r46942)
+++ trunk/src/longopt.c Mon May 24 05:23:46 2010 (r46943)
@@ -1,5 +1,5 @@
/*
-Copyright (C) 2001-2007, Parrot Foundation.
+Copyright (C) 2001-2010, Parrot Foundation.
$Id$
=head1 NAME
@@ -25,6 +25,7 @@
/* HEADERIZER BEGIN: static */
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
+PARROT_WARN_UNUSED_RESULT
static int longopt_get_longopt(PARROT_INTERP,
int argc,
ARGIN(const char* argv[]),
@@ -36,6 +37,7 @@
__attribute__nonnull__(5)
FUNC_MODIFIES(* info_buf);
+PARROT_WARN_UNUSED_RESULT
static int longopt_get_shortopt(PARROT_INTERP,
int argc,
ARGIN(const char* argv[]),
@@ -134,6 +136,7 @@
*/
PARROT_EXPORT
+PARROT_WARN_UNUSED_RESULT
int
longopt_get(PARROT_INTERP, int argc, ARGIN(const char* argv[]),
ARGIN(const struct longopt_opt_decl options[]),
@@ -185,6 +188,7 @@
*/
+PARROT_WARN_UNUSED_RESULT
static int
longopt_get_longopt(PARROT_INTERP, int argc, ARGIN(const char* argv[]),
ARGIN(const struct longopt_opt_decl options[]),
@@ -282,6 +286,7 @@
*/
+PARROT_WARN_UNUSED_RESULT
static int
longopt_get_shortopt(PARROT_INTERP, int argc, ARGIN(const char* argv[]),
ARGIN(const struct longopt_opt_decl options[]),
More information about the parrot-commits
mailing list