summaryrefslogtreecommitdiff
path: root/src/libopts/tokenize.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-05-05 12:27:49 +0300
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-05-05 12:51:42 +0300
commitc3c3c9b844f7fd4c9fcd19ba19b306d88b75e65a (patch)
treed9c26136a5b92b368806a3848ff2898d1b43ac25 /src/libopts/tokenize.c
parentb3bab6daacff9126b194ca78485fdc7073d05a42 (diff)
downloadgnutls-c3c3c9b844f7fd4c9fcd19ba19b306d88b75e65a.tar.gz
updated libopts to autogen 5.17.3
Diffstat (limited to 'src/libopts/tokenize.c')
-rw-r--r--src/libopts/tokenize.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/libopts/tokenize.c b/src/libopts/tokenize.c
index 9563713e80..15e7cb956f 100644
--- a/src/libopts/tokenize.c
+++ b/src/libopts/tokenize.c
@@ -1,10 +1,15 @@
+/** \file tokenize.c
+ *
+ * Tokenize a string, accommodating quoted strings.
+ *
+ * @addtogroup autoopts
+ * @{
+ */
/*
* This file defines the string_tokenize interface
- * Time-stamp: "2012-03-04 13:23:50 bkorb"
- *
* This file is part of AutoOpts, a companion to AutoGen.
* AutoOpts is free software.
- * AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ * AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
*
* AutoOpts is available under any one of two licenses. The license
* in use must be one of these two and the choice is under the control
@@ -16,11 +21,11 @@
* The Modified Berkeley Software Distribution License
* See the file "COPYING.mbsd"
*
- * These files have the following md5sums:
+ * These files have the following sha256 sums:
*
- * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3
- * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3
- * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd
+ * 8584710e9b04216a394078dc156b781d0b47e1729104d666658aecef8ee32e95 COPYING.gplv3
+ * 4379e7444a0e2ce2b12dd6f5a52a27a4d02d39d247901d3285c88cf0d37f477b COPYING.lgplv3
+ * 13aa749a5b0a454917a944ed8fffc530b784f5ead522b1aacaf4ec8aa55a6239 COPYING.mbsd
*/
#include <errno.h>
@@ -145,8 +150,8 @@ alloc_token_list(char const * str)
pz = SPN_WHITESPACE_CHARS(pz);
} while (*pz != NUL);
- res = malloc(sizeof(*res) + (pz - str)
- + (max_token_ct * sizeof(ch_t*)));
+ res = malloc(sizeof(*res) + (size_t)(pz - str)
+ + ((size_t)max_token_ct * sizeof(ch_t*)));
}
if (res == NULL)
@@ -324,7 +329,8 @@ main(int argc, char** argv)
}
#endif
-/*
+/** @}
+ *
* Local Variables:
* mode: C
* c-file-style: "stroustrup"