aboutsummaryrefslogtreecommitdiff
path: root/src/lib/krb5/krb/deltat.c
AgeCommit message (Collapse)AuthorFilesLines
2023-04-10Fix indentation in x-deltat.yGreg Hudson1-3/+3
clang 14 issues a warning for having the next line at the same indentation level as the if body.
2019-06-07Update HTTP linksMichael Mattioli1-1/+1
Move http links to https where appropriate. Update links which have moved. Remove a couple of links which no longer work and have no obvious replacement. Remove a link from a comment in the German translation which does not appear to be related to the message. [ghudson@mit.edu: adjusted changes; rewrote commit message]
2018-10-26Update auto-generated filesGreg Hudson1-20/+22
Regenerate dependency files and mit-krb5.pot. Regenerate man pages and NOTICE with python-sphinx 1.6.7. Regenerate deltat.c with bison 3.0.4. Update config.guess and config.sub from upstream (commit 2fa97a8a0ed37bec720bd118d65e674cebf50404).
2017-06-15Turn off -Wmaybe-uninitializedGreg Hudson1-40/+37
In gcc, maybe-uninitialized gives different warnings depending on the optimization level, and in our experience usually gives false positives. We don't ask for it (except implicitly through -Wall), but gcc bundles it into the error behavior of -Werror=uninitialized. Explicitly turn it off so that builds with -Og and -Os don't error out.
2017-04-12Fix unknown pragma with clang on x-deltat.yRobbie Harwood1-37/+39
Also re-generate deltat.c in order to clear the warning.
2015-08-10Visual Studio 2015 build fixesThomas Sondergaard1-40/+40
Define HAVE_VSNPRINTF for VS2015 or newer. Avoid putting constants directly after string literals without whitespace, or the VS2015 compiler thinks it's a string suffix. Prefix the OVERFLOW identifier in x-deltat.y (along with NUM and LONGNUM for consistency) to avoid a conflict with math.h. Regenerate deltat.c. [ghudson@mit.edu: squashed three commits and condensed commit messages; avoid creating long lines] ticket: 8231
2014-07-08Include autoconf.h before system headersGreg Hudson1-2/+1
Include autoconf.h (either directly or via proxy) before system headers, so that feature test macros defined there can affect the system namespace. Where include order was changed, eliminate some redundant or unnecessary includes. ticket: 7961
2014-06-01Make x-deltat.y work with bison 3Greg Hudson1-750/+619
Bison 3 removed support for YYPARSE_PARAM and YYLEX_PARAM, breaking x-deltat.y. Use %parse-param and %lex-param instead. (In Bison 3 we could use just %param, but that doesn't work in 2.x.) The parameter added by %parse-param is also passed to yyerror, so adjust the macro we use to suppress yyerror accordingly. Also use "%define api.pure" instead of "%pure_parser", which was deprecated in bison 2.3b. (The correct spelling was actually "%pure-parser", and bison 3 generates a warning about the underscore spelling.) Regenerate deltat.c using the new x-deltat.y and bison 3.0.2. ticket: 7923
2012-01-27Suppress maybe-uninitialized warning in x-deltat.yGreg Hudson1-23/+24
Recent versions of gcc can generate a maybe-uninitialized warning from bison output instead of a regular uninitialized warning. Suppress both. Fix from nalin@redhat.com. ticket: 7080 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25665 dc483132-0cff-0310-8789-dd5450dbe970
2011-09-06Newer GCCs optimizer catches a variable used without initializationEzra Peisach1-456/+829
in the bison library code. Use a GCC pragma to suppress. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25163 dc483132-0cff-0310-8789-dd5450dbe970
2011-03-09Adjust most C source files to match the new standards for copyrightGreg Hudson1-3/+4
and license comments. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24695 dc483132-0cff-0310-8789-dd5450dbe970
2009-10-31make mark-cstyleTom Yu1-9/+7
make reindent git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23100 dc483132-0cff-0310-8789-dd5450dbe970
2005-05-20Implement RFC 3961 PRFSam Hartman1-18/+26
Add krb5_c_prf, a function that implements the RFC 3961 PRF. As part of this change, the krb5_init_keyblock and krb5 free routines move to libk5crypto. Public stubs remain in libkrb5, but the actual implementation is an internal interface in libk5crypto ticket: new Tags: enhancement git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17219 dc483132-0cff-0310-8789-dd5450dbe970
2005-04-13* Makefile.in (BISONFLAGS): Drop -v.Ken Raeburn1-21/+21
($(srcdir)/deltat.c): Change to source directory before rebuilding, so path to source tree doesn't get inserted. (deltat.c rebuilt) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17178 dc483132-0cff-0310-8789-dd5450dbe970
2005-03-03time-delta parser doesn't work on HP-UX 10Ken Raeburn1-699/+1022
A build on Lenny's machine (built with gcc 2.7, thread support disabled, static libraries only) is failing tests because the HP header files define "WS" as a macro that expands to 2, while the delta-t grammar uses "WS" as the name of a terminal symbol (which under bison turns into a C macro). Renaming the terminal in the grammar (and custom lexer) fixes the problem. * x-deltat.y (tok_WS): Renamed terminal from "WS", which conflicts with HP-UX 10 header files. Updated all productions. (mylex): Updated. * Makefile.in ($(srcdir)/deltat.c): Enable dependencies in maintainer mode. * deltat.c: Updated. ticket: new target_version: 1.4.1 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17110 dc483132-0cff-0310-8789-dd5450dbe970
2004-10-13krb5_string_to_deltat should default to seconds if no unit is provided. If ↵Alexandra Ellwood1-720/+528
the format is invalid, it should return a distinct error (KRB5_DELTAT_BADFORMAT, not EINVAL) ticket: 2734 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16816 dc483132-0cff-0310-8789-dd5450dbe970
2002-09-03protoizeKen Raeburn1-507/+701
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14812 dc483132-0cff-0310-8789-dd5450dbe970
2001-10-06Danilo also says we can get rid of _MSDOS (Win16) tests, and explicit ↵Ken Raeburn1-7/+8
FAR/NEAR specs git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13786 dc483132-0cff-0310-8789-dd5450dbe970
2001-10-04Danilo says we can get rid of the DLLIMP stuff nowKen Raeburn1-1/+1
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13775 dc483132-0cff-0310-8789-dd5450dbe970
2001-02-16 * t_deltat.c (main): Test of overflow and underflow of krb5_int32Ezra Peisach1-100/+158
* x-deltat.y: Test for over/underflow of krb5_int32 for a krb5_deltat. Return EINVAL. [krb5-libs/922] * deltat.c: Regenerated from x-deltat.y * str_conv.c (krb5_string_to_timestamp): Do not accept a time format that only partially matches the input string. [krb5-lib/922] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13007 dc483132-0cff-0310-8789-dd5450dbe970
1999-12-06merge 1.1 branch, to 12/1/99Ken Raeburn1-0/+1063
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11948 dc483132-0cff-0310-8789-dd5450dbe970