aboutsummaryrefslogtreecommitdiffstats
path: root/common/estream-printf.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-08-26Switch to the libgpg-error provided estream.Werner Koch1-1855/+0
* configure.ac (NEED_GPG_ERROR_VERSION): Reguire 1.14. (GPGRT_ENABLE_ES_MACROS): Define. (estream_INIT): Remove. * m4/estream.m4: Remove. * common/estream-printf.c, common/estream-printf.h: Remove. * common/estream.c, common/estream.h: Remove. * common/init.c (_init_common_subsystems): Call gpgrt initialization.
2014-08-17estream: Change license from GPL to LPGL.Werner Koch1-6/+6
* common/estream-printf.c, common/estream-printf.h: Change license. * common/estream.c, common/estream.h: Ditto. -- g10 Code is the sole copyright holder of Libestream and thus as CEO I have the rights to to change the license. This copy here in GnuPG is currently the most current one thus the change is recorded in this repository. This change is also deemed valid for all older versions. Signed-off-by: Werner Koch <[email protected]>
2014-06-30estream: Fix minor glitch in "%.*s" format.Werner Koch1-1/+3
* common/estream-printf.c (pr_string): Take care of non-nul terminated strings.
2012-06-05Change all quotes in strings and comments to the new GNU standard.Werner Koch1-1/+1
The asymmetric quotes used by GNU in the past (`...') don't render nicely on modern systems. We now use two \x27 characters ('...'). The proper solution would be to use the correct Unicode symmetric quotes here. However this has the disadvantage that the system requires Unicode support. We don't want that today. If Unicode is available a generated po file can be used to output proper quotes. A simple sed script like the one used for en@quote is sufficient to change them. The changes have been done by applying sed -i "s/\`\([^'\`]*\)'/'\1'/g" to most files and fixing obvious problems by hand. The msgid strings in the po files were fixed with a similar command.
2012-01-20estream: Fix unclean usage of realloc.Werner Koch1-13/+29
* common/estream-printf.c (_ESTREAM_PRINTF_MALLOC): Remove. (_ESTREAM_PRINTF_FREE): Remove. (_ESTREAM_PRINTF_REALLOC): New. (fixed_realloc) [!_ESTREAM_PRINTF_REALLOC]): New. (estream_vasprintf): Use my_printf_realloc instead of my_printf_malloc and my_printf_free. (dynamic_buffer_out): Use my_printf_realloc instead of realloc. -- This bug will never happen in current GnuPG/Libgcrypt because we use the standard memory allocation functions via Libgcrypt. However, when used in other environments it would mess up the heap for an asprintf with an output length larger than ~512 bytes.
2012-01-11estream: Avoid printing leading zeroes by %p on 32 bit systems.Werner Koch1-1/+1
* common/estream-printf.c (pr_pointer): Synchronize definition of AULONG with its use.
2011-02-04Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch1-96/+94
We better do this once and for all instead of cluttering all future commits with diffs of trailing white spaces. In the majority of cases blank or single lines are affected and thus this change won't disturb a git blame too much. For future commits the pre-commit scripts checks that this won't happen again.
2010-03-02First steps towards the W32CE portWerner Koch1-6/+57
2009-09-03Update estream.Werner Koch1-338/+16
2008-10-19Fix a bug in estream_snprintf. Found by a failed t-gettime under Windows.Werner Koch1-10/+40
2007-08-22Updated estream.Werner Koch1-3/+1
More changes for Windows.
2007-08-01Removed unportable testing code. Werner Koch1-135/+77
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2007-06-25Fixed a problem in estream-printf.c.Werner Koch1-16/+19
Changes for Windows (gpgsm -k does now work). Minor cleanups.
2007-05-15Adjusted symbols for printf and updated to latest version.Werner Koch1-12/+12
2007-05-15Use estream_asprintf instead of the GNU asprintf.Werner Koch1-0/+2139