summaryrefslogtreecommitdiffstats
path: root/hl/src/H5LTanalyze.c
Commit message (Collapse)AuthorAgeFilesLines
* Made private my_yyinput function static (#618)Sean McBride2021-05-041-2/+2
| | | This prevents it being exported as a public symbol.
* Update h5LT files with latest flex and Bison available on jelly (#502)Larry Knox2021-03-241-566/+808
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Modify temporary rpath for testing in java example scripts. * Update URL in source file Copyright headers for web copy of COPYING (license) file. * Add release_docs/code-conventions.md file. * Add script to test h5py. * Fix script error. * Add file h5pytest.yml. * Test declaration of counter variables in for loops. * Committing clang-format changes * Committing clang-format changes * Added [] to line 126 of H5LTanalyze.l. Ran bin/genparser with flex v2.6.4 and Bison v3.0.4 on jelly. * Revert "Added [] to line 126 of H5LTanalyze.l." This reverts commit e4a9cee441efa75b16a8ee030c86189e186dd266. * Revert extra commits to match canonical develop. * Added [] to H5LTanalyze.l line 126 to eliminate warning "rule could not be matched". Ran bin/genparser hl/src with flex v2.6.4 and Bison v3.0.4 on jelly. * Added HD to strdup in H5LTparse.y line 338. Ran bin/genparser hlsrc again. * Removed line 126 from H5LTanalyze.l - previous line matches. Added previously removed line 318 of H5LTparse.y to fix hl_test_lite failure. Ran bin/genparser. Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Simplified hl parsing (#399)David Young2021-03-151-609/+371
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Stop using global variables to share parse context with the lexer. The lexer uses an unconventional strategy for parsing lexical categories NUMBER (decimal numbers) and STRING (double-quoted strings) that involves sharing the parse context with the lexer using global variables. There are a couple of problems with that. First, the lexer is too complicated for the simple tokenization it performs—it's hard to tell if it is correct. Second, as @seanm points out, the shared global variables spill into the namespace shared by other libraries and application programs—e.g., VTK. * Regenerate source files from *.[yl]. * Replace strndup, which isn't available on Windows, with a custom routine, `trim_quotes`, that produces a copy of its `const char *` argument with leading and trailing double quotes ('"') removed. While I am here, remove the unnecessary statement `BEGIN INITIAL;`, which I should have deleted in a previous commit. * Regenerate .c from .l. * You haven't programmed in C until you have programmed in High-Definition (HD) C. * \#include "H5private.h" for HD* definitions. * Regenerate *.[ch] from *.[yl].
* Update license url part2 (#333)Larry Knox2021-02-171-1/+1
| | | | | | * Modify temporary rpath for testing in java example scripts. * Update URL in source file Copyright headers for web copy of COPYING file - files not in src or test.
* Fix clang unknown pragma warnings (#337)Sean2021-02-151-1/+3
| | | | | Although clang defines __GNUC__ and supports most gcc warnings, it doesn't support all, and will in fact even warn about an unknown pragma. Guard appropriately.
* Update reformatting settings, trace wrapping, and printf-format strings (#22)Quincey Koziol2020-10-061-2006/+1872
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add BEGIN_FUNC / CATCH / END_FUNC to macros * Remove incorrect trailing '{' * Update trace script to wrap H5TRACE macros at 110 characters and improve comments for code that performs this operation. * Clean up printf-formatting in H5public.h and correct some oversights in the code. * Reformat with BEGIN_FUNC / END_FUNC handled correctly by clang-format * Run clang-format on changes. * Correct H5_SIZEOF_HSIZE_T/H5_SIZEOF_HSSIZE_T macros to match typedef. * And make the undef value match also. * Update comment * Update clang-format actions to exclude generated files. * Post-process generated H5LTparse.h file as well as H5LTparse.c file. * Fix formatting * Update version of github clang-format action
* Fix VFD h5repacktest (#20)Allen Byrne2020-10-061-93/+83
| | | | | | | | | | | | | | * h5repacktest VFD fix and formatting changes * Fix memory leak in H5PL__find_plugin_in_path When encountering a directory, the current loop iteration was skipped without freeing the memory allocated for the path. * Refactor parser GCC diagnostic statements * genparser on jelly with default bison/flex Co-authored-by: Michael Kuhn <michael.kuhn@ovgu.de>
* Clang-format of source filesAllen Byrne2020-09-301-1798/+1688
|
* Adds -Wnull-dereference to the warnings we ignore in flex/bisonDana Robinson2020-08-061-452/+711
| | | | generated code (that we have no control over).
* Trim trailing whitespaceQuincey Koziol2020-04-201-75/+75
|
* TRILAB-192 update LTparse filesAllen Byrne2020-04-071-573/+321
|
* Cleaned up remaining warnings in high-level library.Dana Robinson2020-01-301-398/+645
|
* Add support for GCC9, update warnhist script, and clean up warnings.Quincey Koziol2019-07-031-106/+95
|
* Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to ↵Larry Knox2017-04-251-6/+4
| | | | | | | | | | hdf5_1_10 * commit '54957d37f5aa73912763dbb6e308555e863c43f4': Commit copyright header change for src/H5PLpkg.c which was added after running script to make changes. Add new files in release_docs to MANIFEST. Cimmit changes to Makefile.in(s) and H5PL.c that resulted from running autogen.sh. Merge pull request #407 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10_1 to hdf5_1_10_1 Change copyright headers to replace url referring to file to be removed and replace it with new url for COPYING file.
* [svn-r28553] Merge of r28436 from revise_chunks. Cleans up warnings exposedDana Robinson2015-12-101-76/+83
| | | | | | | by gcc 5.2 in the flex/bison code. Tested on: 64-bit Ubuntu 15.10 (Linux 4.2.0 x86_64) gcc 5.2.1 serial only
* [svn-r28332] Updated autogen.sh to not run flex/bison.Dana Robinson2015-11-131-0/+2576
| | | | | | | | | This was giving a lot of users headaches and the parser code rarely changes. There is now a new script (bin/genparser) which can be run as needed. Tested on: Ubuntu 15.10 (x86_64 Linux 4.2.0) gcc 5.2.1, flex 2.5.39, bison 3.0.2
* [svn-r27828] Removed Perl-generated header files and H5LT parse code created ↵Dana Robinson2015-09-181-2555/+0
| | | | | | by flex/bison. Tested on: jam
* [svn-r27802] Added an explicit -I m4 to the aclocal line.Dana Robinson2015-09-161-0/+1
| | | | | | The files in the m4 directory were not getting picked up on some platforms. Tested on: jam
* [svn-r26351] Adds warning prevention pragmas, etc. to flex- and ↵Dana Robinson2015-03-041-0/+19
| | | | | | | | bison-generated code. Fixes: HDFFV-9149 Tested on: jam w/ gcc 4.1 and koala w/ gcc 4.9
* [svn-r25506] Snapshot version 1.9 release 191HDF Tester2014-08-031-1/+1
|
* [svn-r25496] Description:Quincey Koziol2014-07-301-105/+106
| | | | | | | | | Merge 64-bit ID changes from branch to trunk. (Plus a few minor cleanups that aren't on the branch) Tested on: Mac OSX/64 10.9.4 (amazon) w/C++ & FORTRAN (h5committested on branch already for a week)
* [svn-r25302] Add nounistd option to flex command for windows caompatibilityAllen Byrne2014-06-171-10/+2
|
* [svn-r25300] Add flex / bison commands to bin script and regenerate hl files ↵Allen Byrne2014-06-161-704/+889
| | | | | | | using latest versions. No other files touched. Tested: h5committest
* [svn-r24987] HDFFV-8709, HDFFV-8776, HDFFV-8777, HDFFV-8778Allen Byrne2014-04-081-3/+3
| | | | | | Apply user patches, regenerate and patch results for windows. Miminum changes tested locally
* [svn-r24935] Correct line numbersAllen Byrne2014-03-311-73/+73
|
* [svn-r24875] Description:Quincey Koziol2014-03-241-6/+2
| | | | | | | | Update with corresponding information that was changed in hl/src/H5Tanalyze.l in r24869. Tested on: Linux 2.6.32-431.5.1.el6.ppc64/64 (ostrich)
* [svn-r24270] checkin coverity changes from 10/4/2013.Mohamad Chaarawi2013-10-091-3/+6
| | | | tested with h5committest
* [svn-r23854] HDFFV-8302: Add macros/code function to use coorect Windows ↵Allen Byrne2013-07-011-11/+19
| | | | | | (v)snprintf statement. Also fix use other uses of macros for windows. Tested
* [svn-r22754] Issue 8140 - return value is missing for H5LTyyerror in ↵Raymond Lu2012-09-121-16/+26
| | | | | | | | H5LTanalyze.l. I put "return 0" in because the program should continue even though there is an error. Tested on jam - simple change.
* [svn-r19336] Change #ifndef _WIN32 to #ifdef H5_HAVE_UNISTD_HAllen Byrne2010-09-011-3/+3
| | | | Tested: windows and local linux
* [svn-r15628] Description:Quincey Koziol2008-09-161-10/+10
| | | | | | | | | | | | | Remove trailing whitespace from C/C++ source files, with the following script: foreach f (*.[ch] *.cpp) sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f end Tested on: Mac OS X/32 10.5.5 (amazon) No need for h5committest, just whitespace changes...
* [svn-r14103] A user reported that the files generated from Lex and Yacc in ↵Raymond Lu2007-08-231-92/+112
| | | | | | | the library conflict with his application with Lex and Yacc. To solve the problem of multiple definitions of Lex or Yacc functions or variables, use the -P or -p command option to change the prefix of these functions and variables from yy to H5LTyy. Tested on kagiso, linew, smirom.
* [svn-r13766] In Visual Studio 2005 for 64-bit, _WIN32 is defined, but not ↵Scott Wegner2007-05-181-2/+2
| | | | | | | WIN32, so I've standardized all #ifdef's to use _WIN32. This should not affect any other platform. Tested: Visual Studio (32- and 64-bit) on Win XP
* [svn-r13253] Updated all C and C++ style source code files with the THG ↵Albert Cheng2007-02-071-2/+3
| | | | | | | | | copyright notice. Tested platform: Kagiso only since it is only a comment block change. If it works in one machine, it should work in all, I hope. Still need to check the parallel build on copper.
* [svn-r12440] Purpose:Quincey Koziol2006-06-271-10/+10
| | | | | | | | | | | Code cleanup Description: Trim trailing whitespace in Makefile.am and C/C++ source files to make diffing changes easier. Platforms tested: None necessary, whitespace only change
* [svn-r12351] Purpose: Follow-up what's committed yesterday.Raymond Lu2006-05-171-71/+76
| | | | | | | | | | | | Description: Yesterday, a definition of the macro YY_BUF_SIZE of 256KB was committed in, but copper complained it can't be redefined. Solution: Added #ifdef and #undef to make sure the macro is undefined first. Also integrated a complicated compound type test. It reads input from a text file. The datatype is unusually large, of 101 member fields. Platforms tested: h5committest and fuss.
* [svn-r12350] Purpose: Increase capacityRaymond Lu2006-05-161-72/+86
| | | | | | | | | | Description: The default size for input buffer of Lex is only 8K. Some application has input string far bigger than it. Solution: Increase the size by defining YY_BUFFER_SIZE to be 256K (262144) in H5LTanalyze.l Platforms tested: fuss - simple change.
* [svn-r11882] Purpose: RevisionRaymond Lu2006-01-161-411/+441
| | | | | | | | | Description: Revise a few details of H5LTtext_to_dtype() and H5LTdtype_to_text(), 1. changed the DDL definition of string, opaque, and compound types. 2. added a new parameter of H5LT_lang_t type to these two functions. Platforms tested: h5committest and fuss.
* [svn-r11832] Purpose: Rename files and change grammar rule.Raymond Lu2005-12-221-0/+2270
Description: Renamed lex.yy.c to H5LTanalyze.c, y.tab.c to H5LTparse.c, and y.tab.h to H5LTparse.h in hl/src. Changed definition of opaque type to ommit the tag. Changed the test for opaque type in hl/test, too. Platforms tested: h5committest, fuss, and sleipnir. Misc. update: MANIFEST