summaryrefslogtreecommitdiff
path: root/util.c
AgeCommit message (Collapse)AuthorFilesLines
2024-02-24unifdef __UNIXOS2__Alan Coopersmith1-6/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-09-11Fix segfault when tags file isn't foundNiclas Zeising1-2/+4
Fix a segfault when the tags file isn't found. xedit tries to construct a path to the tags file (by defailt ${HOME}/tags), using amongst other things basename(3). However, basename is called with an immutable string which causes segfaults on FreeBSD, since basename(3) uses the provided buffer to store it's result. Change the code to duplicate the string with strdup() and call basename on the duplicated string instead.
2014-09-09Copious const cleanupAlan Coopersmith1-4/+4
Removes 1554 gcc warnings of "discards ‘const’ qualifier" Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-05-31Use proper pointer when computing "realpath" of a new file.pcpa1-1/+1
In some special conditions it previously could omit a slash, and instead of creating foo/bar/baz would create foo/barbaz. Signed-off-by: pcpa <paulo.cesar.pereira.de.andrade@gmail.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2008-07-08 CancelFindFile is almost the same as XeditFocus, and could be merged in aPaulo Cesar Pereira de Andrade1-0/+2
same Xt action. For the moment, automatically leave line_edit in XeditFocus. There is one other bug that should be fixed, that I am trying to repeat (having the same file loaded twice when using tags) before a new release. Thre is also a problem in Xaw when deleting large amounts of selections that crashes xedit, aparently due to Xaw Text widget doing some wrong math and attempting to allocate a huge chunk of memory.
2008-07-02Warn if a newer version of a file exists before overwritting it.Paulo Cesar Pereira de Andrade1-0/+1
2008-07-02Add a tags interface to xedit.Paulo Cesar Pereira de Andrade1-0/+2
To use the tags, first create a tags file with a command like "ctags -R". The interface can be disabled with resources, see the updated man page. Tag files are searched descending to the root directory. Multiple tags files are properly handled, and multiple symbol definitions can be searched.
2008-07-02Fix several generic bugs including:Paulo Cesar Pereira de Andrade1-34/+94
o Several memory read/write errors. o Implement smarter XeditPrintf that will show how many times a text has been printed. o Check all arguments to XeditPrintf to ensure the '%' character cannot be sent to it. o Some minor reindentation to code that still had the original 2 spaces indentation.
2005-10-20programs/xedit/xedit.hAlan Hourihane1-0/+1
//bugs.freedesktop.org/show_bug.cgi?id=790)
2005-04-20Move variable declaration to top. Makes gcc2 happy.sco_port_update-baseXORG-6_8_99_9XORG-6_8_99_8XORG-6_8_99_7XORG-6_8_99_6XORG-6_8_99_5XORG-6_8_99_4XORG-6_8_99_14XORG-6_8_99_13XORG-6_8_99_12XORG-6_8_99_11XORG-6_8_99_10Alexander Gottwald1-1/+2
2005-04-11xc/programs/Xserver/Xprint/attributes.cXORG-6_8_99_3Roland Mainz1-2/+32
xc/programs/glxgears/glxgears.c xc/programs/xdbedizzy/xdbedizzy.c xc/programs/xedit/Imakefile xc/programs/xedit/Xedit-xprint.ad xc/programs/xedit/util.c xc/programs/xedit/xedit.h xc/programs/xlogo/print.c xc/programs/xlogo/xlogo.c xc/programs/xlogo/xlogo.h xc/programs/xman/Imakefile xc/programs/xman/print.h xc/programs/xmore/Imakefile xc/programs/xmore/print.c xc/programs/xmore/print.h xc/programs/xmore/printdialog.c xc/programs/xphelloworld/xpawhelloworld/xpawhelloworld.c xc/programs/xphelloworld/xphelloworld/xphelloworld.c xc/programs/xphelloworld/xpsimplehelloworld/xpsimplehelloworld.c xc/programs/xphelloworld/xpxmhelloworld/xpxmhelloworld.c //bugs.freedesktop.org/show_bug.cgi?id=790) attachment #2379 (https://bugs.freedesktop.org/attachment.cgi?id=2379) Implement support client+Xserver support for passing output (stdout+stderr) of the spooler command started by the Xprint server back to the application using the "xp-spooler-command-results" XPJobAttr attribute (applications can fetch the attribute value after the XPEndJobNotify event was received; more details can be found in http://xprint.mozdev.org/docs/dtprint_fspec.ps).
2004-09-02Restore xman and xedit changes that were previously reverted, and makerel-0-6-1lg3d-rel-0-7-0lg3d-baseXORG-6_8_1XORG-6_8_0XORG-6_7_99_904Kevin E Martin1-0/+2
Xprint support optional (Bug #1273, Roland Mainz).
2004-04-23Merging XORG-CURRENT into trunkXACE-SELINUX-MERGEEgbert Eich1-1/+1
2004-03-14Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich1-1/+1
2004-03-03Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0Egbert Eich1-1/+1
2004-02-26readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich1-1/+1
2004-02-26Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich1-1/+1
2003-11-25XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_16Kaleb Keithley1-3/+3
2003-11-14Initial revisionKaleb Keithley1-0/+896