getdata-commits Mailing List for GetData (Page 7)
Scientific Database Format
Brought to you by:
ketiltrout
This list is closed, nobody may subscribe to it.
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(5) |
Oct
(20) |
Nov
(21) |
Dec
(16) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2011 |
Jan
(1) |
Feb
(1) |
Mar
(56) |
Apr
(20) |
May
(4) |
Jun
(2) |
Jul
(3) |
Aug
(11) |
Sep
(2) |
Oct
(4) |
Nov
(18) |
Dec
(16) |
2012 |
Jan
(8) |
Feb
(12) |
Mar
(30) |
Apr
(13) |
May
(10) |
Jun
(17) |
Jul
(18) |
Aug
(19) |
Sep
|
Oct
(1) |
Nov
(1) |
Dec
(9) |
2013 |
Jan
(1) |
Feb
(4) |
Mar
(27) |
Apr
(6) |
May
(3) |
Jun
(1) |
Jul
(10) |
Aug
|
Sep
(3) |
Oct
(15) |
Nov
(4) |
Dec
(9) |
2014 |
Jan
|
Feb
(3) |
Mar
(4) |
Apr
(10) |
May
(15) |
Jun
|
Jul
(14) |
Aug
|
Sep
(2) |
Oct
(6) |
Nov
|
Dec
(9) |
2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <ket...@us...> - 2013-02-19 00:14:19
|
Revision: 796 http://sourceforge.net/p/getdata/code/796 Author: ketiltrout Date: 2013-02-19 00:14:17 +0000 (Tue, 19 Feb 2013) Log Message: ----------- Sections in config files. Modified Paths: -------------- trunk/defile/bin/defile.c trunk/defile/bin/rc.c Modified: trunk/defile/bin/defile.c =================================================================== --- trunk/defile/bin/defile.c 2013-02-15 03:13:09 UTC (rev 795) +++ trunk/defile/bin/defile.c 2013-02-19 00:14:17 UTC (rev 796) @@ -2419,8 +2419,8 @@ struct df_rc_data rcd = { .contact = DEFILE_CONTACT, .copyright = DEFILE_COPYRIGHT, + .local_config = "${HOME}/.defilerc", .global_config = "defilerc", - .local_config = "${HOME}/.defilerc", .flags = DF_RC_FLAG_NMSB, .licence = 0, .name = NULL, @@ -2581,6 +2581,8 @@ /* parse input options */ memset(&rcd, 0, sizeof(rcd)); rcd.contact = df->input_framework->contact; + rcd.global_config = "defilerc"; + rcd.local_config = "${HOME}/.defilerc"; rcd.copyright = df->input_framework->copyright; rcd.flags = 0; rcd.licence = df->input_framework->licence; Modified: trunk/defile/bin/rc.c =================================================================== --- trunk/defile/bin/rc.c 2013-02-15 03:13:09 UTC (rev 795) +++ trunk/defile/bin/rc.c 2013-02-19 00:14:17 UTC (rev 796) @@ -85,9 +85,6 @@ #define logprintf(...) #endif -#define DF_OPT_WIDTH 28 -#define DF_TTY_WIDTH 80 - /* Word expand a string as if in a shell */ char *df_rc_shell_expand(int fac, const char *argument) { @@ -140,6 +137,8 @@ return ptr; } +#define DF_OPT_WIDTH 28 +#define DF_TTY_WIDTH 80 static void DF_OptUsage(const struct df_optdef *opt, char shift_char) { const char *u; @@ -438,6 +437,14 @@ } } +/* strcmp with NULLs */ +static int strnullcmp(const char *s1, const char *s2) +{ + if (s1 == NULL) + return (s2 == NULL) ? 0 : -1; + return (s2 == NULL) ? 1 : strcmp(s1, s2); +} + static void DF_PushConfig(int i, const char* val, int error, int no_dup, const char* cwd, const char* label, int line, int sopt, struct df_rc_data *rcd) @@ -502,7 +509,7 @@ char cwd[4096]; char *opt, *val; int i, found, ln = 0; - char* file; + char *file, *section = NULL; const int fac = (rcd->name == NULL) ? DF_PRN_INPUT : DF_PRN_DF; @@ -555,43 +562,81 @@ while (opt >= buffer && (*opt == ' ' || *opt == '\t' || *opt == '\0')) *(opt--) = '\0'; - /* strip leading whitespace */ - opt = buffer + strspn(buffer, " \t"); - if ((val = strchr(opt, ' ')) != NULL) { - *(val++) = '\0'; - val += strspn(val, " \t"); - } - /* skip empty lines */ if (!*buffer) continue; - logprintf(" Found directive `%s' with argument `%s' on line %i\n", opt, - val, ln); + /* strip leading whitespace */ + opt = buffer + strspn(buffer, " \t"); - /* Include */ - if (strcasecmp(opt, "Include") == 0) { - DF_DoRunControl(val, cwd, rcd); - continue; - } + /* check for a section header */ + if (*opt == '[') { + /* find the trailing ] */ + if ((val = strchr(++opt, ']')) != NULL) + *val = 0; - /* match directive */ - found = 0; - for (i = 0; rcd->options[i].type != DF_OPT_END_OO; ++i) - if (strcasecmp(opt, rcd->options[i].directive) == 0) { - DF_PushConfig(i, val, DF_RC_ERR_OK, 0, cwd, label, ln, 0, rcd); - found = 1; + if (val == NULL || *opt == '\0') { + /* invalid section header */ + logprintf(" Ignoring bad header `%s'\n", opt); + continue; + } + + logprintf(" Found section [%s] on line %i\n", opt, ln); + + /* if we're handling the top section, there's no point in continuing: we can + * never get back there */ + if (rcd->name == NULL) break; + + *val = 0; + free(section); + section = strdup(opt); + if (section == NULL) { + DF_OOM(DF_PRN_DF); + exit(1); } + } else { + /* find the argument */ + if ((val = strchr(opt, ' ')) != NULL) { + *(val++) = '\0'; + val += strspn(val, " \t"); + } - if (!found) { - logprintf(" Unknown option `%s'\n", opt); - DF_PushConfig(DF_RC_NO_MATCH, opt, DF_RC_ERR_OK, 0, cwd, label, ln, - 0, rcd); + logprintf(" Found directive `%s' with argument `%s' on line %i in " + "section [%s]\n", opt, val, ln, section ? section : "[top]"); + + /* Include -- we only do this if we're either in the top section or else + * in the correct one */ + if (strcasecmp(opt, "Include") == 0 && (section == NULL || (rcd->name && + strcmp(section, rcd->name) == 0))) + { + DF_DoRunControl(val, cwd, rcd); + continue; + } + + /* don't do anything else if we're not in the right section */ + if (strnullcmp(section, rcd->name)) + continue; + + /* match directive */ + found = 0; + for (i = 0; rcd->options[i].type != DF_OPT_END_OO; ++i) + if (strcasecmp(opt, rcd->options[i].directive) == 0) { + DF_PushConfig(i, val, DF_RC_ERR_OK, 0, cwd, label, ln, 0, rcd); + found = 1; + break; + } + + if (!found) { + logprintf(" Unknown option `%s'\n", opt); + DF_PushConfig(DF_RC_NO_MATCH, opt, DF_RC_ERR_OK, 0, cwd, label, ln, + 0, rcd); + } } } fclose(stream); + free(section); free(file); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ket...@us...> - 2013-02-15 03:13:17
|
Revision: 795 http://sourceforge.net/p/getdata/code/795 Author: ketiltrout Date: 2013-02-15 03:13:09 +0000 (Fri, 15 Feb 2013) Log Message: ----------- Matlab docs, standalone Matlab package, &c. Modified Paths: -------------- trunk/getdata/ChangeLog trunk/getdata/Makefile.am trunk/getdata/bindings/idl/Makefile.am trunk/getdata/bindings/idl/getdata.c trunk/getdata/bindings/idl/makedlm.sh.in trunk/getdata/bindings/idl/package/configure.ac trunk/getdata/bindings/make_parameters.c trunk/getdata/bindings/matlab/Makefile.am trunk/getdata/bindings/matlab/gd_add.c trunk/getdata/bindings/matlab/gd_add_alias.c trunk/getdata/bindings/matlab/gd_add_bit.m trunk/getdata/bindings/matlab/gd_add_carray.c trunk/getdata/bindings/matlab/gd_add_const.c trunk/getdata/bindings/matlab/gd_add_divide.m trunk/getdata/bindings/matlab/gd_add_lincom.m trunk/getdata/bindings/matlab/gd_add_linterp.m trunk/getdata/bindings/matlab/gd_add_mplex.m trunk/getdata/bindings/matlab/gd_add_multiply.m trunk/getdata/bindings/matlab/gd_add_phase.m trunk/getdata/bindings/matlab/gd_add_polynom.m trunk/getdata/bindings/matlab/gd_add_raw.m trunk/getdata/bindings/matlab/gd_add_recip.m trunk/getdata/bindings/matlab/gd_add_sbit.m trunk/getdata/bindings/matlab/gd_add_spec.c trunk/getdata/bindings/matlab/gd_add_string.c trunk/getdata/bindings/matlab/gd_add_window.m trunk/getdata/bindings/matlab/gd_alias_target.c trunk/getdata/bindings/matlab/gd_aliases.c trunk/getdata/bindings/matlab/gd_alter_affixes.c trunk/getdata/bindings/matlab/gd_alter_bit.m trunk/getdata/bindings/matlab/gd_alter_carray.m trunk/getdata/bindings/matlab/gd_alter_const.m trunk/getdata/bindings/matlab/gd_alter_divide.m trunk/getdata/bindings/matlab/gd_alter_encoding.c trunk/getdata/bindings/matlab/gd_alter_endianness.c trunk/getdata/bindings/matlab/gd_alter_entry.c trunk/getdata/bindings/matlab/gd_alter_frameoffset.c trunk/getdata/bindings/matlab/gd_alter_lincom.m trunk/getdata/bindings/matlab/gd_alter_linterp.m trunk/getdata/bindings/matlab/gd_alter_mplex.m trunk/getdata/bindings/matlab/gd_alter_multiply.m trunk/getdata/bindings/matlab/gd_alter_phase.m trunk/getdata/bindings/matlab/gd_alter_polynom.m trunk/getdata/bindings/matlab/gd_alter_protection.c trunk/getdata/bindings/matlab/gd_alter_raw.m trunk/getdata/bindings/matlab/gd_alter_recip.m trunk/getdata/bindings/matlab/gd_alter_sbit.m trunk/getdata/bindings/matlab/gd_alter_spec.c trunk/getdata/bindings/matlab/gd_alter_window.m trunk/getdata/bindings/matlab/gd_bof.c trunk/getdata/bindings/matlab/gd_carray_len.c trunk/getdata/bindings/matlab/gd_carrays.c trunk/getdata/bindings/matlab/gd_close.c trunk/getdata/bindings/matlab/gd_constants.c trunk/getdata/bindings/matlab/gd_delete.c trunk/getdata/bindings/matlab/gd_delete_alias.c trunk/getdata/bindings/matlab/gd_desync.c trunk/getdata/bindings/matlab/gd_dirfile_standards.c trunk/getdata/bindings/matlab/gd_dirfilename.c trunk/getdata/bindings/matlab/gd_discard.c trunk/getdata/bindings/matlab/gd_encoding.c trunk/getdata/bindings/matlab/gd_endianness.c trunk/getdata/bindings/matlab/gd_entry.c trunk/getdata/bindings/matlab/gd_entry_list.c trunk/getdata/bindings/matlab/gd_entry_type.c trunk/getdata/bindings/matlab/gd_eof.c trunk/getdata/bindings/matlab/gd_error.c trunk/getdata/bindings/matlab/gd_error_string.c trunk/getdata/bindings/matlab/gd_field_list.m trunk/getdata/bindings/matlab/gd_field_list_by_type.m trunk/getdata/bindings/matlab/gd_flags.c trunk/getdata/bindings/matlab/gd_flush.c trunk/getdata/bindings/matlab/gd_fragment_affixes.c trunk/getdata/bindings/matlab/gd_fragment_index.c trunk/getdata/bindings/matlab/gd_fragmentname.c trunk/getdata/bindings/matlab/gd_framenum.c trunk/getdata/bindings/matlab/gd_frameoffset.c trunk/getdata/bindings/matlab/gd_get_carray.c trunk/getdata/bindings/matlab/gd_get_carray_slice.c trunk/getdata/bindings/matlab/gd_get_constant.m trunk/getdata/bindings/matlab/gd_get_string.c trunk/getdata/bindings/matlab/gd_getdata.c trunk/getdata/bindings/matlab/gd_hidden.c trunk/getdata/bindings/matlab/gd_hide.c trunk/getdata/bindings/matlab/gd_invalid_dirfile.c trunk/getdata/bindings/matlab/gd_linterp_tablename.c trunk/getdata/bindings/matlab/gd_madd.c trunk/getdata/bindings/matlab/gd_madd_alias.c trunk/getdata/bindings/matlab/gd_madd_bit.m trunk/getdata/bindings/matlab/gd_madd_carray.c trunk/getdata/bindings/matlab/gd_madd_const.c trunk/getdata/bindings/matlab/gd_madd_divide.m trunk/getdata/bindings/matlab/gd_madd_lincom.m trunk/getdata/bindings/matlab/gd_madd_linterp.m trunk/getdata/bindings/matlab/gd_madd_mplex.m trunk/getdata/bindings/matlab/gd_madd_multiply.m trunk/getdata/bindings/matlab/gd_madd_phase.m trunk/getdata/bindings/matlab/gd_madd_polynom.m trunk/getdata/bindings/matlab/gd_madd_recip.m trunk/getdata/bindings/matlab/gd_madd_sbit.m trunk/getdata/bindings/matlab/gd_madd_spec.c trunk/getdata/bindings/matlab/gd_madd_string.c trunk/getdata/bindings/matlab/gd_madd_window.m trunk/getdata/bindings/matlab/gd_malter_spec.c trunk/getdata/bindings/matlab/gd_matlab.h trunk/getdata/bindings/matlab/gd_mconstants.c trunk/getdata/bindings/matlab/gd_metaflush.c trunk/getdata/bindings/matlab/gd_mfield_list.m trunk/getdata/bindings/matlab/gd_mfield_list_by_type.m trunk/getdata/bindings/matlab/gd_move.c trunk/getdata/bindings/matlab/gd_move_alias.c trunk/getdata/bindings/matlab/gd_mplex_lookback.c trunk/getdata/bindings/matlab/gd_mstrings.c trunk/getdata/bindings/matlab/gd_mvector_list.m trunk/getdata/bindings/matlab/gd_naliases.c trunk/getdata/bindings/matlab/gd_native_type.c trunk/getdata/bindings/matlab/gd_nentries.c trunk/getdata/bindings/matlab/gd_nfields.m trunk/getdata/bindings/matlab/gd_nfields_by_type.m trunk/getdata/bindings/matlab/gd_nfragments.c trunk/getdata/bindings/matlab/gd_nframes.c trunk/getdata/bindings/matlab/gd_nmfields.m trunk/getdata/bindings/matlab/gd_nmfields_by_type.m trunk/getdata/bindings/matlab/gd_nmvectors.m trunk/getdata/bindings/matlab/gd_nvectors.m trunk/getdata/bindings/matlab/gd_open.c trunk/getdata/bindings/matlab/gd_parent_fragment.c trunk/getdata/bindings/matlab/gd_protection.c trunk/getdata/bindings/matlab/gd_put_carray.m trunk/getdata/bindings/matlab/gd_put_carray_slice.c trunk/getdata/bindings/matlab/gd_put_constant.m trunk/getdata/bindings/matlab/gd_put_string.c trunk/getdata/bindings/matlab/gd_putdata.c trunk/getdata/bindings/matlab/gd_raw_close.c trunk/getdata/bindings/matlab/gd_raw_filename.c trunk/getdata/bindings/matlab/gd_reference.c trunk/getdata/bindings/matlab/gd_rename.c trunk/getdata/bindings/matlab/gd_rewrite_fragment.c trunk/getdata/bindings/matlab/gd_seek.c trunk/getdata/bindings/matlab/gd_spf.c trunk/getdata/bindings/matlab/gd_strings.c trunk/getdata/bindings/matlab/gd_strtok.c trunk/getdata/bindings/matlab/gd_sync.c trunk/getdata/bindings/matlab/gd_tell.c trunk/getdata/bindings/matlab/gd_unhide.c trunk/getdata/bindings/matlab/gd_uninclude.c trunk/getdata/bindings/matlab/gd_validate.c trunk/getdata/bindings/matlab/gd_vector_list.m trunk/getdata/bindings/matlab/gd_verbose_prefix.c trunk/getdata/bindings/matlab/getdata_constants.m trunk/getdata/bindings/matlab/matlab.c trunk/getdata/bindings/matlab/test/Makefile.am trunk/getdata/bindings/matlab/test/big_test.m trunk/getdata/configure.ac trunk/getdata/doc/Makefile.am trunk/getdata/m4/matlab.m4 trunk/getdata/m4/python.m4 trunk/getdata/m4/version.m4 Added Paths: ----------- trunk/getdata/bindings/matlab/Contents.m.head trunk/getdata/bindings/matlab/doc.tail trunk/getdata/bindings/matlab/gd_include.c trunk/getdata/bindings/matlab/gd_mcarrays.c trunk/getdata/bindings/matlab/make_contents.sh.in trunk/getdata/bindings/matlab/package/ trunk/getdata/bindings/matlab/package/Makefile.am trunk/getdata/bindings/matlab/package/README trunk/getdata/bindings/matlab/package/configure.ac trunk/getdata/doc/README.matlab Removed Paths: ------------- trunk/getdata/bindings/matlab/gd_include.m trunk/getdata/bindings/matlab/gd_include_affix.c Property Changed: ---------------- trunk/getdata/bindings/matlab/ Modified: trunk/getdata/ChangeLog =================================================================== --- trunk/getdata/ChangeLog 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/ChangeLog 2013-02-15 03:13:09 UTC (rev 795) @@ -1,8 +1,22 @@ -2012-02-02 D. V. Wiebe <ge...@ke...> svn:794 +2012-02-15 D. V. Wiebe <ge...@ke...> svn:795 + * bindings/matlab/package: Added. + * Makefile.am: Add matlabdist and matlabdistcheck + + * doc/README.matlab bindings/matlab/make_contents.sh.in + bindings/matlab/Contents.m.head bindings/matlab/doc.tail: Added. + + * bindinag/matlab/matlab.c (gdmx_from_carrays): Added. + * bindings/matlab/gd_mcarrays.c: Added. + * bindings/matlab/test/big_test.m: Add test 243. + + * bindings/matlab/gd_include.c: Renamed from gd_include_affix.c + * bindings/matlab/gd_include.m: Deleted. + +2012-02-13 D. V. Wiebe <ge...@ke...> svn:794 * bindings/cxx/test/big_test.cpp bindings/perl/t/big_test.t bindings/python/test/big_test.py: Add test 243. -2012-02-02 D. V. Wiebe <ge...@ke...> svn:793 +2012-02-06 D. V. Wiebe <ge...@ke...> svn:793 * src/parse.c (_GD_Tokenise): Don't falsely report an unterminated token when stopping a partial tokenisation on top of a " or \. * test/tok_arg.c test/tok_escape.c test/tok_quote.c: Added. Modified: trunk/getdata/Makefile.am =================================================================== --- trunk/getdata/Makefile.am 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/Makefile.am 2013-02-15 03:13:09 UTC (rev 795) @@ -38,10 +38,45 @@ --with-perl-dir="$$dc_install_base/perl" \ --with-python-module-dir="$$dc_install_base/python" +# matlab-only package +matlabdist: $(DISTFILES) + rm -rf svn_export + svn export $(top_srcdir) svn_export + ( cd svn_export && \ + mkdir matlab_getdata && \ + mkdir matlab_getdata/m4 && \ + mkdir matlab_getdata/src && \ + cp bindings/matlab/package/* matlab_getdata && \ + cp -r bindings/matlab/Makefile.am bindings/matlab/gd_*.[cm] \ + bindings/matlab/matlab.c bindings/matlab/gd_matlab.h bindings/matlab/test \ + bindings/matlab/doc.tail bindings/matlab/Contents.m.head \ + bindings/matlab/make_contents.sh.in \ + matlab_getdata/src && \ + cp -r bindings/make_parameters.c matlab_getdata && \ + cp -r m4/matlab.m4 m4/compiler.m4 m4/version.m4 matlab_getdata/m4 && \ + cp -r doc/README.matlab COPYING AUTHORS ChangeLog INSTALL NEWS \ + matlab_getdata && \ + ( cd matlab_getdata && \ + aclocal -I m4 && \ + libtoolize && \ + autoconf && \ + autoheader && \ + automake --add-missing --force-missing && \ + ./configure && \ + make dist && \ + cp matlab_${distdir}* ../.. \ + ) ) + rm -rf svn_export + +matlabdistcheck: matlab_$(distdir).tar.gz + tar -zxvf $< + cd matlab_$(distdir) && ./configure && make dist && make distcheck + rm -rf matlab_$(distdir) + # idl-only package idldist: $(DISTFILES) rm -rf svn_export - svn export . svn_export + svn export $(top_srcdir) svn_export ( cd svn_export && \ mkdir idl_getdata && \ mkdir idl_getdata/m4 && \ @@ -74,7 +109,7 @@ windist: $(DISTFILES) rm -rf crlf_export cd man && $(MAKE) htmlman - svn --native-eol CRLF export . crlf_export + svn --native-eol CRLF export $(top_srcdir) crlf_export ( cd crlf_export && \ mkdir $(distdir) && \ mkdir $(distdir)/bindings && \ Modified: trunk/getdata/bindings/idl/Makefile.am =================================================================== --- trunk/getdata/bindings/idl/Makefile.am 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/idl/Makefile.am 2013-02-15 03:13:09 UTC (rev 795) @@ -26,7 +26,7 @@ SUBDIRS=test -if GDIDL_EXTERNAL +if GD_EXTERNAL GDIDL_GETDATA_LIBS=$(GETDATA_LIBS) else GDIDL_GETDATA_LIBS=../../src/libgetdata.la Modified: trunk/getdata/bindings/idl/getdata.c =================================================================== --- trunk/getdata/bindings/idl/getdata.c 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/idl/getdata.c 2013-02-15 03:13:09 UTC (rev 795) @@ -32,7 +32,7 @@ # include "gd_config.h" #endif -#ifdef GDIDL_EXTERNAL +#ifdef GD_EXTERNAL # include <complex.h> # include <getdata.h> # define dtracevoid() Modified: trunk/getdata/bindings/idl/makedlm.sh.in =================================================================== --- trunk/getdata/bindings/idl/makedlm.sh.in 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/idl/makedlm.sh.in 2013-02-15 03:13:09 UTC (rev 795) @@ -21,11 +21,17 @@ # # @configure_input@ -sed=@SED@ -grep=@GREP@ +GREP=@GREP@ +DATE=@DATE@ opt=$1 in=$2 +if test "x$DATE" == "xnot found"; then + BUILD_DATE="unspecified" +else + BUILD_DATE=`date` +fi + if test "$opt" = "-c"; then cat <<EOF /* This code is automatically generated. Changes made here will be lost. */ @@ -38,13 +44,13 @@ MODULE GETDATA DESCRIPTION IDL GetData bindings VERSION @VERSION@ -BUILD_DATE @BUILD_DATE@ +BUILD_DATE $BUILD_DATE SOURCE The GetData Project <@PACKAGE_BUGREPORT@> STRUCTURE GD_ENTRY EOF fi -grep @@DLM $in | sort -k 5 | { +$GREP @@DLM $in | sort -k 5 | { nfunc=0 nproc=0 while read sc magic type func idl min max key extra; do if test "$opt" = "-c"; then Modified: trunk/getdata/bindings/idl/package/configure.ac =================================================================== --- trunk/getdata/bindings/idl/package/configure.ac 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/idl/package/configure.ac 2013-02-15 03:13:09 UTC (rev 795) @@ -115,7 +115,7 @@ GD_PROG_CC_WALL dnl Declare a few feature test macros -AC_DEFINE([GDIDL_EXTERNAL], [1], [ Define to 1 if building the GetData IDL bindings outside the GetData source tree ]) +AC_DEFINE([GD_EXTERNAL], [1], [ Define to 1 if building the GetData bindings outside the GetData source tree ]) AC_DEFINE([_BSD_SOURCE], [], [ Expose BSD-derived definitions ]) AC_DEFINE([_SVID_SOURCE], [], [ Expose System V-derived definitions ]) AC_DEFINE([_POSIX_SOURCE], [], [ Expose POSIX.1-1990 conforming definitions ]) @@ -204,7 +204,7 @@ AM_CONDITIONAL(LFS_TRANSITIONAL_API, [test "x$gd_cv_type_off64_t" = "xyes"]) AM_CONDITIONAL(TEST_IDL, [test "x$NO_DLOPEN_TESTS" = "x0"]) AM_CONDITIONAL(HAVE_DIFF, [test "x$DIFF" != "x"]) -AM_CONDITIONAL(GDIDL_EXTERNAL, [true]) +AM_CONDITIONAL(GD_EXTERNAL, [true]) dnl we do this here to avoid screwing up other tests LDFLAGS="${LDFLAGS}${NO_UNDEFINED}" Modified: trunk/getdata/bindings/make_parameters.c =================================================================== --- trunk/getdata/bindings/make_parameters.c 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/make_parameters.c 2013-02-15 03:13:09 UTC (rev 795) @@ -465,8 +465,57 @@ { int i; - fputs("% Copyright (C) 2013 D. V. Wiebe\n%\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%" - "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n%\n" + fputs("function GD = getdata_constants()\n", stdout); + + fputs("% GETDATA_CONSTANTS Define GetData symbolic constants\n" + "%\n" + "% GETDATA_CONSTANTS produces a structure containing the symbolic " + "constants\n" + "% used by the GetData bindings. Member names of the structure " + "correspond to\n" + "% names of symbolic constants used in the GetData C API.\n" + "%\n" + "% Although it can be used in immediate context by doing something " + "like\n" + "%\n" + "% >> GETDATA_CONSTANTS.FLOAT64\n" + "%\n" + "% ans =\n" + "%\n" + "% 136\n" + "%\n" + "% it is usually assigned to a variable, which prevents having to " + "evaluate this\n" + "% function more than once. We recommend calling this variable GD:\n" + "%\n" + "% >> GD = GETDATA_CONSTANTS;\n" + "% >> GD.FLOAT64\n" + "%\n" + "% ans =\n" + "%\n" + "% 136\n" + "%\n" + "% providing more succinct symbol names which closely resemble the " + "cor-\n" + "% respondng C API symbol names (e.g. GD_FLOAT64). In the " + "documentation for\n" + "% these bindings, we assume such a GD variable has been defined, and " + "refer to\n" + "% symbolic constants as GD.<...> when necessary.\n" + "%\n" + "% See also GETDATA\n\n", stdout); + + fputs(" GD = struct(...\n" + " 'VERSION', '" VERSION "'", stdout); + + for (i = 0; constant_list[i].lname != NULL; ++i) + printf(", ...\n '%s', int32(%li)", constant_list[i].sname, + constant_list[i].value); + + printf(" ...\n );\nend\n"); + + fputs("\n% Copyright (C) 2013 D. V. Wiebe\n%\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%" + "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n%\n" "% This file is part of the GetData project.\n%\n" "% GetData is free software; you can redistribute it and/or modify it " "under\n" @@ -485,32 +534,7 @@ "License\n" "% along with GetData; if not, write to the Free Software Foundation, " "Inc.,\n" - "% 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n\n", stdout); - - fputs("% getdata_constants:\n" - "% ------------------\n" - "% This function defines a structure containing various constants used " - "by\n" - "% the GetData MATLAB bindings. Typically it is called by doing " - "something\n" - "% like:\n%\n" - "% >> GD = getdata_constants()\n%\n" - "% which then allows you to use constants like 'GD.RDWR' when required " - "by\n" - "% the bindings.\n%\n" - "% For details on the GetData MATLAB bindings see the file " - "README.matlab\n" - "% distributed with the GetData source.\n", stdout); - - fputs("function GD = getdata_constants()\n" - " GD = struct(...\n" - " 'VERSION', '" VERSION "'", stdout); - - for (i = 0; constant_list[i].lname != NULL; ++i) - printf(", ...\n '%s', int32(%li)", constant_list[i].sname, - constant_list[i].value); - - printf(" ...\n );\nend\n"); + "% 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n", stdout); } int main(int argc, char* argv[]) Index: trunk/getdata/bindings/matlab =================================================================== --- trunk/getdata/bindings/matlab 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/matlab 2013-02-15 03:13:09 UTC (rev 795) Property changes on: trunk/getdata/bindings/matlab ___________________________________________________________________ Modified: svn:ignore ## -1,6 +1,98 ## *~ .deps .libs +Contents.m Makefile Makefile.in +make_contents.sh *.mex* +gd_add_alias.m +gd_add.m +gd_add_carray.m +gd_add_const.m +gd_add_spec.m +gd_add_string.m +gd_aliases.m +gd_alias_target.m +gd_alter_affixes.m +gd_alter_encoding.m +gd_alter_endianness.m +gd_alter_entry.m +gd_alter_frameoffset.m +gd_alter_protection.m +gd_alter_spec.m +gd_bof.m +gd_carray_len.m +gd_carrays.m +gd_close.m +gd_constants.m +gd_delete_alias.m +gd_delete.m +gd_desync.m +gd_dirfilename.m +gd_dirfile_standards.m +gd_discard.m +gd_encoding.m +gd_endianness.m +gd_entry.m +gd_entry_list.m +gd_entry_type.m +gd_eof.m +gd_error.m +gd_error_string.m +gd_flags.m +gd_flush.m +gd_fragment_affixes.m +gd_fragment_index.m +gd_fragmentname.m +gd_framenum.m +gd_frameoffset.m +gd_get_carray.m +gd_get_carray_slice.m +gd_getdata.m +gd_get_string.m +gd_hidden.m +gd_hide.m +gd_include_affix.m +gd_invalid_dirfile.m +gd_linterp_tablename.m +gd_madd_alias.m +gd_madd.m +gd_madd_carray.m +gd_madd_const.m +gd_madd_spec.m +gd_madd_string.m +gd_malter_spec.m +gd_mcarrays.m +gd_mconstants.m +gd_metaflush.m +gd_move_alias.m +gd_move.m +gd_mplex_lookback.m +gd_mstrings.m +gd_naliases.m +gd_native_type.m +gd_nentries.m +gd_nfragments.m +gd_nframes.m +gd_open.m +gd_parent_fragment.m +gd_protection.m +gd_put_carray_slice.m +gd_putdata.m +gd_put_string.m +gd_raw_close.m +gd_raw_filename.m +gd_reference.m +gd_rename.m +gd_rewrite_fragment.m +gd_seek.m +gd_spf.m +gd_strings.m +gd_strtok.m +gd_sync.m +gd_tell.m +gd_unhide.m +gd_uninclude.m +gd_validate.m +gd_verbose_prefix.m Added: trunk/getdata/bindings/matlab/Contents.m.head =================================================================== --- trunk/getdata/bindings/matlab/Contents.m.head (rev 0) +++ trunk/getdata/bindings/matlab/Contents.m.head 2013-02-15 03:13:09 UTC (rev 795) @@ -0,0 +1,95 @@ +% These bindings provide light-weight bindings to the GetData C library for +% use withing MATLAB. In general, there is a one-to-one mapping between C API +% functions and matlab functions. Differences in behaviour, where notable, are +% provided in the corresponing function help. +% +% The Dirifle object: +% Dirfile objects returned from GD_OPEN and similar should be treated as +% opaque objects. They should not be used other than when passing to a +% function in these bindings. +% +% GetData symbolic constants: +% Like the underlying C API, the GetData bindings make use of a large number +% of special numbers. For convenience, a struct containing all these numbers +% is provided by the GETDATA_CONSTANTS function, which is typically used by +% doing something like: +% +% >> GD = GETDATA_CONSTANTS; +% +% This then allows the use of these constants as GD.UINT8, GD.RAW_ENTRY, &c., +% which is both shorter than using the function directly, i.e., +% GETDATA_CONSTANTS.UINT8, and also only requires evaluating the +% GETDATA_CONSTANTS function once. +% +% In this documentation, when a reference is made to a GetData symbolic +% constant, it is done so as if the GD variable had been created as above. +% The reader should understand, e.g., GD.UINT8 as referring to the same +% special number as the similarly-named C API's symbolic constant, e.g., +% GD_UINT8. +% +% Input and Output: +% Functions in these GetData bindings produce either one or zero scalar or +% vector outputs, as explained in the corresponding function documentation. +% +% In general, where the C API would allow a NULL string pointer, these +% bindings accept a numeric zero (0) instead of a string input in place of a +% NULL. +% +% Unlike the C Library, real and complex data may be used interchangeably in +% function calls. +% +% Error reporting: +% GetData C Library errors are represented in MATLAB as standard exceptions +% (see MEXCEPTION). In general, GetData functions should be evaluated in a +% TRY ... CATCH ... END block. GetData-specific exceptions can be identified +% through their MEXCEPTION.identifier. The component part of a GetData +% MEXCPETION.identifier will always start with 'GetData:'. +% +% Exceptions representing a GetData C Library error will have the component +% identifier 'GetData:Lib'. Exceptions generated by the bindings themselves +% (almost all of which are failures in data conversion between MATLAB and C +% API data types) will have the component identifier 'GetData:GDMX'. For C +% Library errors, the mnemonic part of the MEXCEPTION.identifier corresponds +% to the C library error code (e.g. 'GetData:Lib:BadCode'). For C Library +% errors, numeric error codes can be obtained using the GD_ERROR function, as +% in the C Library. The return value of GD_ERROR is unspecified after an +% exception in the MATLAB bindings (i.e. a 'GetData:GDMX' exception). +% +% The Entry structure: +% Functions which deal with generic field metadata (GD_ADD, GD_ALTER_ENTRY, +% GD_ENTRY, &c.) use structures mirroring the C API's gd_entry_t object with +% the following exceptions: +% +% * In entries with multiple input fields, .IN_FIELDS is a cell array of +% strings of the appropriate length. For entries with a single input field, +% .IN_FIELDS may be either a simple string or else a cell array of length +% one. +% +% * A distinction is not made between real and complex data. As a result, +% the entry struct for, say, a POLYNOM, stores co-efficients in the .A +% member, regardless of whether they are complex or purely real. As a side +% effect, the structure does not contain a .COMP_SCAL member. +% +% * LINCOM entries don't provide a .N_FIELDS member, nor do POLYNOM entries +% provide a .POLY_ORD member; these values should be determined by +% determining the length of .IN_FIELDS, .M, or .B for LINCOMs or of .A for +% POLYNOMs. +% +% * The .SCALAR and .SCALAR_IND members are provided for field types which +% allow non-literal parameters. Where the C API would have NULL pointers +% in .SCALAR to indicate a literal, the bindings will have a numeric 0 in +% the corresponding .SCALAR cell array element. As with .IN_FIELDS, a +% length-one .SCALAR cell array may be replaced by a scalar. +% +% See gd_entry(3) in section 3 of the UNIX manual for details on the C API's +% gd_entry_t object. +% +% Function list: +% NOTE: accompanying documentation for the functions below in general only +% point out differences in behaviour between these MATLAB bindings and +% the underlying C API function which the MATLAB function wraps. Users +% should also consult the C API documentation, which can be found in +% section 3 of the UNIX manual, e.g. +% +% $ man 3 gd_open +% Modified: trunk/getdata/bindings/matlab/Makefile.am =================================================================== --- trunk/getdata/bindings/matlab/Makefile.am 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/matlab/Makefile.am 2013-02-15 03:13:09 UTC (rev 795) @@ -20,22 +20,14 @@ # AUTOMAKE_OPTIONS = foreign -if CXX_WALL -WALL=-Wall -endif - -if CXX_WEXTRA -WEXTRA=-Wextra -endif - -INCLUDES = ${WALL} $(WEXTRA) -I$(top_srcdir)/src - if GETDATA_DEBUG DEBUG_C = ../../src/debug.c endif SUBDIRS=test +matlabdir=$(matlabbasedir)/getdata + matlabfiles=gd_add_bit.m gd_add_divide.m gd_add_lincom.m gd_add_linterp.m \ gd_add_mplex.m gd_add_multiply.m gd_add_phase.m gd_add_polynom.m \ gd_add_raw.m gd_add_recip.m gd_add_sbit.m gd_add_window.m \ @@ -44,7 +36,7 @@ gd_alter_mplex.m gd_alter_multiply.m gd_alter_phase.m \ gd_alter_polynom.m gd_alter_raw.m gd_alter_recip.m gd_alter_sbit.m \ gd_alter_window.m gd_field_list_by_type.m gd_field_list.m \ - gd_get_constant.m gd_include.m gd_madd_bit.m gd_madd_divide.m \ + gd_get_constant.m gd_madd_bit.m gd_madd_divide.m \ gd_madd_lincom.m gd_madd_linterp.m gd_madd_mplex.m \ gd_madd_multiply.m gd_madd_phase.m gd_madd_polynom.m \ gd_madd_recip.m gd_madd_sbit.m gd_madd_window.m \ @@ -66,10 +58,11 @@ gd_fragment_index gd_fragmentname \ gd_framenum gd_frameoffset gd_get_carray gd_get_carray_slice \ gd_getdata gd_get_string \ - gd_hidden gd_hide gd_include_affix gd_invalid_dirfile \ + gd_hidden gd_hide gd_include gd_invalid_dirfile \ gd_linterp_tablename gd_madd gd_madd_alias \ gd_madd_carray gd_madd_const gd_madd_spec gd_madd_string \ - gd_malter_spec gd_mconstants gd_metaflush gd_move gd_move_alias gd_mplex_lookback \ + gd_malter_spec gd_mcarrays \ + gd_mconstants gd_metaflush gd_move gd_move_alias gd_mplex_lookback \ gd_mstrings gd_naliases gd_native_type gd_nentries gd_nfragments \ gd_nframes gd_open gd_parent_fragment gd_protection \ gd_put_carray_slice \ @@ -78,21 +71,45 @@ gd_seek gd_spf gd_strings gd_strtok \ gd_sync gd_tell gd_unhide gd_uninclude gd_validate gd_verbose_prefix -EXTRA_DIST=$(addsuffix .c,${mexfiles}) +matlabcfiles=$(addsuffix .c,${mexfiles}) +matlabmexfiles=$(addsuffix .@mexext@,${mexfiles}) +matlabdocfiles=$(addsuffix .m,${mexfiles}) -matlab_SCRIPTS=$(matlabfiles) -nodist_matlab_SCRIPTS=getdata_constants.m $(addsuffix .@mexext@,${mexfiles}) +EXTRA_DIST=$(matlabcfiles) doc.tail Contents.m.head +dist_matlab_SCRIPTS=$(matlabfiles) +nodist_matlab_SCRIPTS=Contents.m getdata_constants.m $(matlabmexfiles) \ + $(matlabdocfiles) + lib_LTLIBRARIES=libgetdata-matlab.la -libgetdata_matlab_la_SOURCES=matlab.c $(DEBUG_C) gd_matlab.h -libgetdata_matlab_la_LIBADD=../../src/libgetdata.la +libgetdata_matlab_la_SOURCES=matlab.c gd_matlab.h +nodist_libgetdata_matlab_la_SOURCES=$(DEBUG_C) libgetdata_matlab_la_CPPFLAGS=${MATLAB_CPPFLAGS} +libgetdata_matlab_la_LDFLAGS=-version-info @MATLABGETDATA_VERSION@ +if GD_EXTERNAL +libgetdata_matlab_la_LIBADD=$(GETDATA_LIBS) +INCLUDES=$(GETDATA_CFLAGS) +GDMX_LIBS=$(GETDATA_LIBS) +else +libgetdata_matlab_la_LIBADD=../../src/libgetdata.la +INCLUDES=-I${top_srcdir}/src -I../../src +GDMX_LIBS=-L../../src/.libs -lgetdata +endif + +%.m: %.c ${srcdir}/doc.tail + ${GREP} '^ %' $< | ${SED} -e 's/^ //' > $@ + cat ${srcdir}/doc.tail >> $@ + %.@mexext@: %.c libgetdata-matlab.la - ${MEX} -I${top_srcdir}/src -I../../src -L.libs -L../../src/.libs \ - -lgetdata-matlab -lgetdata $< + ${MEX} ${INCLUDES} -L.libs -lgetdata-matlab $(GDMX_LIBS) $< +Contents.m: ${srcdir}/Contents.m.head make_contents.sh $(matlabfiles) \ + $(matlabdocfiles) ${srcdir}/doc.tail + ${SHELL} ./make_contents.sh ${srcdir} > $@ + cat ${srcdir}/doc.tail >> $@ + getdata_constants.m: ../make_parameters ../make_parameters m > $@ @@ -100,4 +117,4 @@ cd .. && ${MAKE} make_parameters clean-local: - rm -rf *.${mexext} + rm -rf $(nodist_matlab_SCRIPTS) Added: trunk/getdata/bindings/matlab/doc.tail =================================================================== --- trunk/getdata/bindings/matlab/doc.tail (rev 0) +++ trunk/getdata/bindings/matlab/doc.tail 2013-02-15 03:13:09 UTC (rev 795) @@ -0,0 +1,20 @@ + +% Copyright (C) 2013 D. V. Wiebe +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% This file is part of the GetData project. +% +% GetData is free software; you can redistribute it and/or modify it under +% the terms of the GNU Lesser General Public License as published by the +% Free Software Foundation; either version 2.1 of the License, or (at your +% option) any later version. +% +% GetData is distributed in the hope that it will be useful, but WITHOUT +% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +% FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public +% License for more details. +% +% You should have received a copy of the GNU Lesser General Public License +% along with GetData; if not, write to the Free Software Foundation, Inc., +% 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Modified: trunk/getdata/bindings/matlab/gd_add.c =================================================================== --- trunk/getdata/bindings/matlab/gd_add.c 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/matlab/gd_add.c 2013-02-15 03:13:09 UTC (rev 795) @@ -20,6 +20,23 @@ */ #include "gd_matlab.h" +/* + % GD_ADD Add a field + % + % GD_ADD(DIRFILE,ENTRY) + % adds a field described by ENTRY to the dirfile DIRFILE. + % + % The DIRFILE object should have previously been created with GD_OPEN. + % + % The ENTRY object should be an entry struct; see GETDATA and gd_entry(3) in + % the UNIX manual for details. + % + % See the documentation on the C API function gd_add(3) in section 3 + % of the UNIX manual for more details. + % + % See also GD_MADD, GD_OPEN, GETDATA + */ + void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { DIRFILE *D; Modified: trunk/getdata/bindings/matlab/gd_add_alias.c =================================================================== --- trunk/getdata/bindings/matlab/gd_add_alias.c 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/matlab/gd_add_alias.c 2013-02-15 03:13:09 UTC (rev 795) @@ -20,6 +20,21 @@ */ #include "gd_matlab.h" +/* + % GD_ADD_ALIAS Add a field alias + % + % GD_ADD_ALIAS(DIRFILE,NAME,TARGET,FRAGMENT) + % adds a field alias called NAME pointing to TARGET in the metadata + % fragment indexed by FRAGMENT of the dirfile DIRFILE. + % + % The DIRFILE object should have previously been created with GD_OPEN. + % + % See the documentation on the C API function gd_add_alias(3) in section 3 + % of the UNIX manual for more details. + % + % See also GD_MADD_ALIAS, GD_OPEN + */ + void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { DIRFILE *D; Modified: trunk/getdata/bindings/matlab/gd_add_bit.m =================================================================== --- trunk/getdata/bindings/matlab/gd_add_bit.m 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/matlab/gd_add_bit.m 2013-02-15 03:13:09 UTC (rev 795) @@ -1,3 +1,25 @@ +function gd_add_bit(D, field_code, in_fields, bitnum, numbits, fragment_index) +% GD_ADD_BIT Add a BIT field +% +% GD_ADD_BIT(DIRFILE,NAME,INPUT,BITNUM,NUMBITS,FRAGMENT) +% adds a BIT field called NAME to the dirfile specified by DIRFILE. +% The input field is INPUT, the first bit is BITNUM and the length +% is NUMBITS. The field is added to the fragment indexed by +% FRAGMENT. +% +% The DIRFILE object should have previously been created with GD_OPEN. +% +% See the documentation on the C API function gd_add_bit(3) in section 3 +% of the UNIX manual for more details. +% +% See also GD_ADD, GD_MADD_BIT, GD_OPEN + + GD = getdata_constants(); + gd_add(D, struct('field', field_code, 'field_type', GD.BIT_ENTRY, ... + 'fragment_index', fragment_index, 'in_fields', {in_fields}, ... + 'bitnum', bitnum, 'numbits', numbits)); +end + % Copyright (C) 2013 D. V. Wiebe % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -17,10 +39,3 @@ % You should have received a copy of the GNU Lesser General Public License % along with GetData; if not, write to the Free Software Foundation, Inc., % 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -function gd_add_bit(D, field_code, in_fields, bitnum, numbits, fragment_index) - GD = getdata_constants(); - gd_add(D, struct('field', field_code, 'field_type', GD.BIT_ENTRY, ... - 'fragment_index', fragment_index, 'in_fields', {in_fields}, ... - 'bitnum', bitnum, 'numbits', numbits)); -end Modified: trunk/getdata/bindings/matlab/gd_add_carray.c =================================================================== --- trunk/getdata/bindings/matlab/gd_add_carray.c 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/matlab/gd_add_carray.c 2013-02-15 03:13:09 UTC (rev 795) @@ -20,6 +20,23 @@ */ #include "gd_matlab.h" +/* + % GD_ADD_CARRAY Add a CARRAY field + % + % GD_ADD_CARRAY(DIRFILE,NAME,TYPE,VALUES,FRAGMENT) + % adds a CARRAY field called NAME to the dirfile specified by + % DIRFILE. The storage type is TYPE, and the values of the field + % are in VALUES. The field is added to the fragment indexed by + % FRAGMENT. + % + % The DIRFILE object should have previously been created with GD_OPEN. + % + % See the documentation on the C API function gd_add_carray(3) in section 3 + % of the UNIX manual for more details. + % + % See also GD_ADD, GD_MADD_CARRAY, GD_OPEN + */ + void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { DIRFILE *D; Modified: trunk/getdata/bindings/matlab/gd_add_const.c =================================================================== --- trunk/getdata/bindings/matlab/gd_add_const.c 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/matlab/gd_add_const.c 2013-02-15 03:13:09 UTC (rev 795) @@ -20,6 +20,23 @@ */ #include "gd_matlab.h" +/* + % GD_ADD_CONST Add a CONST field + % + % GD_ADD_CONST(DIRFILE,NAME,TYPE,VALUE,FRAGMENT) + % adds a CONST field called NAME to the dirfile specified by + % DIRFILE. The storage type is TYPE, and the value of the field + % is VALUE. The field is added to the fragment indexed by + % FRAGMENT. + % + % The DIRFILE object should have previously been created with GD_OPEN. + % + % See the documentation on the C API function gd_add_const(3) in section 3 + % of the UNIX manual for more details. + % + % See also GD_ADD, GD_MADD_CONST, GD_OPEN + */ + void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { DIRFILE *D; Modified: trunk/getdata/bindings/matlab/gd_add_divide.m =================================================================== --- trunk/getdata/bindings/matlab/gd_add_divide.m 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/matlab/gd_add_divide.m 2013-02-15 03:13:09 UTC (rev 795) @@ -1,3 +1,23 @@ +function gd_add_divide(D, field_code, in1, in2, fragment_index) +% GD_ADD_DIVIDE Add a DIVIDE field +% +% GD_ADD_DIVIDE(DIRFILE,NAME,INPUT1,INPUT2,FRAGMENT) +% adds a DIVIDE field called NAME to the dirfile specified by +% DIRFILE. The input fields are INPUT1 and INPUT2 and the field +% is added to the fragment indexed by FRAGMENT. +% +% The DIRFILE object should have previously been created with GD_OPEN. +% +% See the documentation on the C API function gd_add_divide(3) in section 3 +% of the UNIX manual for more details. +% +% See also GD_ADD, GD_MADD_DIVIDE, GD_OPEN + + GD = getdata_constants(); + gd_add(D, struct('field', field_code, 'field_type', GD.DIVIDE_ENTRY, ... + 'fragment_index', fragment_index, 'in_fields', {{in1; in2}})); +end + % Copyright (C) 2013 D. V. Wiebe % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -17,9 +37,3 @@ % You should have received a copy of the GNU Lesser General Public License % along with GetData; if not, write to the Free Software Foundation, Inc., % 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -function gd_add_divide(D, field_code, in1, in2, fragment_index) - GD = getdata_constants(); - gd_add(D, struct('field', field_code, 'field_type', GD.DIVIDE_ENTRY, ... - 'fragment_index', fragment_index, 'in_fields', {{in1; in2}})); -end Modified: trunk/getdata/bindings/matlab/gd_add_lincom.m =================================================================== --- trunk/getdata/bindings/matlab/gd_add_lincom.m 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/matlab/gd_add_lincom.m 2013-02-15 03:13:09 UTC (rev 795) @@ -1,3 +1,25 @@ +function gd_add_lincom(D, field_code, in_fields, m, b, fragment_index); +% GD_ADD_LINCOM Add a LINCOM field +% +% GD_ADD_LINCOM(DIRFILE,NAME,INPUTS,M,B,FRAGMENT) +% adds a LINCOM field called NAME to the dirfile specified by +% DIRFILE. The input fields are provided in the cell array INPUTS +% and the slopes and offsets given by the numeric arrays M and B, +% which may be complex valued. The field is added to the fragment +% indexed by FRAGMENT. +% +% The DIRFILE object should have previously been created with GD_OPEN. +% +% See the documentation on the C API function gd_add_lincom(3) in section 3 +% of the UNIX manual for more details. +% +% See also GD_ADD, GD_MADD_LINCOM, GD_OPEN + + GD = getdata_constants(); + gd_add(D, struct('field', field_code, 'field_type', GD.LINCOM_ENTRY, ... + 'fragment_index', fragment_index, 'in_fields', {in_fields}, 'm', m, 'b', b)); +end + % Copyright (C) 2013 D. V. Wiebe % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -17,9 +39,3 @@ % You should have received a copy of the GNU Lesser General Public License % along with GetData; if not, write to the Free Software Foundation, Inc., % 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -function gd_add_lincom(D, field_code, in_fields, m, b, fragment_index); - GD = getdata_constants(); - gd_add(D, struct('field', field_code, 'field_type', GD.LINCOM_ENTRY, ... - 'fragment_index', fragment_index, 'in_fields', {in_fields}, 'm', m, 'b', b)); -end Modified: trunk/getdata/bindings/matlab/gd_add_linterp.m =================================================================== --- trunk/getdata/bindings/matlab/gd_add_linterp.m 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/matlab/gd_add_linterp.m 2013-02-15 03:13:09 UTC (rev 795) @@ -1,3 +1,24 @@ +function gd_add_linterp(D, field_code, in_field, table, fragment_index); +% GD_ADD_LINTERP Add a LINTERP field +% +% GD_ADD_LINTERP(DIRFILE,NAME,INPUT,TABLE,FRAGMENT) +% adds a LINTERP field called NAME to the dirfile specified by +% DIRFILE. The input field is INPUT and the associated look-up +% table is given by the path TABLE. The field is added to the +% fragment indexed by FRAGMENT. +% +% The DIRFILE object should have previously been created with GD_OPEN. +% +% See the documentation on the C API function gd_add_linterp(3) in section 3 +% of the UNIX manual for more details. +% +% See also GD_ADD, GD_MADD_LINTERP, GD_OPEN + + GD = getdata_constants(); + gd_add(D, struct('field', field_code, 'field_type', GD.LINTERP_ENTRY, ... + 'fragment_index', fragment_index, 'in_fields', in_field, 'table', table)); +end + % Copyright (C) 2013 D. V. Wiebe % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -17,9 +38,3 @@ % You should have received a copy of the GNU Lesser General Public License % along with GetData; if not, write to the Free Software Foundation, Inc., % 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -function gd_add_linterp(D, field_code, in_fields, table, fragment_index); - GD = getdata_constants(); - gd_add(D, struct('field', field_code, 'field_type', GD.LINTERP_ENTRY, ... - 'fragment_index', fragment_index, 'in_fields', in_fields, 'table', table)); -end Modified: trunk/getdata/bindings/matlab/gd_add_mplex.m =================================================================== --- trunk/getdata/bindings/matlab/gd_add_mplex.m 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/matlab/gd_add_mplex.m 2013-02-15 03:13:09 UTC (rev 795) @@ -1,3 +1,27 @@ +function gd_add_mplex(D, field_code, in_field1, in_field2, count_val, ... +count_max, fragment_index) +% GD_ADD_MPLEX Add a MPLEX field +% +% GD_ADD_MPLEX(DIRFILE,NAME,INPUT1,INPUT2,COUNT_VAL,COUNT_MAX,FRAGMENT) +% adds a MPLEX field called NAME to the dirfile specified by +% DIRFILE. The input data field is INPUT1, the index field is +% INPUT2. The target value is COUNT_VAL and the maximum value of +% INPUT2 is COUNT_MAX. The field is added to the fragment +% indexed by FRAGMENT. +% +% The DIRFILE object should have previously been created with GD_OPEN. +% +% See the documentation on the C API function gd_add_mplex(3) in section 3 +% of the UNIX manual for more details. +% +% See also GD_ADD, GD_MADD_MPLEX, GD_OPEN + + GD = getdata_constants(); + gd_add(D, struct('field', field_code, 'field_type', GD.MPLEX_ENTRY, ... + 'fragment_index', fragment_index, 'in_fields', {{in_field1; in_field2}}, ... + 'count_val', count_val, 'count_max', count_max)); +end + % Copyright (C) 2013 D. V. Wiebe % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -17,11 +41,3 @@ % You should have received a copy of the GNU Lesser General Public License % along with GetData; if not, write to the Free Software Foundation, Inc., % 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -function gd_add_mplex(D, field_code, in_field1, in_field2, count_val, ... -count_max, fragment_index) - GD = getdata_constants(); - gd_add(D, struct('field', field_code, 'field_type', GD.MPLEX_ENTRY, ... - 'fragment_index', fragment_index, 'in_fields', {{in_field1; in_field2}}, ... - 'count_val', count_val, 'count_max', count_max)); -end Modified: trunk/getdata/bindings/matlab/gd_add_multiply.m =================================================================== --- trunk/getdata/bindings/matlab/gd_add_multiply.m 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/matlab/gd_add_multiply.m 2013-02-15 03:13:09 UTC (rev 795) @@ -1,3 +1,23 @@ +function gd_add_multiply(D, field_code, in1, in2, fragment_index) +% GD_ADD_MULTIPLY Add a MULTIPLY field +% +% GD_ADD_MULTIPLY(DIRFILE,NAME,INPUT1,INPUT2,FRAGMENT) +% adds a MULTIPLY field called NAME to the dirfile specified by +% DIRFILE. The input fields are INPUT1 and INPUT2 and the field +% is added to the fragment indexed by FRAGMENT. +% +% The DIRFILE object should have previously been created with GD_OPEN. +% +% See the documentation on the C API function gd_add_multiply(3) in section 3 +% of the UNIX manual for more details. +% +% See also GD_ADD, GD_MADD_MULTIPLY, GD_OPEN + + GD = getdata_constants(); + gd_add(D, struct('field', field_code, 'field_type', GD.MULTIPLY_ENTRY, ... + 'fragment_index', fragment_index, 'in_fields', {{in1; in2}})); +end + % Copyright (C) 2013 D. V. Wiebe % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -17,9 +37,3 @@ % You should have received a copy of the GNU Lesser General Public License % along with GetData; if not, write to the Free Software Foundation, Inc., % 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -function gd_add_multiply(D, field_code, in1, in2, fragment_index) - GD = getdata_constants(); - gd_add(D, struct('field', field_code, 'field_type', GD.MULTIPLY_ENTRY, ... - 'fragment_index', fragment_index, 'in_fields', {{in1; in2}})); -end Modified: trunk/getdata/bindings/matlab/gd_add_phase.m =================================================================== --- trunk/getdata/bindings/matlab/gd_add_phase.m 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/matlab/gd_add_phase.m 2013-02-15 03:13:09 UTC (rev 795) @@ -1,3 +1,23 @@ +function gd_add_phase(D, field_code, in_fields, shift, fragment_index) +% GD_ADD_PHASE Add a PHASE field +% +% GD_ADD_PHASE(DIRFILE,NAME,INPUT,SHIFT,FRAGMENT) +% adds a PHASE field called NAME to the dirfile specified by +% DIRFILE. The input field is INPUT and the phase shift is SHIFT. +% The field is added to the fragment indexed by FRAGMENT. +% +% The DIRFILE object should have previously been created with GD_OPEN. +% +% See the documentation on the C API function gd_add_phase(3) in section 3 +% of the UNIX manual for more details. +% +% See also GD_ADD, GD_MADD_PHASE, GD_OPEN + + GD = getdata_constants(); + gd_add(D, struct('field', field_code, 'field_type', GD.PHASE_ENTRY, ... + 'fragment_index', fragment_index, 'in_fields', {in_fields}, 'shift', shift)); +end + % Copyright (C) 2013 D. V. Wiebe % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -17,9 +37,3 @@ % You should have received a copy of the GNU Lesser General Public License % along with GetData; if not, write to the Free Software Foundation, Inc., % 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -function gd_add_phase(D, field_code, in_fields, shift, fragment_index) - GD = getdata_constants(); - gd_add(D, struct('field', field_code, 'field_type', GD.PHASE_ENTRY, ... - 'fragment_index', fragment_index, 'in_fields', {in_fields}, 'shift', shift)); -end Modified: trunk/getdata/bindings/matlab/gd_add_polynom.m =================================================================== --- trunk/getdata/bindings/matlab/gd_add_polynom.m 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/matlab/gd_add_polynom.m 2013-02-15 03:13:09 UTC (rev 795) @@ -1,3 +1,24 @@ +function gd_add_polynom(D, field_code, in_field, a, fragment_index); +% GD_ADD_POLYNOM Add a POLYNOM field +% +% GD_ADD_POLYNOM(DIRFILE,NAME,INPUT,A,FRAGMENT) +% adds a POLYNOM field called NAME to the dirfile specified by +% DIRFILE. The input field is INPUT and the co-efficients are +% given in the numerical array A, which may be complex valued. +% The field is added to the fragment indexed by FRAGMENT. +% +% The DIRFILE object should have previously been created with GD_OPEN. +% +% See the documentation on the C API function gd_add_polynom(3) in section 3 +% of the UNIX manual for more details. +% +% See also GD_ADD, GD_MADD_POLYNOM, GD_OPEN + + GD = getdata_constants(); + gd_add(D, struct('field', field_code, 'field_type', GD.POLYNOM_ENTRY, ... + 'fragment_index', fragment_index, 'in_fields', {in_field}, 'a', a)); +end + % Copyright (C) 2013 D. V. Wiebe % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -17,9 +38,3 @@ % You should have received a copy of the GNU Lesser General Public License % along with GetData; if not, write to the Free Software Foundation, Inc., % 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -function gd_add_polynom(D, field_code, in_fields, a, fragment_index); - GD = getdata_constants(); - gd_add(D, struct('field', field_code, 'field_type', GD.POLYNOM_ENTRY, ... - 'fragment_index', fragment_index, 'in_fields', {in_fields}, 'a', a)); -end Modified: trunk/getdata/bindings/matlab/gd_add_raw.m =================================================================== --- trunk/getdata/bindings/matlab/gd_add_raw.m 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/matlab/gd_add_raw.m 2013-02-15 03:13:09 UTC (rev 795) @@ -1,3 +1,25 @@ +function gd_add_raw(D, field_code, data_type, spf, fragment_index) +% GD_ADD_RAW Add a RAW field +% +% GD_ADD_RAW(DIRFILE,NAME,TYPE,SPF,FRAGMENT) +% adds a RAW field called NAME to the dirfile specified by +% DIRFILE. The type of the raw data is given by TYPE, which should +% be one of the data types provided by GETDATA_CONSTANTS(). The +% samples-per-frame of the field is given by SPF. The field is +% added to the fragment indexed by FRAGMENT. +% +% The DIRFILE object should have previously been created with GD_OPEN. +% +% See the documentation on the C API function gd_add_raw(3) in section 3 +% of the UNIX manual for more details. +% +% See also GD_ADD, GD_OPEN + + GD = getdata_constants(); + gd_add(D, struct('field', field_code, 'field_type', GD.RAW_ENTRY, ... + 'fragment_index', fragment_index, 'data_type', data_type, 'spf', spf)); +end + % Copyright (C) 2013 D. V. Wiebe % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -17,9 +39,3 @@ % You should have received a copy of the GNU Lesser General Public License % along with GetData; if not, write to the Free Software Foundation, Inc., % 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -function gd_add_raw(D, field_code, data_type, spf, fragment_index) - GD = getdata_constants(); - gd_add(D, struct('field', field_code, 'field_type', GD.RAW_ENTRY, ... - 'fragment_index', fragment_index, 'data_type', data_type, 'spf', spf)); -end Modified: trunk/getdata/bindings/matlab/gd_add_recip.m =================================================================== --- trunk/getdata/bindings/matlab/gd_add_recip.m 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/matlab/gd_add_recip.m 2013-02-15 03:13:09 UTC (rev 795) @@ -1,3 +1,24 @@ +function gd_add_recip(D, field_code, in_field, dividend, fragment_index) +% GD_ADD_RECIP Add a RECIP field +% +% GD_ADD_RECIP(DIRFILE,NAME,INPUT,DIVIDEND,FRAGMENT) +% adds a RECIP field called NAME to the dirfile specified by +% DIRFILE. The scalar dividend is DIVIDEND, which may be complex +% valued. The field is added to the fragment indexed by FRAGMENT. +% +% The DIRFILE object should have previously been created with GD_OPEN. +% +% See the documentation on the C API function gd_add_recip(3) in section 3 of +% the UNIX manual for more details. +% +% See also GD_ADD, GD_MADD_RECIP, GD_OPEN + + GD = getdata_constants(); + gd_add(D, struct('field', field_code, 'field_type', GD.RECIP_ENTRY, ... + 'fragment_index', fragment_index, 'in_fields', {in_field}, ... + 'dividend', dividend)); +end + % Copyright (C) 2013 D. V. Wiebe % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -17,10 +38,3 @@ % You should have received a copy of the GNU Lesser General Public License % along with GetData; if not, write to the Free Software Foundation, Inc., % 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -function gd_add_recip(D, field_code, in_fields, dividend, fragment_index) - GD = getdata_constants(); - gd_add(D, struct('field', field_code, 'field_type', GD.RECIP_ENTRY, ... - 'fragment_index', fragment_index, 'in_fields', {in_fields}, ... - 'dividend', dividend)); -end Modified: trunk/getdata/bindings/matlab/gd_add_sbit.m =================================================================== --- trunk/getdata/bindings/matlab/gd_add_sbit.m 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/matlab/gd_add_sbit.m 2013-02-15 03:13:09 UTC (rev 795) @@ -1,3 +1,25 @@ +function gd_add_sbit(D, field_code, in_fields, bitnum, numbits, fragment_index) +% GD_ADD_SBIT Add a SBIT field +% +% GD_ADD_SBIT(DIRFILE,NAME,INPUT,BITNUM,NUMBITS,FRAGMENT) +% adds a SBIT field called NAME to the dirfile specified by DIRFILE. +% The input field is INPUT, the first bit is BITNUM and the length +% is NUMBITS. The field is added to the fragment indexed by +% FRAGMENT. +% +% The DIRFILE object should have previously been created with GD_OPEN. +% +% See the documentation on the C API function gd_add_sbit(3) in section 3 +% of the UNIX manual for more details. +% +% See also GD_ADD, GD_MADD_SBIT, GD_OPEN + + GD = getdata_constants(); + gd_add(D, struct('field', field_code, 'field_type', GD.SBIT_ENTRY, ... + 'fragment_index', fragment_index, 'in_fields', {in_fields}, ... + 'bitnum', bitnum, 'numbits', numbits)); +end + % Copyright (C) 2013 D. V. Wiebe % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -17,10 +39,3 @@ % You should have received a copy of the GNU Lesser General Public License % along with GetData; if not, write to the Free Software Foundation, Inc., % 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -function gd_add_sbit(D, field_code, in_fields, bitnum, numbits, fragment_index) - GD = getdata_constants(); - gd_add(D, struct('field', field_code, 'field_type', GD.SBIT_ENTRY, ... - 'fragment_index', fragment_index, 'in_fields', {in_fields}, ... - 'bitnum', bitnum, 'numbits', numbits)); -end Modified: trunk/getdata/bindings/matlab/gd_add_spec.c =================================================================== --- trunk/getdata/bindings/matlab/gd_add_spec.c 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/matlab/gd_add_spec.c 2013-02-15 03:13:09 UTC (rev 795) @@ -20,6 +20,22 @@ */ #include "gd_matlab.h" +/* + % GD_ADD_SPEC Add a field + % + % GD_ADD_SPEC(DIRFILE,SPEC,FRAGMENT) + % adds a field described by the field specification line SPEC to + % the dirfile DIRFILE. The field is added to the fragment indexed + % by FRAGMENT. + % + % The DIRFILE object should have previously been created with GD_OPEN. + % + % See the documentation on the C API function gd_add_spec(3) in section 3 + % of the UNIX manual for more details. + % + % See also GD_ADD, GD_MADD_SPEC, GD_OPEN + */ + void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { DIRFILE *D; Modified: trunk/getdata/bindings/matlab/gd_add_string.c =================================================================== --- trunk/getdata/bindings/matlab/gd_add_string.c 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/matlab/gd_add_string.c 2013-02-15 03:13:09 UTC (rev 795) @@ -20,6 +20,22 @@ */ #include "gd_matlab.h" +/* + % GD_ADD_STRING Add a STRING field + % + % GD_ADD_STRING(DIRFILE,NAME,VALUE,FRAGMENT) + % adds a STRING field called NAME to the dirfile specified by + % DIRFILE. The value of the field is set to VALUE. The field is + % added to the fragment indexed by FRAGMENT. + % + % The DIRFILE object should have previously been created with GD_OPEN. + % + % See the documentation on the C API function gd_add_string(3) in section 3 + % of the UNIX manual for more details. + % + % See also GD_ADD, GD_MADD_STRING, GD_OPEN + */ + void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { DIRFILE *D; Modified: trunk/getdata/bindings/matlab/gd_add_window.m =================================================================== --- trunk/getdata/bindings/matlab/gd_add_window.m 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/matlab/gd_add_window.m 2013-02-15 03:13:09 UTC (rev 795) @@ -1,3 +1,28 @@ +function gd_add_window(D, field_code, in_field1, in_field2, windop, ... +threshold, fragment_index); +% GD_ADD_WINDOW Add a WINDOW field +% +% GD_ADD_WINDOW(DIRFILE,NAME,INPUT1,INPUT2,WINDOP,THRESHOLD,FRAGMENT) +% adds a WINDOW field called NAME to the dirfile specified by +% DIRFILE. The data input field is INPUT1, and the mask field is +% INPUT2. The operator is specified by WINDOP, which should be one +% of the GD.WINDOP_... members provided by GETDATA_CONSTANTS, and +% the threshold is THRESHOLD. The field is added to the fragment +% indexed by FRAGMENT. +% +% The DIRFILE object should have previously been created with GD_OPEN. +% +% See the documentation on the C API function gd_add_window(3) in section 3 +% of the UNIX manual for more details. +% +% See also GD_ADD, GD_MADD_WINDOW, GD_OPEN, GETDATA_CONSTANTS + + GD = getdata_constants(); + gd_add(D, struct('field', field_code, 'field_type', GD.WINDOW_ENTRY, ... + 'fragment_index', fragment_index, 'in_fields', {{in_field1; in_field2}}, ... + 'windop', windop, 'threshold', threshold)); +end + % Copyright (C) 2013 D. V. Wiebe % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -17,11 +42,3 @@ % You should have received a copy of the GNU Lesser General Public License % along with GetData; if not, write to the Free Software Foundation, Inc., % 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -function gd_add_window(D, field_code, in_field1, in_field2, windop, ... -threshold, fragment_index); - GD = getdata_constants(); - gd_add(D, struct('field', field_code, 'field_type', GD.WINDOW_ENTRY, ... - 'fragment_index', fragment_index, 'in_fields', {{in_field1; in_field2}}, ... - 'windop', windop, 'threshold', threshold)); -end Modified: trunk/getdata/bindings/matlab/gd_alias_target.c =================================================================== --- trunk/getdata/bindings/matlab/gd_alias_target.c 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/matlab/gd_alias_target.c 2013-02-15 03:13:09 UTC (rev 795) @@ -20,6 +20,20 @@ */ #include "gd_matlab.h" +/* + % GD_ALIAS_TARGET Report the target of an /ALIAS + % + % T = GD_ALIAS_TARGET(DIRFILE,NAME) + % returns the target, T, of the alias named NAME. + % + % The DIRFILE object should have previously been created with GD_OPEN. + % + % See the documentation on the C API function gd_alias_target(3) in section 3 + % of the UNIX manual for more details. + % + % See also GD_ALIASES, GD_OPEN + */ + void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { DIRFILE *D; Modified: trunk/getdata/bindings/matlab/gd_aliases.c =================================================================== --- trunk/getdata/bindings/matlab/gd_aliases.c 2013-02-14 04:06:02 UTC (rev 794) +++ trunk/getdata/bindings/matlab/gd_aliases.c 2013-02-15 03:13:09 UTC (rev 795) @@ -20,6 +20,21 @@ */ #include "gd_matlab.h" +/* + % GD_ALIASES Retrieve a list of aliases for a field + % + % A = GD_ALIASES(DIRFILE,NAME) + % returns a cell array of strings, A, comprising all the aliases of + % ... [truncated message content] |
From: <ket...@us...> - 2013-02-14 04:06:06
|
Revision: 794 http://sourceforge.net/p/getdata/code/794 Author: ketiltrout Date: 2013-02-14 04:06:02 +0000 (Thu, 14 Feb 2013) Log Message: ----------- Test gd_mcarrays in bindings; fix underscores in the rest of the encodings. Modified Paths: -------------- trunk/getdata/ChangeLog trunk/getdata/bindings/cxx/test/big_test.cpp trunk/getdata/bindings/perl/Makefile.am trunk/getdata/bindings/perl/t/big_test.t trunk/getdata/bindings/python/test/big_test.py trunk/getdata/doc/list.tests trunk/getdata/src/lzma.c trunk/getdata/src/slim.c trunk/getdata/src/zzip.c Modified: trunk/getdata/ChangeLog =================================================================== --- trunk/getdata/ChangeLog 2013-02-06 22:47:39 UTC (rev 793) +++ trunk/getdata/ChangeLog 2013-02-14 04:06:02 UTC (rev 794) @@ -1,3 +1,7 @@ +2012-02-02 D. V. Wiebe <ge...@ke...> svn:794 + * bindings/cxx/test/big_test.cpp bindings/perl/t/big_test.t + bindings/python/test/big_test.py: Add test 243. + 2012-02-02 D. V. Wiebe <ge...@ke...> svn:793 * src/parse.c (_GD_Tokenise): Don't falsely report an unterminated token when stopping a partial tokenisation on top of a " or \. Modified: trunk/getdata/bindings/cxx/test/big_test.cpp =================================================================== --- trunk/getdata/bindings/cxx/test/big_test.cpp 2013-02-06 22:47:39 UTC (rev 793) +++ trunk/getdata/bindings/cxx/test/big_test.cpp 2013-02-14 04:06:02 UTC (rev 794) @@ -144,6 +144,7 @@ "lincom LINCOM data 1.1 2.2 INDEX 2.2 3.3;4.4 linterp const const\n" "/META data mstr STRING \"This is a string constant.\"\n" "/META data mconst CONST COMPLEX128 3.3;4.4\n" + "/META data mcarray CARRAY FLOAT64 1.9 2.8 3.7 4.6 5.5\n" "/META data mlut LINTERP DATA ./lut\n" "const CONST FLOAT64 5.5\n" "carray CARRAY FLOAT64 1.1 2.2 3.3 4.4 5.5 6.6\n" @@ -192,6 +193,7 @@ MplexEntry xent, *xep; Fragment *frag; gd_triplet_t thresh; + const gd_carray_t *carrays; char* fields[nfields + 9] = {(char*)"INDEX", (char*)"alias", (char*)"bit", (char*)"carray", (char*)"const", (char*)"data", (char*)"div", @@ -201,6 +203,13 @@ NULL, NULL}; char *strings[3]; + unlink(data); + unlink(new1); + unlink(format); + unlink(format1); + unlink(form2); + rmdir(filedir); + // Write the test dirfile mkdir(filedir, 0777); @@ -253,12 +262,13 @@ // 9: Dirfile::NFields check n = d->NMFields("data"); CHECK_OK(9); - CHECK_INT(9,n,3); + CHECK_INT(9,n,4); // 10: Dirfile::MFieldList check fields[0] = (char*)"mstr"; fields[1] = (char*)"mconst"; - fields[2] = (char*)"mlut"; + fields[2] = (char*)"mcarray"; + fields[3] = (char*)"mlut"; list = d->MFieldList("data"); CHECK_OK(10); CHECK_STRING_ARRAY(10,n,list[i],fields[i]); @@ -1281,7 +1291,7 @@ CHECK_DOUBLE_ARRAY(159,1,2,p[i],1.1 * (i + 3)); // 167 gd_carrays - const gd_carray_t *carrays = d->Carrays(Float64); + carrays = d->Carrays(Float64); CHECK_OK(167); CHECK_NONNULL(167,carrays); CHECK_INT2(167,1,carrays[0].n,6); @@ -1343,6 +1353,23 @@ CHECK_INT2(179,4,ent->ArrayLen(),4); delete ent; + // 180: gd_madd_carray + aent.Dissociate(); + aent.SetName("mnew17"); + aent.SetFragmentIndex(0); + aent.SetType(Float64); + aent.SetArrayLen(2); + d->MAdd(aent, "data"); + CHECK_OK2(180,1); + + ent = d->Entry("data/mnew17"); + CHECK_OK2(180,2); + CHECK_INT2(180,1,ent->Type(),CarrayEntryType); + CHECK_INT2(180,2,ent->FragmentIndex(),0); + CHECK_INT2(180,3,ent->ConstType(),Float64); + CHECK_INT2(180,4,ent->ArrayLen(),2); + delete ent; + // 181 gd_alter_carray aep = reinterpret_cast<CarrayEntry*>(d->Entry("new17")); CHECK_OK2(181,1); @@ -1685,7 +1712,7 @@ n = d->NEntries("data", GD_SCALAR_ENTRIES, GD_ENTRIES_HIDDEN | GD_ENTRIES_NOALIAS); CHECK_OK2(237, 1); - CHECK_INT2(237, 1, n, 2); + CHECK_INT2(237, 1, n, 4); n = d->NEntries(NULL, GD_VECTOR_ENTRIES, GD_ENTRIES_HIDDEN | GD_ENTRIES_NOALIAS); CHECK_OK2(237, 2); @@ -1734,12 +1761,22 @@ CHECK_EOSTRING(241,tok,buf); free(tok); + // 242: gd_carrays + carrays = d->MCarrays("data", Float64); + CHECK_OK(242); + CHECK_NONNULL(242,carrays); + CHECK_INT2(242,1,carrays[0].n,5); + CHECK_DOUBLE_ARRAY(242,2,5,((double*)carrays[0].d)[i],(1.9 + i * 0.9)); + CHECK_INT2(242,3,carrays[1].n,2); + CHECK_DOUBLE_ARRAY(242,4,2,((double*)carrays[1].d)[i],0); + CHECK_INT2(242,5,carrays[2].n,0); + // =================================================================== d->Discard(); delete d; Modified: trunk/getdata/bindings/perl/Makefile.am =================================================================== --- trunk/getdata/bindings/perl/Makefile.am 2013-02-06 22:47:39 UTC (rev 793) +++ trunk/getdata/bindings/perl/Makefile.am 2013-02-14 04:06:02 UTC (rev 794) @@ -87,7 +87,7 @@ $(PERL) Build clean; \ fi rm -f $(BUILT_SOURCES) make_parameters.sed MYMETA.yml MYMETA.json GetData.pm - rm -rf Build _build MANIFEST build.stamp + rm -rf Build _build MANIFEST build.stamp t/*~ uninstall-hook: rmdir $(DESTDIR)${perlautogetdatadir} Modified: trunk/getdata/bindings/perl/t/big_test.t =================================================================== --- trunk/getdata/bindings/perl/t/big_test.t 2013-02-06 22:47:39 UTC (rev 793) +++ trunk/getdata/bindings/perl/t/big_test.t 2013-02-14 04:06:02 UTC (rev 794) @@ -22,7 +22,7 @@ use GetData; use Math::Complex; use strict; -use Test::More tests => 1305; +use Test::More tests => 1317; my $ne = 0; my ($s, @a, %h); @@ -162,6 +162,7 @@ lincom LINCOM data 1.1 2.2 INDEX 2.2 3.3;4.4 linterp const const /META data mstr STRING "This is a string constant." /META data mconst CONST COMPLEX128 3.3;4.4 +/META data mcarray CARRAY FLOAT64 1.9 2.8 3.7 4.6 5.5 /META data mlut LINTERP DATA ./lut const CONST FLOAT64 5.5 carray CARRAY FLOAT64 1.1 2.2 3.3 4.4 5.5 6.6 @@ -230,12 +231,12 @@ # 9: nmfields check $s = $_->mfield_list("data"); CheckOK(9); -CheckNum(9, $s, 3); +CheckNum(9, $s, 4); # 10: mfield_list check @a = $_->mfield_list("data"); CheckOK(10); -CheckSArray(10, \@a, qw(mstr mconst mlut)); +CheckSArray(10, \@a, qw(mstr mconst mcarray mlut)); # 11: nframes check $s = $_->nframes; @@ -1686,7 +1687,7 @@ $s = $_->entry_list("data", $GetData::SCALAR_ENTRIES, $GetData::ENTRIES_HIDDEN | $GetData::ENTRIES_NOALIAS); CheckOK2(237, 1); -CheckNum2(237, 1, $s, 5); +CheckNum2(237, 1, $s, 6); $s = $_->entry_list(undef, $GetData::VECTOR_ENTRIES, $GetData::ENTRIES_HIDDEN | $GetData::ENTRIES_NOALIAS); CheckOK2(237, 2); @@ -1709,6 +1710,12 @@ CheckOK(241); CheckEOString(241, $s, "dirfile/lut"); +# 242: mcarrays +@a = $_->mcarrays("data", $GetData::FLOAT64); +CheckOK2(242, 1); +CheckNum2(242, 2, $#a, 1); +CheckArray2(242, 3, $a[0], 1.9, 2.8, 3.7, 4.6, 5.5 ); +CheckArray2(242, 4, $a[1], 1.8, 18 ); @@ -1716,5 +1723,6 @@ + $d = $_ = undef; system "rm -rf dirfile"; Modified: trunk/getdata/bindings/python/test/big_test.py =================================================================== --- trunk/getdata/bindings/python/test/big_test.py 2013-02-06 22:47:39 UTC (rev 793) +++ trunk/getdata/bindings/python/test/big_test.py 2013-02-14 04:06:02 UTC (rev 794) @@ -101,6 +101,7 @@ "lincom LINCOM data 1.1 2.2 INDEX 2.2 3.3;4.4 linterp const const\n" "/META data mstr STRING \"This is a string constant.\"\n" "/META data mconst CONST COMPLEX128 3.3;4.4\n" + "/META data mcarray CARRAY FLOAT64 1.9 2.8 3.7 4.6 5.5\n" "/META data mlut LINTERP DATA ./lut\n" "const CONST FLOAT64 5.5\n" "carray CARRAY FLOAT64 1.1 2.2 3.3 4.4 5.5 6.6\n" @@ -226,14 +227,14 @@ n = d.nmfields("data") except: CheckOK(9) -CheckSimple(9,n,3) +CheckSimple(9,n,4) # 10: mfield_list check try: n = d.mfield_list("data") except: CheckOK(10) -CheckSimple(10,n,["mstr", "mconst", "mlut"]) +CheckSimple(10,n,["mstr", "mconst", "mcarray", "mlut"]) # 11: nframes check try: @@ -1391,7 +1392,7 @@ CheckSimple2(167,1,len(n),1) if (pygetdata.__numpy_supported__): CheckSimple2(167,2,n[0][0],"carray") - CheckNumpy2(167,2,n[0][1],numpy.arange(1,7)) + CheckNumpy2(167,3,n[0][1],numpy.arange(1,7)) else: CheckSimple(167,n,[("carray", [1,2,3,4,5,6])]) @@ -1958,7 +1959,7 @@ pygetdata.ENTRIES_HIDDEN | pygetdata.ENTRIES_NOALIAS) except: CheckOK2(237, 1) -CheckSimple2(237, 1, n, 4) +CheckSimple2(237, 1, n, 5) try: n = d.nentries(type = pygetdata.VECTOR_ENTRIES, flags = pygetdata.ENTRIES_HIDDEN | pygetdata.ENTRIES_NOALIAS) @@ -1995,7 +1996,20 @@ CheckOK(241) CheckEOS(241,n,"dirfile/lut") +# 242: mcarrays +try: + n = d.mcarrays("data", pygetdata.FLOAT) +except: + CheckOK(242) +CheckSimple2(242,1,len(n),2) +if (pygetdata.__numpy_supported__): + CheckSimple2(242,2,n[0][0],"mcarray") + CheckNumpy2(242,3,n[0][1],1.9 + 0.9 * numpy.arange(0,5)) + CheckSimple2(242,4,n[1][0],"mnew17") + CheckNumpy2(242,5,n[1][1],[0,0]) +else: + CheckSimple(242,n,[("mcarray", [1.9, 2.8, 3.7, 4.6, 5.5]), ("mnew17", [0,0])]) @@ -2007,6 +2021,7 @@ + # ========================================================================== d.discard() Modified: trunk/getdata/doc/list.tests =================================================================== --- trunk/getdata/doc/list.tests 2013-02-06 22:47:39 UTC (rev 793) +++ trunk/getdata/doc/list.tests 2013-02-14 04:06:02 UTC (rev 794) @@ -192,7 +192,7 @@ 177 F9CIpPm gd_carray_len 178 F9CIpPm gd_entry (CARRAY) 179 F9CIpPm gd_add_carray -180 F9.IpPm gd_madd_carray +180 F9CIpPm gd_madd_carray 181 F9CI.Pm gd_alter_carray (test 182 is placed after test 40) 183 F9CIpPm gd_constants (INT8) @@ -254,3 +254,4 @@ 239 F9CIpPm gd_entry_list 240 F9CIpPm gd_mplex_lookback 241 F9CIpPm gd_linterp_tablename +242 ..C-pP- gd_mcarrays Modified: trunk/getdata/src/lzma.c =================================================================== --- trunk/getdata/src/lzma.c 2013-02-06 22:47:39 UTC (rev 793) +++ trunk/getdata/src/lzma.c 2013-02-14 04:06:02 UTC (rev 794) @@ -57,7 +57,7 @@ /* The bzip encoding scheme uses edata as a gd_lzmadata pointer. If a file is * open, idata = 0 otherwise idata = -1. */ -static struct gd_lzmadata *_GD_LzmaDoOpen(int dirfd, struct _gd_raw_file* file) +static struct gd_lzmadata *_GD_LzmaDoOpen(int dirfd, struct gd_raw_file_* file) { struct gd_lzmadata *ptr; int fd; @@ -107,8 +107,8 @@ return ptr; } -int _GD_LzmaOpen(int dirfd, struct _gd_raw_file* file, int swap __gd_unused, - unsigned int mode __gd_unused) +int _GD_LzmaOpen(int dirfd, struct gd_raw_file_* file, int swap gd_unused_, + unsigned int mode gd_unused_) { struct gd_lzmadata *ptr; @@ -179,8 +179,8 @@ return 0; } -off64_t _GD_LzmaSeek(struct _gd_raw_file* file, off64_t count, - gd_type_t data_type, unsigned int mode __gd_unused) +off64_t _GD_LzmaSeek(struct gd_raw_file_* file, off64_t count, + gd_type_t data_type, unsigned int mode gd_unused_) { struct gd_lzmadata *ptr = (struct gd_lzmadata *)file->edata; @@ -233,7 +233,7 @@ return file->pos; } -ssize_t _GD_LzmaRead(struct _gd_raw_file *file, void *data, gd_type_t data_type, +ssize_t _GD_LzmaRead(struct gd_raw_file_ *file, void *data, gd_type_t data_type, size_t nmemb) { char* output = (char *)data; @@ -283,7 +283,7 @@ return nmemb - nbytes / GD_SIZE(data_type); } -int _GD_LzmaClose(struct _gd_raw_file *file) +int _GD_LzmaClose(struct gd_raw_file_ *file) { struct gd_lzmadata *ptr = (struct gd_lzmadata *)file->edata; @@ -303,8 +303,8 @@ return 0; } -off64_t _GD_LzmaSize(int dirfd, struct _gd_raw_file *file, gd_type_t data_type, - int swap __gd_unused) +off64_t _GD_LzmaSize(int dirfd, struct gd_raw_file_ *file, gd_type_t data_type, + int swap gd_unused_) { struct gd_lzmadata *ptr; off_t n; Modified: trunk/getdata/src/slim.c =================================================================== --- trunk/getdata/src/slim.c 2013-02-06 22:47:39 UTC (rev 793) +++ trunk/getdata/src/slim.c 2013-02-14 04:06:02 UTC (rev 794) @@ -35,8 +35,8 @@ /* The slim encoding scheme uses edata as a slimfile pointer. If a file is * open, idata = 0 otherwise idata = -1. */ -int _GD_SlimOpen(int dirfd, struct _gd_raw_file* file, int swap __gd_unused, - unsigned int mode __gd_unused) +int _GD_SlimOpen(int dirfd, struct gd_raw_file_* file, int swap gd_unused_, + unsigned int mode gd_unused_) { char *filepath; @@ -63,8 +63,8 @@ return 0; } -off64_t _GD_SlimSeek(struct _gd_raw_file* file, off64_t count, - gd_type_t data_type, unsigned int mode __gd_unused) +off64_t _GD_SlimSeek(struct gd_raw_file_* file, off64_t count, + gd_type_t data_type, unsigned int mode gd_unused_) { off64_t n; @@ -82,7 +82,7 @@ return n; } -ssize_t _GD_SlimRead(struct _gd_raw_file *restrict file, void *restrict ptr, +ssize_t _GD_SlimRead(struct gd_raw_file_ *restrict file, void *restrict ptr, gd_type_t data_type, size_t nmemb) { ssize_t n; @@ -95,7 +95,7 @@ return n; } -int _GD_SlimClose(struct _gd_raw_file *file) +int _GD_SlimClose(struct gd_raw_file_ *file) { int ret; @@ -112,8 +112,8 @@ return ret; } -off64_t _GD_SlimSize(int dirfd, struct _gd_raw_file *file, gd_type_t data_type, - int swap __gd_unused) +off64_t _GD_SlimSize(int dirfd, struct gd_raw_file_ *file, gd_type_t data_type, + int swap gd_unused_) { char *filepath; off64_t size; Modified: trunk/getdata/src/zzip.c =================================================================== --- trunk/getdata/src/zzip.c 2013-02-06 22:47:39 UTC (rev 793) +++ trunk/getdata/src/zzip.c 2013-02-14 04:06:02 UTC (rev 794) @@ -36,8 +36,8 @@ /* The zzip encoding scheme looks just like the regular ol' C IO. */ int _GD_ZzipName(DIRFILE *restrict D, const char *restrict enc_data, - struct _gd_raw_file *restrict file, const char *restrict base, - int temp __gd_unused, int resolv) + struct gd_raw_file_ *restrict file, const char *restrict base, + int temp gd_unused_, int resolv) { size_t enc_len; @@ -82,8 +82,8 @@ return 0; } -int _GD_ZzipOpen(int dirfd, struct _gd_raw_file* file, int swap __gd_unused, - unsigned int mode __gd_unused) +int _GD_ZzipOpen(int dirfd, struct gd_raw_file_* file, int swap gd_unused_, + unsigned int mode gd_unused_) { char *ptr1, *ptr2; size_t len; @@ -122,8 +122,8 @@ return 0; } -off64_t _GD_ZzipSeek(struct _gd_raw_file* file, off64_t count, - gd_type_t data_type, unsigned int mode __gd_unused) +off64_t _GD_ZzipSeek(struct gd_raw_file_* file, off64_t count, + gd_type_t data_type, unsigned int mode gd_unused_) { off64_t n; @@ -139,7 +139,7 @@ return n; } -ssize_t _GD_ZzipRead(struct _gd_raw_file *restrict file, void *restrict data, +ssize_t _GD_ZzipRead(struct gd_raw_file_ *restrict file, void *restrict data, gd_type_t data_type, size_t nmemb) { ssize_t n; @@ -155,7 +155,7 @@ return n; } -int _GD_ZzipClose(struct _gd_raw_file *file) +int _GD_ZzipClose(struct gd_raw_file_ *file) { int ret; @@ -172,8 +172,8 @@ return ret; } -off64_t _GD_ZzipSize(int dirfd, struct _gd_raw_file *file, gd_type_t data_type, - int swap __gd_unused) +off64_t _GD_ZzipSize(int dirfd, struct gd_raw_file_ *file, gd_type_t data_type, + int swap gd_unused_) { ssize_t len; char *ptr1, *ptr2; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: D. V. W. <ge...@ke...> - 2013-01-05 01:28:07
|
As part of Sourceforge's perpetual reinvention of itself, GetData's subversion repository URL has changed. The new repository root URL is: svn://svn.code.sourceforge.net/p/getdata/code for read-only access. (For write access use https:// or svn+ssh://). The web-browser has also moved; it is now here: http://sourceforge.net/p/getdata/code/ They seem to have re-created the repository from a dump; the UUID has changed. This means "svn switch --relocate" won't work. You'll have to do a fresh check-out. As a side-effect, apparently the commit email script that posted to the getdata-commits mailing list has gone AWOL. It looks like there's now a RSS feed, though, so maybe that's sufficient? http://sourceforge.net/p/getdata/code/feed/ If so, we might think about retiring the -commits list. I'll investigate fixing it. Apologies for the inconvenience, -dvw -- D. V. Wiebe ge...@ke... http://getdata.sourceforge.net/ |
From: <ket...@us...> - 2012-12-17 21:56:37
|
Revision: 781 http://getdata.svn.sourceforge.net/getdata/?rev=781&view=rev Author: ketiltrout Date: 2012-12-17 21:56:28 +0000 (Mon, 17 Dec 2012) Log Message: ----------- Remove --enable-auto-import from Msys+MinGW build. Modified Paths: -------------- trunk/getdata/configure.ac Modified: trunk/getdata/configure.ac =================================================================== --- trunk/getdata/configure.ac 2012-12-15 23:04:47 UTC (rev 780) +++ trunk/getdata/configure.ac 2012-12-17 21:56:28 UTC (rev 781) @@ -346,6 +346,16 @@ [ The separator between directory elements ]) AC_MSG_RESULT([$GD_FDIRSEP]) +case "${host}" in + *-pc-mingw*) + NO_UNDEFINED=" -no-undefined" + NO_DLOPEN_TESTS=1 ;; + *-pc-cygwin*) + NO_UNDEFINED=" -no-undefined -enable-auto-import" + NO_DLOPEN_TESTS=1 ;; + *) NO_DLOPEN_TESTS=0 ;; +esac + echo echo "*** Checking C compiler characteristics" echo @@ -421,14 +431,6 @@ echo LT_INIT([dlopen]) AC_SUBST([LIBTOOL_DEPS]) - -case "${host}" in - *-pc-mingw*|*-pc-cygwin*) - NO_UNDEFINED=" -no-undefined -enable-auto-import"; - NO_DLOPEN_TESTS=1 ;; - *) NO_DLOPEN_TESTS=0 ;; -esac - LT_OUTPUT dnl libltdl stuff This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ket...@us...> - 2012-12-15 23:04:53
|
Revision: 780 http://getdata.svn.sourceforge.net/getdata/?rev=780&view=rev Author: ketiltrout Date: 2012-12-15 23:04:47 +0000 (Sat, 15 Dec 2012) Log Message: ----------- Conditionalise numpy. Modified Paths: -------------- branches/getdata-distutils/bindings/python/setup.py.in Modified: branches/getdata-distutils/bindings/python/setup.py.in =================================================================== --- branches/getdata-distutils/bindings/python/setup.py.in 2012-12-15 02:32:44 UTC (rev 779) +++ branches/getdata-distutils/bindings/python/setup.py.in 2012-12-15 23:04:47 UTC (rev 780) @@ -26,14 +26,20 @@ from os.path import join from os import unlink from shutil import copy -import numpy libsrc_dir = '@top_srcdir@/src' libbuild_dir = '../../src' srcdir = '@srcdir@' -includes = [ libbuild_dir, numpy.get_include() ] +#include paths +includes = [ libbuild_dir ] +try: + import numpy + includes.append(numpy.get_include()) +except ImportError: + pass + sources = [ 'pydirfile.c', 'pyentry.c', 'pyfragment.c', 'pygetdata.c' ] # clean copied source files in out-of-place builds; see below This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ket...@us...> - 2012-12-15 02:32:51
|
Revision: 779 http://getdata.svn.sourceforge.net/getdata/?rev=779&view=rev Author: ketiltrout Date: 2012-12-15 02:32:44 +0000 (Sat, 15 Dec 2012) Log Message: ----------- Based on our successes with Module::Build and perl, let's try using distutils to build the python module. Maybe it will make things suck less. Things still get installed by automake; it's hard to track otherwise. (I think this even handles VPATHs.) Modified Paths: -------------- branches/getdata-distutils/bindings/python/Makefile.am branches/getdata-distutils/bindings/python/test/Makefile.am branches/getdata-distutils/configure.ac branches/getdata-distutils/m4/python.m4 Added Paths: ----------- branches/getdata-distutils/bindings/python/setup.py.in Property Changed: ---------------- branches/getdata-distutils/bindings/python/ Property changes on: branches/getdata-distutils/bindings/python ___________________________________________________________________ Modified: svn:ignore - .deps Makefile.in Makefile pyconstants.c + Makefile.in Makefile build debug.c pyconstants.c setup.py Modified: branches/getdata-distutils/bindings/python/Makefile.am =================================================================== --- branches/getdata-distutils/bindings/python/Makefile.am 2012-12-15 02:22:47 UTC (rev 778) +++ branches/getdata-distutils/bindings/python/Makefile.am 2012-12-15 02:32:44 UTC (rev 779) @@ -20,29 +20,19 @@ # AUTOMAKE_OPTIONS = foreign -if CC_WALL -WALL=-Wall -endif - -if GETDATA_DEBUG -DEBUG_C = ../../src/debug.c -endif - SUBDIRS=test -python_LTLIBRARIES = pygetdata.la -LIBS= +nodist_python_SCRIPTS = pygetdata.so BUILT_SOURCES = pyconstants.c -AM_CFLAGS = ${WALL} -fno-strict-aliasing -AM_CPPFLAGS = $(CPPFLAGS) $(PYTHON_CPPFLAGS) $(NUMPY_CPPFLAGS) -pygetdata_la_LDFLAGS = -module -avoid-version \ - -export-symbols-regex initpygetdata -pygetdata_la_LIBADD = $(PYTHON_LIBS) ../../src/libgetdata.la -pygetdata_la_SOURCES = pygetdata.c pydirfile.c pyentry.c pyfragment.c \ - ${DEBUG_C} pygetdata.h -nodist_pygetdata_la_SOURCES = pyconstants.c +distutils_path=build/lib.${PYTHON_PLATFORM}-${PYTHON_VERSION} +pygetdata.so: ${distutils_path}/pygetdata.so + cp $< $@ + +${distutils_path}/pygetdata.so: setup.py ${BUILT_SOURCES} + ${PYTHON} setup.py build + pyconstants.c: ../make_parameters ../make_parameters p > $@ @@ -50,5 +40,6 @@ cd .. && ${MAKE} make_parameters clean-local: - rm -rf ${BUILT_SOURCES} *~ + if [ -e setup.py ]; then ${PYTHON} setup.py clean; fi + rm -rf build pygetdata.so ${BUILT_SOURCES} debug.c *~ Added: branches/getdata-distutils/bindings/python/setup.py.in =================================================================== --- branches/getdata-distutils/bindings/python/setup.py.in (rev 0) +++ branches/getdata-distutils/bindings/python/setup.py.in 2012-12-15 02:32:44 UTC (rev 779) @@ -0,0 +1,92 @@ +# Copyright (C) 2012 D. V. Wiebe +# +# @configure_input@ +# +########################################################################## +# +# This file is part of the GetData project. +# +# GetData is free software; you can redistribute it and/or modify it under +# the terms of the GNU Lesser General Public License as published by the +# Free Software Foundation; either version 2.1 of the License, or (at your +# option) any later version. +# +# GetData is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public +# License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with GetData; if not, write to the Free Software Foundation, Inc., +# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# +from distutils.core import setup +from distutils.extension import Extension +from distutils.command.clean import clean as clean +from os.path import join +from os import unlink +from shutil import copy +import numpy + +libsrc_dir = '@top_srcdir@/src' +libbuild_dir = '../../src' +srcdir = '@srcdir@' + +includes = [ libbuild_dir, numpy.get_include() ] + +sources = [ 'pydirfile.c', 'pyentry.c', 'pyfragment.c', 'pygetdata.c' ] + +# clean copied source files in out-of-place builds; see below +cmdclass = {} + +class gd_clean(clean): + def run(self): + if '@srcdir@' != '.': + for x in sources: + unlink(x) + clean.run(self) + +# deal with out-of-place (VPATH) builds +if srcdir != '.': + includes.append(srcdir) # to find pygetdata.h + + # if we don't do this, the object files will end up in + # @top_builddir@/bindings/bindings/python, + # instead of + # @builddir@/build/temp.<whatever> + # like they're supposed to. It seems to work, but it's a little crazier + # than we're willing to deal with. + for x in sources: + copy(join(srcdir, x), x) + + # handle clean up + cmdclass['clean'] = gd_clean + +# now add this built source; it always ends up where distutils wants it to be +sources.append('pyconstants.c') + +# add debug sources +if @GETDATA_DEBUG@: + copy(join(libsrc_dir, 'debug.c'), 'debug.c') # see comment above + sources.append('debug.c') + includes.append(libsrc_dir) # to find internal.h + +setup( + name = 'pygetdata', + version = '@VERSION@', + cmdclass = cmdclass, + ext_modules = [ + Extension('pygetdata', + sources = sources, + depends = [ + join(srcdir, 'pygetdata.h'), + join(libbuild_dir, 'gd_config.h'), + join(libbuild_dir, 'getdata.h') + ], + include_dirs = includes, + library_dirs = [ join(libbuild_dir, '.libs') ], + libraries = [ 'getdata' ], + define_macros = [ ('HAVE_CONFIG_H','1') ] + ) + ] + ) Modified: branches/getdata-distutils/bindings/python/test/Makefile.am =================================================================== --- branches/getdata-distutils/bindings/python/test/Makefile.am 2012-12-15 02:22:47 UTC (rev 778) +++ branches/getdata-distutils/bindings/python/test/Makefile.am 2012-12-15 02:32:44 UTC (rev 779) @@ -21,7 +21,7 @@ AUTOMAKE_OPTIONS = foreign if TEST_PYTHON -TESTS_ENVIRONMENT=${DL_LIBRARY_PATH}=${${DL_LIBRARY_PATH}}:../../../src/.libs PYTHONPATH=../.libs/ ${PYTHON} +TESTS_ENVIRONMENT=${DL_LIBRARY_PATH}=${${DL_LIBRARY_PATH}}:../../../src/.libs PYTHONPATH=.. ${PYTHON} pyTESTS=callback.py big_test.py TESTS=$(addprefix ${srcdir}/,$(pyTESTS)) endif Modified: branches/getdata-distutils/configure.ac =================================================================== --- branches/getdata-distutils/configure.ac 2012-12-15 02:22:47 UTC (rev 778) +++ branches/getdata-distutils/configure.ac 2012-12-15 02:32:44 UTC (rev 779) @@ -798,7 +798,6 @@ AC_MSG_CHECKING([NumPy includes]) NUMPY_CPPFLAGS=-I`$PYTHON -c "import numpy; print numpy.get_include()"` AC_MSG_RESULT([$NUMPY_CPPFLAGS]) - AC_SUBST([NUMPY_CPPFLAGS]) saved_cppflags=$CPPFLAGS CPPFLAGS="${CPPFLAGS} ${PYTHON_CPPFLAGS} ${NUMPY_CPPFLAGS}" @@ -971,6 +970,7 @@ AC_CONFIG_FILES([bindings/perl/Makefile]) AC_CONFIG_FILES([bindings/perl/Build.PL]) AC_CONFIG_FILES([bindings/python/Makefile]) +AC_CONFIG_FILES([bindings/python/setup.py]) AC_CONFIG_FILES([bindings/python/test/Makefile]) AC_CONFIG_FILES([doc/Makefile]) if test "x$make_perlbindings" != "xno"; then Modified: branches/getdata-distutils/m4/python.m4 =================================================================== --- branches/getdata-distutils/m4/python.m4 2012-12-15 02:22:47 UTC (rev 778) +++ branches/getdata-distutils/m4/python.m4 2012-12-15 02:32:44 UTC (rev 779) @@ -98,50 +98,25 @@ AC_MSG_CHECKING([$PYTHON version]) PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[[:3]]"` AC_MSG_RESULT([$PYTHON_VERSION]) +AC_SUBST([PYTHON_VERSION]) -dnl calculate python CPPFLAGS and LIBS +dnl calculate python CPPFLAGS +AC_MSG_CHECKING([Python includes]) if test -x $PYTHON-config; then - if test -n "$user_python"; then - python_exec_prefix=`$PYTHON-config --exec-prefix` - PYTHON_LIBS="-L${python_exec_prefix}/lib " - else - PYTHON_LIBS="" - fi PYTHON_CPPFLAGS=`$PYTHON-config --includes 2>/dev/null` - PYTHON_LIBS="${PYTHON_LIBS}`$PYTHON-config --ldflags 2>/dev/null`" else python_prefix=`$PYTHON -c "import sys; print sys.prefix"` python_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"` - python_libdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_config_var('LIBDIR')"` - python_syslibs=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_config_var('SYSLIBS')"` - python_shlibs=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_config_var('SHLIBS')"` - python_modlibs=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_config_var('MODLIBS')"` - PYTHON_CPPFLAGS="-I${python_prefix}/include/python${PYTHON_VERSION} -I${python_exec_prefix}/include/python${PYTHON_VERSION}" - if test -n "$user_python"; then - PYTHON_LIBS="-L${python_libdir} " - else - PYTHON_LIBS="" - fi - PYTHON_LIBS="${PYTHON_LIBS}$python_syslibs $python_shlibs $python_modlibs -lpython${PYTHON_VERSION}" fi -AC_MSG_CHECKING([Python includes]) AC_MSG_RESULT([$PYTHON_CPPFLAGS]) -AC_SUBST([PYTHON_CPPFLAGS]) -AC_MSG_CHECKING([Python libraries]) -AC_MSG_RESULT([$PYTHON_LIBS]) -AC_SUBST([PYTHON_LIBS]) -dnl header check -saved_CPPFLAGS=${CPPFLAGS} -CPPFLAGS="${CPPFLAGS} ${PYTHON_CPPFLAGS}" -AC_CHECK_HEADERS(Python.h,,[have_python="no"]) -CPPFLAGS=${saved_CPPFLAGS} +dnl figure out the platform name +AC_MSG_CHECKING([Python platform name]) +PYTHON_PLATFORM=`$PYTHON -c "from distutils import util; print util.get_platform()"` +AC_MSG_RESULT([$PYTHON_PLATFORM]) +AC_SUBST([PYTHON_PLATFORM]) -fi - -if test "x${have_python}" != "xno"; then - dnl calculate the exec prefix pyexec_prefix=$exec_prefix test "x$pyexec_prefix" = xNONE && pyexec_prefix=$prefix @@ -157,16 +132,5 @@ AC_SUBST([pythondir]) AC_MSG_RESULT([$pythondir]) -saved_CPPFLAGS=${CPPFLAGS} -CPPFLAGS="${CPPFLAGS} ${PYTHON_CPPFLAGS}" -saved_LIBS=$LIBS -LIBS="$LIBS ${PYTHON_LIBS}" -dnl try to compile a module -AC_MSG_CHECKING([if we can compile a simple Python extension module]) -AC_TRY_LINK_FUNC([Py_Initialize], [ AC_MSG_RESULT([yes]) ], -[ AC_MSG_RESULT([no]); have_python="no" ]) -CPPFLAGS=$saved_CPPFLAGS -LIBS=$saved_LIBS - fi ]) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ket...@us...> - 2012-12-15 02:22:54
|
Revision: 778 http://getdata.svn.sourceforge.net/getdata/?rev=778&view=rev Author: ketiltrout Date: 2012-12-15 02:22:47 +0000 (Sat, 15 Dec 2012) Log Message: ----------- Branch from HEAD. Added Paths: ----------- branches/getdata-distutils/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ket...@us...> - 2012-12-13 01:18:07
|
Revision: 777 http://getdata.svn.sourceforge.net/getdata/?rev=777&view=rev Author: ketiltrout Date: 2012-12-13 01:18:00 +0000 (Thu, 13 Dec 2012) Log Message: ----------- GetData-0.8.2 Modified Paths: -------------- trunk/html/download.html.in trunk/html/index.html.in Modified: trunk/html/download.html.in =================================================================== --- trunk/html/download.html.in 2012-12-13 01:03:33 UTC (rev 776) +++ trunk/html/download.html.in 2012-12-13 01:18:00 UTC (rev 777) @@ -21,17 +21,17 @@ <h2><a name="source">Latest Release</a></h2> <p>The complete source code for official releases of the GetData project are available from SourceForge. The latest version of GetData, released - 20 August, 2012, is: + 13 December, 2012, is: <ul> <li><a - href="http://sourceforge.net/projects/getdata/files/getdata/0.8.1/" - >0.8.1</a>. Three packages are available: + href="http://sourceforge.net/projects/getdata/files/getdata/0.8.2/" + >0.8.2</a>. Three packages are available: <dl> - <dt><a href="http://sourceforge.net/projects/getdata/files/getdata/0.8.1/getdata-0.8.1.tar.bz2/download">getdata-0.8.1.tar.bz2</a>/<a href="http://sourceforge.net/projects/getdata/files/getdata/0.8.1/getdata-0.8.1.tar.gz/download">.gz</a>:</dt> + <dt><a href="http://sourceforge.net/projects/getdata/files/getdata/0.8.2/getdata-0.8.2.tar.bz2/download">getdata-0.8.2.tar.bz2</a>/<a href="http://sourceforge.net/projects/getdata/files/getdata/0.8.2/getdata-0.8.2.tar.gz/download">.gz</a>:</dt> <dd>The full source code to the library, with bindings. This package uses the GNU autotools build system, and is designed for POSIX systems (UNIX, Linux, BSD, MacOS X, Cygwin, MSys, &c.)</dd> - <dt><a href="http://sourceforge.net/projects/getdata/files/getdata/0.8.1/getdata_win-0.8.1.zip/download">getdata_win-0.8.1.zip</a>:</dt> + <dt><a href="http://sourceforge.net/projects/getdata/files/getdata/0.8.2/getdata_win-0.8.2.zip/download">getdata_win-0.8.2.zip</a>:</dt> <dd>A reduced source code package, with the CMake build system designed to be built on Microsoft Windows, either using the free MinGW compiler, or else Microsoft's Visual C++ compiler. (The full source @@ -41,7 +41,7 @@ compressed dirfiles, the Legacy API, and a few other features. This build is used in native Microsoft Windows builds of <a href="http://kst.kde.org/">kst-2</a>.</dd> - <dt><a href="http://sourceforge.net/projects/getdata/files/getdata/0.8.1/idl_getdata-0.8.1.tar.bz2/download">idl_getdata-0.8.1.tar.bz2</a>/<a href="http://sourceforge.net/projects/getdata/files/getdata/0.8.1/idl_getdata-0.8.1.tar.gz/download">.gz</a>:</dt> + <dt><a href="http://sourceforge.net/projects/getdata/files/getdata/0.8.2/idl_getdata-0.8.2.tar.bz2/download">idl_getdata-0.8.2.tar.bz2</a>/<a href="http://sourceforge.net/projects/getdata/files/getdata/0.8.2/idl_getdata-0.8.2.tar.gz/download">.gz</a>:</dt> <dd>The Interactive Data Language (IDL) bindings, packaged separately with an autotools build system, designed to be built against an already installed version of GetData. Due to licensing restrictions, @@ -127,8 +127,8 @@ <p>Older getdata releases available include the following: <ul> <li><a - href="http://sourceforge.net/projects/getdata/files/getdata/0.8.0/" - >0.8.0</a>—<i>July 2012</i> + href="http://sourceforge.net/projects/getdata/files/getdata/0.8.1/" + >0.8.1</a>—<i>August 2012</i> <li><a href="http://sourceforge.net/projects/getdata/files/getdata/0.7.3/" >0.7.3</a>—<i>April 2011</i> Modified: trunk/html/index.html.in =================================================================== --- trunk/html/index.html.in 2012-12-13 01:03:33 UTC (rev 776) +++ trunk/html/index.html.in 2012-12-13 01:18:00 UTC (rev 777) @@ -59,9 +59,9 @@ <p>The complete source code for official releases of the GetData project are available from SourceForge. <ul><li> - The latest version of GetData, released 20 August, 2012, is <a - href="http://sourceforge.net/projects/getdata/files/getdata/0.8.1/" - >GetData 0.8.1</a>.</ul> + The latest version of GetData, released 13 December, 2012, is <a + href="http://sourceforge.net/projects/getdata/files/getdata/0.8.2/" + >GetData 0.8.2</a>.</ul> See: <ul><li><a href="download.html">Get GetData</a></ul> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ket...@us...> - 2012-12-13 01:03:45
|
Revision: 776 http://getdata.svn.sourceforge.net/getdata/?rev=776&view=rev Author: ketiltrout Date: 2012-12-13 01:03:33 +0000 (Thu, 13 Dec 2012) Log Message: ----------- Tag getdata-0.8.2 Added Paths: ----------- tags/getdata-0.8.2/ tags/getdata-0.8.2/ChangeLog tags/getdata-0.8.2/NEWS tags/getdata-0.8.2/RELEASE_NOTES.in tags/getdata-0.8.2/getdata/ tags/getdata-0.8.2/m4/version.m4 Removed Paths: ------------- tags/getdata-0.8.2/ChangeLog tags/getdata-0.8.2/NEWS tags/getdata-0.8.2/RELEASE_NOTES.in tags/getdata-0.8.2/m4/version.m4 Deleted: tags/getdata-0.8.2/ChangeLog =================================================================== --- trunk/getdata/ChangeLog 2012-12-12 22:16:46 UTC (rev 774) +++ tags/getdata-0.8.2/ChangeLog 2012-12-13 01:03:33 UTC (rev 776) @@ -1,5511 +0,0 @@ -2012-12-12 D. V. Wiebe <ge...@ke...> svn:773 - * src/common.c (_GD_CanonicalPath): Don't bail early when encountering a - trailing absolute symlink. - - * src/common.c (_GD_CanonicalPath): Strip DIRSEP along with a symlink name - from res when necessary. - - * test/test.h test/parse_include_absolute.c test/parse_include_absrel.c - test/parse_include_relabs.c: Abstract getcwd in the header. - * test/open_sym_a.c test/open_sym_al.c test/open_sym_at.c test/open_sym_c.c - test/open_sym_cl.c test/open_sym_ct.c test/open_sym_p.c test/open_sym_pl.c - test/open_sym_pt.c: Added. - -2012-11-22 D. V. Wiebe <ge...@ke...> svn:772 - * src/encoding.c (_GD_WriteOut): Remove unnecessary DIRFILE parameter. - -2012-10-10 D. V. Wiebe <ge...@ke...> svn:771 - * src/getdata.c (_GD_DoMplex): Check we're at the BOF before trying to do a - lookback. - - * src/internal.h: Only export gd_MakeFullPathOnly when using modules. - -2012-08-20 D. V. Wiebe <ge...@ke...> svn:767 - GetData-0.8.1 released. - -2012-08-15 D. V. Wiebe <ge...@ke...> svn:760 - * src/internal (_GD_IsDirSep): Added. - * src/common.c (_GD_CanonicalPath): Call _GD_IsDirSep - -2012-08-15 D. V. Wiebe <ge...@ke...> svn:759 - GetData-0.8.1rc1: - - * src/parse.c (_GD_ParseDirective _GD_ParseFragment): Remove inappropriate - restrict keywords. Reported by Daniel Flanigan. - -2012-08-14 D. V. Wiebe <ge...@ke...> svn:757 - * src/include.c (_GD_Include): Return the correct fragment index, not just - D->n_fragment - 1. - * test/include_sub.c: Added. - -2012-08-04 D. V. Wiebe <ge...@ke...> svn:755 - * src/parse.c (_GD_ParseFragment): Don't resize instring unnecessarily. - -2012-08-04 D. V. Wiebe <ge...@ke...> svn:754 - * src/parse.c (_GD_ParseDirective): Delete free reference on encountered - one in a subfragment. - -2012-08-02 D. V. Wiebe <ge...@ke...> svn:753 - * src/include.c (_GD_Include): Reject non-regular files as fragments. - -2012-08-02 D. V. Wiebe <ge...@ke...> svn:752 - * src/globals.c (gd_dirfilename): Return the full path. - * test/global_name.c: Update. - - * src/add.c (_GD_Add): Properly compute filebase. - - * src/entry.c (gd_linterp_tablename): Added. - * test/table.c test/table_code. test/table_type.c: Added. - * bindings/cxx/dirfile.cpp (Dirfile::LinterpTableName) - bindings/perl/simple_funcs.xsin (linterp_tablename) - bindings/f77/getdata.f90.in (fgd_linterp_tablename) bindings/f77/fgetdata.c - (GDLTTN) bindings/idl/getdata.c (gdidl_get_linterp_tablename) - bindings/python/pydirfile.c (gdpy_dirfile_linterptablename): Added. - * bindings/perl/simple_funcs.pl: Handle returning malloc'd string. - - * bindings/cxx/test/big_test.cpp bindings/perl/test/big_test.t - bindings/f77/test/big_test.f bindings/f77/test/big_test95.f90 - bindings/idl/test/big_test.pro bindings/python/test/big_test.py: Add test - 241. Update tests 21 and 80. - -2012-07-26 D. V. Wiebe <ge...@ke...> svn:751 - * src/flush.c (_GD_FieldSpec): Write /HIDDEN directives for /ALIASes. - -2012-07-26 D. V. Wiebe <ge...@ke...> svn:749 - * src/parse.c (_GD_SetScalar _GD_ParseLincom _GD_ParseLinterp - _GD_ParseMultiply _GD_ParseRecip _GD_ParseWindow _GD_ParseMplex - _GD_ParseDivide _GD_ParseBit _GD_ParsePhase _GD_ParsePolynom - _GD_ParseAlias): Store munged input fields. - * src/entry.c (_GD_GetScalar) src/common.c (_GD_BadInput) src/parse.c - (_GD_ResolveAlias): Don't (re-)munge field codes. - - * src/name.c (_GD_MungeCode): Take an additional parameter, err_ok, - indicating whether missing affixes indicate an internal error or not. - - * src/mod.c (_GD_AlterInField) src/name.c (_GD_CheckCodeAffixes): Added. - * src/mod.c (_GD_AlterScalar) src/add.c (_GD_FixName _GD_Add _GD_AddAlias): - Call _GD_CheckCodeAffixes. - * src/mod.c (_GD_Change): Call _GD_AlterInField to modify in_fields. - - * src/flush.c (_GD_WriteFieldCode): Added. - * src/flush.c (_GD_PadField _GD_WriteConst _GD_FieldSpec): Call - _GD_WriteFieldCode. - - * test/get_affix.c test/add_alias_affix.c test/add_alias_affix.c - test/add_spec_affix.c test/madd_alias_affix.c test/alter_lincom_affix.c - test/add_lincom_affix.c test/alter_scalar_affix.c: Added. - - * test/add_string_affix.c test/madd_affix.c test/add_affix.c: Update for new - affix semantics. - - * src/mod.c (gd_alter_entry) src/add.c (gd_madd_alias): Clear error when - starting. - -2012-07-12 D. V. Wiebe <ge...@ke...> svn:743 - * bindings/f77/fgetdata.c (GDALLC): Delete unnecessary malloc. - * src/fragment.c (_GD_CheckAffixes): Free subaffixes on error. - * src/fragment.c (gd_desync): Free old name after reopen. - * src/include.c (_GD_Include): Free sname on error. - * src/add.c (_GD_Add): Free temp_buffer on error. - * src/close.c (_GD_FreeD): Free tok_base and error_prefix. - * src/move.c (_GD_Move): Free new_code on error. - * src/parse.c (gd_strtok): Cache the string per documentation. - - * test/valgrind.suppressions: Added. - * bindings/cxx/test/big_test.cpp test/add_affix.c test/add_meta_alias.c - test/add_scalar_carray.c test/name_updb_alias.c test/name_updb_const.c - test/name_updb_const_alias.c test/name_alias.c test/name_updb.c - test/madd_affix.c test/add_meta.c test/add_scalar.c test/name.c test/add.c - test/parse_mplex_nomax.c: Deal with memory. - -2012-07-10 D. V. Wiebe <ge...@ke...> svn:740 - * src/common.c (_GD_CanonicalPath): Fix pointer arithmetic - - * src/compat.c (gd_strtod): Drop octal (not in POSIX); handle hex floating - point; don't zero errno. - -2012-07-04 D. V. Wiebe <ge...@ke...> svn:737 - GetData-0.8.0 released. - -2012-07-04 D. V. Wiebe <ge...@ke...> svn:736 - * src/constant.c (gd_get_carray_slice gd_get_carray gd_carray_len - gd_put_carray_slice gd_put_carray): Handle both CONST and CARRAY. - * src/constant.c (gd_get_constant gd_put_constant): Just call the - corresponding carray_slice function. - -2012-06-30 D. V. Wiebe <ge...@ke...> svn:732 - * src/getdata.h.in configure.ac cmake/CMakeLists.txt: Fix definition of - gd_off64_t. - - * bindings/perl/Build.PL.in: make getdata.h a dependency of lib/GetData.xs. - -2012-06-29 D. V. Wiebe <ge...@ke...> svn:728 - * src/getdata.h.in src/internal.h src/errors.c: Merge GD_E_BAD_VERSION into - GD_E_ARGUMENT. - -2012-06-28 D. V. Wiebe <ge...@ke...> svn:725,726 - * util/checkdirfile.c: Find and report dangling aliases. - - * bindings/python/pydirfile.c (gdpy_dirfile_nentries gdpy_dirfile_entrylist) - bindings/cxx/dirfile.cpp (Dirfile::NEntries Dirfile::EntryList) - bindings/perl/GetData.xs (entry_list) : Fix signedness of "type". - * bindings/idl/getdata.c (gdidl_get_field_list gdidl_get_nfields): Deal with - /ALIASES. - * bindings/make_parameters.c: Add GD_ALIAS_ENTRIES. - - * test/nentries_noalias.c test/elist_noalias.c: Renamed from ..._alias.c. - * test/nentries_alias.c test/elist_alias.c: Added. - - * src/internal.h getdata.h.in: Move GD_ALIAS_ENTRY to public header. - * src/getdata.h.in: Define GD_ALIAS_ENTRIES. - * src/field_list.c (_GD_EntryIndex _GD_ListEntry) src/nfields.c - (_GD_NEntries): Handle GD_ALIAS_ENTRIES. - - * src/common.c (_GD_CanonicalPath): Sidestep GCC warning. - -2012-06-27 D. V. Wiebe <ge...@ke...> svn:724 - * src/name.c (_GD_UpdateScalar _GD_InvalidateConst _GD_UpdateInField - _GD_InvalidateVect): Handle aliases. - * src/name.c (gd_rename): Don't dereference aliases. - * src/name.c (gd_rename_alias): Deleted. - * test/name.c test/name_updb_const.c test/name_updb.c: Updated. - * test/name_updb_const_alias.c test/name_move_alias.c test/name_alias.c - test/name_updb_alias.c: Added. - * test/name_after_const.c test/name_after.c: Deleted. - - * src/parse.c (_GD_ResolveAlias): Reset aliases if requested. - - * man/make_html.pl: Don't eat "**" in synopses. - -2012-06-25 D. V. Wiebe <ge...@ke...> svn:723 - * src/flush.c (_GD_FindVersion): ALIAS means >= 9. - - * util/checkdirfile.c: Grammar. - -2012-06-13 D. V. Wiebe <ge...@ke...> svn:721 - GetData-0.8.0rc2. - -2012-06-04 D. V. Wiebe <ge...@ke...> svn:720 - * bindings/cxx/dirfile.cpp bindings/cxx/fragment.cpp - bindings/cxx/getdata/dirfile.h bindings/cxx/getdata/fragment.h: off_t - -> gd_off64_t. - -2012-06-02 D. V. Wiebe <ge...@ke...> svn:717 - * src/internal.h (_GD_AbsPath): Allow s == NULL. - -2012-05-25 D. V. Wiebe <ge...@ke...> svn:712 - * bindings/cxx/fragment.cpp (Fragment::Fragment Fragment::SetEndianness) - bindings/cxx/dirfile.cpp (Dirfile::NFrames Dirfile::EoF Dirfile::BoF - Dirfile::GetData Dirfile::PutData Dirfile::FrameNum Dirfile::Seek - Dirfile::Tell): Call the 64-bit API. - - * src/getdata.h.in: Support GD_64BIT_API and use configure to define - gd_off64_t. - * src/internal.h bindings/cxx/getdata/dirfile.h: Define GD_64BIT_API before - including getdata.h. - - * test/Makefile.am man/Makefile.am: Remove LFS_TRANSITIONAL_API (always - enabled). - - * confihure.ac: Figure out a suitable type for gd_off64_t. Remove - LFS_TRANSITIONAL_API conditional. - -2012-05-23 D. V. Wiebe <ge...@ke...> svn:710 - * test/test.h: Don't redefine isnan if it's okay as-is. - - * src/open.c (_GD_CreateDirfile): Don't unnecessarily disable mtime - acquisition. - * cmake/test/CMakeLists.txt: enable desync checks. - - * src/compat.c (gd_strtod): Fix sign check. - -2012-05-22 D. V. Wiebe <ge...@ke...> svn:709 - * cmake/CMakeLists.txt: Update definitons. Support GD_UTIL. - * cmake/test/CMakeLists.txt: Update the list of excluded tests. - * cmake/src/CMakeLists.txt: Support GD_DEBUG and conditionally build debug.c. - * cmake/bindings/cxx/CMakeLists.txt: Support GD_TEST. - * cmake/util/CMakeLists.txt cmake/bindings/cxx/test/CMakeLists.txt: Added. - - * src/internal.h: Define PRNsize_t and PRNssize_t to get around printf()s - which don't recognise the "z" length modifier. Changed everywhere. Handle - basename, offsetof, strtod. - - * src/compat.c (basename gd_strtod): Added. - * src/parse.c (_GD_SetScalar) src/nan.h: Call gd_strtod. - - * README.win: Update. - - * bindings/cxx/test/big_test.cpp: Tweak includes to allow compilation with - MSVC. - - * bindings/cxx/getdata/entry.h bindings/cxx/getdata/fragment.h: Include - dirfile.h. - - * test/include_cb.c test/madd_window.c test/open_cb_cont.c - test/open_cb_invalid.c test/include_pc.c test/test.h test/open_cb_rescan.c - test/open_cb_abort.c test/open_cb_ignore.c: Tweak for compilation with MSVC. - - * test/add_meta_alias.c test/madd_affix.c test/parse_mplex_nomax.c - test/add_meta.c: Fix gd_entry_t access. - - * util/checkdirfile.c: Preprocessor fixes for compilation with MSVC. - -2012-04-21 D. V. Wiebe <ge...@ke...> svn:706 - GetData-0.8.0rc1: - - * bindings/cxx/test/big_test.cpp bindings/perl/test/big_test.t: Fix - mplex_lookback checks. - -2012-04-21 D. V. Wiebe <ge...@ke...> svn:705 - * man/make_html.pl: Improvements. - - * src/globals.c (gd_mplex_lookback): Always succeed; return void. - - * bindings/perl/simple_funcs.pl: Handle returning void. - -2012-04-19 D. V. Wiebe <ge...@ke...> svn:701 - * src/add.c (_GD_Add): Don't check protection level before figuring out the - fragment index. - - * bindings/perl/GetData.xs bindings/perl/typemap - bindings/perl/simple_funcs.pl: gdpu_spf_t -> gdpu_uint_t. - - * bindings/perl/GetData.xs (gdp_to_entry entry): Use "in_fields" everywhere - to be consistent with the C API. - - * bindings/perl/GetData.xs (mcarrays): Remove unpacked. Use GIMME_V - instead. - - * bindings/perl/simple_funcs.xsin (reference alter_phase add_window - alter_window alter_affixes add_mplex alter_mplex desync flags - verbose_prefix): Fix parameter defaults and types. - - * bindings/perl/Build.PL.in: Install GetData.pm - - * bindings/perl/simple_funcs.xsin (include include_affex): Deleted. - * bindings/perl/GetData.xs (include): Added. - - * doc/README.perl: Added. - * bindings/perl/GetData.pm.in: POD. - - * bindings/cxx/test/Makefile.am bindings/f77/Makefile.am test/Makefile.am - test/error_verbose.c test/error_verbose_prefix.c: Remove GNUisms. - -2012-04-13 D. V. Wiebe <ge...@ke...> svn:699 - * src/common.c (_GD_CanonicalPath): Terminate and don't clobber string - from realpath(). - - * bindings/make_parameters.c: Add GD_SIE_ENCODED. - - * bindings/cxx/getdata/fragment.h: Update encodings. - - * bindings/f77/fgetdata.c (GDTOKE) bindings/f77/getdata.f90.in (fgd_strtok): - Drop the 'n' parameter: just do what the C API does. - - * bindings/idl/getdata.c (gdidl_getdata gdidl_putdata): Drop /HERE: just use - the absense of FIRST_FRAME and FIRST_SAMPLE. - - * bindings/idl/getdata.c (gdidl_add_mplex): Make the MAX parameter optional. - -2012-04-01 D. V. Wiebe <ge...@ke...> svn:696 - * src/compat.c (_GD_ReadDir): Renamed from gd_readdir(). - -2012-04-01 D. V. Wiebe <ge...@ke...> svn:694 - * src/getdata.h.in: Deprecate gd_bit_t and gd_spf_t. Remove gd_count_t. - * src/getdata.h.in bindings/make_parameters.c: Remove GD_COUNT_MAX. - * cmake/CMakeLists.txt: Remove DEFINE_gd_int16_t and DEFINE_gd_uint16_t. - * src/internal.h: Calculate GD_INT_TYPE and GD_UINT_TYPE. - - * src/entry.c (_GD_CalculateEntry) src/flush.c (_GD_FieldSpec) src/getdata.c - (_GD_DoMplex) src/putdata.c (_GD_DoMplexOut gd_putdata64) src/del.c - (_GD_DeReference) src/parse.c (_GD_ParseMplex _GD_ParseBit) src/mod.c - (_GD_Change): Use GD_INT_TYPE when dealing with bitnum, numbits, count_max, - and count_val. - * src/add.c (gd_add_bit gd_add_sbit gd_add_mplex gd_madd_bit gd_madd_sbit - gd_madd_mplex) src/mod.c (gd_alter_bit gd_alter_sbit gd_alter_mplex) - bindings/python/pyentry.c (gdpy_entry_setnumbits gdpy_entry_setbitnum - gdpy_entry_setcountval gdpy_entry_setcountmax) bindings/cxx/mplexentry.cpp - (MplexEntry::MplexEntry MplexEntry::SetCountVal MplexEntry::SetCountMax) - bindings/cxx/sbitentry.cpp (SBitEntry::SBitEntry SBitEntry::SetFirstBit - SBitEntry::SetNumBits) bindings/cxx/test/big_test.cpp - bindings/cxx/bitentry.cpp (BitEntry::BitEntry BitEntry::SetFirstBit - BitEntry::SetNumBits) bindings/cxx/getdata/bitentry.h (FirstBit NumBits) - bindings/cxx/getdata/entry.h (FirstBit NumBits CountVal CountMax) - bindings/cxx/getdata/mplexentry.h (CountVal CountMax) - bindings/cxx/getdata/sbitentry.h (FirstBit NumBits) bindings/perl/GetData.xs - bindings/perl/typemap bindings/perl/simple_funcs.pl bindings/f77/fgetdata.c - (GDADBT GDADSB GDMDBT GDMDSB GDALBT GDALSB) bindings/idl/getdata.c - (gdidl_make_idl_entry gdidl_read_idl_entry gdidl_add_mplex gdidl_alter_mplex): - gd_bit_t, gd_count_t -> int. - * src/fpos.c (_GD_Seek) src/getdata.c (_GD_MultiplyData _GD_CMultiplyData - _GD_DivideData _GD_CDivideData _GD_WindowData _GD_CDivideData _GD_MplexData - _GD_DoLincom _GD_DoMultiply _GD_DoDivide _GD_DoWindow _GD_DoMplex - gd_getdata64) src/putdata.c (_GD_MplexOutData gd_putdata64) src/flimits.c - (_GD_GetEOF _GD_GetBOF gd_bof64) src/common.c (_GD_LinterpData - _GD_LincomData) src/add.c (gd_add_raw) src/spf.c (_GD_GetSPF gd_spf) - src/mod.c (_GD_SPFConvert) src/mod.c (gd_alter_entry) src/index.c - (gd_framenum_subset64) bindings/python/pyentry.c (gdpy_entry_setspf) - bindings/python/pydirfile.c (gdpy_dirfile_getdata) bindings/cxx/rawentry.cpp - (RawEntry::RawEntry RawEntry::SetSamplesPerFrame) - bindings/cxx/getdata/rawentry.h (SamplesPerFrame) bindings/perl/GetData.xs - bindings/perl/typemap bindings/perl/simple_funcs.pl bindings/f77/fgetdata.c - (GDADRW GDALRW) util/dirfile2ascii.c: gd_spf_t -> unsigned int. - * src/flush.c (_GD_WriteConst) src/mod.c (_GD_AlterScalar): Add missing - integer types. - - * src/parse.c (_GD_ParseMplex): Make count_max optional. - * src/getdata.c (_GD_DoMplex) src/add.c (_GD_Add): Handle count_max == 0. - - * src/getdata.h.in: Mark GD_FLOAT and GD_DOUBLE as deprecated. - - * src/encoding.c (_GD_FiniRawIO): Handle short writes and IO errors. - - * src/getdata.c (_GD_DoMplex): use D->lookback to determine how far to - search backwards. Also, read data in chunks of size GD_BUFFER_SIZE. - * src/open.c (_GD_Open): Initialise D->lookback. - * src/globals.c (gd_mplex_lookback): Added. - * bindings/cxx/dirfile.cpp (Dirfile::MplexLookback) - bindings/perl/simple_funcs.xsin (mplex_lookback) bindings/f77/getdata.f90.in - (fgd_mplex_lookback) bindings/f77/fgetdata.c (GDMXLB) bindings/idl/getdata.c - (gdidl_mplex_lookback): Added. - - * src/parse.c (gd_strtok): Renamed from gd_tokenise to avoid regional - spelling variations. Bindings renamed accordingly (except for the F77 - bindings). - - * bindings/python/pygetdata.c: Add GD_E_EXISTS exception. - - * bindings/python/pydirfile.h: Add mplex_lookback and verbose_prefix to - gdpy_constant_t. - * bindings/python/pydirfile.c (gdpy_dirfile_delete): Delete verbose_prefix. - * bindings/python/pydirfile.c (gdpy_dirfile_create): Initialise - mplex_lookback and verbose_prefix. - * bindings/python/pydirfile.c (gdpy_dirfile_verbose_prefix): Deleted. - * bindings/python/pydirfile.c (gdpy_dirfile_getverboseprefix - gdpy_dirfile_setverboseprefix gdpy_dirfile_getmplexlookback - gdpy_dirfile_setmplexlookback): Added. - - * bindings/Makefile.am: add src/gd_config.h to the prerequisites of - make_parameters. - - * src/flush.c (_GD_FlushFragment): Write /ENCODING for zzip and zzslim. - - * src/meta_list.c: Merged into src/field_list.c - * src/nmeta.c: Merged into src/nfields.c - - * src/add.c (_GD_InvalidEntype): Added. - * src/internal.h: Add entry_list and entry_list_flags to DIRFILE and - private_entry. - * src/internal.h (_GD_EntryIndex): Deleted. - * src/field_list.c (_GD_EntryIndex _GD_EntryList gd_entry_list): Added. - * src/field_list.c (_GD_ListEntry): Handle GD_ENTRIES_... flags. - * src/field_list.c (gd_field_list_by_type gd_vector_list gd_field_list - gd_mfield_list_by_type gd_mfield_list): Reimplement via gd_entry_list(). - - * src/nfields.c (_GD_NEntries gd_nentries): Added. - * src/nfields.c (gd_nfields gd_nvectors gd_nfields_by_type gd_nmfields - gd_nmvectors gd_nmfields_by_type): Reimplement via gd_nentries(). - - * src/field_list.c (gd_constants gd_carrays gd_strings gd_mconstants - gd_mcarrays gd_mstrings): Call _GD_NEntries for counts. - - * src/entry.c (gd_hide gd_unhide) src/del.c (_GD_Delete) src/include.c - (gd_uninclude) src/add.c (_GD_Add): Delete count updates. - - * src/name.c (_GD_Rename) src/del.c (_GD_Delete) src/include.c - (gd_uninclude) src/add.c (_GD_Add _GD_AddAlias): Invalidate metafield lists - too. - - * src/entry.c (_GD_FreeE) src/close.c (_GD_FreeD): Delete entry_lists. - - * src/globals.c (gd_flags): Don't check GD_INVALID. - - * bindings/python/pydirfile.c (gdpy_dirfile_nentries - gdpy_dirfile_entrylist) bindings/perl/GetData.xs (entry_list) - bindings/cxx/dirfile.cpp (Dirfile::NEntries Dirfile::EntryList) - bindings/f77/getdata.f90.in (fgd_nentries fgd_entry_name_max fgd_entry_list) - bindings/f77/fgetdata.c (GDNENT GDENTX GDENTN): Added. - * bindings/idl/getdata.c (gdidl_get_field_list gdidl_get_nfields)): Convert to - bindings for gd_entry_list and gd_nentries. - - * bindings/python/test/big_test.py bindings/cxx/test/big_test.cpp - bindings/perl/test/big_test.t bindings/f77/test/big_test.f - bindings/f77/test/big_test95.f90 bindings/idl/test/big_test.pro: Add tests - 237 through 240. - - * test/elist_alias.c test/elist_hidden.c test/elist_scalar.c - test/get_lincom_null.c test/get_mplex_lball.c test/get_mplex_nolb.c - test/nentries_alias.c test/nentries_hidden.c test/nentries_scalar.c - test/parse_malias_meta.c test/parse_mplex_nomax.c: Added. - - * man/: Updated. - -2012-03-28 D. V. Wiebe <ge...@ke...> svn:691 - * src/flush.c (_GD_FieldSpec) src/parse.c (_GD_ParseMplex): Swap order of - fields in MPLEX specification. - - * bindings/python/test/big_test.py bindings/cxx/test/big_test.cpp - bindings/perl/test/big_test.t bindings/f77/test/big_test.f - bindings/f77/test/big_test95.f90 bindings/idl/test/big_test.pro - test/entry_mplex_scalar.c test/get_mplex.c test/alter_mplex.c - test/put_mplex.c test/get_mplex_lb.ctest/entry_mplex.c: Update for - Standards change. - -2012-03-28 D. V. Wiebe <ge...@ke...> svn:690 - * m4/compiler.m4 (GD_C_RESTRICT_ARRAY): Fix test program. - * bindings/idl/getdata.c (gdidl_alter_mplex): Fix uninitialised variable. - -2012-03-28 D. V. Wiebe <ge...@ke...> svn:689 - * m4/compiler.m4 (GD_C_RESTRICT_ARRAY): Added. - * src/parse.c src/internal.h: Work around deficiencies in the GCC-3.4 C99 - compliance. - -2012-03-22 D. V. Wiebe <ge...@ke...> svn:683 - * src/sie.c (_GD_SampIndWrite): Fix file size calculation during truncation. - - * bindings/python/pydirfile.c (gdpy_dirfile_getdata): Make return_type and - num_<foo> optional. - -2012-03-16 D. V. Wiebe <ge...@ke...> svn:680 - * src/globals.c (gd_flags gd_verbose_prefix): Added. - * src/errors.c (_GD_SetError): Print verbose prefix, if present. - - * make_parameters.c: Promote GD_VERBOSE and GD_PRETTY_PRINT. - * bindings/cxx/dirfile.cpp (Dirfile::Flags Dirfile::VerbosePrefix) - bindings/python/pydirfile.c (gdpy_dirfile_getflags gdpy_dirfile_setflags - gdpy_dirfile_verbose_prefix) bindings/perl/simple_funcs.xsin (flags - verbose_prefix) bindings/f77/fgetdata.c (GDFLAG GDVBPX) - bindings/f77/getdata.f90.in (fgd_flags fgd_verbose_prefix) - bindings/idl/getdata.c (gdidl_flags gdidl_verbose_prefix): Added. - * bindings/python/test/big_test.py bindings/cxx/test/big_test.cpp - bindings/perl/test/big_test.t bindings/f77/test/big_test.f - bindings/f77/test/big_test95.f90 bindings/idl/test/big_test.pro: Add tests - 235, 236. - - * src/open.c (_GD_Open): Reset errno to prevent spurious error messages. - - * src/flush.c (_GD_FlushFragment): Avoid FPE. - - * test/global_flags.c test/error_verbose.c test/error_verbose_prefix.c: - Added. - - * bindings/idl/getdata.c (gdidl_open): Add missing IGNORE_REFS, - PRETTY_PRINT, TRUNCSUB. - - * bindings/f77/fgetdata.c (_GDF_CString): Take care of the malloc'ing rather - than forcing the caller to do it. - -2012-03-16 D. V. Wiebe <ge...@ke...> svn:678 - * src/errors.c src/getdata.h.in: Add GD_E_EXISTS - * src/open.c (_GD_CreateDirfile): Replace GD_E_CREAT:GD_E_CREAT_EXCL with - GD_E_EXISTS. - -2012-03-16 D. V. Wiebe <ge...@ke...> svn:676 - * configure.ac bindings/idl/package/configure.ac src/include.h - bindings/make_parameters.c bindings/cxx/internal.h bindings/idl/getdata.c - test/test.h util/dirfile2ascii.c util/checkdirfile.c: Renamed config.h to - gd_config.h to get around lossage in the Perl CORE public headers. - - * bindings/perl/test: Renamed from t. - * bindings/perl/MANIFEST.in: Renamed from MANIFEST. - * bindings/perl Makefile.am bindings/f77/test/Makefile.am: VPATH fixes. - - * src/fragment.c (gd_desync): dup the dirfile fd before closing. - * test/desync_reopen.c test/desync_reopen_inv.c: Added. - - * bindings/idl/package/configure.ac bindings/idl/package/README: Bump - GetData min version. - -2012-03-15 D. V. Wiebe <ge...@ke...> svn:675 - * src/internal.h: Add fragment->mtime, dirfile->open_flags. Deconst - fragment->sname. - * src/close.c (_GD_FreeD _GD_ShutdownDirfile): Add new parameter - (keep_dirfile) to prohibit deallocating the dirfile struct itself. - De-staticked _GD_ShutdownDirfile. - * src/include.c (_GD_Include): Compute the path relative to the parent of - fragment and store it in fragment->sname. Store mtime. - * src/close.c (_GD_FreeD): Free fragment->sname. - * src/flush.c (_GD_FlushFragment): Remove unnecessary strdup: we already - cache the basename. Update mtime. - * src/open.c (_GD_CreateDirfile): Return mtime. - * src/open.c (_GD_Open): Renamed from gd_cbopen; optionally take an existing - dirfd and DIRFILE pointer. Fix the dirfd/dirfile race condition by - canonicalising dirfile first. - * src/fragment.c (gd_desync) src/open.c (gd_cbopen): Added. - * src/getdata.h.in: Added GD_DESYNC_PATHCHECK GD_DESYNC_REOPEN. - * test/desync.c test/desync_flush.c: Added. - - * src/internal.h (offsetof): Added. - * src/compat.c (gd_readdir): Added. - * src/open.c (_GD_TruncDir): Use a thread-safe readdir where possible. - - * src/include.c (gd_include_affix): Don't call do stuff before validating - the dirfile. - - * bindings/make_parameters.c: Add desync flags. - * bindings/python/pydirfile.c (gdpy_dirfile_desync) bindings/cxx/dirfile.cpp - (Dirfile::DeSync) bindings/perl/simple_funcs.xsin (desync) - bindings/f77/getdata.f90.in (fgd_desync) bindings/f77/fgetdata.c (GDDSYN) - bindings/idl/getdata.c (gdidl_desync): Added. - * bindings/python/test/big_test.py bindings/cxx/test/big_test.cpp - bindings/perl/t/big_test.t bindings/f77/test/big_test.f - bindings/f77/test/big_test95.f90 bindings/idl/test/big_test.pro: Added test - 234. - - * bindings/cxx/test/big_test.cpp: Functionise to reduce compilation work. - - * bindings/perl/Makefile.am: Tweak yet some more. - -2012-03-14 D. V. Wiebe <ge...@ke...> svn:674 - * src/open.c (gd_cbopen): Handle failure of _GD_CanonicalPath better. - -2012-03-14 D. V. Wiebe <ge...@ke...> svn:671 - * src/flush.c (_GD_FlushFragment): Write SIE encoding directives. - - * src/sie.c (_GD_SampIndOpen): Initialise file->pos to 0 to avoid issues - with _GD_GetFilePos. - * src/sie.c (_GD_SampIndSeek): Don't short circuit if no record is loaded. - - * src/flush.c (_GD_Flush _GD_SyncOrClose): Make syncing optional with a new - parameter (syn). - * src/flush.c (gd_raw_close): Added. - * src/clsoe.c (_GD_ShutdownDirfile) src/include.c (gd_uninclude): Don't - sync, just close raw files. - - * bindings/python/pydirfile.c (gdpy_dirfile_raw_close) - bindings/cxx/dirfile.cpp (Dirfile::RawClose) bindings/perl/simple_funcs.xsin - (raw_close) bindings/f77/fgetdata.c (GDRCLO) bindings/f77/getdata.f90.in - (fgd_raw_close): Added. - * bindings/idl/getdata.c (gdidl_flush): Add /NOSYNC. - * bindings/python/test/big_test.py bindings/cxx/test/big_test.cpp - bindings/perl/t/big_test.t bindings/f77/test/big_test.f - bindings/f77/test/big_test95.f90: Added test 233. - - * bindings/perl/Build.PL.in: subclass Module::Build to properly handle - simple_funcs.xs dependency tracking. - -2012-03-06 D. V. Wiebe <ge...@ke...> svn:667 - * src/errors.c: Change prefix on verbose output to "libgetdata". - - * src/add.c (_GD_FixName): Added. - * src/add.c (_GD_Add _GD_AddAlias): Call _GD_FixName. - * test/add_alias_meta.c: Added. - - * src/open.c (_GD_TruncDir): Fix subdirectory truncation. - * src/internal.h: Remove conditional defition of AT_SYMLINK_NOFOLLOW. - * src/compat.c (gd_StatAt): Check for definition of AT_SYMLINK_NOFOLLOW - before use. - -2012-03-03 D. V. Wiebe <ge...@ke...> svn:665 - * src/getdata.h.in bindings/make_parameters.c: Added GD_TRUNCSUB open flag. - * src/open.c (_GD_TruncDir): Added. - * src/open.c (_GD_CreateDirfile): Call _GD_TruncDir. - * test/trunc_dir.c test/trunc_truncsub.c: Added. - - * src/fragment.c (gd_alter_affixes): Handle GD_E_ACCMODE and GD_E_PROTECTED - errors. - - * bindings/f77/fgetdata.c (GDDELA): Correct call to gd_delete_alias. - -2012-03-02 D. V. Wiebe <ge...@ke...> svn:664 - * src/errors.c: Added GD_E_ARGUMENT:GD_E_ARG_NODATA. - * src/parse.c (_GD_Tokenise): Take number of columns to return. - * src/parse.c (gd_tokenise): Added. - * src/internal.h: Added _GD_DIRFILE->tok_pos. - - * src/parse.c (_GD_CheckParent): Destatickify, and modify for use by - _GD_Add. - * src/add.c (_GD_Add): Call _GD_CheckParent to automatically allow - parent/meta style metafield addition via gd_add[_<whatever>](). - - * bindings/python/pydirfile.c (gdpy_dirfile_tokenise) - bindings/cxx/dirfile.cpp (Dirfile::Tokenise) bindings/perl/GetData.xs - (tokenise) bindings/f77/getdata.f90.in (fgd_tokenise) - bindings/f77/fgetdata.c (GDTOKE) bindings/idl/getdata.c (gdidl_tokenise): - Added. - - * bindings/python/test/big_test.py bindings/cxx/test/big_test.cpp - bindings/perl/t/big_test.t bindings/f77/test/big_test.f - bindings/f77/test/big_test95.f90 bindings/idl/test/big_test.pro: Add test - #232. - - * bindings/f77/getdata.f90.in (fgd_fragment_affixes): Fix GDFRAF call. - - * bindings/f77/fgetdata.c (_GDF_SetDirfile _GDF_Callback GDCOPN GDCLBK): - Don't cast between data and code pointers. Encapsulate the F77 callback - function in a container. - * bindings/f77/fgetdata.c (GDNOCB): Added. - * bindings/f77/test/gdcopn.f: Add GDCLBK and GDNOCB tests. - - * test/ascii_get.c test/ascii_put.c test/ascii_get_get.c - test/ascii_nframes.c: Delete FOPEN_TEXT. - - * test/add_meta.c test/add_meta_alias.c: Added. - -2012-02-16 D. V. Wiebe <ge...@ke...> svn:658 - * src/getdata.c (_GD_DoLincom): Get the correct SPFs. - * test/get_lincom_spf.c: Added. - - * src/open.c (_GD_CreateDirfile): When truncating, don't delete and then - recreate the format file; just truncate it. (This helps kst not get - confused when monitoring a dirfile which gets truncated.) - -2012-02-14 D. V. Wiebe <ge...@ke...> svn:656 svn:657 - * src/putdata.c (gd_putdata): Return early if num_samp == 0. - * test/put_zero.c: Added. - -2012-02-01 D. V. Wiebe <ge...@ke...> svn:652 - * configure.ac: Figure out the directory separator (ie. '/' on POSIX). - - * src/open.c (_GD_CreateDirfile): Handle DIRSEP. - * src/internal.h (_GD_Root): Added. - * src/common.c (_GD_CanonicalPath): Handle WIN32/DOS paths. - - * src/open.c (gd_cbopen): Temporarily store the full path in D->name so that - _GD_CreateDirfile can use it when needed. - - * src/spf.c (_GD_GetSPF): De const-ify E. - - * src/common.c (_GD_FindField): Fix buffer length calculation. - - * test/file.c test/fragment_name.c bindings/cxx/test/big_test.cpp - bindings/f77/test/big_test.f bindings/f77/test/big_test95.f90: Handle DIRSEP. - * bindings/f77/test/test_getdata.f.in: Added. - -2012-01-18 D. V. Wiebe <ge...@ke...> svn:650 - * src/getdata.h.in src/internal.h: Define GD_ENC_ZZSLIM GD_ZZSLIM_ENCODED. - * src/zzslim.c: Added. - * src/encoding.c: In the initialisation of _gd_ef, differentiate things - that are willing to use the Generic functions from those that aren't. Added - zzslim. - - * src/common.c (_GD_CanonicalPath): Don't truncate on ENOENT. - - * src/slim.c (_GD_SlimOpen): The slimdopen in slimlib-2.6.5 doesn't interact - well with slim's own zzip support, so let's ignore it for now. - - * bindings/make_parameters.c: Convert F77 encoding parameters to the form - GDE_xx. - - * configure.ac: zzslim tests. Always look for a C++ compiler. - * m4/encoding.m4: Separate LIBS from LDFLAGS; fix some underquoting. - -2012-01-11 D. V. Wiebe <ge...@ke...> svn:644 - * src/getdata.h.in: Added GD_MPLEX_ENTRY. Updated gd_entry_t. Defined - GD_COUNT_MAX. - - * src/legacy.c (CopyMplexEntry) src/getdata.c (_GD_MplexData _GD_DoMplex) - src/putdata.c (_GD_MplexOutData _GD_DoMplexOut) src/parse.c (_GD_ParseMplex) - src/add.c (gd_add_mplex gd_madd_mplex) src/mod.c (gd_alter_mplex): Added. - * src/internal.h: Define GD_MPLEX_LOOKBACK - - * src/entry.c (_GD_FreeE _GD_CalculateEntry gd_entry gd_validate) - src/flush.c (_GD_Flush _GD_FieldSpec _GD_FindVersion) src/fpos.c - (_GD_GetFilePos _GD_WriteSeek) src/legacy.c (GetFormat) src/getdata.c - (_GD_DoField) src/name.c (_GD_InvalidateConst _GD_InvalidateVect) - src/native.c (_GD_NativeType) src/putdata.c (_GD_DoFieldOut) src/del.c - (_GD_ClearDerived _GD_DeReference) src/flimits.c (_GD_GetEOF _GD_GetBOF) - src/parse.c (_GD_ParseFieldSpec) src/add.c (_GD_Add) src/spf.c (_GD_GetSPF) - src/mod.c (_GD_Change): Handle MPLEX. - - * src/fpos.c (_GD_Seek): De-statickify. - * src/legacy.c (CopyWindowEntry): Report as MPLEX. - * src/getdata_legacy.h: Fix mplex list in FormatType. - - * src/errors.c: Rename GD_E_BAD_ENTRY_* suberrors to GD_E_ENTRY_* for - brevity. Added GD_E_FORMAT_MPLEXVAL, GD_E_ENTRY_CNTVAL, GD_E_ENTRY_CNTMAX. - - * src/field_list.c (_GD_ListEntry): Move the alias check down so that hidden - and meta alias are handled properly. - - * internal.h src/common.c (_GD_Malloc _GD_Realloc _GD_Strdup): Moved from - internal.h. - - * bindings/make_parameters.c: Define MPLEX_ENTRY, E_FORMAT_MPLEXVAL, - COUNT_MAX. - * bindings/cxx/mplexentry.cpp bindings/cxx/getdata/mplexentry.h: Added. - * bindings/python/pyentry.c (gdpy_entry_getcountval gdpy_entry_setcountval - gdpy_entry_getcountmax gdpy_entry_setcountmax) bindings/cxx/getdata/entry.h - (Entry::CountVal Entry::CountMax) bindings/f77/getdata.f90.in (fgd_add_mplex - fgd_madd_mplex fgd_alter_mplex) bindings/f77/fgetdata.c (GDGEMX GDADMX - GDMDMX GDALMX) bindings/idl/getdata.c (gdidl_add_mplex gdidl_alter_mplex): - Added. - - * bindings/python/pyentry.c (gdpy_set_entry_from_tuple - gdpy_set_entry_from_dict gdpy_entry_getinfields gdpy_entry_setinfields - gdpy_entry_getparms) bindings/cxx/entry.cpp (CheckIndex scalar_ok) - bindings/cxx/dirfile.cpp (Dirfile::Entry) bindings/cxx/getdata/dirfile.h - bindings/perl/GetData.xs (gdp_to_entry entry) bindings/f77/getdata.f90.in - (fgd_entry fgd_add fgd_madd) bindings/f77/fgetdata.c (GDASCA GDMDWD) - bindings/idl/getdata.c (gdidl_make_idl_entry gdidl_read_idl_entry): MPLEX - bindings. - - * bindings/perl/simple_funcs.xsin: Add add_mplex, alter_mplex, madd_mplex. - * bindings/perl/simple_funcs.pl: Handle gd_count_t. - - * bindings/python/test/big_test.py bindings/cxx/test/big_test.cpp - bindings/perl/t/big_test.t bindings/f77/test/big_test.f - bindings/f77/test/big_test95.f90 bindings/idl/test/big_test.pro: Add tests - 228-231. - - * bindings/cxx/windowentry.cpp bindings/cxx/getdata/windowentry.h - bindings/idl/getdata.c (gdidl_alter_window): Get rid of - Check stuff: just use Input, for consistency. - - * test/add_mplex.c test/add_mplex_val.c test/alter_mplex.c - test/entry_mplex.c test/entry_mplex_scalar.c test/get_mplex.c - test/get_mplex_lb.c test/madd_mplex.c test/parse_mplex.c - test/parse_mplex_ncols.c test/parse_mplex_scalar.c test/put_mplex.c: Added. - -2011-12-31 D. V. Wiebe <ge...@ke...> svn:643 - * bindings/python/pyentry.c (gdpy_set_entry_from_dict): Add missing INCREF. - -2011-12-29 D. V. Wiebe <ge...@ke...> svn:641 - * src/internal.h src/encoding.c (_GD_GenericName): Added fragment->enc_data. - Pass enc_data to gd_ef->name. Flag encodings that use enc_data with - GD_EF_EDAT. - * src/parse.c (_GD_ParseDirective): Allow an optional second parameter to - /ENCODING of encoding-specific data. - * src/entry.c (_GD_ResolveEncoding): Pass in enc_data. - * src/zzip.c (_GD_ZzipName): Use enc_data to specify archive name. - -2011-12-29 D. V. Wiebe <ge...@ke...> svn:640 - * configure.ac: zzip encoding check. - * src/getdata.h.in src/internal.h: GD_ZZIP_ENCODED / GD_ENC_ZZIP; Added name - to encoding_t. - * src/zzip.c: Added. - * src/encoding.c: Add Zzip encoding; gd_ef_name_t. - * src/encoding.c (_GD_GenericName): Renamed from _GD_SetEncodedName and - pushed down into the encoding framework. - * src/encoding.c (_GD_MissingFramework): Handle GD_EF_NAME. - * src/encoding.c (_GD_ResolveEncoding): Handle external name functions. - * src/entry.c (gd_raw_filename) src/encoding.c (_GD_InitRawIO - _GD_RecodeFragment) src/move.c (_GD_MogrifyFile) src/name.c (_GD_Rename) - src/del.c (_GD_Delete) src/flimits.c (_GD_GetEOF): Call _gd_ef->name. - * test/zzip_get.c test/zzip_get_get.c test/zzip_nframes.c: Added. - -2011-12-27 D. V. Wiebe <ge...@ke...> svn:639 - * src/add.c (gd_madd_lincom gd_madd_clincom gd_madd_linterp gd_madd_bit - gd_madd_sbit gd_madd_multiply gd_madd_phase gd_madd_polynom gd_madd_cpolynom - gd_madd_string gd_madd_const gd_madd_carray): Zero entry before - initialisation. - - * src/fragment.c (gd_alter_affixes): Allow {pre,suf}fix == NULL to indicate - no change. - - * src/entry.c (_GD_FreeE): Handle aliases. - - * src/close.c (_GD_FreeD): Free fragment affixes. - - * src/debug.c (gd_colnil gd_coladd gd_colsub): Export debugging symbols. - - * src/field_list.c (_GD_ListEntry): Added. - * src/field_list.c (gd_constants gd_carrays gd_strings gd_field_list_by_type - gd_vector_list gd_field_list) src/meta_list.c (gd_mconstants gd_mcarrays - gd_mstrings gd_mfield_list_by_type gd_mvector_list gd_mfield_list): Call - _GD_ListEntry. - - * bindings/python/pyentry.c bindings/python/pyfragment.c - bindings/python/pydirfile.c: Update for DSV9. - * bindings/cxx/fragment.cpp bindings/cxx/entry.cpp bindings/cxx/dirfile.cpp - bindings/cxx/getdata/entry.h bindings/cxx/getdata/dirfile.h: Update for - DSV9. - * bindings/cxx/windowentry.cpp bindings/cxx/getdata/windowentry.h: Added. - * bindings/perl/GetData.xs bindings/perl/simple_funcs.xsin: Update for DSV9. - * bindings/f77/fgetdata.c bindings/f77/getdata.f90.in: Update for DSV9. - * bindings/idl/getdata.c: Update for DSV9. Removed most of the function - aliases. - - * bindings/make_parameters.c: Update for DSV9. Add missing - GD_E_UNKNWON_ENCODING. - - * bindings/python/pygetdata.c (initpygetdata): Handle gaps in - gdpy_exception_list. Fix exception list. - - * bindings/python/pyentry.c (gdpy_entry_settable): Set correct parameter. - - * test/vlist_alias.c: Added. - -2011-12-20 D. V. Wiebe <ge...@ke...> svn:638 - * src/entry.c (_GD_GetScalar _GD_CalculateEntry) src/common.c (_GD_GetRepr - _GD_BadInput _GD_FindFieldAndRepr: Optionally prohibit setting errors (for - use by the post-rename update stuff). - * src/errors.c: Added GD_E_FORMAT_ALIAS, GD_E_DEL_ALIAS. - * src/flush.c (_GD_FieldSpec): Write aliases. Also tweaked to allow slashed - metafield specification with DSV7. - * src/del.c (_GD_ClearDerived): Handle aliases. - * src/parse.c (_GD_CheckParent _GD_ParseAlias _GD_ResolveAlias - _GD_UpdateAliases) src/add.c (_GD_AddAlias gd_add_alias gd_madd_alias): Added. - * src/parse.c (_GD_ParseFieldSpec): Call _GD_CheckParent. - * src/parse.c (_GD_ParseDirective): Use a switch to reduce the number of - strcmps done. Handle /ALIAS. - * src/parse.c (_GD_ParseFragment): Optionally call _GD_UpdateAliases to - resolve aliases. - * src/add.c (_GD_Add gd_madd_spec gd_add_spec): Update aliases after addition. - - * src/common.c (_GD_FindField): Optionally dealias names. - - * src/del.c (_GD_Delete): Renamed from gd_delete(). - * src/del.c (gd_delete gd_delete_alias): Added. - - * src/name.c (_GD_UpdateScalar _GD_InvalidateConst _GD_UpdateInField - _GD_InvalidateVect): Added. - * src/name.c (_GD_Rename): Renamed from gd_rename(). Handle cleaning up - after the rename. - - * src/move.c (_GD_Move): Renamed from gd_move(). - - * src/name.c (_GD_ValidateField): Permit is_dot = NULL. - - * src/entry.c (gd_alias_target gd_aliases gd_naliases gd_hidden) src/move.c - (gd_move gd_move_alias) src/name.c (gd_rename gd_rename_alias): Added. - - * src/alias.c (gd_fragment_index gd_hide gd_unhide): Call _GD_FindField - instead of _GD_FindFieldAndRepr to avoid resolving aliases. As a side effect, - these function will no long ignore representation suffices. - - * src/flush.c (_GD_StringEscapeise): Handle writing slashed meta-fields. - - * src/spf.c (_GD_GetSPF): Ensure return is zero on error. - - * test/alias_num_missing.c alias_target_missing.c spf_alias_missing.c - alias_list.c del_derived_after.c madd_spec_resolv.c parse_alias_meta.c - entry_type_alias.c spf_alias.c name_after_const.c parse_malias_dup.c - add_alias.c alias_target.c alias_list_alias.c add_resolv.c spf_alias_meta.c - move_alias.c name_after.c parse_meta_jump.c parse_alias_missing.c - name_update_const.c madd_alias.c parse_alias_dup.c fragment_index_alias.c - add_spec_resolv.c alias_target_alias.c name_update.c hide_hidden.c - alias_num_alias.c parse_malias.c parse_alias_code.c parse_alias.c - alias_num.c parse_meta_malias.c parse_meta_alias.c alias_list_missing.c: - Added. - - * test/fragment_parent.c: Renamed from test/parent.c. - * test/fragment_num.c: Renamed from test/nfragments.c. - - * test/version_9_write.c: Update. - -2011-12-13 D. V. Wiebe <ge...@ke...> svn:637 - * test/fragment_affix_alter2.c test/fragment_affix_alter.c - test/fragment_affix_dup.c test/fragment_affix.c test/include_affix.c: Added. - - * src/move.c (_GD_StrCmpNull): Renamed from strcmpnull and de-statickified. - - * src/name.c (_GD_MungeFromFrag): Added. - * src/name.c (_GD_MungeCode): Converted into a swiss army munger handling - both enmunging and demunging. Most old, simple, uses of this function now - call _GD_MungeFromFrag (which calls this) instead. - * src/flush.c (_GD_DeMungeCode): Deleted in favour of the new _GD_MungeCode. - - * src/fragment.c (gd_fragment_affixes _GD_CheckAffixes _GD_ChangeAffixes - gd_alter_affixes): Added. - - * src/include.c (gd_include_affix): Renamed from gd_include. - * src/include.c (gd_include): Added. - -2011-12-11 D. V. Wiebe <ge...@ke...> svn:635 - * test/add_string_affix.c test/name_affix_bad.c test/move_affix.c - test/alter_entry_affix.c test/alter_entry_affix.c test/madd_affix.c - test/parse_meta_affix.c test/madd_index.c test/name_affix.c - test/alter_mspec_affix.c test/name_dup.c test/parse_meta_implicit_affix.c - test/add_affix.c test/alter_spec_affix.c: Added. - - * test/version_9_strict.c test/version_9_write.c: Expanded. - - * src/open.c (gd_cbopen): Set errors for _GD_CanonicalPath. - - * src/errors.c: Distingish missing codes from invalid codes for - GD_E_BAD_CODE. - - * src/name.c (gd_rename): Validate the new name first and then DeMunge it - if it's not a meta field. - - * src/move.c (gd_move): Compose the new field name by remunging it for the - new fragment. Also compose the new names of all its metafield early, if - necessary. - - * src/parse.c (_GD_ParseFieldSpec _GD_ParseDirective): Munge field codes - before lookup. Also munge the reference field. - - * src/mod.c (gd_alter_spec gd_malter_spec): The parser will end up - reapplying affixes to the field name, so undo that. - - * src/add.c (_GD_Add gd_add_string gd_add_const gd_add_const gd_madd_string - gd_madd_const gd_madd_carray): _GD_Add() returns the added entry on success. - This saves a field lookup in the others. - - * src/add.c (_GD_Add): Munge field name earlier. - - * src/name.c (gd_rename): Flag fragment as modified. - - * src/flush.c (_GD_FieldSpec): Properly write /HIDDEN directives. - -2011-12-09 D. V. Wiebe <ge...@ke...> svn:634 - * test/parse_include_preprefix.c test/version_9_strict.c test/version_9.c - test/parse_include_suffix.c test/parse_include_loop.c test/version_9_write.c - test/parse_include_sufsuffix.c test/parse_include_prefix.c - test/parse_include_prefix_dup.c test/get_phase_affix.c: Added. - - * test/add_sort.c test/add_scalar_carray.c test/add_code.c test/add_type.c - test/add_invalid.c test/put_carray.c test/add_scalar.c test/madd.c - test/add_format.c: Remove dirfile before starting. - - * test/version_8_strict.c: Fix initialisation. - - * test/version_6_write.c: Test whitespace in field names. - - * test/test.h: Armour plate macros. - - * src/internal.h: Add prefix and suffix to gd_fragment_t. - * src/name.c (_GD_MungeCode) src/flush.c (_GD_DeMungeCode) src/include.c - (_GD_SetFieldAffixes): Added. - * src/flush.c (_GD_StringEscapeise): Handle null tokens. Escape spaces - rather than assuming the caller will quote the token (which it wasn't - doing). - * src/entry.c (_GD_GetScalar) src/name.c (gd_rename) src/add.c (_GD_Add) - src/commonc. (_GD_BadInput): Munge field code before use. - * src/flush.c (_GD_PadField): Demunge field code before writing. - * src/flush.c (_GD_WriteConst): Properly demunge and escapeise scalar names. - * src/name.c (_GD_ValidateField): This function no longer takes care of - malloc'ing. Modified to return integer true on error. - * src/name.c (_GD_FlushFragment): Add prefix and suffix to INCLUDE when - present. - * src/parse.c (_GD_ParseRaw _GD_ParseLincom _GD_ParseLinterp - _GD_ParseMultiply _GD_ParseRecip _GD_ParseLincom _GD_ParseWindow - _GD_ParseDivide _GD_ParseBit _GD_ParsePhase _GD_ParsePolynom _GD_ParseConst - _GD_ParseCarray _GD_ParseString): Munge field code on parsing. - * include.c (_GD_Include): Handle affixes. - - * src/common.c (_GD_EntryCmp): Moved from src/internal.h and deinlined, - destatickified. Given that the only use of this function is to pass it to - qsort, making it static inline only ensured that it got replaced once per - translation unit that referred to it. - - * include.c (_GD_Include): Replaced the old filename comparison stage with a - simple recursion counter. - - * src/parse.c (_GD_Tokenise): Handle token-initial escaped character. - Handle "\[ux#]##\...". - - * src/flush.c (_GD_FindVersion): Prefix or suffix implies DSV >= 9. - - * src/parse.c (_GD_SetScalar): Handle bad malloc. - - * src/name.c (_GD_FieldSpec): Properly escapeise input field codes. - - * src/errors.c: Distinguish GD_E_RECURSE_CODE from GD_E_RECURSE_INCLUDE. - - * src/internal.h (_GD_Malloc _GD_Realloc _GD_Strdup): Added. - * src/commonc. (_GD_MakeFullPath): Set error if requested. - * src/common.c (_GD_MakeFullPathOnly): Added. This is a wrapper around - _GD_MakeFullPath which ensures the DIRFILE is not modified. Used by the - compatibility functions and the slim encoding framework (ie. things that have - at best a tenuous connection to the DIRFILE object). - - * src/internal.h: Define GD_MULTISTANDARD. - * src/include.c (_GD_Include): Set GD_MULTISTANDARD if moving into/out of - DSV >= 9. - * src/open.c (gd_cbopen): If the metadata contain multiple standards, figure - out a single one for the whole dirfile. - -2011-12-08 D. V. Wiebe <ge...@ke...> svn:633 - * test/svlist_hidden.c test/svlist_meta_hidden.c test/hide.c - test/flist_hidden.c test/nfields_hidden.c test/parse_version_89.c - test/nmeta_type_hidden.c test/parse_version_98.c test/nmeta_vectors_hidden.c - test/nmeta_hidden.c test/alter_entry_hidden.c test/parse_version_p8.c - test/parse_version_p9.c test/hide_unhide.c test/cvlist_meta_hidden.c - test/nfields_type_hidden.c test/vlist_hidden.c test/flist_meta_hidden.c - test/vlist_meta_hidden.c test/flist_type_meta_hidden.c - test/parse_hidden_meta.c test/cvlist_array_hidden.c test/parse_meta_meta.c - test/nfields_vector_hidden.c test/parse_hidden.c test/parse_hidden_field.c - test/cvlist_hidden.c test/cvlist_array_meta_hidden.c - test/flist_type_hidden.c: Added. - - * test/nfields_vector.c test/nfields_vector_invalid.c: Renamed from nvectors* - - * src/parse.c (_GD_ParseDirective): Parse /HIDDEN directives. - * src/entry.c (gd_hide gd_unhide): Added. - * src/nmeta.c (gd_nmfields gd_nmvectors gd_nmfields_by_type) src/nfields.c - (gd_nfields gd_nvectors gd_nfields_by_type) src/field_list.c (gd_constants - gd_carrays gd_strings gd_field_list_by_type gd_vector_list gd_field_list) - src/meta_list (gd_mconstants gd_mcarrays gd_mstrings gd_mfield_list_by_type - gd_mvector_list gd_mfield_list): Compensate for hidden fields. - * src/flush.c (_GD_FieldSpec): Write /HIDDEN directives. - * src/flush.c (_GD_FindVersion): Consider hidden entries. - * src/mod.c (_GD_Change): Prohibit changing hiddenness via gd_alter_entry(). - - * src/parse.c (_GD_ParseDirective): Forbid a metafield code from appearing - as a parent in /META directives. - - * src/internal.h: Record the number of each type of field, rather than just - for the scalar field types. - * src/internal.h (_GD_EntryIndex): Added. - * src/open.c (gd_cbopen): Initialise D->n[INDEX_ENTRY]. - * src/nmeta.c (gd_nmvectors gd_nmfields_by_type) src/nfields.c (gd_nvectors - gd_nfields_by_type) src/field_list.c (gd_constants gd_carrays gd_strings - gd_field_list_by_type gd_vector_list) src/meta_list.c (gd_mconstants - gd_mcarrays gd_mstrings gd_mfield_list_by_type gd_mvector_list): Use type - counts. - * src/del.c (gd_delete) src/parse.c (_GD_ParseFieldSpec) src/include.c - (gd_uninclude) src/add.c (_GD_Add): Update type counts. - * src/field_list.c (_gd_entype_index): Deleted. - - * src/include.c (_GD_Include): Remember incoming Standards Version and - parser mode, and restore them on exit if the new DSV >=9 or the old mode is - pedantic and the old DSV >= 9. This is an attempt to stave the "version - leak" problem experienced in earlier DSVs. - - * src/internal.h: Renamed GD_E_FORMAT_NO_PARENT to GD_E_FORMAT_NO_FIELD. - -2011-12-06 D. V. Wiebe <ge...@ke...> svn:632 - * test/get_window_ne.c test/get_window.c test/parse_window_scalar.c - test/alter_window.c test/parse_window.c test/madd_window.c - test/parse_window_ncols.c test/add_window.c test/put_window.c - test/get_window_set.c test/get_window_gt.c test/get_window_ge.c - test/parse_window_op.c test/entry_window.c test/entry_window_scalar.c - test/add_window_op.c test/get_window_lt.c test/get_window_clr.c - test/get_window_le.c: Added. - - * test/madd_phase.c: Fix check. - - * test/version_6.c test/version_7.c test/version_8.c: Update for Version 9. - - * cmake/CMakeLists.txt configure.ac: Define gd_int64_t. - - * src/getdata.h.in: Add GD_WINDOW_ENTRY, gd_windop_t, gd_triplet_t. - * src/entry.c (_GD_FreeE _GD_CalculateEntry gd_entry) legacy.c (GetFormat) - src/getdata.c (_GD_DoField) src/errors.c src/flush.c (_GD_Flush - _GD_FieldSpec) src/native.c (_GD_NativeType) src/spf.c (_GD_GetSPF) - src/putdata.c (_GD_DoFieldOut) src/del.c (_GD_ClearDerived _GD_DeReference) - src/flimits.c (_GD_GetEOF _GD_GetBOF) src/fpos.c (_GD_GetFilePos _GD_Seek) - src/parse.c (_GD_ParseFieldSpec) src/field_list.c src/mod.c (_GD_Change) - src/add.c (_GD_Add): Update for WINDOW. - * src/legacy.c (CopyWindowEntry) src/getdata.c (_GD_WindowData _GD_DoWindow) - src/flush.c (_GD_WindopName) src/parse.c (_GD_WindOp _GD_ParseWindow) - src/mod.c (gd_alter_window) src/internal.h (_GD_BadWindop) src/add.c - (gd_add_window gd_madd_window): Added. - * src/flush.c (_GD_WriteConst): Write GD_UINT64. - - * src/flush.c (_GD_WriteConst): Fix writing of RECIP fields. - - * src/parse.c (_GD_ParseRecip _GD_ParsePhase): Fail if SetScalar fails. - - * src/parse.c (_GD_SetScalar): Don't bother trying to decode an imaginary - part before failing if we're not interested in complex numbers. - - * src/parse.c (_GD_SetScalar): Call strto[u]ll with base=0 for Version >= 9 to - allow automatic parsing of 0x[hex] and 0[octal] numbers in format files. - - * src/getdata.h.in: Increment GD_DIRFILE_STANDARDS_VERSION. - * src/flush.c (_GD_FindVersion): Update for Version 9. - -2011-12-05 D. V. Wiebe <ge...@ke...> svn:630 - * python/test/callback.pl python/test/big_test.py cxx/test/big_test.cpp - f77/test/big_test.f f77/test/big_test95.f90: Fix path checks. - - * f77/test/big_test.f f77/test/big_test95.f90: Use check functions. - - * src/flush.c (_GD_Flush): Don't call sync on a file opened read-only. - - * configure.ac: Look for Availability.h - * src/internal.h: Fix lstat64 on OS X 10.6+ - - * src/common.c (_GD_CanonicalPath): Don't run past the end of the work - buffer. - -2011-12-03 D. V. Wiebe <ge...@ke...> svn:629 - * test/test.h (CHECKEOS): Added. - * test/file.c test/fragment_name.c: Only check the end of the returned - string since we don't know what the full path is. - - * src/internal.h: Define PATH_MAX, if necessary. - * src/common.c (_GD_CanonicalPath): Added. - * src/open.c (gd_cbopen): Canonicalise filedir. - * src/common.c (_GD_MakeFullPath): Canonicalise path. Handle dirfd < 0. - * src/common.c (_GD_GrabDir): Let _GD_MakeFullPath hande canonicalising - absolute paths. - - * configure.ac: Check for lstat(3). - * src/compat.c (gd_StatAt): Don't use lstat if the platform doesn't have it. - - * src/internal.h: Move library includes into header. - -2011-12-01 D. V. Wiebe <ge...@ke...> svn:628 - * src/flush.c (_GD_FlushFragment): Write "/PROTECT data" when appropriate. - Bug report from Alexandra Rahlin. - -2011-11-13 D. V. Wiebe <ge...@ke...> svn:626 - * src/entry.c (gd_raw_filename): Revert r613 changes. - * src/gzip.c: Move OOP code out of gzip layer. - * src/encoding.c (_GD_FiniRawIO _GD_InitRawIO) src/fpos.c (_GD_WriteSeek): - Handle OOP writes. - * src/encoding.c (_GD_WriteOut): Added. - * src/mod.c (_GD_Change) src/putdata.c (_GD_DoRawOut): Call _GD_WriteSeek and - _GD_WriteOut - - * src/putdata.c (_GD_DoRawOut): Correctly handle write errors. - - * configure.ac: Fix x86_64 host check. - -2011-11-10 D. V. Wiebe <ge...@ke...> svn:622 - * configure.ac: Figure out whether unaligned memory access will work. - * src/internal.h: Deal with UNALIGNED_ACCESS_OK - * src/sie.c (_GD_SampIndWrite): Handle unaligned memory access. - -2011-11-08 D. V. Wiebe <ge...@ke...> svn:615 - * test/add_scalar_carray.c: Added. - - * src/add.c (_GD_Add): Copy scalar_ind when copying scalars. Patch from - S. J. Benton. - -2011-11-08 D. V. Wiebe <ge...@ke...> svn:614 - * test/gzip_put_get.c test/gzip_move_to.c test/gzip_add.c - test/gzip_get_put.c test/gzip_put.c: Handle TEST_GZIP && !USE_GZIP. - - * src/encoding.c (_GD_FiniRawIO): Don't change error code if already set. - - * src/sie.c (_GD_SampIndSize): Fix descriptor leak. - -2011-11-05 D. V. Wiebe <ge...@ke...> svn:610 - * test/gzip_put_get.c test/ascii_add.c test/get_rofs.c test/gzip_move_to.c - test/gzip_add.c test/endian_alter_sie.c test/gzip_get_put.c: Added. - * test/gzip_put.c: Update. - - * m4/encoding.m4: Add a AC_CHECK_FUNCS call. - - * src/slim.c (_GD_SlimOpen): Update for the (non-existant) slimdopen(). - - * src/getdata.h.in: Renamed GD_SEEK_PAD to GD_SEEK_WRITE to better reflect - its purpose. - * bindings/idl/getdata.c (gdidl_seek): Update keywords for same. - - * src/flush.c (_GD_Flush): Add a third parameter, clo, to distinguish - sync from sync-and-close. - * src/flush.c (_GD_SyncOrClose): Renamed from gd_flush. - * src/flush.c (gd_sync gd_flush): Added. - - * src/internal.h: Added _gd_raw_file.mode. Replaced encoding_t.ecor with - encoding_t.flags; - * src/encoding.c: Deleted touch, topen, tmove, tunlink from the encoding - framework. Changed signature of open and seek. - * src/encoding.c (_GD_MoveOver): Renamed from _GD_GenericTMove. - * src/encoding.c (_GD_FiniRawIO) src/fpos.c (_GD_WriteSeek): Added. - * src/gzip.c (_GD_GzipOpen _GD_GzipSeek _GD_GzipClose) src/encoding.c - (_GD_InitRawIO): Update for out-of-place writes. - * src/endian.c (_GD_ByteSwapFragment) src/name.c (gd_rename) src/flush.c - (_GD_Flush) src/encoding.c (_GD_RecodeFragment) src/del.c (gd_delete) - src/flimits.c (_GD_ShiftFragment): Use _GD_FiniRawIO to clean up. - * src/encoding.c (_GD_GenericTouch) src/ascii.c (_GD_AsciiTOpen - _GD_AsciiTUnlink) src/sie.c (_GD_SampIndTOpen _GD_SampIndTUnlink) src/raw.c - (_GD_RawTOpen _GD_RawTUnlink): Deleted. - * src/move.c (_GD_MogrifyFile) src/mod.c (_GD_Change): Use _GD_FiniRawIO and - _GD_InitRawIO. - * src/parse.c (_GD_ParseFieldSpec) add.c (_GD_Add): Use _GD_InitRawIO for - touch. - * src/gzip.c (_GD_GzipOpen) src/ascii.c (_GD_AsciiOpen) src/sie.c - (_GD_SampIndDoOpen _GD_SampIndOpen) src/raw.c (_GD_RawOpen): Handle temp file - opens. - * src/putdata.c (_GD_DoRawOut) src/fpos.c (_GD_Seek): Use _GD_WriteSeek. - - * src/fpos.c (_GD_GetFilePos): Only try to open the file if necessary. - - * src/gzip.c (_GD_GzipWrite _GD_GzipSync): Added. - -2011-10-20 D. V. Wiebe <ge...@ke...> svn:609 - * test/get_here_foffs.c test/seek_foffs.c: Added. - - * src/getdata.c (_GD_DoRaw): Update file->pos after calling FillZero. - * src/fpos.c (_GD_GetFilePos): Adjust for SPF. - * src/fpos.c (_GD_Seek): If seeking before FRAMEOFFSET, set file->pos < 0. - - * bindings/python/pydirfile.c (gdpy_dirfile_seek): Fix type of frame_num, - sample_num. - - * bindings/perl/typemap: off64_t is signed. - - * bindings/f77/fgetdata.c (GDCONS GDMCOS GDSTRS GDMSTS GDSTRX GDMSTX): - Added. - * bindings/f77/getdata.f90.in (fgd_constants_i1 fgd_constants_i2 - fgd_constants_i4 fgd_constants_i8 fgd_constants_r4 fgd_constants_r8 - fgd_constants_c8 fgd_constants_c16 fgd_mconstants_i1 fgd_mconstants_i2 - fgd_mconstants_i4 fgd_mconstants_i8 fgd_mconstants_r4 fgd_mconstants_r8 - fgd_mconstants_c8 fgd_mconstants_c16 fgd_string_value_max fgd_strings - fgd_mstring_value_max fgd_mstrings): Added. - - * bindings/idl/getdata.c (gdidl_getdata gdidl_putdata): Add /HERE. - - * bindings/python/test/big_test.py bindings/cxx/test/big_test.cpp - bindings/perl/t/big_test.t bindings/f77/test/big_test.f - bindings/f77/test/big_test95.f90 bindings/idl/test/big_test.pro: Added tests - 183-204. - -2011-10-18 D. V. Wiebe <ge...@ke...> svn:607 - * man/gd_seek.3 man/gd_tell.3: Added. - - * src/spf.c (gd_spf): Throw GD_E_DIMENSION on scalar field specified per - documentation. - * src/fpos.c (gd_tell64 gd_seek64): Ditto. - - * src/putdata.c (_GD_DoFieldOut): Don't return on error from _GD_GetFilePos; - a better error will be generated later. - - * bindings/make_parameters.c: Add GD_E_ARGUMENT, GD_SEEK_*, GD_HERE. - * bindings/python/pydirfile.c (gdpy_dirfile_seek gdpy_dirfile_tell) - bindings/cxx/dirfile.cpp (Dirfile::Seek Dirfile::Tell) - bindings/perl/simple_funcs.xsin (seek tell) bindings/f77/fgetdata.c (GDSEEK - GDTELL) bindings/f77/getdata.f90.in (fgd_seek fgd_tell) - bindings/idl/getdata.c (gdidl_seek gdidl_tell): Added. - -2011-10-13 D. V. Wiebe <ge...@ke...> svn:606 - * test/entry_divide.c test/entry_recip.c test/get_here.c test/get_heres.c - test/put_here.c test/put_heres.c test/seek64.c test/seek_cur.c test/seek_end.c - test/seek_set.c test/tell.c test/tell64.c: Added. - - * test/legacy_put.c test/put_complex128.c test/put_complex64.c - test/put_float32.c test/put_float64.c test/put_ff.c test/put_foffs.c - test/put_fs.c test/put_int16.c test/put_int32.c test/put_int64.c - test/put_int8.c test/put_lincom1.c test/put_linterp.c - test/put_linterp_reverse.c test/put_off64.c test/put_phase.c - test/put_polynom1.c test/put_recip.c test/put_sf.c test/put_ss.c - test/put_uint16.c test/put_uint32.c test/put_uint64.c: Don't perform - unnecessary tests in the event the data file wasn't created. - - * src/getdata.h.in: Combine GD_E_BAD_ENDIANNESS and GD_E_BAD_PROTECTION into - GD_ARGUMENT. The former are kept as aliases of the new symbol. - * src/endian.c (gd_alter_endianness) src/errors.c src/protect.c - (gd_alter_protection): Update for GD_E_ARGUMENT. - - * src/internal.h: Add .pos to _gd_raw_file. Add .u.index_pos to - _gd_private_entry. - * src/ascii.c (_GD_AsciiOpen _GD_AsciiSeek _GD_AsciiRead _GD_AsciiTOpen - _GD_AsciiTUnlink) src/gzip.c (_GD_GzipOpen _GD_GzipSeek _GD_GzipRead) - src/lzma.c (_GD_LzmaOpen _GD_LzmaSeek _GD_LzmaRead) src/sie.c - (_GD_SampIndOpen _GD_SampIndSeek _GD_SampIndRead _GD_SampIndWrite - _GD_SampIndTOpen) src/raw.c (_GD_RawOpen _GD_RawSeek _GD_RawRead - _GD_RawWrite _GD_RawTOpen): Track file position. - - * src/encoding.c (_GD_InitRawIO): Added. - * src/getdata.c (_GD_DoRaw) src/putdata.c (_GD_DoRawOut): Call _GD_InitRawIO. - - * src/fpos.c: Added. - * src/flimits.c (_GD_GetEOF): Publicise. - * src/getdata.c (gd_getdata64) src/putdata.c (gd_putdata64): Regularise use of - GD_HERE. Also, only call _GD_GetSPF when necessary. - * src/getdata.c (_GD_DoField) src/putdata.c (_GD_DoFieldOut): Resolve - instances of GD_HERE. - - * bindings/python/Makefile.am bindings/cxx/Makefile.am - bindings/f77/Makefile.am: Remove some unnecessary linking. - - * bindings/idl/package/Makefile.am: Add $(DEFS) to the make_parameters rule - to ensure it builds properly. - -2011-08-23 D. V. Wiebe <ge...@ke...> svn:600 - * test/error_error.c: Simplify test. - * test/test.h (CHECKSp): Added. - - * src/errors.c src/internal.h: Added GD_E_CREAT_OPEN. - * src/open.c (_GD_CreateDirfile): Distinguish GD_E_CREAT_DIR from - GD_E_CREAT_OPEN. - - * src/internal.h: When linking to the MSVCRT, define GD_NO_DIR_OPEN to - indicate that the MSVCRT's open() prohibits openind directories. (This is - referred to as "the non-POSIX case". - * src/open.c (_GD_CreateDirfile): Take dirfile, ... [truncated message content] |
From: <ket...@us...> - 2012-12-13 00:57:45
|
Revision: 775 http://getdata.svn.sourceforge.net/getdata/?rev=775&view=rev Author: ketiltrout Date: 2012-12-13 00:57:39 +0000 (Thu, 13 Dec 2012) Log Message: ----------- GetData-0.8.2 released. Modified Paths: -------------- trunk/getdata/ChangeLog trunk/getdata/NEWS trunk/getdata/RELEASE_NOTES.in trunk/getdata/m4/version.m4 Modified: trunk/getdata/ChangeLog =================================================================== --- trunk/getdata/ChangeLog 2012-12-12 22:16:46 UTC (rev 774) +++ trunk/getdata/ChangeLog 2012-12-13 00:57:39 UTC (rev 775) @@ -1,3 +1,6 @@ +2012-12-13 D. V. Wiebe <ge...@ke...> svn:775 + GetData-0.8.2 released. + 2012-12-12 D. V. Wiebe <ge...@ke...> svn:773 * src/common.c (_GD_CanonicalPath): Don't bail early when encountering a trailing absolute symlink. Modified: trunk/getdata/NEWS =================================================================== --- trunk/getdata/NEWS 2012-12-12 22:16:46 UTC (rev 774) +++ trunk/getdata/NEWS 2012-12-13 00:57:39 UTC (rev 775) @@ -1,4 +1,4 @@ -New in version 0.8.2a: +New in version 0.8.2: Library Changes: Modified: trunk/getdata/RELEASE_NOTES.in =================================================================== --- trunk/getdata/RELEASE_NOTES.in 2012-12-12 22:16:46 UTC (rev 774) +++ trunk/getdata/RELEASE_NOTES.in 2012-12-13 00:57:39 UTC (rev 775) @@ -1,4 +1,4 @@ -GetData 0.8.1 is known to compile and pass the test suite on the following +GetData 0.8.2 is known to compile and pass the test suite on the following systems (including C++ and Fortran bindings): Linux: @@ -22,11 +22,11 @@ --------------------------------------------------------------------------- Three packages are available: -* getdata-0.8.1.tar.bz2/.gz: the full source code to the library, with +* getdata-0.8.2.tar.bz2/.gz: the full source code to the library, with bindings. This package uses the GNU autotools build system, and is designed for POSIX systems (UNIX, Linux, BSD, MacOS X, Cygwin, MSys, &c.) -* getdata_win-0.8.1.zip: a reduced source code package, with the CMake +* getdata_win-0.8.2.zip: a reduced source code package, with the CMake build system designed to be built on Microsoft Windows, either using the free MinGW compiler, or else Microsoft's Visual C++ compiler. (The full source package above can also be built using MinGW, if the @@ -35,7 +35,7 @@ package lacks support for compressed dirfiles, the Legacy API, and a few other features. This build is used in native Microsoft Windows builds of kst2. -* idl_getdata-0.8.1.tar.bz2/.gz: the Interactive Data Language (IDL) +* idl_getdata-0.8.2.tar.bz2/.gz: the Interactive Data Language (IDL) bindings, packaged separately with an autotools build system, designed to be built against an already installed version of GetData. Due to licensing restrictions, pre-built packages rarely come with these Modified: trunk/getdata/m4/version.m4 =================================================================== --- trunk/getdata/m4/version.m4 2012-12-12 22:16:46 UTC (rev 774) +++ trunk/getdata/m4/version.m4 2012-12-13 00:57:39 UTC (rev 775) @@ -21,14 +21,14 @@ m4_define(getdata_major, 0) m4_define(getdata_minor, 8) m4_define(getdata_revision, 2) -m4_define(getdata_extra, [a]) +m4_define(getdata_extra, []) m4_define(getdata_version, getdata_major.getdata_minor.getdata_revision[]getdata_extra) dnl libgetdata current interface version m4_define(getdata_iface_version, 6) dnl libgetdata current interface implementation revision -m4_define(getdata_impl_revision, 0) +m4_define(getdata_impl_revision, 1) dnl libgetdata interface age (current interface - oldest supported interface) m4_define(getdata_iface_age, 1) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ket...@us...> - 2012-12-12 22:16:53
|
Revision: 774 http://getdata.svn.sourceforge.net/getdata/?rev=774&view=rev Author: ketiltrout Date: 2012-12-12 22:16:46 +0000 (Wed, 12 Dec 2012) Log Message: ----------- Skip symlink tests on Win32/64. Modified Paths: -------------- trunk/getdata/cmake/test/CMakeLists.txt Modified: trunk/getdata/cmake/test/CMakeLists.txt =================================================================== --- trunk/getdata/cmake/test/CMakeLists.txt 2012-12-12 03:07:29 UTC (rev 773) +++ trunk/getdata/cmake/test/CMakeLists.txt 2012-12-12 22:16:46 UTC (rev 774) @@ -10,6 +10,7 @@ lzma_get lzma_nframes legacy_get legacy_get_put legacy_get_rofs legacy_nframes legacy_nonexistent legacy_put legacy_spf open_eaccess + open_sym_a open_sym_al open_sym_at open_sym_c open_sym_cl open_sym_ct open_sym_p open_sym_pl open_sym_pt slim_get slim_nframes slim_put trunc_rofs xz_get xz_nframes This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ket...@us...> - 2012-12-12 03:07:45
|
Revision: 773 http://getdata.svn.sourceforge.net/getdata/?rev=773&view=rev Author: ketiltrout Date: 2012-12-12 03:07:29 +0000 (Wed, 12 Dec 2012) Log Message: ----------- Fix two bugs involving trailing symlinks. (One reported by Steve Benton plus a bonus one found while testing the fix for the first.) Plus tests for same. Modified Paths: -------------- trunk/getdata/ChangeLog trunk/getdata/NEWS trunk/getdata/configure.ac trunk/getdata/src/common.c trunk/getdata/test/Makefile.am trunk/getdata/test/parse_include_absolute.c trunk/getdata/test/parse_include_absrel.c trunk/getdata/test/parse_include_relabs.c trunk/getdata/test/test.h Added Paths: ----------- trunk/getdata/test/open_sym_a.c trunk/getdata/test/open_sym_al.c trunk/getdata/test/open_sym_at.c trunk/getdata/test/open_sym_c.c trunk/getdata/test/open_sym_cl.c trunk/getdata/test/open_sym_ct.c trunk/getdata/test/open_sym_p.c trunk/getdata/test/open_sym_pl.c trunk/getdata/test/open_sym_pt.c Property Changed: ---------------- trunk/getdata/test/ Modified: trunk/getdata/ChangeLog =================================================================== --- trunk/getdata/ChangeLog 2012-11-23 15:23:24 UTC (rev 772) +++ trunk/getdata/ChangeLog 2012-12-12 03:07:29 UTC (rev 773) @@ -1,3 +1,16 @@ +2012-12-12 D. V. Wiebe <ge...@ke...> svn:773 + * src/common.c (_GD_CanonicalPath): Don't bail early when encountering a + trailing absolute symlink. + + * src/common.c (_GD_CanonicalPath): Strip DIRSEP along with a symlink name + from res when necessary. + + * test/test.h test/parse_include_absolute.c test/parse_include_absrel.c + test/parse_include_relabs.c: Abstract getcwd in the header. + * test/open_sym_a.c test/open_sym_al.c test/open_sym_at.c test/open_sym_c.c + test/open_sym_cl.c test/open_sym_ct.c test/open_sym_p.c test/open_sym_pl.c + test/open_sym_pt.c: Added. + 2012-11-22 D. V. Wiebe <ge...@ke...> svn:772 * src/encoding.c (_GD_WriteOut): Remove unnecessary DIRFILE parameter. Modified: trunk/getdata/NEWS =================================================================== --- trunk/getdata/NEWS 2012-11-23 15:23:24 UTC (rev 772) +++ trunk/getdata/NEWS 2012-12-12 03:07:29 UTC (rev 773) @@ -1,6 +1,11 @@ New in version 0.8.2a: Library Changes: + + * BUG FIX: A trailing symlink (i.e. situations where a symlink is the last + element of a path) no longer confuses GetData when the target of the + symlink: (1) is absolute, or (2) starts with "../". Reported by S. J. + Benton. * BUG FIX: Trying to read data from the first sample of an MPLEX no longer results in an internal error if the first sample of the index doesn't match @@ -86,7 +91,8 @@ * Literal integers in the format may now be specified in octal (using 0####) or hexidecimal (using 0x##### or 0X#####) in addition to - decimal. + decimal. C99-standard hexidecimal floating point literals (0x##.##p##, + &c.) are also accepted. * The /INCLUDE directive can take two additional, optional parameters which specify a prefix and/or suffix used to modify the entry names of Modified: trunk/getdata/configure.ac =================================================================== --- trunk/getdata/configure.ac 2012-11-23 15:23:24 UTC (rev 772) +++ trunk/getdata/configure.ac 2012-12-12 03:07:29 UTC (rev 773) @@ -711,7 +711,7 @@ _lseeki64 lstat lstat64 _mkdir mkfifo nan _open openat \ pathconf _read readdir_r readlink renameat _rmdir snprintf \ _snprintf stat64 _stat64 _strtoi64 strtoll _strtoui64 strtoull \ - _unlink unlinkat _write]) + symlink _unlink unlinkat _write]) if test "x$disable_c99" = "xno"; then AC_CHECK_FUNCS([cabs]) fi Modified: trunk/getdata/src/common.c =================================================================== --- trunk/getdata/src/common.c 2012-11-23 15:23:24 UTC (rev 772) +++ trunk/getdata/src/common.c 2012-12-12 03:07:29 UTC (rev 773) @@ -1183,13 +1183,21 @@ char *rptr; for (rptr = res + res_len - 1; !_GD_IsDirSep(*rptr); --rptr) ; - *(rptr + 1) = '\0'; - res_len = (rptr - res) + 1; + + /* don't strip the root /; but do strip a previous DIRSEP */ + if ((size_t)(rptr - res) < res_root) { + *(rptr + 1) = '\0'; + res_len = (rptr - res) + 1; + } else { + *rptr = '\0'; + res_len = rptr - res; + } } /* now make a new work buffer of "target/remaining", asusming * remaining is non-null, otherwise, just use target */ if (*end == '\0') { + last_element = 0; free(work); end = work = strdup(target); if (work == NULL) { Property changes on: trunk/getdata/test ___________________________________________________________________ Modified: svn:ignore - Makefile Makefile.in valgrind.log *.o dirfile *.swp *.exe .deps .libs add add_affix add_alias add_alias_affix add_alias_meta add_bit add_bit_bitnum add_bit_bitsize add_bit_invalid add_bit_numbits add_carray add_clincom add_code add_const add_cpolynom add_crecip add_crecip89 add_divide add_divide_invalid add_duplicate add_format add_invalid add_lincom add_lincom_affix add_lincom_invalid add_lincom_nfields add_linterp add_linterp_invalid add_meta add_meta_alias add_mplex add_mplex_val add_multiply add_multiply_invalid add_phase add_phase_invalid add_polynom add_protect add_raw add_raw_include add_raw_invalid add_raw_spf add_raw_type add_rdonly add_recip add_resolv add_sbit add_scalar add_scalar_carray add_sort add_spec add_spec_affix add_spec_directive add_spec_invalid add_spec_meta add_spec_resolv add_string add_string_affix add_type add_window add_window_op alias_list alias_list_alias alias_list_missing alias_num alias_num_alias alias_num_missing alias_target alias_target_alias alias_target_missing alter_bit_bitnum alter_bit_numbits alter_carray_len alter_carray_type alter_const alter_cpolynom alter_crecip alter_crecip89 alter_crecip_zero alter_divide alter_entry alter_entry_affix alter_entry_hidden alter_entry_recode alter_entry_scalar2a alter_entry_scalar2n alter_entry_scalar3 alter_entry_scalar4 alter_lincom_23 alter_lincom_32 alter_lincom_affix alter_lincom_input alter_lincom_offset alter_lincom_slope alter_linterp alter_linterp_move alter_mplex alter_mspec alter_mspec_affix alter_multiply alter_phase alter_polynom_coeff alter_polynom_input alter_polynom_ord alter_raw_spf alter_raw_type alter_recip alter_recip_zero alter_scalar_affix alter_spec alter_spec_affix alter_spec_meta alter_window ascii_add ascii_get ascii_get_get ascii_nframes ascii_put bof bof_lincom bof_phase bzip_get bzip_get_get bzip_move_from bzip_nframes bzip_put close close_bad close_discard close_null convert_complex128_complex64 convert_complex128_float64 convert_complex128_int64 convert_complex128_uint64 convert_complex64_complex128 convert_complex64_float64 convert_complex64_int64 convert_complex64_uint64 convert_float32_complex128 convert_float32_complex64 convert_float32_float64 convert_float32_int16 convert_float32_int32 convert_float32_int64 convert_float32_int8 convert_float32_uint16 convert_float32_uint32 convert_float32_uint64 convert_float32_uint8 convert_float64_complex128 convert_float64_complex64 convert_float64_float32 convert_float64_int16 convert_float64_int32 convert_float64_int64 convert_float64_int8 convert_float64_uint16 convert_float64_uint32 convert_float64_uint64 convert_float64_uint8 convert_int16_complex128 convert_int16_complex64 convert_int16_float32 convert_int16_float64 convert_int16_int32 convert_int16_int64 convert_int16_int8 convert_int16_uint16 convert_int16_uint32 convert_int16_uint64 convert_int16_uint8 convert_int32_complex128 convert_int32_complex64 convert_int32_float32 convert_int32_float64 convert_int32_int16 convert_int32_int64 convert_int32_int8 convert_int32_uint16 convert_int32_uint32 convert_int32_uint64 convert_int32_uint8 convert_int64_complex128 convert_int64_complex64 convert_int64_float32 convert_int64_float64 convert_int64_int16 convert_int64_int32 convert_int64_int8 convert_int64_uint16 convert_int64_uint32 convert_int64_uint64 convert_int64_uint8 convert_int8_complex128 convert_int8_complex64 convert_int8_float32 convert_int8_float64 convert_int8_int16 convert_int8_int32 convert_int8_int64 convert_int8_uint16 convert_int8_uint32 convert_int8_uint64 convert_int8_uint8 convert_uint16_complex128 convert_uint16_complex64 convert_uint16_float32 convert_uint16_float64 convert_uint16_int16 convert_uint16_int32 convert_uint16_int64 convert_uint16_int8 convert_uint16_uint32 convert_uint16_uint64 convert_uint16_uint8 convert_uint32_complex128 convert_uint32_complex64 convert_uint32_float32 convert_uint32_float64 convert_uint32_int16 convert_uint32_int32 convert_uint32_int64 convert_uint32_int8 convert_uint32_uint16 convert_uint32_uint64 convert_uint32_uint8 convert_uint64_complex128 convert_uint64_complex64 convert_uint64_float32 convert_uint64_float64 convert_uint64_int16 convert_uint64_int32 convert_uint64_int64 convert_uint64_int8 convert_uint64_uint16 convert_uint64_uint32 convert_uint64_uint8 convert_uint8_complex128 convert_uint8_complex64 convert_uint8_float32 convert_uint8_float64 convert_uint8_int16 convert_uint8_int32 convert_uint8_int64 convert_uint8_int8 convert_uint8_uint16 convert_uint8_uint32 convert_uint8_uint64 creat creat_excl creat_rdonly cvlist cvlist_array cvlist_array_hidden cvlist_array_meta cvlist_array_meta_hidden cvlist_hidden cvlist_invalid cvlist_meta cvlist_meta_hidden cvlist_meta_invalid del del_carray del_carray_deref del_const del_const_deref del_const_force del_data del_derived del_derived_after del_derived_force del_meta del_meta_force desync desync_flush desync_reopen desync_reopen_inv dfes_bit dfes_divide dfes_lincom dfes_linterp dfes_multiply dfes_null dfes_phase dfes_raw dfes_recip dfes_zero elist_alias elist_hidden elist_noalias elist_scalar encode_alter encode_get encode_move endian_alter endian_alter_sie endian_get endian_move entry_bad_code entry_bit entry_bit_scalar entry_divide entry_invalid entry_lincom entry_lincom_scalar entry_linterp entry_mplex entry_mplex_scalar entry_multiply entry_phase entry_phase_scalar entry_polynom entry_polynom_scalar entry_raw entry_raw_scalar entry_raw_scalar_code entry_raw_scalar_type entry_recip entry_scalar_repr entry_type entry_type_alias entry_window entry_window_scalar eof eof_index eof_lincom eof_phase error error_error error_num error_short error_verbose error_verbose_prefix file file_code file_type flist flist_hidden flist_invalid flist_meta flist_meta_hidden flist_meta_invalid flist_type flist_type_hidden flist_type_invalid flist_type_meta flist_type_meta_hidden flist_type_meta_invalid flush flush_all flush_bad_code flush_invalid flush_meta flush_spec foffs_alter foffs_get foffs_move fragment_affix fragment_affix_alter fragment_affix_alter2 fragment_affix_dup fragment_index fragment_index_alias fragment_name fragment_name_oor fragment_num fragment_parent get64 get_affix get_bad_code get_bit get_carray get_carray_len get_carray_slice get_char get_clincom get_complex128 get_complex64 get_const get_const_complex get_const_repr get_cpolynom get_divide get_endian16 get_endian32 get_endian64 get_endian8 get_endian_complex128_arm get_endian_complex128_big get_endian_complex128_little get_endian_complex64_arm get_endian_complex64_big get_endian_complex64_little get_endian_float32_arm get_endian_float32_big get_endian_float32_little get_endian_float64_arm get_endian_float64_big get_endian_float64_little get_ff get_float32 get_float64 get_foffs get_fs get_here get_here_foffs get_heres get_int16 get_int32 get_int64 get_int8 get_invalid get_lincom1 get_lincom2 get_lincom3 get_lincom_noin get_lincom_non get_lincom_null get_lincom_spf get_linterp get_linterp_noin get_linterp_notab get_linterp_sort get_mplex get_mplex_bof get_mplex_lb get_mplex_lball get_mplex_nolb get_multiply get_multiply_noin get_nonexistent get_null get_off64 get_phase get_phase_affix get_polynom get_polynom_noin get_recip get_recip_const get_recurse get_rofs get_sbit get_sf get_ss get_type get_uint16 get_uint32 get_uint64 get_window get_window_clr get_window_ge get_window_gt get_window_le get_window_lt get_window_ne get_window_set get_zero global_flags global_name global_ref global_ref_empty global_ref_set gzip_add gzip_get gzip_get_get gzip_get_put gzip_move_from gzip_move_to gzip_nframes gzip_put gzip_put_get header_complex hide hide_hidden hide_unhide include include_accmode include_affix include_auto include_cb include_creat include_ignore include_index include_invalid include_nonexistent include_pc include_ref include_sub include_syntax index index_domain index_range legacy_get legacy_get_put legacy_get_rofs legacy_nframes legacy_nonexistent legacy_put legacy_spf lzma_get lzma_nframes madd madd_affix madd_alias madd_alias_affix madd_bit madd_bit_invalid madd_carray madd_clincom madd_const madd_cpolynom madd_crecip madd_crecip89 madd_divide madd_index madd_lincom madd_lincom_invalid madd_linterp madd_linterp_invalid madd_mplex madd_multiply madd_multiply_invalid madd_phase madd_phase_invalid madd_polynom madd_recip madd_sbit madd_spec madd_spec_directive madd_spec_invalid madd_spec_resolv madd_string madd_window move move_affix move_affix_dup move_alias move_data_enc_ar move_data_enc_ra move_data_endian move_data_foffs move_data_nop move_index move_meta move_protect move_subdir name name_affix name_affix_bad name_alias name_dup name_move name_move_alias name_updb name_updb_alias name_updb_const name_updb_const_alias nentries_alias nentries_hidden nentries_noalias nentries_scalar nfields nfields_hidden nfields_invalid nfields_type nfields_type_hidden nfields_type_invalid nfields_vector nfields_vector_hidden nfields_vector_invalid nframes nframes64 nframes_empty nframes_invalid nframes_off64 nframes_spf nmeta nmeta_hidden nmeta_invalid nmeta_parent nmeta_type nmeta_type_hidden nmeta_type_invalid nmeta_type_parent nmeta_vectors nmeta_vectors_del nmeta_vectors_hidden nmeta_vectors_invalid nmeta_vectors_parent open open_abs open_cb_abort open_cb_cont open_cb_ignore open_cb_invalid open_cb_rescan open_eaccess open_nonexistent open_notdirfile parse_alias parse_alias_code parse_alias_dup parse_alias_meta parse_alias_missing parse_badline parse_bit parse_bit4 parse_bit_bitnum parse_bit_bitsize parse_bit_ncols parse_bit_numbits parse_bit_scalar parse_carray parse_carray_long parse_const parse_const_complex parse_const_ncols parse_divide parse_double parse_duplicate parse_duplicate_ignore parse_endian_bad parse_endian_big parse_endian_force parse_endian_little parse_endian_slash parse_eol parse_foffs parse_foffs_include parse_foffs_slash parse_hidden parse_hidden_field parse_hidden_meta parse_include parse_include_absolute parse_include_absrel parse_include_dir parse_include_loop parse_include_nonexistent parse_include_prefix parse_include_prefix_dup parse_include_preprefix parse_include_ref parse_include_relabs parse_include_relrel parse_include_slash parse_include_suffix parse_include_sufsuffix parse_index parse_lincom parse_lincom_ncols1 parse_lincom_ncols2 parse_lincom_nfields parse_lincom_nofields parse_lincom_non parse_lincom_non_ncols parse_lincom_scalar parse_linterp parse_linterp_ncols parse_malias parse_malias_dup parse_malias_meta parse_meta parse_meta_affix parse_meta_alias parse_meta_implicit parse_meta_implicit2 parse_meta_implicit_affix parse_meta_index parse_meta_index2 parse_meta_jump parse_meta_malias parse_meta_meta parse_meta_parent parse_meta_raw parse_mplex parse_mplex_ncols parse_mplex_nomax parse_mplex_scalar parse_multiply parse_multiply_ncols parse_name parse_name_dot parse_name_ext parse_name_pedantic parse_ncols parse_phase parse_phase_ncols parse_phase_scalar parse_polynom parse_polynom_ncols1 parse_polynom_ncols2 parse_polynom_scalar parse_protect_all parse_protect_bad parse_protect_data parse_protect_format parse_protect_none parse_quote parse_quote_mismatch parse_raw parse_raw_char parse_raw_ncols parse_raw_scalar parse_raw_spf parse_raw_type parse_recip parse_ref parse_ref_nonexistent parse_sbit parse_sort parse_string parse_string_ncols parse_string_null parse_version parse_version_89 parse_version_98 parse_version_include parse_version_p8 parse_version_p9 parse_version_permissive parse_version_slash parse_whitespace parse_window parse_window_ncols parse_window_op parse_window_scalar protect_alter protect_get put64 put_bad_code put_bit put_bof put_carray put_carray_slice put_char put_complex128 put_complex64 put_const put_const_protect put_divide put_endian16 put_endian32 put_endian64 put_endian8 put_endian_complex128_arm put_endian_complex128_big put_endian_complex128_little put_endian_complex64_arm put_endian_complex64_big put_endian_complex64_little put_endian_float32_arm put_endian_float32_big put_endian_float32_little put_endian_float64_arm put_endian_float64_big put_endian_float64_little put_ff put_float32 put_float64 put_foffs put_fs put_here put_heres put_int16 put_int32 put_int64 put_int8 put_invalid put_lincom1 put_lincom2 put_lincom_noin put_linterp put_linterp_noin put_linterp_nomono put_linterp_notab put_linterp_reverse put_mplex put_multiply put_null put_off64 put_phase put_phase_noin put_polynom1 put_polynom2 put_polynom_noin put_protect put_rdonly put_recip put_recurse put_repr put_rofs put_sbit put_sf put_ss put_string put_string_protect put_type put_uint16 put_uint32 put_uint64 put_window put_zero ref ref_none ref_two repr_a repr_float32 repr_float64 repr_i repr_int16 repr_int32 repr_int64 repr_int8 repr_m repr_r repr_real_a repr_real_i repr_real_m repr_real_r repr_uint16 repr_uint32 repr_uint64 repr_uint8 seek64 seek_cur seek_end seek_foffs seek_set sie_get_big sie_get_little sie_move_from sie_move_to sie_nframes_big sie_nframes_little sie_put_big sie_put_little slim_get slim_nframes slim_put spf spf_alias spf_alias_meta spf_alias_missing spf_divide spf_lincom spf_multiply spf_polynom spf_recip spf_recurse svlist svlist_hidden svlist_invalid svlist_meta svlist_meta_hidden svlist_meta_invalid table table_code table_type tell tell64 trunc trunc_dir trunc_rdonly trunc_rofs trunc_truncsub unclude unclude_del unclude_move version_0 version_0_write version_1 version_1_write version_2 version_2_write version_3 version_3_write version_4 version_4_write version_5 version_5_strict version_5_write version_6 version_6_strict version_6_write version_7 version_7_strict version_7_write version_8 version_8_strict version_8_write version_9 version_9_strict version_9_write vlist vlist_alias vlist_hidden vlist_invalid vlist_meta vlist_meta_hidden vlist_meta_invalid xz_get xz_nframes zzip_data zzip_get zzip_get_get zzip_nframes zzslim_get zzslim_nframes + Makefile Makefile.in valgrind.log *.o dirfile *.swp *.exe .deps .libs add add_affix add_alias add_alias_affix add_alias_meta add_bit add_bit_bitnum add_bit_bitsize add_bit_invalid add_bit_numbits add_carray add_clincom add_code add_const add_cpolynom add_crecip add_crecip89 add_divide add_divide_invalid add_duplicate add_format add_invalid add_lincom add_lincom_affix add_lincom_invalid add_lincom_nfields add_linterp add_linterp_invalid add_meta add_meta_alias add_mplex add_mplex_val add_multiply add_multiply_invalid add_phase add_phase_invalid add_polynom add_protect add_raw add_raw_include add_raw_invalid add_raw_spf add_raw_type add_rdonly add_recip add_resolv add_sbit add_scalar add_scalar_carray add_sort add_spec add_spec_affix add_spec_directive add_spec_invalid add_spec_meta add_spec_resolv add_string add_string_affix add_type add_window add_window_op alias_list alias_list_alias alias_list_missing alias_num alias_num_alias alias_num_missing alias_target alias_target_alias alias_target_missing alter_bit_bitnum alter_bit_numbits alter_carray_len alter_carray_type alter_const alter_cpolynom alter_crecip alter_crecip89 alter_crecip_zero alter_divide alter_entry alter_entry_affix alter_entry_hidden alter_entry_recode alter_entry_scalar2a alter_entry_scalar2n alter_entry_scalar3 alter_entry_scalar4 alter_lincom_23 alter_lincom_32 alter_lincom_affix alter_lincom_input alter_lincom_offset alter_lincom_slope alter_linterp alter_linterp_move alter_mplex alter_mspec alter_mspec_affix alter_multiply alter_phase alter_polynom_coeff alter_polynom_input alter_polynom_ord alter_raw_spf alter_raw_type alter_recip alter_recip_zero alter_scalar_affix alter_spec alter_spec_affix alter_spec_meta alter_window ascii_add ascii_get ascii_get_get ascii_nframes ascii_put bof bof_lincom bof_phase bzip_get bzip_get_get bzip_move_from bzip_nframes bzip_put close close_bad close_discard close_null convert_complex128_complex64 convert_complex128_float64 convert_complex128_int64 convert_complex128_uint64 convert_complex64_complex128 convert_complex64_float64 convert_complex64_int64 convert_complex64_uint64 convert_float32_complex128 convert_float32_complex64 convert_float32_float64 convert_float32_int16 convert_float32_int32 convert_float32_int64 convert_float32_int8 convert_float32_uint16 convert_float32_uint32 convert_float32_uint64 convert_float32_uint8 convert_float64_complex128 convert_float64_complex64 convert_float64_float32 convert_float64_int16 convert_float64_int32 convert_float64_int64 convert_float64_int8 convert_float64_uint16 convert_float64_uint32 convert_float64_uint64 convert_float64_uint8 convert_int16_complex128 convert_int16_complex64 convert_int16_float32 convert_int16_float64 convert_int16_int32 convert_int16_int64 convert_int16_int8 convert_int16_uint16 convert_int16_uint32 convert_int16_uint64 convert_int16_uint8 convert_int32_complex128 convert_int32_complex64 convert_int32_float32 convert_int32_float64 convert_int32_int16 convert_int32_int64 convert_int32_int8 convert_int32_uint16 convert_int32_uint32 convert_int32_uint64 convert_int32_uint8 convert_int64_complex128 convert_int64_complex64 convert_int64_float32 convert_int64_float64 convert_int64_int16 convert_int64_int32 convert_int64_int8 convert_int64_uint16 convert_int64_uint32 convert_int64_uint64 convert_int64_uint8 convert_int8_complex128 convert_int8_complex64 convert_int8_float32 convert_int8_float64 convert_int8_int16 convert_int8_int32 convert_int8_int64 convert_int8_uint16 convert_int8_uint32 convert_int8_uint64 convert_int8_uint8 convert_uint16_complex128 convert_uint16_complex64 convert_uint16_float32 convert_uint16_float64 convert_uint16_int16 convert_uint16_int32 convert_uint16_int64 convert_uint16_int8 convert_uint16_uint32 convert_uint16_uint64 convert_uint16_uint8 convert_uint32_complex128 convert_uint32_complex64 convert_uint32_float32 convert_uint32_float64 convert_uint32_int16 convert_uint32_int32 convert_uint32_int64 convert_uint32_int8 convert_uint32_uint16 convert_uint32_uint64 convert_uint32_uint8 convert_uint64_complex128 convert_uint64_complex64 convert_uint64_float32 convert_uint64_float64 convert_uint64_int16 convert_uint64_int32 convert_uint64_int64 convert_uint64_int8 convert_uint64_uint16 convert_uint64_uint32 convert_uint64_uint8 convert_uint8_complex128 convert_uint8_complex64 convert_uint8_float32 convert_uint8_float64 convert_uint8_int16 convert_uint8_int32 convert_uint8_int64 convert_uint8_int8 convert_uint8_uint16 convert_uint8_uint32 convert_uint8_uint64 creat creat_excl creat_rdonly cvlist cvlist_array cvlist_array_hidden cvlist_array_meta cvlist_array_meta_hidden cvlist_hidden cvlist_invalid cvlist_meta cvlist_meta_hidden cvlist_meta_invalid del del_carray del_carray_deref del_const del_const_deref del_const_force del_data del_derived del_derived_after del_derived_force del_meta del_meta_force desync desync_flush desync_reopen desync_reopen_inv dfes_bit dfes_divide dfes_lincom dfes_linterp dfes_multiply dfes_null dfes_phase dfes_raw dfes_recip dfes_zero elist_alias elist_hidden elist_noalias elist_scalar encode_alter encode_get encode_move endian_alter endian_alter_sie endian_get endian_move entry_bad_code entry_bit entry_bit_scalar entry_divide entry_invalid entry_lincom entry_lincom_scalar entry_linterp entry_mplex entry_mplex_scalar entry_multiply entry_phase entry_phase_scalar entry_polynom entry_polynom_scalar entry_raw entry_raw_scalar entry_raw_scalar_code entry_raw_scalar_type entry_recip entry_scalar_repr entry_type entry_type_alias entry_window entry_window_scalar eof eof_index eof_lincom eof_phase error error_error error_num error_short error_verbose error_verbose_prefix file file_code file_type flist flist_hidden flist_invalid flist_meta flist_meta_hidden flist_meta_invalid flist_type flist_type_hidden flist_type_invalid flist_type_meta flist_type_meta_hidden flist_type_meta_invalid flush flush_all flush_bad_code flush_invalid flush_meta flush_spec foffs_alter foffs_get foffs_move fragment_affix fragment_affix_alter fragment_affix_alter2 fragment_affix_dup fragment_index fragment_index_alias fragment_name fragment_name_oor fragment_num fragment_parent get64 get_affix get_bad_code get_bit get_carray get_carray_len get_carray_slice get_char get_clincom get_complex128 get_complex64 get_const get_const_complex get_const_repr get_cpolynom get_divide get_endian16 get_endian32 get_endian64 get_endian8 get_endian_complex128_arm get_endian_complex128_big get_endian_complex128_little get_endian_complex64_arm get_endian_complex64_big get_endian_complex64_little get_endian_float32_arm get_endian_float32_big get_endian_float32_little get_endian_float64_arm get_endian_float64_big get_endian_float64_little get_ff get_float32 get_float64 get_foffs get_fs get_here get_here_foffs get_heres get_int16 get_int32 get_int64 get_int8 get_invalid get_lincom1 get_lincom2 get_lincom3 get_lincom_noin get_lincom_non get_lincom_null get_lincom_spf get_linterp get_linterp_noin get_linterp_notab get_linterp_sort get_mplex get_mplex_bof get_mplex_lb get_mplex_lball get_mplex_nolb get_multiply get_multiply_noin get_nonexistent get_null get_off64 get_phase get_phase_affix get_polynom get_polynom_noin get_recip get_recip_const get_recurse get_rofs get_sbit get_sf get_ss get_type get_uint16 get_uint32 get_uint64 get_window get_window_clr get_window_ge get_window_gt get_window_le get_window_lt get_window_ne get_window_set get_zero global_flags global_name global_ref global_ref_empty global_ref_set gzip_add gzip_get gzip_get_get gzip_get_put gzip_move_from gzip_move_to gzip_nframes gzip_put gzip_put_get header_complex hide hide_hidden hide_unhide include include_accmode include_affix include_auto include_cb include_creat include_ignore include_index include_invalid include_nonexistent include_pc include_ref include_sub include_syntax index index_domain index_range legacy_get legacy_get_put legacy_get_rofs legacy_nframes legacy_nonexistent legacy_put legacy_spf lzma_get lzma_nframes madd madd_affix madd_alias madd_alias_affix madd_bit madd_bit_invalid madd_carray madd_clincom madd_const madd_cpolynom madd_crecip madd_crecip89 madd_divide madd_index madd_lincom madd_lincom_invalid madd_linterp madd_linterp_invalid madd_mplex madd_multiply madd_multiply_invalid madd_phase madd_phase_invalid madd_polynom madd_recip madd_sbit madd_spec madd_spec_directive madd_spec_invalid madd_spec_resolv madd_string madd_window move move_affix move_affix_dup move_alias move_data_enc_ar move_data_enc_ra move_data_endian move_data_foffs move_data_nop move_index move_meta move_protect move_subdir name name_affix name_affix_bad name_alias name_dup name_move name_move_alias name_updb name_updb_alias name_updb_const name_updb_const_alias nentries_alias nentries_hidden nentries_noalias nentries_scalar nfields nfields_hidden nfields_invalid nfields_type nfields_type_hidden nfields_type_invalid nfields_vector nfields_vector_hidden nfields_vector_invalid nframes nframes64 nframes_empty nframes_invalid nframes_off64 nframes_spf nmeta nmeta_hidden nmeta_invalid nmeta_parent nmeta_type nmeta_type_hidden nmeta_type_invalid nmeta_type_parent nmeta_vectors nmeta_vectors_del nmeta_vectors_hidden nmeta_vectors_invalid nmeta_vectors_parent open open_abs open_cb_abort open_cb_cont open_cb_ignore open_cb_invalid open_cb_rescan open_eaccess open_nonexistent open_notdirfile open_sym_a open_sym_al open_sym_at open_sym_c open_sym_cl open_sym_ct open_sym_p open_sym_pl open_sym_pt parse_alias parse_alias_code parse_alias_dup parse_alias_meta parse_alias_missing parse_badline parse_bit parse_bit4 parse_bit_bitnum parse_bit_bitsize parse_bit_ncols parse_bit_numbits parse_bit_scalar parse_carray parse_carray_long parse_const parse_const_complex parse_const_ncols parse_divide parse_double parse_duplicate parse_duplicate_ignore parse_endian_bad parse_endian_big parse_endian_force parse_endian_little parse_endian_slash parse_eol parse_foffs parse_foffs_include parse_foffs_slash parse_hidden parse_hidden_field parse_hidden_meta parse_include parse_include_absolute parse_include_absrel parse_include_dir parse_include_loop parse_include_nonexistent parse_include_prefix parse_include_prefix_dup parse_include_preprefix parse_include_ref parse_include_relabs parse_include_relrel parse_include_slash parse_include_suffix parse_include_sufsuffix parse_index parse_lincom parse_lincom_ncols1 parse_lincom_ncols2 parse_lincom_nfields parse_lincom_nofields parse_lincom_non parse_lincom_non_ncols parse_lincom_scalar parse_linterp parse_linterp_ncols parse_malias parse_malias_dup parse_malias_meta parse_meta parse_meta_affix parse_meta_alias parse_meta_implicit parse_meta_implicit2 parse_meta_implicit_affix parse_meta_index parse_meta_index2 parse_meta_jump parse_meta_malias parse_meta_meta parse_meta_parent parse_meta_raw parse_mplex parse_mplex_ncols parse_mplex_nomax parse_mplex_scalar parse_multiply parse_multiply_ncols parse_name parse_name_dot parse_name_ext parse_name_pedantic parse_ncols parse_phase parse_phase_ncols parse_phase_scalar parse_polynom parse_polynom_ncols1 parse_polynom_ncols2 parse_polynom_scalar parse_protect_all parse_protect_bad parse_protect_data parse_protect_format parse_protect_none parse_quote parse_quote_mismatch parse_raw parse_raw_char parse_raw_ncols parse_raw_scalar parse_raw_spf parse_raw_type parse_recip parse_ref parse_ref_nonexistent parse_sbit parse_sort parse_string parse_string_ncols parse_string_null parse_version parse_version_89 parse_version_98 parse_version_include parse_version_p8 parse_version_p9 parse_version_permissive parse_version_slash parse_whitespace parse_window parse_window_ncols parse_window_op parse_window_scalar protect_alter protect_get put64 put_bad_code put_bit put_bof put_carray put_carray_slice put_char put_complex128 put_complex64 put_const put_const_protect put_divide put_endian16 put_endian32 put_endian64 put_endian8 put_endian_complex128_arm put_endian_complex128_big put_endian_complex128_little put_endian_complex64_arm put_endian_complex64_big put_endian_complex64_little put_endian_float32_arm put_endian_float32_big put_endian_float32_little put_endian_float64_arm put_endian_float64_big put_endian_float64_little put_ff put_float32 put_float64 put_foffs put_fs put_here put_heres put_int16 put_int32 put_int64 put_int8 put_invalid put_lincom1 put_lincom2 put_lincom_noin put_linterp put_linterp_noin put_linterp_nomono put_linterp_notab put_linterp_reverse put_mplex put_multiply put_null put_off64 put_phase put_phase_noin put_polynom1 put_polynom2 put_polynom_noin put_protect put_rdonly put_recip put_recurse put_repr put_rofs put_sbit put_sf put_ss put_string put_string_protect put_type put_uint16 put_uint32 put_uint64 put_window put_zero ref ref_none ref_two repr_a repr_float32 repr_float64 repr_i repr_int16 repr_int32 repr_int64 repr_int8 repr_m repr_r repr_real_a repr_real_i repr_real_m repr_real_r repr_uint16 repr_uint32 repr_uint64 repr_uint8 seek64 seek_cur seek_end seek_foffs seek_set sie_get_big sie_get_little sie_move_from sie_move_to sie_nframes_big sie_nframes_little sie_put_big sie_put_little slim_get slim_nframes slim_put spf spf_alias spf_alias_meta spf_alias_missing spf_divide spf_lincom spf_multiply spf_polynom spf_recip spf_recurse svlist svlist_hidden svlist_invalid svlist_meta svlist_meta_hidden svlist_meta_invalid table table_code table_type tell tell64 trunc trunc_dir trunc_rdonly trunc_rofs trunc_truncsub unclude unclude_del unclude_move version_0 version_0_write version_1 version_1_write version_2 version_2_write version_3 version_3_write version_4 version_4_write version_5 version_5_strict version_5_write version_6 version_6_strict version_6_write version_7 version_7_strict version_7_write version_8 version_8_strict version_8_write version_9 version_9_strict version_9_write vlist vlist_alias vlist_hidden vlist_invalid vlist_meta vlist_meta_hidden vlist_meta_invalid xz_get xz_nframes zzip_data zzip_get zzip_get_get zzip_nframes zzslim_get zzslim_nframes Modified: trunk/getdata/test/Makefile.am =================================================================== --- trunk/getdata/test/Makefile.am 2012-11-23 15:23:24 UTC (rev 772) +++ trunk/getdata/test/Makefile.am 2012-12-12 03:07:29 UTC (rev 773) @@ -248,7 +248,8 @@ OPEN_TESTS=open open_abs open_cb_abort open_cb_cont open_cb_ignore \ open_cb_invalid open_cb_rescan open_eaccess open_nonexistent \ - open_notdirfile + open_notdirfile open_sym_a open_sym_al open_sym_at open_sym_c \ + open_sym_cl open_sym_ct open_sym_p open_sym_pl open_sym_pt PARSE_TESTS=parse_alias parse_alias_code parse_alias_dup parse_alias_meta \ parse_alias_missing parse_badline parse_bit parse_bit4 \ Added: trunk/getdata/test/open_sym_a.c =================================================================== --- trunk/getdata/test/open_sym_a.c (rev 0) +++ trunk/getdata/test/open_sym_a.c 2012-12-12 03:07:29 UTC (rev 773) @@ -0,0 +1,65 @@ +/* Copyright (C) 2012 D. V. Wiebe + * + *************************************************************************** + * + * This file is part of the GetData project. + * + * GetData is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the + * Free Software Foundation; either version 2.1 of the License, or (at your + * option) any later version. + * + * GetData is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + * License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with GetData; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ +#include "test.h" + +#include <stdlib.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <string.h> + +int main(void) +{ +#if ! defined HAVE_SYMLINK || defined GD_NO_GETCWD + return 77; +#else + const char *filedir = "dirfile/link"; + const char *format = "dirfile/format"; + char *targ; + int error, r = 0; + int cwd_size = 2048; + char *ptr, *cwd = NULL; + DIRFILE *D; + + gdtest_getcwd(ptr, cwd, cwd_size); + + rmdirfile(); + mkdir("dirfile", 0777); + close(open(format, O_CREAT | O_EXCL | O_WRONLY, 0666)); + + /* make a symlink */ + targ = (char*)malloc(cwd_size + 8); + sprintf(targ, "%s/dirfile", cwd); + + symlink(targ, filedir); + + D = gd_open(filedir, GD_RDONLY | GD_VERBOSE); + error = gd_error(D); + gd_close(D); + + unlink(format); + rmdir(filedir); + + CHECKI(error, 0); + free(cwd); + return r; +#endif +} Added: trunk/getdata/test/open_sym_al.c =================================================================== --- trunk/getdata/test/open_sym_al.c (rev 0) +++ trunk/getdata/test/open_sym_al.c 2012-12-12 03:07:29 UTC (rev 773) @@ -0,0 +1,65 @@ +/* Copyright (C) 2012 D. V. Wiebe + * + *************************************************************************** + * + * This file is part of the GetData project. + * + * GetData is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the + * Free Software Foundation; either version 2.1 of the License, or (at your + * option) any later version. + * + * GetData is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + * License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with GetData; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ +#include "test.h" + +#include <stdlib.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <string.h> + +int main(void) +{ +#if ! defined HAVE_SYMLINK || defined GD_NO_GETCWD + return 77; +#else + const char *filedir = "dirfile/link"; + const char *format = "dirfile/format"; + char *targ; + int error, r = 0; + int cwd_size = 2048; + char *ptr, *cwd = NULL; + DIRFILE *D; + + gdtest_getcwd(ptr, cwd, cwd_size); + + rmdirfile(); + mkdir("dirfile", 0777); + close(open(format, O_CREAT | O_EXCL | O_WRONLY, 0666)); + + /* make a symlink */ + targ = (char*)malloc(cwd_size + 8); + sprintf(targ, "%s/dirfile/", cwd); + + symlink(targ, filedir); + + D = gd_open(filedir, GD_RDONLY | GD_VERBOSE); + error = gd_error(D); + gd_close(D); + + unlink(format); + rmdir(filedir); + + CHECKI(error, 0); + free(cwd); + return r; +#endif +} Added: trunk/getdata/test/open_sym_at.c =================================================================== --- trunk/getdata/test/open_sym_at.c (rev 0) +++ trunk/getdata/test/open_sym_at.c 2012-12-12 03:07:29 UTC (rev 773) @@ -0,0 +1,65 @@ +/* Copyright (C) 2012 D. V. Wiebe + * + *************************************************************************** + * + * This file is part of the GetData project. + * + * GetData is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the + * Free Software Foundation; either version 2.1 of the License, or (at your + * option) any later version. + * + * GetData is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + * License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with GetData; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ +#include "test.h" + +#include <stdlib.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <string.h> + +int main(void) +{ +#if ! defined HAVE_SYMLINK || defined GD_NO_GETCWD + return 77; +#else + const char *filedir = "dirfile/link/"; + const char *format = "dirfile/format"; + char *targ; + int error, r = 0; + int cwd_size = 2048; + char *ptr, *cwd = NULL; + DIRFILE *D; + + gdtest_getcwd(ptr, cwd, cwd_size); + + rmdirfile(); + mkdir("dirfile", 0777); + close(open(format, O_CREAT | O_EXCL | O_WRONLY, 0666)); + + /* make a symlink */ + targ = (char*)malloc(cwd_size + 8); + sprintf(targ, "%s/dirfile", cwd); + + symlink(targ, "dirfile/link"); + + D = gd_open(filedir, GD_RDONLY | GD_VERBOSE); + error = gd_error(D); + gd_close(D); + + unlink(format); + rmdir(filedir); + + CHECKI(error, 0); + free(cwd); + return r; +#endif +} Added: trunk/getdata/test/open_sym_c.c =================================================================== --- trunk/getdata/test/open_sym_c.c (rev 0) +++ trunk/getdata/test/open_sym_c.c 2012-12-12 03:07:29 UTC (rev 773) @@ -0,0 +1,57 @@ +/* Copyright (C) 2012 D. V. Wiebe + * + *************************************************************************** + * + * This file is part of the GetData project. + * + * GetData is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the + * Free Software Foundation; either version 2.1 of the License, or (at your + * option) any later version. + * + * GetData is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + * License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with GetData; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ +#include "test.h" + +#include <stdlib.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <string.h> + +int main(void) +{ +#if ! defined HAVE_SYMLINK + return 77; +#else + const char *filedir = "dirfile/link"; + const char *format = "dirfile/format"; + const char *targ = "."; + int error, r = 0; + DIRFILE *D; + + rmdirfile(); + mkdir("dirfile", 0777); + close(open(format, O_CREAT | O_EXCL | O_WRONLY, 0666)); + + /* make a symlink */ + symlink(targ, filedir); + + D = gd_open(filedir, GD_RDONLY | GD_VERBOSE); + error = gd_error(D); + gd_close(D); + + unlink(format); + rmdir(filedir); + + CHECKI(error, 0); + return r; +#endif +} Added: trunk/getdata/test/open_sym_cl.c =================================================================== --- trunk/getdata/test/open_sym_cl.c (rev 0) +++ trunk/getdata/test/open_sym_cl.c 2012-12-12 03:07:29 UTC (rev 773) @@ -0,0 +1,57 @@ +/* Copyright (C) 2012 D. V. Wiebe + * + *************************************************************************** + * + * This file is part of the GetData project. + * + * GetData is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the + * Free Software Foundation; either version 2.1 of the License, or (at your + * option) any later version. + * + * GetData is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + * License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with GetData; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ +#include "test.h" + +#include <stdlib.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <string.h> + +int main(void) +{ +#if ! defined HAVE_SYMLINK + return 77; +#else + const char *filedir = "dirfile/link"; + const char *format = "dirfile/format"; + const char *targ = "./"; + int error, r = 0; + DIRFILE *D; + + rmdirfile(); + mkdir("dirfile", 0777); + close(open(format, O_CREAT | O_EXCL | O_WRONLY, 0666)); + + /* make a symlink */ + symlink(targ, filedir); + + D = gd_open(filedir, GD_RDONLY | GD_VERBOSE); + error = gd_error(D); + gd_close(D); + + unlink(format); + rmdir(filedir); + + CHECKI(error, 0); + return r; +#endif +} Added: trunk/getdata/test/open_sym_ct.c =================================================================== --- trunk/getdata/test/open_sym_ct.c (rev 0) +++ trunk/getdata/test/open_sym_ct.c 2012-12-12 03:07:29 UTC (rev 773) @@ -0,0 +1,57 @@ +/* Copyright (C) 2012 D. V. Wiebe + * + *************************************************************************** + * + * This file is part of the GetData project. + * + * GetData is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the + * Free Software Foundation; either version 2.1 of the License, or (at your + * option) any later version. + * + * GetData is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + * License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with GetData; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ +#include "test.h" + +#include <stdlib.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <string.h> + +int main(void) +{ +#if ! defined HAVE_SYMLINK + return 77; +#else + const char *filedir = "dirfile/link/"; + const char *format = "dirfile/format"; + const char *targ = "."; + int error, r = 0; + DIRFILE *D; + + rmdirfile(); + mkdir("dirfile", 0777); + close(open(format, O_CREAT | O_EXCL | O_WRONLY, 0666)); + + /* make a symlink */ + symlink(targ, "dirfile/link"); + + D = gd_open(filedir, GD_RDONLY | GD_VERBOSE); + error = gd_error(D); + gd_close(D); + + unlink(format); + rmdir(filedir); + + CHECKI(error, 0); + return r; +#endif +} Added: trunk/getdata/test/open_sym_p.c =================================================================== --- trunk/getdata/test/open_sym_p.c (rev 0) +++ trunk/getdata/test/open_sym_p.c 2012-12-12 03:07:29 UTC (rev 773) @@ -0,0 +1,57 @@ +/* Copyright (C) 2012 D. V. Wiebe + * + *************************************************************************** + * + * This file is part of the GetData project. + * + * GetData is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the + * Free Software Foundation; either version 2.1 of the License, or (at your + * option) any later version. + * + * GetData is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + * License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with GetData; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ +#include "test.h" + +#include <stdlib.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <string.h> + +int main(void) +{ +#if ! defined HAVE_SYMLINK + return 77; +#else + const char *filedir = "dirfile/link"; + const char *format = "dirfile/format"; + const char *targ = "../dirfile"; + int error, r = 0; + DIRFILE *D; + + rmdirfile(); + mkdir("dirfile", 0777); + close(open(format, O_CREAT | O_EXCL | O_WRONLY, 0666)); + + /* make a symlink */ + symlink(targ, filedir); + + D = gd_open(filedir, GD_RDONLY | GD_VERBOSE); + error = gd_error(D); + gd_close(D); + + unlink(format); + rmdir(filedir); + + CHECKI(error, 0); + return r; +#endif +} Added: trunk/getdata/test/open_sym_pl.c =================================================================== --- trunk/getdata/test/open_sym_pl.c (rev 0) +++ trunk/getdata/test/open_sym_pl.c 2012-12-12 03:07:29 UTC (rev 773) @@ -0,0 +1,57 @@ +/* Copyright (C) 2012 D. V. Wiebe + * + *************************************************************************** + * + * This file is part of the GetData project. + * + * GetData is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the + * Free Software Foundation; either version 2.1 of the License, or (at your + * option) any later version. + * + * GetData is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + * License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with GetData; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ +#include "test.h" + +#include <stdlib.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <string.h> + +int main(void) +{ +#if ! defined HAVE_SYMLINK + return 77; +#else + const char *filedir = "dirfile/link"; + const char *format = "dirfile/format"; + const char *targ = "../dirfile/"; + int error, r = 0; + DIRFILE *D; + + rmdirfile(); + mkdir("dirfile", 0777); + close(open(format, O_CREAT | O_EXCL | O_WRONLY, 0666)); + + /* make a symlink */ + symlink(targ, filedir); + + D = gd_open(filedir, GD_RDONLY | GD_VERBOSE); + error = gd_error(D); + gd_close(D); + + unlink(format); + rmdir(filedir); + + CHECKI(error, 0); + return r; +#endif +} Added: trunk/getdata/test/open_sym_pt.c =================================================================== --- trunk/getdata/test/open_sym_pt.c (rev 0) +++ trunk/getdata/test/open_sym_pt.c 2012-12-12 03:07:29 UTC (rev 773) @@ -0,0 +1,57 @@ +/* Copyright (C) 2012 D. V. Wiebe + * + *************************************************************************** + * + * This file is part of the GetData project. + * + * GetData is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the + * Free Software Foundation; either version 2.1 of the License, or (at your + * option) any later version. + * + * GetData is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + * License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with GetData; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ +#include "test.h" + +#include <stdlib.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <string.h> + +int main(void) +{ +#if ! defined HAVE_SYMLINK + return 77; +#else + const char *filedir = "dirfile/link/"; + const char *format = "dirfile/format"; + const char *targ = "../dirfile"; + int error, r = 0; + DIRFILE *D; + + rmdirfile(); + mkdir("dirfile", 0777); + close(open(format, O_CREAT | O_EXCL | O_WRONLY, 0666)); + + /* make a symlink */ + symlink(targ, "dirfile/link"); + + D = gd_open(filedir, GD_RDONLY | GD_VERBOSE); + error = gd_error(D); + gd_close(D); + + unlink(format); + rmdir(filedir); + + CHECKI(error, 0); + return r; +#endif +} Modified: trunk/getdata/test/parse_include_absolute.c =================================================================== --- trunk/getdata/test/parse_include_absolute.c 2012-11-23 15:23:24 UTC (rev 772) +++ trunk/getdata/test/parse_include_absolute.c 2012-12-12 03:07:29 UTC (rev 773) @@ -1,4 +1,4 @@ -/* Copyright (C) 2011 D. V. Wiebe +/* Copyright (C) 2011-2012 D. V. Wiebe * *************************************************************************** * @@ -31,10 +31,9 @@ int main(void) { -#if defined HAVE_GETCWD || defined HAVE__GETCWD -#ifdef HAVE__GETCWD -#define getcwd _getcwd -#endif +#if defined GD_NO_GETCWD + return 77; +#else const char *filedir = "dirfile"; const char *format = "dirfile/format"; const char *format1 = "dirfile/format1"; @@ -50,13 +49,7 @@ rmdirfile(); mkdir(filedir, 0777); - do { - ptr = (char*)realloc(cwd, cwd_size *= 2); - if (ptr == NULL) { - fprintf(stderr, "out of memory for cwd!\n"); - exit(1); - } - } while (!getcwd(cwd = ptr, cwd_size)); + gdtest_getcwd(ptr, cwd, cwd_size); fd = open(format, O_CREAT | O_EXCL | O_WRONLY, 0666); write(fd, format_data1, strlen(format_data1)); @@ -79,7 +72,5 @@ CHECKU(spf, 11); free(cwd); return r; -#else - return 77; #endif } Modified: trunk/getdata/test/parse_include_absrel.c =================================================================== --- trunk/getdata/test/parse_include_absrel.c 2012-11-23 15:23:24 UTC (rev 772) +++ trunk/getdata/test/parse_include_absrel.c 2012-12-12 03:07:29 UTC (rev 773) @@ -1,4 +1,4 @@ -/* Copyright (C) 2011 D. V. Wiebe +/* Copyright (C) 2011-2012 D. V. Wiebe * *************************************************************************** * @@ -31,10 +31,9 @@ int main(void) { -#if defined HAVE_GETCWD || defined HAVE__GETCWD -#ifdef HAVE__GETCWD -#define getcwd _getcwd -#endif +#if defined GD_NO_GETCWD + return 77; +#else const char *filedir = "dirfile"; const char *format = "dirfile/format"; const char *format1 = "dirfile/format1"; @@ -52,13 +51,7 @@ rmdirfile(); mkdir(filedir, 0777); - do { - ptr = (char*)realloc(cwd, cwd_size *= 2); - if (ptr == NULL) { - fprintf(stderr, "out of memory for cwd!\n"); - exit(1); - } - } while (!getcwd(cwd = ptr, cwd_size)); + gdtest_getcwd(ptr, cwd, cwd_size); fd = open(format, O_CREAT | O_EXCL | O_WRONLY, 0666); write(fd, format_data1, strlen(format_data1)); @@ -86,7 +79,5 @@ CHECKU(spf, 11); free(cwd); return r; -#else - return 77; #endif } Modified: trunk/getdata/test/parse_include_relabs.c =================================================================== --- trunk/getdata/test/parse_include_relabs.c 2012-11-23 15:23:24 UTC (rev 772) +++ trunk/getdata/test/parse_include_relabs.c 2012-12-12 03:07:29 UTC (rev 773) @@ -1,4 +1,4 @@ -/* Copyright (C) 2011 D. V. Wiebe +/* Copyright (C) 2011-2012 D. V. Wiebe * *************************************************************************** * @@ -31,10 +31,9 @@ int main(void) { -#if defined HAVE_GETCWD || defined HAVE__GETCWD -#ifdef HAVE__GETCWD -#define getcwd _getcwd -#endif +#if defined GD_NO_GETCWD + return 77; +#else const char *filedir = "dirfile"; const char *subdir = "dirfile/sub"; const char *format = "dirfile/format"; @@ -54,13 +53,7 @@ mkdir(filedir, 0777); mkdir(subdir, 0777); - do { - ptr = (char*)realloc(cwd, cwd_size *= 2); - if (ptr == NULL) { - fprintf(stderr, "out of memory for cwd!\n"); - exit(1); - } - } while (!getcwd(cwd = ptr, cwd_size)); + gdtest_getcwd(ptr, cwd, cwd_size); fd = open(format, O_CREAT | O_EXCL | O_WRONLY, 0666); write(fd, format_data, strlen(format_data)); @@ -89,7 +82,5 @@ CHECKU(spf, 11); free(cwd); return r; -#else - return 77; #endif } Modified: trunk/getdata/test/test.h =================================================================== --- trunk/getdata/test/test.h 2012-11-23 15:23:24 UTC (rev 772) +++ trunk/getdata/test/test.h 2012-12-12 03:07:29 UTC (rev 773) @@ -84,6 +84,24 @@ #define gd_pathwrite(x,y) write(x,y,strlen(y)) #endif +/* getcwd abstraction */ +#if defined HAVE_GETCWD || defined HAVE__GETCWD +# ifdef HAVE__GETCWD +# define getcwd _getcwd +# endif +# define gdtest_getcwd(ptr,cwd,cwd_size) \ + do { \ + ptr = (char*)realloc(cwd, cwd_size *= 2); \ + if (ptr == NULL) { \ + fprintf(stderr, "out of memory for cwd!\n"); \ + exit(1); \ + } \ + } while (!getcwd(cwd = ptr, cwd_size)); +#else +# define GD_NO_GETCWD +#endif + + #define CHECK(e,n,nf,vf,...) \ do { if (e) { r = 1; \ fprintf(stderr, #n " = " nf " (expected " vf ")\n", __VA_ARGS__); } \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ket...@us...> - 2012-11-23 15:23:35
|
Revision: 772 http://getdata.svn.sourceforge.net/getdata/?rev=772&view=rev Author: ketiltrout Date: 2012-11-23 15:23:24 +0000 (Fri, 23 Nov 2012) Log Message: ----------- Remove unnecessary DIRFILE from _GD_WriteOut. Modified Paths: -------------- trunk/getdata/ChangeLog trunk/getdata/src/encoding.c trunk/getdata/src/internal.h trunk/getdata/src/mod.c trunk/getdata/src/move.c trunk/getdata/src/putdata.c Modified: trunk/getdata/ChangeLog =================================================================== --- trunk/getdata/ChangeLog 2012-10-10 23:04:56 UTC (rev 771) +++ trunk/getdata/ChangeLog 2012-11-23 15:23:24 UTC (rev 772) @@ -1,3 +1,6 @@ +2012-11-22 D. V. Wiebe <ge...@ke...> svn:772 + * src/encoding.c (_GD_WriteOut): Remove unnecessary DIRFILE parameter. + 2012-10-10 D. V. Wiebe <ge...@ke...> svn:771 * src/getdata.c (_GD_DoMplex): Check we're at the BOF before trying to do a lookback. Modified: trunk/getdata/src/encoding.c =================================================================== --- trunk/getdata/src/encoding.c 2012-10-10 23:04:56 UTC (rev 771) +++ trunk/getdata/src/encoding.c 2012-11-23 15:23:24 UTC (rev 772) @@ -450,14 +450,12 @@ } /* Perform a RAW field write */ -ssize_t _GD_WriteOut(DIRFILE *D gd_unused_d, const gd_entry_t *E, - const struct encoding_t *enc, const void *ptr, gd_type_t type, size_t n, - int temp) +ssize_t _GD_WriteOut(const gd_entry_t *E, const struct encoding_t *enc, + const void *ptr, gd_type_t type, size_t n, int temp) { ssize_t n_wrote; - dtrace("%p, %p, %p, %p, 0x%X, %" PRNsize_t ", %i", D, E, enc, ptr, type, n, - temp); + dtrace("%p, %p, %p, 0x%X, %" PRNsize_t ", %i", E, enc, ptr, type, n, temp); if (temp) n_wrote = (*enc->write)(E->e->u.raw.file + 1, ptr, type, n); Modified: trunk/getdata/src/internal.h =================================================================== --- trunk/getdata/src/internal.h 2012-10-10 23:04:56 UTC (rev 771) +++ trunk/getdata/src/internal.h 2012-11-23 15:23:24 UTC (rev 772) @@ -1140,8 +1140,8 @@ int _GD_ValidateField(const char*, int, int, int, int*); off64_t _GD_WriteSeek(DIRFILE *restrict, gd_entry_t *restrict, const struct encoding_t *restrict, off64_t, unsigned int mode); -ssize_t _GD_WriteOut(DIRFILE*, const gd_entry_t*, const struct encoding_t*, - const void*, gd_type_t, size_t, int); +ssize_t _GD_WriteOut(const gd_entry_t*, const struct encoding_t*, const void*, + gd_type_t, size_t, int); /* generic I/O methods */ int _GD_GenericMove(int, struct _gd_raw_file *restrict, int, char *restrict); Modified: trunk/getdata/src/mod.c =================================================================== --- trunk/getdata/src/mod.c 2012-10-10 23:04:56 UTC (rev 771) +++ trunk/getdata/src/mod.c 2012-11-23 15:23:24 UTC (rev 772) @@ -381,7 +381,7 @@ buffer2 = ptr; } - nwrote = _GD_WriteOut(D, E, enc, buffer1, Q.EN(raw,data_type), ns_out, + nwrote = _GD_WriteOut(E, enc, buffer1, Q.EN(raw,data_type), ns_out, 1); if (nwrote < ns_out) { Modified: trunk/getdata/src/move.c =================================================================== --- trunk/getdata/src/move.c 2012-10-10 23:04:56 UTC (rev 771) +++ trunk/getdata/src/move.c 2012-11-23 15:23:24 UTC (rev 772) @@ -213,8 +213,7 @@ _GD_FixEndianness((char *)buffer, E->e->u.raw.size, nread); } - nwrote = _GD_WriteOut(D, E, enc_out, buffer, E->EN(raw,data_type), nread, - 1); + nwrote = _GD_WriteOut(E, enc_out, buffer, E->EN(raw,data_type), nread, 1); if (nwrote < nread) { _GD_SetError(D, GD_E_RAW_IO, 0, E->e->u.raw.file[1].name, errno, NULL); Modified: trunk/getdata/src/putdata.c =================================================================== --- trunk/getdata/src/putdata.c 2012-10-10 23:04:56 UTC (rev 771) +++ trunk/getdata/src/putdata.c 2012-11-23 15:23:24 UTC (rev 772) @@ -108,7 +108,7 @@ return 0; } - n_wrote = _GD_WriteOut(D, E, _gd_ef + E->e->u.raw.file[0].subenc, databuffer, + n_wrote = _GD_WriteOut(E, _gd_ef + E->e->u.raw.file[0].subenc, databuffer, E->EN(raw,data_type), ns, 0); if (n_wrote < 0) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ket...@us...> - 2012-10-10 23:05:04
|
Revision: 771 http://getdata.svn.sourceforge.net/getdata/?rev=771&view=rev Author: ketiltrout Date: 2012-10-10 23:04:56 +0000 (Wed, 10 Oct 2012) Log Message: ----------- BUG FIX: Trying to read data from first sample of an MPLEX no longer results in an internal error if the first sample of the index doesn't match the target value. Modified Paths: -------------- trunk/getdata/ChangeLog trunk/getdata/NEWS trunk/getdata/m4/version.m4 trunk/getdata/src/getdata.c trunk/getdata/src/internal.h trunk/getdata/test/Makefile.am Added Paths: ----------- trunk/getdata/test/get_mplex_bof.c Property Changed: ---------------- trunk/getdata/test/ Modified: trunk/getdata/ChangeLog =================================================================== --- trunk/getdata/ChangeLog 2012-08-22 23:27:59 UTC (rev 770) +++ trunk/getdata/ChangeLog 2012-10-10 23:04:56 UTC (rev 771) @@ -1,3 +1,9 @@ +2012-10-10 D. V. Wiebe <ge...@ke...> svn:771 + * src/getdata.c (_GD_DoMplex): Check we're at the BOF before trying to do a + lookback. + + * src/internal.h: Only export gd_MakeFullPathOnly when using modules. + 2012-08-20 D. V. Wiebe <ge...@ke...> svn:767 GetData-0.8.1 released. Modified: trunk/getdata/NEWS =================================================================== --- trunk/getdata/NEWS 2012-08-22 23:27:59 UTC (rev 770) +++ trunk/getdata/NEWS 2012-10-10 23:04:56 UTC (rev 771) @@ -1,3 +1,13 @@ +New in version 0.8.2a: + + Library Changes: + + * BUG FIX: Trying to read data from the first sample of an MPLEX no longer + results in an internal error if the first sample of the index doesn't match + the target value. + +|==============================================================================| + New in version 0.8.1: Library Changes: Modified: trunk/getdata/m4/version.m4 =================================================================== --- trunk/getdata/m4/version.m4 2012-08-22 23:27:59 UTC (rev 770) +++ trunk/getdata/m4/version.m4 2012-10-10 23:04:56 UTC (rev 771) @@ -20,8 +20,8 @@ m4_define(getdata_major, 0) m4_define(getdata_minor, 8) -m4_define(getdata_revision, 1) -m4_define(getdata_extra, []) +m4_define(getdata_revision, 2) +m4_define(getdata_extra, [a]) m4_define(getdata_version, getdata_major.getdata_minor.getdata_revision[]getdata_extra) Modified: trunk/getdata/src/getdata.c =================================================================== --- trunk/getdata/src/getdata.c 2012-08-22 23:27:59 UTC (rev 770) +++ trunk/getdata/src/getdata.c 2012-10-10 23:04:56 UTC (rev 771) @@ -1714,7 +1714,8 @@ if (lb_start < 0) lb_start = 0; - do { + /* stop if we're at the start of the lookback or we found the value */ + while (lb_sample == -1 && chunk_start > lb_start) { /* the size of the next chunk */ size_t i, n_read3, chunk_size = chunk_start - lb_start; int *tmpbuf2; @@ -1750,8 +1751,7 @@ } } while (i-- != 0); free(tmpbuf2); - /* stop if we're at the start of the lookback or we found the value */ - } while (lb_sample == -1 && chunk_start > lb_start); + } /* read the value of the start, if found */ if (lb_sample >= 0) { Modified: trunk/getdata/src/internal.h =================================================================== --- trunk/getdata/src/internal.h 2012-08-22 23:27:59 UTC (rev 770) +++ trunk/getdata/src/internal.h 2012-10-10 23:04:56 UTC (rev 771) @@ -1095,7 +1095,11 @@ int _GD_ListEntry(const gd_entry_t *E, int meta, int hidden, int noalias, int special, gd_entype_t type); char *_GD_MakeFullPath(DIRFILE *restrict, int, const char *restrict, int); +#ifdef USE_MODULES #define _GD_MakeFullPathOnly gd_MakeFullPathOnly +#else +#define gd_MakeFullPathOnly _GD_MakeFullPathOnly +#endif char *_GD_MakeFullPathOnly(const DIRFILE *D, int dirfd, const char *name); int _GD_MakeTempFile(const DIRFILE*, int, char*); void *_GD_Malloc(DIRFILE *D, size_t size); Property changes on: trunk/getdata/test ___________________________________________________________________ Modified: svn:ignore - Makefile Makefile.in valgrind.log *.o dirfile *.swp *.exe .deps .libs add add_affix add_alias add_alias_affix add_alias_meta add_bit add_bit_bitnum add_bit_bitsize add_bit_invalid add_bit_numbits add_carray add_clincom add_code add_const add_cpolynom add_crecip add_crecip89 add_divide add_divide_invalid add_duplicate add_format add_invalid add_lincom add_lincom_affix add_lincom_invalid add_lincom_nfields add_linterp add_linterp_invalid add_meta add_meta_alias add_mplex add_mplex_val add_multiply add_multiply_invalid add_phase add_phase_invalid add_polynom add_protect add_raw add_raw_include add_raw_invalid add_raw_spf add_raw_type add_rdonly add_recip add_resolv add_sbit add_scalar add_scalar_carray add_sort add_spec add_spec_affix add_spec_directive add_spec_invalid add_spec_meta add_spec_resolv add_string add_string_affix add_type add_window add_window_op alias_list alias_list_alias alias_list_missing alias_num alias_num_alias alias_num_missing alias_target alias_target_alias alias_target_missing alter_bit_bitnum alter_bit_numbits alter_carray_len alter_carray_type alter_const alter_cpolynom alter_crecip alter_crecip89 alter_crecip_zero alter_divide alter_entry alter_entry_affix alter_entry_hidden alter_entry_recode alter_entry_scalar2a alter_entry_scalar2n alter_entry_scalar3 alter_entry_scalar4 alter_lincom_23 alter_lincom_32 alter_lincom_affix alter_lincom_input alter_lincom_offset alter_lincom_slope alter_linterp alter_linterp_move alter_mplex alter_mspec alter_mspec_affix alter_multiply alter_phase alter_polynom_coeff alter_polynom_input alter_polynom_ord alter_raw_spf alter_raw_type alter_recip alter_recip_zero alter_scalar_affix alter_spec alter_spec_affix alter_spec_meta alter_window ascii_add ascii_get ascii_get_get ascii_nframes ascii_put bof bof_lincom bof_phase bzip_get bzip_get_get bzip_move_from bzip_nframes bzip_put close close_bad close_discard close_null convert_complex128_complex64 convert_complex128_float64 convert_complex128_int64 convert_complex128_uint64 convert_complex64_complex128 convert_complex64_float64 convert_complex64_int64 convert_complex64_uint64 convert_float32_complex128 convert_float32_complex64 convert_float32_float64 convert_float32_int16 convert_float32_int32 convert_float32_int64 convert_float32_int8 convert_float32_uint16 convert_float32_uint32 convert_float32_uint64 convert_float32_uint8 convert_float64_complex128 convert_float64_complex64 convert_float64_float32 convert_float64_int16 convert_float64_int32 convert_float64_int64 convert_float64_int8 convert_float64_uint16 convert_float64_uint32 convert_float64_uint64 convert_float64_uint8 convert_int16_complex128 convert_int16_complex64 convert_int16_float32 convert_int16_float64 convert_int16_int32 convert_int16_int64 convert_int16_int8 convert_int16_uint16 convert_int16_uint32 convert_int16_uint64 convert_int16_uint8 convert_int32_complex128 convert_int32_complex64 convert_int32_float32 convert_int32_float64 convert_int32_int16 convert_int32_int64 convert_int32_int8 convert_int32_uint16 convert_int32_uint32 convert_int32_uint64 convert_int32_uint8 convert_int64_complex128 convert_int64_complex64 convert_int64_float32 convert_int64_float64 convert_int64_int16 convert_int64_int32 convert_int64_int8 convert_int64_uint16 convert_int64_uint32 convert_int64_uint64 convert_int64_uint8 convert_int8_complex128 convert_int8_complex64 convert_int8_float32 convert_int8_float64 convert_int8_int16 convert_int8_int32 convert_int8_int64 convert_int8_uint16 convert_int8_uint32 convert_int8_uint64 convert_int8_uint8 convert_uint16_complex128 convert_uint16_complex64 convert_uint16_float32 convert_uint16_float64 convert_uint16_int16 convert_uint16_int32 convert_uint16_int64 convert_uint16_int8 convert_uint16_uint32 convert_uint16_uint64 convert_uint16_uint8 convert_uint32_complex128 convert_uint32_complex64 convert_uint32_float32 convert_uint32_float64 convert_uint32_int16 convert_uint32_int32 convert_uint32_int64 convert_uint32_int8 convert_uint32_uint16 convert_uint32_uint64 convert_uint32_uint8 convert_uint64_complex128 convert_uint64_complex64 convert_uint64_float32 convert_uint64_float64 convert_uint64_int16 convert_uint64_int32 convert_uint64_int64 convert_uint64_int8 convert_uint64_uint16 convert_uint64_uint32 convert_uint64_uint8 convert_uint8_complex128 convert_uint8_complex64 convert_uint8_float32 convert_uint8_float64 convert_uint8_int16 convert_uint8_int32 convert_uint8_int64 convert_uint8_int8 convert_uint8_uint16 convert_uint8_uint32 convert_uint8_uint64 creat creat_excl creat_rdonly cvlist cvlist_array cvlist_array_hidden cvlist_array_meta cvlist_array_meta_hidden cvlist_hidden cvlist_invalid cvlist_meta cvlist_meta_hidden cvlist_meta_invalid del del_carray del_carray_deref del_const del_const_deref del_const_force del_data del_derived del_derived_after del_derived_force del_meta del_meta_force desync desync_flush desync_reopen desync_reopen_inv dfes_bit dfes_divide dfes_lincom dfes_linterp dfes_multiply dfes_null dfes_phase dfes_raw dfes_recip dfes_zero elist_alias elist_hidden elist_noalias elist_scalar encode_alter encode_get encode_move endian_alter endian_alter_sie endian_get endian_move entry_bad_code entry_bit entry_bit_scalar entry_divide entry_invalid entry_lincom entry_lincom_scalar entry_linterp entry_mplex entry_mplex_scalar entry_multiply entry_phase entry_phase_scalar entry_polynom entry_polynom_scalar entry_raw entry_raw_scalar entry_raw_scalar_code entry_raw_scalar_type entry_recip entry_scalar_repr entry_type entry_type_alias entry_window entry_window_scalar eof eof_index eof_lincom eof_phase error error_error error_num error_short error_verbose error_verbose_prefix file file_code file_type flist flist_hidden flist_invalid flist_meta flist_meta_hidden flist_meta_invalid flist_type flist_type_hidden flist_type_invalid flist_type_meta flist_type_meta_hidden flist_type_meta_invalid flush flush_all flush_bad_code flush_invalid flush_meta flush_spec foffs_alter foffs_get foffs_move fragment_affix fragment_affix_alter fragment_affix_alter2 fragment_affix_dup fragment_index fragment_index_alias fragment_name fragment_name_oor fragment_num fragment_parent get64 get_affix get_bad_code get_bit get_carray get_carray_len get_carray_slice get_char get_clincom get_complex128 get_complex64 get_const get_const_complex get_const_repr get_cpolynom get_divide get_endian16 get_endian32 get_endian64 get_endian8 get_endian_complex128_arm get_endian_complex128_big get_endian_complex128_little get_endian_complex64_arm get_endian_complex64_big get_endian_complex64_little get_endian_float32_arm get_endian_float32_big get_endian_float32_little get_endian_float64_arm get_endian_float64_big get_endian_float64_little get_ff get_float32 get_float64 get_foffs get_fs get_here get_here_foffs get_heres get_int16 get_int32 get_int64 get_int8 get_invalid get_lincom1 get_lincom2 get_lincom3 get_lincom_noin get_lincom_non get_lincom_null get_lincom_spf get_linterp get_linterp_noin get_linterp_notab get_linterp_sort get_mplex get_mplex_lb get_mplex_lball get_mplex_nolb get_multiply get_multiply_noin get_nonexistent get_null get_off64 get_phase get_phase_affix get_polynom get_polynom_noin get_recip get_recip_const get_recurse get_rofs get_sbit get_sf get_ss get_type get_uint16 get_uint32 get_uint64 get_window get_window_clr get_window_ge get_window_gt get_window_le get_window_lt get_window_ne get_window_set get_zero global_flags global_name global_ref global_ref_empty global_ref_set gzip_add gzip_get gzip_get_get gzip_get_put gzip_move_from gzip_move_to gzip_nframes gzip_put gzip_put_get header_complex hide hide_hidden hide_unhide include include_accmode include_affix include_auto include_cb include_creat include_ignore include_index include_invalid include_nonexistent include_pc include_ref include_sub include_syntax index index_domain index_range legacy_get legacy_get_put legacy_get_rofs legacy_nframes legacy_nonexistent legacy_put legacy_spf lzma_get lzma_nframes madd madd_affix madd_alias madd_alias_affix madd_bit madd_bit_invalid madd_carray madd_clincom madd_const madd_cpolynom madd_crecip madd_crecip89 madd_divide madd_index madd_lincom madd_lincom_invalid madd_linterp madd_linterp_invalid madd_mplex madd_multiply madd_multiply_invalid madd_phase madd_phase_invalid madd_polynom madd_recip madd_sbit madd_spec madd_spec_directive madd_spec_invalid madd_spec_resolv madd_string madd_window move move_affix move_affix_dup move_alias move_data_enc_ar move_data_enc_ra move_data_endian move_data_foffs move_data_nop move_index move_meta move_protect move_subdir name name_affix name_affix_bad name_alias name_dup name_move name_move_alias name_updb name_updb_alias name_updb_const name_updb_const_alias nentries_alias nentries_hidden nentries_noalias nentries_scalar nfields nfields_hidden nfields_invalid nfields_type nfields_type_hidden nfields_type_invalid nfields_vector nfields_vector_hidden nfields_vector_invalid nframes nframes64 nframes_empty nframes_invalid nframes_off64 nframes_spf nmeta nmeta_hidden nmeta_invalid nmeta_parent nmeta_type nmeta_type_hidden nmeta_type_invalid nmeta_type_parent nmeta_vectors nmeta_vectors_del nmeta_vectors_hidden nmeta_vectors_invalid nmeta_vectors_parent open open_abs open_cb_abort open_cb_cont open_cb_ignore open_cb_invalid open_cb_rescan open_eaccess open_nonexistent open_notdirfile parse_alias parse_alias_code parse_alias_dup parse_alias_meta parse_alias_missing parse_badline parse_bit parse_bit4 parse_bit_bitnum parse_bit_bitsize parse_bit_ncols parse_bit_numbits parse_bit_scalar parse_carray parse_carray_long parse_const parse_const_complex parse_const_ncols parse_divide parse_double parse_duplicate parse_duplicate_ignore parse_endian_bad parse_endian_big parse_endian_force parse_endian_little parse_endian_slash parse_eol parse_foffs parse_foffs_include parse_foffs_slash parse_hidden parse_hidden_field parse_hidden_meta parse_include parse_include_absolute parse_include_absrel parse_include_dir parse_include_loop parse_include_nonexistent parse_include_prefix parse_include_prefix_dup parse_include_preprefix parse_include_ref parse_include_relabs parse_include_relrel parse_include_slash parse_include_suffix parse_include_sufsuffix parse_index parse_lincom parse_lincom_ncols1 parse_lincom_ncols2 parse_lincom_nfields parse_lincom_nofields parse_lincom_non parse_lincom_non_ncols parse_lincom_scalar parse_linterp parse_linterp_ncols parse_malias parse_malias_dup parse_malias_meta parse_meta parse_meta_affix parse_meta_alias parse_meta_implicit parse_meta_implicit2 parse_meta_implicit_affix parse_meta_index parse_meta_index2 parse_meta_jump parse_meta_malias parse_meta_meta parse_meta_parent parse_meta_raw parse_mplex parse_mplex_ncols parse_mplex_nomax parse_mplex_scalar parse_multiply parse_multiply_ncols parse_name parse_name_dot parse_name_ext parse_name_pedantic parse_ncols parse_phase parse_phase_ncols parse_phase_scalar parse_polynom parse_polynom_ncols1 parse_polynom_ncols2 parse_polynom_scalar parse_protect_all parse_protect_bad parse_protect_data parse_protect_format parse_protect_none parse_quote parse_quote_mismatch parse_raw parse_raw_char parse_raw_ncols parse_raw_scalar parse_raw_spf parse_raw_type parse_recip parse_ref parse_ref_nonexistent parse_sbit parse_sort parse_string parse_string_ncols parse_string_null parse_version parse_version_89 parse_version_98 parse_version_include parse_version_p8 parse_version_p9 parse_version_permissive parse_version_slash parse_whitespace parse_window parse_window_ncols parse_window_op parse_window_scalar protect_alter protect_get put64 put_bad_code put_bit put_bof put_carray put_carray_slice put_char put_complex128 put_complex64 put_const put_const_protect put_divide put_endian16 put_endian32 put_endian64 put_endian8 put_endian_complex128_arm put_endian_complex128_big put_endian_complex128_little put_endian_complex64_arm put_endian_complex64_big put_endian_complex64_little put_endian_float32_arm put_endian_float32_big put_endian_float32_little put_endian_float64_arm put_endian_float64_big put_endian_float64_little put_ff put_float32 put_float64 put_foffs put_fs put_here put_heres put_int16 put_int32 put_int64 put_int8 put_invalid put_lincom1 put_lincom2 put_lincom_noin put_linterp put_linterp_noin put_linterp_nomono put_linterp_notab put_linterp_reverse put_mplex put_multiply put_null put_off64 put_phase put_phase_noin put_polynom1 put_polynom2 put_polynom_noin put_protect put_rdonly put_recip put_recurse put_repr put_rofs put_sbit put_sf put_ss put_string put_string_protect put_type put_uint16 put_uint32 put_uint64 put_window put_zero ref ref_none ref_two repr_a repr_float32 repr_float64 repr_i repr_int16 repr_int32 repr_int64 repr_int8 repr_m repr_r repr_real_a repr_real_i repr_real_m repr_real_r repr_uint16 repr_uint32 repr_uint64 repr_uint8 seek64 seek_cur seek_end seek_foffs seek_set sie_get_big sie_get_little sie_move_from sie_move_to sie_nframes_big sie_nframes_little sie_put_big sie_put_little slim_get slim_nframes slim_put spf spf_alias spf_alias_meta spf_alias_missing spf_divide spf_lincom spf_multiply spf_polynom spf_recip spf_recurse svlist svlist_hidden svlist_invalid svlist_meta svlist_meta_hidden svlist_meta_invalid table table_code table_type tell tell64 trunc trunc_dir trunc_rdonly trunc_rofs trunc_truncsub unclude unclude_del unclude_move version_0 version_0_write version_1 version_1_write version_2 version_2_write version_3 version_3_write version_4 version_4_write version_5 version_5_strict version_5_write version_6 version_6_strict version_6_write version_7 version_7_strict version_7_write version_8 version_8_strict version_8_write version_9 version_9_strict version_9_write vlist vlist_alias vlist_hidden vlist_invalid vlist_meta vlist_meta_hidden vlist_meta_invalid xz_get xz_nframes zzip_data zzip_get zzip_get_get zzip_nframes zzslim_get zzslim_nframes + Makefile Makefile.in valgrind.log *.o dirfile *.swp *.exe .deps .libs add add_affix add_alias add_alias_affix add_alias_meta add_bit add_bit_bitnum add_bit_bitsize add_bit_invalid add_bit_numbits add_carray add_clincom add_code add_const add_cpolynom add_crecip add_crecip89 add_divide add_divide_invalid add_duplicate add_format add_invalid add_lincom add_lincom_affix add_lincom_invalid add_lincom_nfields add_linterp add_linterp_invalid add_meta add_meta_alias add_mplex add_mplex_val add_multiply add_multiply_invalid add_phase add_phase_invalid add_polynom add_protect add_raw add_raw_include add_raw_invalid add_raw_spf add_raw_type add_rdonly add_recip add_resolv add_sbit add_scalar add_scalar_carray add_sort add_spec add_spec_affix add_spec_directive add_spec_invalid add_spec_meta add_spec_resolv add_string add_string_affix add_type add_window add_window_op alias_list alias_list_alias alias_list_missing alias_num alias_num_alias alias_num_missing alias_target alias_target_alias alias_target_missing alter_bit_bitnum alter_bit_numbits alter_carray_len alter_carray_type alter_const alter_cpolynom alter_crecip alter_crecip89 alter_crecip_zero alter_divide alter_entry alter_entry_affix alter_entry_hidden alter_entry_recode alter_entry_scalar2a alter_entry_scalar2n alter_entry_scalar3 alter_entry_scalar4 alter_lincom_23 alter_lincom_32 alter_lincom_affix alter_lincom_input alter_lincom_offset alter_lincom_slope alter_linterp alter_linterp_move alter_mplex alter_mspec alter_mspec_affix alter_multiply alter_phase alter_polynom_coeff alter_polynom_input alter_polynom_ord alter_raw_spf alter_raw_type alter_recip alter_recip_zero alter_scalar_affix alter_spec alter_spec_affix alter_spec_meta alter_window ascii_add ascii_get ascii_get_get ascii_nframes ascii_put bof bof_lincom bof_phase bzip_get bzip_get_get bzip_move_from bzip_nframes bzip_put close close_bad close_discard close_null convert_complex128_complex64 convert_complex128_float64 convert_complex128_int64 convert_complex128_uint64 convert_complex64_complex128 convert_complex64_float64 convert_complex64_int64 convert_complex64_uint64 convert_float32_complex128 convert_float32_complex64 convert_float32_float64 convert_float32_int16 convert_float32_int32 convert_float32_int64 convert_float32_int8 convert_float32_uint16 convert_float32_uint32 convert_float32_uint64 convert_float32_uint8 convert_float64_complex128 convert_float64_complex64 convert_float64_float32 convert_float64_int16 convert_float64_int32 convert_float64_int64 convert_float64_int8 convert_float64_uint16 convert_float64_uint32 convert_float64_uint64 convert_float64_uint8 convert_int16_complex128 convert_int16_complex64 convert_int16_float32 convert_int16_float64 convert_int16_int32 convert_int16_int64 convert_int16_int8 convert_int16_uint16 convert_int16_uint32 convert_int16_uint64 convert_int16_uint8 convert_int32_complex128 convert_int32_complex64 convert_int32_float32 convert_int32_float64 convert_int32_int16 convert_int32_int64 convert_int32_int8 convert_int32_uint16 convert_int32_uint32 convert_int32_uint64 convert_int32_uint8 convert_int64_complex128 convert_int64_complex64 convert_int64_float32 convert_int64_float64 convert_int64_int16 convert_int64_int32 convert_int64_int8 convert_int64_uint16 convert_int64_uint32 convert_int64_uint64 convert_int64_uint8 convert_int8_complex128 convert_int8_complex64 convert_int8_float32 convert_int8_float64 convert_int8_int16 convert_int8_int32 convert_int8_int64 convert_int8_uint16 convert_int8_uint32 convert_int8_uint64 convert_int8_uint8 convert_uint16_complex128 convert_uint16_complex64 convert_uint16_float32 convert_uint16_float64 convert_uint16_int16 convert_uint16_int32 convert_uint16_int64 convert_uint16_int8 convert_uint16_uint32 convert_uint16_uint64 convert_uint16_uint8 convert_uint32_complex128 convert_uint32_complex64 convert_uint32_float32 convert_uint32_float64 convert_uint32_int16 convert_uint32_int32 convert_uint32_int64 convert_uint32_int8 convert_uint32_uint16 convert_uint32_uint64 convert_uint32_uint8 convert_uint64_complex128 convert_uint64_complex64 convert_uint64_float32 convert_uint64_float64 convert_uint64_int16 convert_uint64_int32 convert_uint64_int64 convert_uint64_int8 convert_uint64_uint16 convert_uint64_uint32 convert_uint64_uint8 convert_uint8_complex128 convert_uint8_complex64 convert_uint8_float32 convert_uint8_float64 convert_uint8_int16 convert_uint8_int32 convert_uint8_int64 convert_uint8_int8 convert_uint8_uint16 convert_uint8_uint32 convert_uint8_uint64 creat creat_excl creat_rdonly cvlist cvlist_array cvlist_array_hidden cvlist_array_meta cvlist_array_meta_hidden cvlist_hidden cvlist_invalid cvlist_meta cvlist_meta_hidden cvlist_meta_invalid del del_carray del_carray_deref del_const del_const_deref del_const_force del_data del_derived del_derived_after del_derived_force del_meta del_meta_force desync desync_flush desync_reopen desync_reopen_inv dfes_bit dfes_divide dfes_lincom dfes_linterp dfes_multiply dfes_null dfes_phase dfes_raw dfes_recip dfes_zero elist_alias elist_hidden elist_noalias elist_scalar encode_alter encode_get encode_move endian_alter endian_alter_sie endian_get endian_move entry_bad_code entry_bit entry_bit_scalar entry_divide entry_invalid entry_lincom entry_lincom_scalar entry_linterp entry_mplex entry_mplex_scalar entry_multiply entry_phase entry_phase_scalar entry_polynom entry_polynom_scalar entry_raw entry_raw_scalar entry_raw_scalar_code entry_raw_scalar_type entry_recip entry_scalar_repr entry_type entry_type_alias entry_window entry_window_scalar eof eof_index eof_lincom eof_phase error error_error error_num error_short error_verbose error_verbose_prefix file file_code file_type flist flist_hidden flist_invalid flist_meta flist_meta_hidden flist_meta_invalid flist_type flist_type_hidden flist_type_invalid flist_type_meta flist_type_meta_hidden flist_type_meta_invalid flush flush_all flush_bad_code flush_invalid flush_meta flush_spec foffs_alter foffs_get foffs_move fragment_affix fragment_affix_alter fragment_affix_alter2 fragment_affix_dup fragment_index fragment_index_alias fragment_name fragment_name_oor fragment_num fragment_parent get64 get_affix get_bad_code get_bit get_carray get_carray_len get_carray_slice get_char get_clincom get_complex128 get_complex64 get_const get_const_complex get_const_repr get_cpolynom get_divide get_endian16 get_endian32 get_endian64 get_endian8 get_endian_complex128_arm get_endian_complex128_big get_endian_complex128_little get_endian_complex64_arm get_endian_complex64_big get_endian_complex64_little get_endian_float32_arm get_endian_float32_big get_endian_float32_little get_endian_float64_arm get_endian_float64_big get_endian_float64_little get_ff get_float32 get_float64 get_foffs get_fs get_here get_here_foffs get_heres get_int16 get_int32 get_int64 get_int8 get_invalid get_lincom1 get_lincom2 get_lincom3 get_lincom_noin get_lincom_non get_lincom_null get_lincom_spf get_linterp get_linterp_noin get_linterp_notab get_linterp_sort get_mplex get_mplex_bof get_mplex_lb get_mplex_lball get_mplex_nolb get_multiply get_multiply_noin get_nonexistent get_null get_off64 get_phase get_phase_affix get_polynom get_polynom_noin get_recip get_recip_const get_recurse get_rofs get_sbit get_sf get_ss get_type get_uint16 get_uint32 get_uint64 get_window get_window_clr get_window_ge get_window_gt get_window_le get_window_lt get_window_ne get_window_set get_zero global_flags global_name global_ref global_ref_empty global_ref_set gzip_add gzip_get gzip_get_get gzip_get_put gzip_move_from gzip_move_to gzip_nframes gzip_put gzip_put_get header_complex hide hide_hidden hide_unhide include include_accmode include_affix include_auto include_cb include_creat include_ignore include_index include_invalid include_nonexistent include_pc include_ref include_sub include_syntax index index_domain index_range legacy_get legacy_get_put legacy_get_rofs legacy_nframes legacy_nonexistent legacy_put legacy_spf lzma_get lzma_nframes madd madd_affix madd_alias madd_alias_affix madd_bit madd_bit_invalid madd_carray madd_clincom madd_const madd_cpolynom madd_crecip madd_crecip89 madd_divide madd_index madd_lincom madd_lincom_invalid madd_linterp madd_linterp_invalid madd_mplex madd_multiply madd_multiply_invalid madd_phase madd_phase_invalid madd_polynom madd_recip madd_sbit madd_spec madd_spec_directive madd_spec_invalid madd_spec_resolv madd_string madd_window move move_affix move_affix_dup move_alias move_data_enc_ar move_data_enc_ra move_data_endian move_data_foffs move_data_nop move_index move_meta move_protect move_subdir name name_affix name_affix_bad name_alias name_dup name_move name_move_alias name_updb name_updb_alias name_updb_const name_updb_const_alias nentries_alias nentries_hidden nentries_noalias nentries_scalar nfields nfields_hidden nfields_invalid nfields_type nfields_type_hidden nfields_type_invalid nfields_vector nfields_vector_hidden nfields_vector_invalid nframes nframes64 nframes_empty nframes_invalid nframes_off64 nframes_spf nmeta nmeta_hidden nmeta_invalid nmeta_parent nmeta_type nmeta_type_hidden nmeta_type_invalid nmeta_type_parent nmeta_vectors nmeta_vectors_del nmeta_vectors_hidden nmeta_vectors_invalid nmeta_vectors_parent open open_abs open_cb_abort open_cb_cont open_cb_ignore open_cb_invalid open_cb_rescan open_eaccess open_nonexistent open_notdirfile parse_alias parse_alias_code parse_alias_dup parse_alias_meta parse_alias_missing parse_badline parse_bit parse_bit4 parse_bit_bitnum parse_bit_bitsize parse_bit_ncols parse_bit_numbits parse_bit_scalar parse_carray parse_carray_long parse_const parse_const_complex parse_const_ncols parse_divide parse_double parse_duplicate parse_duplicate_ignore parse_endian_bad parse_endian_big parse_endian_force parse_endian_little parse_endian_slash parse_eol parse_foffs parse_foffs_include parse_foffs_slash parse_hidden parse_hidden_field parse_hidden_meta parse_include parse_include_absolute parse_include_absrel parse_include_dir parse_include_loop parse_include_nonexistent parse_include_prefix parse_include_prefix_dup parse_include_preprefix parse_include_ref parse_include_relabs parse_include_relrel parse_include_slash parse_include_suffix parse_include_sufsuffix parse_index parse_lincom parse_lincom_ncols1 parse_lincom_ncols2 parse_lincom_nfields parse_lincom_nofields parse_lincom_non parse_lincom_non_ncols parse_lincom_scalar parse_linterp parse_linterp_ncols parse_malias parse_malias_dup parse_malias_meta parse_meta parse_meta_affix parse_meta_alias parse_meta_implicit parse_meta_implicit2 parse_meta_implicit_affix parse_meta_index parse_meta_index2 parse_meta_jump parse_meta_malias parse_meta_meta parse_meta_parent parse_meta_raw parse_mplex parse_mplex_ncols parse_mplex_nomax parse_mplex_scalar parse_multiply parse_multiply_ncols parse_name parse_name_dot parse_name_ext parse_name_pedantic parse_ncols parse_phase parse_phase_ncols parse_phase_scalar parse_polynom parse_polynom_ncols1 parse_polynom_ncols2 parse_polynom_scalar parse_protect_all parse_protect_bad parse_protect_data parse_protect_format parse_protect_none parse_quote parse_quote_mismatch parse_raw parse_raw_char parse_raw_ncols parse_raw_scalar parse_raw_spf parse_raw_type parse_recip parse_ref parse_ref_nonexistent parse_sbit parse_sort parse_string parse_string_ncols parse_string_null parse_version parse_version_89 parse_version_98 parse_version_include parse_version_p8 parse_version_p9 parse_version_permissive parse_version_slash parse_whitespace parse_window parse_window_ncols parse_window_op parse_window_scalar protect_alter protect_get put64 put_bad_code put_bit put_bof put_carray put_carray_slice put_char put_complex128 put_complex64 put_const put_const_protect put_divide put_endian16 put_endian32 put_endian64 put_endian8 put_endian_complex128_arm put_endian_complex128_big put_endian_complex128_little put_endian_complex64_arm put_endian_complex64_big put_endian_complex64_little put_endian_float32_arm put_endian_float32_big put_endian_float32_little put_endian_float64_arm put_endian_float64_big put_endian_float64_little put_ff put_float32 put_float64 put_foffs put_fs put_here put_heres put_int16 put_int32 put_int64 put_int8 put_invalid put_lincom1 put_lincom2 put_lincom_noin put_linterp put_linterp_noin put_linterp_nomono put_linterp_notab put_linterp_reverse put_mplex put_multiply put_null put_off64 put_phase put_phase_noin put_polynom1 put_polynom2 put_polynom_noin put_protect put_rdonly put_recip put_recurse put_repr put_rofs put_sbit put_sf put_ss put_string put_string_protect put_type put_uint16 put_uint32 put_uint64 put_window put_zero ref ref_none ref_two repr_a repr_float32 repr_float64 repr_i repr_int16 repr_int32 repr_int64 repr_int8 repr_m repr_r repr_real_a repr_real_i repr_real_m repr_real_r repr_uint16 repr_uint32 repr_uint64 repr_uint8 seek64 seek_cur seek_end seek_foffs seek_set sie_get_big sie_get_little sie_move_from sie_move_to sie_nframes_big sie_nframes_little sie_put_big sie_put_little slim_get slim_nframes slim_put spf spf_alias spf_alias_meta spf_alias_missing spf_divide spf_lincom spf_multiply spf_polynom spf_recip spf_recurse svlist svlist_hidden svlist_invalid svlist_meta svlist_meta_hidden svlist_meta_invalid table table_code table_type tell tell64 trunc trunc_dir trunc_rdonly trunc_rofs trunc_truncsub unclude unclude_del unclude_move version_0 version_0_write version_1 version_1_write version_2 version_2_write version_3 version_3_write version_4 version_4_write version_5 version_5_strict version_5_write version_6 version_6_strict version_6_write version_7 version_7_strict version_7_write version_8 version_8_strict version_8_write version_9 version_9_strict version_9_write vlist vlist_alias vlist_hidden vlist_invalid vlist_meta vlist_meta_hidden vlist_meta_invalid xz_get xz_nframes zzip_data zzip_get zzip_get_get zzip_nframes zzslim_get zzslim_nframes Modified: trunk/getdata/test/Makefile.am =================================================================== --- trunk/getdata/test/Makefile.am 2012-08-22 23:27:59 UTC (rev 770) +++ trunk/getdata/test/Makefile.am 2012-10-10 23:04:56 UTC (rev 771) @@ -184,13 +184,14 @@ get_int8 get_int16 get_int32 get_int64 get_invalid get_lincom1 \ get_lincom2 get_lincom3 get_lincom_noin get_lincom_non \ get_lincom_null get_lincom_spf get_linterp get_linterp_noin \ - get_linterp_notab get_linterp_sort get_mplex get_mplex_lb \ - get_mplex_lball get_mplex_nolb get_multiply get_multiply_noin \ - get_nonexistent get_null get_off64 get_phase get_phase_affix \ - get_polynom get_polynom_noin get_recip get_recip_const get_recurse \ - get_rofs get_sbit get_sf get_ss get_type get_uint16 get_uint32 \ - get_uint64 get_window get_window_clr get_window_ge get_window_gt \ - get_window_le get_window_lt get_window_ne get_window_set get_zero + get_linterp_notab get_linterp_sort get_mplex get_mplex_bof \ + get_mplex_lb get_mplex_lball get_mplex_nolb get_multiply \ + get_multiply_noin get_nonexistent get_null get_off64 get_phase \ + get_phase_affix get_polynom get_polynom_noin get_recip \ + get_recip_const get_recurse get_rofs get_sbit get_sf get_ss get_type \ + get_uint16 get_uint32 get_uint64 get_window get_window_clr \ + get_window_ge get_window_gt get_window_le get_window_lt \ + get_window_ne get_window_set get_zero GLOBAL_TESTS=global_flags global_name global_ref global_ref_empty global_ref_set Added: trunk/getdata/test/get_mplex_bof.c =================================================================== --- trunk/getdata/test/get_mplex_bof.c (rev 0) +++ trunk/getdata/test/get_mplex_bof.c 2012-10-10 23:04:56 UTC (rev 771) @@ -0,0 +1,76 @@ +/* Copyright (C) 2012 D. V. Wiebe + * + *************************************************************************** + * + * This file is part of the GetData project. + * + * GetData is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the + * Free Software Foundation; either version 2.1 of the License, or (at your + * option) any later version. + * + * GetData is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + * License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with GetData; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ +#include "test.h" + +int main(void) +{ + const char *filedir = "dirfile"; + const char *format = "dirfile/format"; + const char *data = "dirfile/data"; + const char *count = "dirfile/count"; + const char *format_data = + "mplex MPLEX data count 2 3\n" + "count RAW UINT8 8\n" + "data RAW UINT8 8\n"; + unsigned char c[8]; + unsigned char data_data[256]; + int fd, n, i, error, r = 0; + DIRFILE *D; + + rmdirfile(); + mkdir(filedir, 0777); + + fd = open(format, O_CREAT | O_EXCL | O_WRONLY, 0666); + write(fd, format_data, strlen(format_data)); + close(fd); + + for (fd = 0; fd < 256; ++fd) + data_data[fd] = (unsigned char)fd; + + fd = open(data, O_CREAT | O_EXCL | O_WRONLY | O_BINARY, 0666); + write(fd, data_data, 256); + close(fd); + + for (fd = 0; fd < 256; ++fd) + data_data[fd] %= 3; + + fd = open(count, O_CREAT | O_EXCL | O_WRONLY | O_BINARY, 0666); + write(fd, data_data, 256); + close(fd); + + D = gd_open(filedir, GD_RDONLY | GD_VERBOSE); + n = gd_getdata(D, "mplex", 0, 0, 1, 0, GD_UINT8, &c); + error = gd_error(D); + + gd_close(D); + + unlink(count); + unlink(data); + unlink(format); + rmdir(filedir); + + CHECKI(error, 0); + CHECKI(n, 8); + for (i = 0; i < 8; ++i) + CHECKIi(i, c[i], (i < 2) ? 0 : 3 * ((i + 1) / 3) - 1); + + return r; +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ket...@us...> - 2012-08-22 23:28:07
|
Revision: 770 http://getdata.svn.sourceforge.net/getdata/?rev=770&view=rev Author: ketiltrout Date: 2012-08-22 23:27:59 +0000 (Wed, 22 Aug 2012) Log Message: ----------- Corrections. Modified Paths: -------------- trunk/html/getdata.html.in Modified: trunk/html/getdata.html.in =================================================================== --- trunk/html/getdata.html.in 2012-08-21 00:21:03 UTC (rev 769) +++ trunk/html/getdata.html.in 2012-08-22 23:27:59 UTC (rev 770) @@ -95,7 +95,8 @@ >GD_FUNCTION_ALIASES</span> before including <span class="syntax" ><b>getdata.h</b></span>. This header file also provides an exhaustive list of translations between the 0.6 API and the modern - <i>C99/C89 APIs</i>. + <i>C99/C89 APIs</i>, which may be of use to developers wishing to + modernise their code. <dt><a href="#headerlegacy">The Legacy API</a></dt> <dd><p>The oldest available API, the Legacy API is the GetData library API provided before GetData-0.3. This API suffers from a number of @@ -229,17 +230,18 @@ </div> </ul> <p>The two APIs use the same library code internally, and differ only in - their function prototypes defined by <span + the function entry points and the function prototypes defined by <span class="syntax"><b>getdata.h</b></span>. <p>If GetData is built without the benefit of a C99 compiler, either because the <span class="syntax">./configure</span> couldn't find a suitable modern compiler, or else because <span - class="syntax"><b>--disable-legacy-api</b></span> was passed to <span + class="syntax"><b>--enable-ansi-c</b></span> was passed to <span class="syntax">./configure</span>, the C99 API will be completely lacking from the library, and get <span class="syntax"><b>getdata.h</b></span> will declare only the C89 API. In this case, <span class="syntax"><b>getdata.h</b></span> will define - <span class="syntax preprocessor">GD_NO_C99_API</span>. + <span class="syntax preprocessor">GD_NO_C99_API</span> to indicate that + the C99 API is missing from the library. <h3><a name="header64">Largefile Support</a></h3> <p>To overcome the file size limit imposed by a 32-bit <span class="syntax @@ -297,7 +299,7 @@ <h2><a name="bindings">Language Bindings</a></h2> <p>GetData is written in C and provides a C API to users. For convenience, bindings are available which translate this API into other - languages. As of the version 0.6.0 release, light-weight bindings are + languages. As of the version 0.8.0 release, light-weight bindings are available for the following languages: <ul> <li>C++ @@ -372,8 +374,8 @@ <td class="syntax">GD_EXCL</td> <td>When specified with <span class="syntax">GD_CREAT</span>, exclusively create the dirfile (i.e. fail if the dirfile already - exists). Does nothing if <span class="syntax">GD_CREAT</span> - is not specified</td> + exists). Ignored if <span class="syntax">GD_CREAT</span> is not + also specified.</td> </tr> <tr> <td class="syntax">GD_TRUNC</td> @@ -383,9 +385,9 @@ </tr> <tr> <td class="syntax">GD_TRUNCSUB</td> - <td>If truncating a dirfile, also delete subdirectories. Does - nothing if <span class="syntax">GD_TRUNC</span> is not - specified</td> + <td>If truncating a dirfile, also delete subdirectories. Ignored + if <span class="syntax">GD_TRUNC</span> is not also + specified.</td> </td> <tr> <td class="syntax">GD_ARM_ENDIAN</td> @@ -4790,7 +4792,8 @@ <span class="syntax"><a href="#gd_cbopen">gd_cbopen()</a></span> or <span class="syntax"><a href="#gd_parser_callback">gd_parser_callback()</a></span>. - GetData never dereferences this pointer. + GetData never dereferences this pointer (so it may be <span class="syntax + literal">NULL</span> if not needed). <div class="inset"> <table> <caption><b>Table 13:</b> Public <span @@ -5052,8 +5055,8 @@ occurs, it is possible that the replacement file has an incorrect name or permissions; again, recheck the dirfile. - <div class="foot"><div class="copy">© 2008, 2009, 2010, 2011 D. V. - Wiebe</div> + <div class="foot"><div class="copy">© 2008, 2009, 2010, 2011, 2012 + D. V. Wiebe</div> <div class="w3c"> <a href="http://validator.w3.org/check?uri=referer"><img src="valid_html.png" alt="Valid HTML 4.01 Strict" height="21" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ket...@us...> - 2012-08-21 00:21:09
|
Revision: 769 http://getdata.svn.sourceforge.net/getdata/?rev=769&view=rev Author: ketiltrout Date: 2012-08-21 00:21:03 +0000 (Tue, 21 Aug 2012) Log Message: ----------- Tag getdata-0.8.1 Added Paths: ----------- tags/getdata-0.8.1/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ket...@us...> - 2012-08-21 00:18:21
|
Revision: 768 http://getdata.svn.sourceforge.net/getdata/?rev=768&view=rev Author: ketiltrout Date: 2012-08-21 00:18:15 +0000 (Tue, 21 Aug 2012) Log Message: ----------- Updates for 0.8.1. Modified Paths: -------------- trunk/html/download.html.in trunk/html/getdata.html.in trunk/html/index.html.in Modified: trunk/html/download.html.in =================================================================== --- trunk/html/download.html.in 2012-08-21 00:17:45 UTC (rev 767) +++ trunk/html/download.html.in 2012-08-21 00:18:15 UTC (rev 768) @@ -21,17 +21,17 @@ <h2><a name="source">Latest Release</a></h2> <p>The complete source code for official releases of the GetData project are available from SourceForge. The latest version of GetData, released - 4 July, 2012, is: + 20 August, 2012, is: <ul> <li><a - href="http://sourceforge.net/projects/getdata/files/getdata/0.8.0/" - >0.8.0</a>. Three packages are available: + href="http://sourceforge.net/projects/getdata/files/getdata/0.8.1/" + >0.8.1</a>. Three packages are available: <dl> - <dt><a href="http://sourceforge.net/projects/getdata/files/getdata/0.8.0/getdata-0.8.0.tar.bz2/download">getdata-0.8.0.tar.bz2</a>/<a href="http://sourceforge.net/projects/getdata/files/getdata/0.8.0/getdata-0.8.0.tar.gz/download">.gz</a>:</dt> + <dt><a href="http://sourceforge.net/projects/getdata/files/getdata/0.8.1/getdata-0.8.1.tar.bz2/download">getdata-0.8.1.tar.bz2</a>/<a href="http://sourceforge.net/projects/getdata/files/getdata/0.8.1/getdata-0.8.1.tar.gz/download">.gz</a>:</dt> <dd>The full source code to the library, with bindings. This package uses the GNU autotools build system, and is designed for POSIX systems (UNIX, Linux, BSD, MacOS X, Cygwin, MSys, &c.)</dd> - <dt><a href="http://sourceforge.net/projects/getdata/files/getdata/0.8.0/getdata_win-0.8.0.zip/download">getdata_win-0.8.0.zip</a>:</dt> + <dt><a href="http://sourceforge.net/projects/getdata/files/getdata/0.8.1/getdata_win-0.8.1.zip/download">getdata_win-0.8.1.zip</a>:</dt> <dd>A reduced source code package, with the CMake build system designed to be built on Microsoft Windows, either using the free MinGW compiler, or else Microsoft's Visual C++ compiler. (The full source @@ -41,7 +41,7 @@ compressed dirfiles, the Legacy API, and a few other features. This build is used in native Microsoft Windows builds of <a href="http://kst.kde.org/">kst-2</a>.</dd> - <dt><a href="http://sourceforge.net/projects/getdata/files/getdata/0.8.0/idl_getdata-0.8.0.tar.bz2/download">idl_getdata-0.8.0.tar.bz2</a>/<a href="http://sourceforge.net/projects/getdata/files/getdata/0.8.0/idl_getdata-0.8.0.tar.gz/download">.gz</a>:</dt> + <dt><a href="http://sourceforge.net/projects/getdata/files/getdata/0.8.1/idl_getdata-0.8.1.tar.bz2/download">idl_getdata-0.8.1.tar.bz2</a>/<a href="http://sourceforge.net/projects/getdata/files/getdata/0.8.1/idl_getdata-0.8.1.tar.gz/download">.gz</a>:</dt> <dd>The Interactive Data Language (IDL) bindings, packaged separately with an autotools build system, designed to be built against an already installed version of GetData. Due to licensing restrictions, @@ -105,7 +105,7 @@ from the directory containing <code>configure.ac</code>. <a href="http://www.gnu.org/software/autoconf/">Autoconf</a> 2.63, or newer, <a href="http://www.gnu.org/software/automake/">automake</a> - 1.10, or newer, and <a + 1.11.2, or newer, and <a href="http://www.gnu.org/software/libtool/">libtool</a> 2.2.6b, or better, are required. You should only have to do this when you check out a new copy of the repository. @@ -127,6 +127,9 @@ <p>Older getdata releases available include the following: <ul> <li><a + href="http://sourceforge.net/projects/getdata/files/getdata/0.8.0/" + >0.8.0</a>—<i>July 2012</i> + <li><a href="http://sourceforge.net/projects/getdata/files/getdata/0.7.3/" >0.7.3</a>—<i>April 2011</i> <li><a Modified: trunk/html/getdata.html.in =================================================================== --- trunk/html/getdata.html.in 2012-08-21 00:17:45 UTC (rev 767) +++ trunk/html/getdata.html.in 2012-08-21 00:18:15 UTC (rev 768) @@ -1894,10 +1894,28 @@ should be free(3)'d by the caller. This function returns zero if successful, or −1 on error. + <h3><a name="gd_linterp_tablename">gd_linterp_tablename()</a> + <span class="manlink"><a + href="man/gd_linterp_tablename.3.html">man page</a></span></h3> + The pathname to the look-up table (LUT) associated with a <b>LINTERP</b> + field may be obtained by calling + <div class="syntax"> + <span class="keyword">const char</span> <span + class="operator">*</span><span + class="identifier">gd_linterp_tablename</span><span + class="operator">(</span><span class="keyword">DIRFILE</span> + <span class="operator">*</span><span + class="identifier">dirfile</span><span class="operator">,</span> + <span class="keyword">const char</span> <span + class="operator">*</span><span + class="identifier">field_code</span><span class="operator">);</span> + </div> + On error, this function returns <span class="syntax literal">NULL</span>. + <h3><a name="gd_raw_filename">gd_raw_filename()</a> <span class="manlink"><a href="man/gd_raw_filename.3.html">man page</a></span></h3> - The pathname of the binary file associated with a <b>RAW</b> field + The pathname of the binary file associated with a <b>RAW</b> field may be obtained by calling <div class="syntax"> <span class="keyword">const char</span> <span @@ -2092,7 +2110,7 @@ <tr> <td class="syntax">const char*</td> <td class="syntax">table<br> - <span class="c89 syntax">u.literp.table</span></td> + <span class="c89 syntax">u.linterp.table</span></td> <td colspan="2">LINTERP</td> <td>Pathname of the look-up table</td> </tr> Modified: trunk/html/index.html.in =================================================================== --- trunk/html/index.html.in 2012-08-21 00:17:45 UTC (rev 767) +++ trunk/html/index.html.in 2012-08-21 00:18:15 UTC (rev 768) @@ -57,10 +57,12 @@ <h2><a name="download">Get GetData</a></h2> <p>The complete source code for official releases of the GetData project - are available from SourceForge. The latest version of GetData, released - 4 July, 2012, is <a - href="http://sourceforge.net/projects/getdata/files/getdata/0.8.0/" - >0.8.0</a>; see: + are available from SourceForge. + <ul><li> + The latest version of GetData, released 20 August, 2012, is <a + href="http://sourceforge.net/projects/getdata/files/getdata/0.8.1/" + >GetData 0.8.1</a>.</ul> + See: <ul><li><a href="download.html">Get GetData</a></ul> <h2><a name="documentation">Documentation</a></h2> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ket...@us...> - 2012-08-21 00:17:52
|
Revision: 767 http://getdata.svn.sourceforge.net/getdata/?rev=767&view=rev Author: ketiltrout Date: 2012-08-21 00:17:45 +0000 (Tue, 21 Aug 2012) Log Message: ----------- GetData-0.8.1 Modified Paths: -------------- trunk/getdata/ChangeLog trunk/getdata/NEWS trunk/getdata/RELEASE_NOTES.in trunk/getdata/cmake/CMakeLists.txt trunk/getdata/m4/version.m4 Modified: trunk/getdata/ChangeLog =================================================================== --- trunk/getdata/ChangeLog 2012-08-20 22:27:42 UTC (rev 766) +++ trunk/getdata/ChangeLog 2012-08-21 00:17:45 UTC (rev 767) @@ -1,3 +1,6 @@ +2012-08-20 D. V. Wiebe <ge...@ke...> svn:767 + GetData-0.8.1 released. + 2012-08-15 D. V. Wiebe <ge...@ke...> svn:760 * src/internal (_GD_IsDirSep): Added. * src/common.c (_GD_CanonicalPath): Call _GD_IsDirSep Modified: trunk/getdata/NEWS =================================================================== --- trunk/getdata/NEWS 2012-08-20 22:27:42 UTC (rev 766) +++ trunk/getdata/NEWS 2012-08-21 00:17:45 UTC (rev 767) @@ -1,4 +1,4 @@ -New in version 0.8.1rc1: +New in version 0.8.1: Library Changes: Modified: trunk/getdata/RELEASE_NOTES.in =================================================================== --- trunk/getdata/RELEASE_NOTES.in 2012-08-20 22:27:42 UTC (rev 766) +++ trunk/getdata/RELEASE_NOTES.in 2012-08-21 00:17:45 UTC (rev 767) @@ -1,4 +1,4 @@ -GetData 0.8.0 is known to compile and pass the test suite on the following +GetData 0.8.1 is known to compile and pass the test suite on the following systems (including C++ and Fortran bindings): Linux: @@ -22,11 +22,11 @@ --------------------------------------------------------------------------- Three packages are available: -* getdata-0.8.0.tar.bz2/.gz: the full source code to the library, with +* getdata-0.8.1.tar.bz2/.gz: the full source code to the library, with bindings. This package uses the GNU autotools build system, and is designed for POSIX systems (UNIX, Linux, BSD, MacOS X, Cygwin, MSys, &c.) -* getdata_win-0.8.0.zip: a reduced source code package, with the CMake +* getdata_win-0.8.1.zip: a reduced source code package, with the CMake build system designed to be built on Microsoft Windows, either using the free MinGW compiler, or else Microsoft's Visual C++ compiler. (The full source package above can also be built using MinGW, if the @@ -35,7 +35,7 @@ package lacks support for compressed dirfiles, the Legacy API, and a few other features. This build is used in native Microsoft Windows builds of kst2. -* idl_getdata-0.8.0.tar.bz2/.gz: the Interactive Data Language (IDL) +* idl_getdata-0.8.1.tar.bz2/.gz: the Interactive Data Language (IDL) bindings, packaged separately with an autotools build system, designed to be built against an already installed version of GetData. Due to licensing restrictions, pre-built packages rarely come with these Modified: trunk/getdata/cmake/CMakeLists.txt =================================================================== --- trunk/getdata/cmake/CMakeLists.txt 2012-08-20 22:27:42 UTC (rev 766) +++ trunk/getdata/cmake/CMakeLists.txt 2012-08-21 00:17:45 UTC (rev 767) @@ -26,7 +26,7 @@ #TODO add configure add_definitions( -DPACKAGE_NAME=\"GetData\" - -DPACKAGE_VERSION=\"0.8.0\" + -DPACKAGE_VERSION=\"0.8.x\" -DPACKAGE_BUGREPORT=\"get...@li...\" -DUNALIGNED_ACCESS_OK ) Modified: trunk/getdata/m4/version.m4 =================================================================== --- trunk/getdata/m4/version.m4 2012-08-20 22:27:42 UTC (rev 766) +++ trunk/getdata/m4/version.m4 2012-08-21 00:17:45 UTC (rev 767) @@ -21,7 +21,7 @@ m4_define(getdata_major, 0) m4_define(getdata_minor, 8) m4_define(getdata_revision, 1) -m4_define(getdata_extra, [rc1]) +m4_define(getdata_extra, []) m4_define(getdata_version, getdata_major.getdata_minor.getdata_revision[]getdata_extra) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ket...@us...> - 2012-08-20 22:27:50
|
Revision: 766 http://getdata.svn.sourceforge.net/getdata/?rev=766&view=rev Author: ketiltrout Date: 2012-08-20 22:27:42 +0000 (Mon, 20 Aug 2012) Log Message: ----------- Fix in-place builds using BSD make. This fix doesn't work with VPATH builds using BSD make, but they're already broken (in which case it's probably best just to use gmake). Modified Paths: -------------- trunk/getdata/bindings/perl/Build.PL.in trunk/getdata/bindings/perl/Makefile.am Added Paths: ----------- trunk/getdata/bindings/perl/t/ Removed Paths: ------------- trunk/getdata/bindings/perl/test/ Property Changed: ---------------- trunk/getdata/bindings/perl/ Property changes on: trunk/getdata/bindings/perl ___________________________________________________________________ Modified: svn:ignore - simple_funcs.xs Makefile.in GetData.pm GetData.c .deps make_parameters.sed Makefile MYMETA.yml MYMETA.json _build Build lib debug.c blib Build.PL t MANIFEST build.stamp + simple_funcs.xs Makefile.in GetData.pm GetData.c .deps make_parameters.sed Makefile MYMETA.yml MYMETA.json _build Build lib debug.c blib Build.PL MANIFEST build.stamp Modified: trunk/getdata/bindings/perl/Build.PL.in =================================================================== --- trunk/getdata/bindings/perl/Build.PL.in 2012-08-20 22:25:50 UTC (rev 765) +++ trunk/getdata/bindings/perl/Build.PL.in 2012-08-20 22:27:42 UTC (rev 766) @@ -35,6 +35,7 @@ perl => '5.6.0', 'Math::Complex' => '1.34' }, + test_files => '@srcdir@/t/*.t', xs_files => { 'lib/GetData.xs' => 'lib/GetData.xs' } ); $build->create_build_script; Modified: trunk/getdata/bindings/perl/Makefile.am =================================================================== --- trunk/getdata/bindings/perl/Makefile.am 2012-08-20 22:25:50 UTC (rev 765) +++ trunk/getdata/bindings/perl/Makefile.am 2012-08-20 22:27:42 UTC (rev 766) @@ -20,15 +20,16 @@ # AUTOMAKE_OPTIONS = foreign -EXTRA_DIST=funclist.pl GetData.xs simple_funcs.pl simple_funcs.xsin typemap \ - GetData.pm.in MANIFEST.in test/big_test.t test/callback.t - if GETDATA_DEBUG TEST_VERBOSE=verbose=1 endif -PERL_TESTS=t/big_test.t t/callback.t +plTESTS=t/big_test.t t/callback.t +PERL_TESTS=$(addprefix ${srcdir}/, $(plTESTS)) +EXTRA_DIST=funclist.pl GetData.xs simple_funcs.pl simple_funcs.xsin typemap \ + GetData.pm.in MANIFEST.in ${plTESTS} + man3dir=${perlmandir} nodist_man3_MANS=blib/libdoc/GetData.$(PERL_MAN3EXT) @@ -37,13 +38,9 @@ perlautogetdatadir=${perldir}/auto/GetData nodist_perlautogetdata_SCRIPTS=blib/arch/auto/GetData/GetData.bs blib/arch/auto/GetData/GetData.so -t lib: - mkdir -p $@ +lib: + mkdir $@ -t/%.t: test/%.t - $(MAKE) t - cat $< > $@ - lib/GetData.xs: GetData.xs $(MAKE) lib cat $(srcdir)/GetData.xs > $@ @@ -90,7 +87,7 @@ $(PERL) Build clean; \ fi rm -f $(BUILT_SOURCES) make_parameters.sed MYMETA.yml MYMETA.json GetData.pm - rm -rf Build _build MANIFEST t build.stamp + rm -rf Build _build MANIFEST build.stamp uninstall-hook: rmdir $(DESTDIR)${perlautogetdatadir} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ket...@us...> - 2012-08-20 22:25:56
|
Revision: 765 http://getdata.svn.sourceforge.net/getdata/?rev=765&view=rev Author: ketiltrout Date: 2012-08-20 22:25:50 +0000 (Mon, 20 Aug 2012) Log Message: ----------- Update. Modified Paths: -------------- trunk/getdata/man/gd_entry.3 trunk/getdata/man/gd_linterp_tablename.3 Modified: trunk/getdata/man/gd_entry.3 =================================================================== --- trunk/getdata/man/gd_entry.3 2012-08-17 21:26:49 UTC (rev 764) +++ trunk/getdata/man/gd_entry.3 2012-08-20 22:25:50 UTC (rev 765) @@ -13,7 +13,7 @@ .\" Texts. A copy of the license is included in the `COPYING.DOC' file .\" as part of this distribution. .\" -.TH gd_entry 3 "21 April 2012" "Version 0.8.0" "GETDATA" +.TH gd_entry 3 "15 August 2012" "Version 0.8.1" "GETDATA" .SH NAME gd_entry \(em retrieve a dirfile field's metadata .SH SYNOPSIS @@ -523,7 +523,10 @@ .PP The .I table -member is the pathname to the look up table on disk. +member is the pathname to the look up table on disk. This the path as it appars +in the format specification. It may be a path relative to the fragment +directory. For an canonicalised, absolute version of this path, see +.BR gd_linterp_tablename (3). .PP The .I in_fields @@ -942,7 +945,7 @@ .BR gd_error (3), .BR gd_error_string (3), .BR gd_field_list (3), +.BR gd_fragmentname (3), +.BR gd_linterp_tablename (3) .BR gd_mplex_lookback (3), -.BR gd_fragmentname (3), -.BR gd_getdata (3), .BR gd_raw_filename (3) Modified: trunk/getdata/man/gd_linterp_tablename.3 =================================================================== --- trunk/getdata/man/gd_linterp_tablename.3 2012-08-17 21:26:49 UTC (rev 764) +++ trunk/getdata/man/gd_linterp_tablename.3 2012-08-20 22:25:50 UTC (rev 765) @@ -38,6 +38,16 @@ .I field_code contains a valid representation suffix, it will be ignored. +Note: this function returns a fully canonicalised, absolute path. The value of +the +.I table +member in a +.B gd_entry_t +object (see +.BR gd_entry (3)) +is the path which appears in the format specification on disk, which may be a +path relative to the fragment directory. + .SH RETURN VALUE On success, .BR gd_linterp_tablename () This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ket...@us...> - 2012-08-17 21:26:56
|
Revision: 764 http://getdata.svn.sourceforge.net/getdata/?rev=764&view=rev Author: ketiltrout Date: 2012-08-17 21:26:49 +0000 (Fri, 17 Aug 2012) Log Message: ----------- Fix input banner after autotyping. More debugging. Modified Paths: -------------- trunk/defile/bin/cli.c trunk/defile/doc/Makefile.am Modified: trunk/defile/bin/cli.c =================================================================== --- trunk/defile/bin/cli.c 2012-08-16 00:18:55 UTC (rev 763) +++ trunk/defile/bin/cli.c 2012-08-17 21:26:49 UTC (rev 764) @@ -194,13 +194,20 @@ char sym[DF_TYPE_MAXLEN + 11]; /* make sure the type is sane */ - if (!DF_ValidType(type, len)) + if (!DF_ValidType(type, len)) { + if (df->mode_flags & DF_MODE_DEBUG) + fprintf(stderr, "defile: invalid type name: %s\n", type); return -1; + } *lib = lt_dlopenext(libpath); - if (*lib == NULL) + if (*lib == NULL) { + if (df->mode_flags & DF_MODE_DEBUG) + fprintf(stderr, "defile: ltdl error opening %s: %s\n", libpath, + lt_dlerror()); return 3; + } /* find the framework */ strcpy(sym, type); @@ -208,6 +215,8 @@ *fwk = (const struct df_input_framework *)lt_dlsym(*lib, sym); if (*fwk == NULL) { + if (df->mode_flags & DF_MODE_DEBUG) + fprintf(stderr, "defile: ltdl error: %s\n", lt_dlerror()); lt_dlclose(*lib); return 2; } @@ -216,6 +225,8 @@ if ((*fwk)->entry == NULL || (*fwk)->name == NULL || strcmp((*fwk)->name, type)) { + if (df->mode_flags & DF_MODE_DEBUG) + fprintf(stderr, "defile: malformed input plugin: %s\n", libpath); lt_dlclose(*lib); return 1; } @@ -1308,7 +1319,7 @@ rcd.default_config = NULL; rcd.flags = 0, rcd.licence = df->input_framework->licence; - rcd.name = df->type; + rcd.name = df->input_framework->name; rcd.options = df->input_framework->opts; rcd.parser = (df_parser_func_t)DF_InputOpt; rcd.usage_preamble = df->input_framework->preamble; Modified: trunk/defile/doc/Makefile.am =================================================================== --- trunk/defile/doc/Makefile.am 2012-08-16 00:18:55 UTC (rev 763) +++ trunk/defile/doc/Makefile.am 2012-08-17 21:26:49 UTC (rev 764) @@ -22,7 +22,7 @@ nodist_man_MANS = defile.1 -man_MANS = defile.1 defile-input.7 df_add_alias.3 df_add_entry.3 \ +man_MANS = defile-input.7 df_add_alias.3 df_add_entry.3 \ df_add_fragment.3 df_add_framedef.3 df_add_lut.3 df_check_abort.3 \ df_copy_file.3 df_field_in_input.3 df_hide.3 df_include.3 \ df_init.3 df_input_name.3 df_mode.3 df_nframes_allowed.3 \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ket...@us...> - 2012-08-16 00:19:04
|
Revision: 763 http://getdata.svn.sourceforge.net/getdata/?rev=763&view=rev Author: ketiltrout Date: 2012-08-16 00:18:55 +0000 (Thu, 16 Aug 2012) Log Message: ----------- Fix LGPL boilerplate Modified Paths: -------------- trunk/defile/bin/rc.c trunk/defile/configure.ac trunk/defile/doc/defile-input.7 Modified: trunk/defile/bin/rc.c =================================================================== --- trunk/defile/bin/rc.c 2012-08-15 18:28:24 UTC (rev 762) +++ trunk/defile/bin/rc.c 2012-08-16 00:18:55 UTC (rev 763) @@ -58,7 +58,7 @@ "FITNESS\nFOR A PARTICULAR PURPOSE. You may redistribute it under the " \ "terms of the GNU\nLesser General Public License, either version 2.1 of the " \ "License, or (at your\noption) any later version.\n\nYou should have " \ -"received a copy of the GNU General Public License along with\n" \ +"received a copy of the GNU Lesser General Public License along with\n" \ "this plugin; if not, write to the Free Software Foundation, Inc.,\n" \ "51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA" Modified: trunk/defile/configure.ac =================================================================== --- trunk/defile/configure.ac 2012-08-15 18:28:24 UTC (rev 762) +++ trunk/defile/configure.ac 2012-08-16 00:18:55 UTC (rev 763) @@ -125,7 +125,7 @@ echo echo "*** Checking for external libraries" echo -PKG_CHECK_MODULES([GETDATA], [getdata >= 0.8.0]) +PKG_CHECK_MODULES([GETDATA], [getdata >= 0.8.1]) AC_SEARCH_LIBS([exp],[m]) AC_SEARCH_LIBS([pthread_create],[pthread]) Modified: trunk/defile/doc/defile-input.7 =================================================================== --- trunk/defile/doc/defile-input.7 2012-08-15 18:28:24 UTC (rev 762) +++ trunk/defile/doc/defile-input.7 2012-08-16 00:18:55 UTC (rev 763) @@ -161,8 +161,10 @@ section below. .PP All of the above members except for +.IR name +and .IR entry -are optional. If unneeded, they should be set to zero. +are optional. If unneeded, they should be set to zero/NULL. .SH INPUT OPTIONS This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ket...@us...> - 2012-08-15 18:28:36
|
Revision: 762 http://getdata.svn.sourceforge.net/getdata/?rev=762&view=rev Author: ketiltrout Date: 2012-08-15 18:28:24 +0000 (Wed, 15 Aug 2012) Log Message: ----------- Fix isfinite check. Modified Paths: -------------- trunk/getdata/configure.ac trunk/getdata/test/get_uint64.c trunk/getdata/test/table.c trunk/getdata/test/test.h Modified: trunk/getdata/configure.ac =================================================================== --- trunk/getdata/configure.ac 2012-08-15 16:27:29 UTC (rev 761) +++ trunk/getdata/configure.ac 2012-08-15 18:28:24 UTC (rev 762) @@ -562,7 +562,7 @@ echo AC_CHECK_HEADERS([asm/unaligned.h Availability.h byteswap.h direct.h fcntl.h \ float.h inttypes.h io.h libgen.h libkern/OSByteOrder.h \ - stddef.h stdint.h sys/endian.h sys/file.h sys/param.h \ + math.h stddef.h stdint.h sys/endian.h sys/file.h sys/param.h \ sys/stat.h sys/types.h sys/wait.h unistd.h]) if test "x$disable_c99" = "xno"; then AC_CHECK_HEADERS([complex.h]) @@ -707,7 +707,7 @@ AC_CHECK_FUNCS([basename _chsize _chsize_s _commit fchmod _fdopen fdopendir \ _finite fpathconf fseeko fseeko64 _fstat fstat64 _fstat64 \ fstatat fstatat64 fsync ftello ftello64 ftruncate ftruncate64 \ - getcwd _getcwd getdelim gmtime_r isfinite isnan _isnan lseek64 \ + getcwd _getcwd getdelim gmtime_r isnan _isnan lseek64 \ _lseeki64 lstat lstat64 _mkdir mkfifo nan _open openat \ pathconf _read readdir_r readlink renameat _rmdir snprintf \ _snprintf stat64 _stat64 _strtoi64 strtoll _strtoui64 strtoull \ @@ -745,6 +745,12 @@ [ Define to 1 if the `mkdir' function takes only one argument.]) fi dnl` +AC_CHECK_DECLS([isfinite],,, + [ +#ifdef HAVE_MATH_H +#include <math.h> +#endif +]) AC_CHECK_DECLS([bswap16, bswap_16, OSSwapInt16],,, [ #ifdef HAVE_BYTESWAP_H Modified: trunk/getdata/test/get_uint64.c =================================================================== --- trunk/getdata/test/get_uint64.c 2012-08-15 16:27:29 UTC (rev 761) +++ trunk/getdata/test/get_uint64.c 2012-08-15 18:28:24 UTC (rev 762) @@ -62,7 +62,7 @@ CHECKI(error, 0); CHECKI(n, 8); for (i = 0; i < 8; ++i) - CHECKUi(i,c[i],0x5000000000000028 + i * 0x0200000000000001); + CHECKUi(i,c[i],0x5000000000000028U + i * 0x0200000000000001U); gd_close(D); Modified: trunk/getdata/test/table.c =================================================================== --- trunk/getdata/test/table.c 2012-08-15 16:27:29 UTC (rev 761) +++ trunk/getdata/test/table.c 2012-08-15 18:28:24 UTC (rev 762) @@ -32,7 +32,6 @@ const char *filedir = "dirfile"; const char *format = "dirfile/format"; const char *format_data = "linterp LINTERP INDEX table\n"; - unsigned char data_data[256]; int fd, error, r = 0; char *path; DIRFILE *D; Modified: trunk/getdata/test/test.h =================================================================== --- trunk/getdata/test/test.h 2012-08-15 16:27:29 UTC (rev 761) +++ trunk/getdata/test/test.h 2012-08-15 18:28:24 UTC (rev 762) @@ -34,7 +34,8 @@ #define isnan _isnan #endif -#if defined HAVE__FINITE && ! defined HAVE_ISFINITE +#if defined HAVE__FINITE && \ + (! defined HAVE_DECL_ISFINITE || HAVE_DECL_ISFINITE == 0) #define isfinite _finite #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ket...@us...> - 2012-08-15 16:27:36
|
Revision: 761 http://getdata.svn.sourceforge.net/getdata/?rev=761&view=rev Author: ketiltrout Date: 2012-08-15 16:27:29 +0000 (Wed, 15 Aug 2012) Log Message: ----------- isfinite(3) for MSDN. Modified Paths: -------------- trunk/getdata/cmake/CMakeLists.txt trunk/getdata/configure.ac trunk/getdata/test/test.h Modified: trunk/getdata/cmake/CMakeLists.txt =================================================================== --- trunk/getdata/cmake/CMakeLists.txt 2012-08-15 08:01:07 UTC (rev 760) +++ trunk/getdata/cmake/CMakeLists.txt 2012-08-15 16:27:29 UTC (rev 761) @@ -49,6 +49,7 @@ -D_USE_MATH_DEFINES -DHAVE__CHSIZE -DHAVE__COMMIT + -DHAVE__FINITE -DHAVE__FSTAT64 -DHAVE__GETCWD -DHAVE__ISNAN Modified: trunk/getdata/configure.ac =================================================================== --- trunk/getdata/configure.ac 2012-08-15 08:01:07 UTC (rev 760) +++ trunk/getdata/configure.ac 2012-08-15 16:27:29 UTC (rev 761) @@ -705,13 +705,13 @@ echo "*** Looking for additional library functions" echo AC_CHECK_FUNCS([basename _chsize _chsize_s _commit fchmod _fdopen fdopendir \ - fpathconf fseeko fseeko64 _fstat fstat64 _fstat64 fstatat \ - fstatat64 fsync ftello ftello64 ftruncate ftruncate64 getcwd \ - _getcwd getdelim gmtime_r isnan _isnan lseek64 _lseeki64 lstat \ - lstat64 _mkdir mkfifo nan _open openat pathconf _read \ - readdir_r readlink renameat _rmdir snprintf _snprintf stat64 \ - _stat64 _strtoi64 strtoll _strtoui64 strtoull _unlink unlinkat \ - _write]) + _finite fpathconf fseeko fseeko64 _fstat fstat64 _fstat64 \ + fstatat fstatat64 fsync ftello ftello64 ftruncate ftruncate64 \ + getcwd _getcwd getdelim gmtime_r isfinite isnan _isnan lseek64 \ + _lseeki64 lstat lstat64 _mkdir mkfifo nan _open openat \ + pathconf _read readdir_r readlink renameat _rmdir snprintf \ + _snprintf stat64 _stat64 _strtoi64 strtoll _strtoui64 strtoull \ + _unlink unlinkat _write]) if test "x$disable_c99" = "xno"; then AC_CHECK_FUNCS([cabs]) fi Modified: trunk/getdata/test/test.h =================================================================== --- trunk/getdata/test/test.h 2012-08-15 08:01:07 UTC (rev 760) +++ trunk/getdata/test/test.h 2012-08-15 16:27:29 UTC (rev 761) @@ -34,6 +34,10 @@ #define isnan _isnan #endif +#if defined HAVE__FINITE && ! defined HAVE_ISFINITE +#define isfinite _finite +#endif + /* System call kludge for Win32 */ #if defined __MSVCRT__ && defined MSYS_SHELL #include <process.h> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |