summaryrefslogtreecommitdiff
path: root/src/AsciiSrc.c
AgeCommit message (Collapse)Author
2023-03-27Set close-on-exec when opening filesAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-05-07Fix spelling/wording issuesAlan Coopersmith
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-07-01build-fixes when _CONST_X_STRING is definedThomas E. Dickey
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2018-09-30Bug 24635: File Descriptor leaks in libxaw-1.0.7Eric Sesterhenn
http://bugs.freedesktop.org/show_bug.cgi?id=24635 (Adapted from libXaw commit f373e193a48eaf6d799d0b6ad32fd58d8ae8b3bd.) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-11-07Use SEEK_* names instead of raw numbers for fseek whence argumentAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-11-07Just use C89 size_t instead of rolling our own Size_t & Off_tAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2013-07-06Remove support for pre-C89 headers (unifdef -UX_NOT_STDC_ENV)Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-08Make WriteToFile take constified argumentsAlan Coopersmith
Fixes compiler warning: "AsciiSrc.c", line 858: warning: argument #2 is incompatible with prototype: prototype: pointer to char : "AsciiSrc.c", line 118 argument : pointer to const char Has to use _XtString (#define char *) instead of String (typedef char *) to correctly be a pointer to const chars instead of a const pointer to chars. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2011-09-04Add conditional include config.h to source files as done in libXawGaetan Nadon
Expections: TexTr.c, sharedlib.c ans generated lex and yacc C code. XawI18n.h needs HAVE_WCTYPE_H and HAVE_WCHAR_H. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-01Include Xaw3dP.h using #include <X11/Xaw3d/Xaw3dP.h>Gaetan Nadon
All published Xaw3d header file are included this way. The -I directive to include/X11/Xaw3d is removed which will alert developers not to include header files with quotes unless they are in the /src directory. Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-26AsciiSrc: Fix old-style function definitionsYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-24unifdef -DNeedFunctionPrototypes -DNeedVarargsPrototypesYaakov Selkowitz
This is the first step to removing old-style function definition warnings. Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-02Strip trailing whitespace.Matt Turner
Signed-off-by: Matt Turner <mattst88@gmail.com>
2011-08-01Purge CVS tags.Matt Turner
Signed-off-by: Matt Turner <mattst88@gmail.com>
2011-08-01Move sources to src/.Matt Turner
Signed-off-by: Matt Turner <mattst88@gmail.com>