summaryrefslogtreecommitdiff
path: root/utils/hp2ps
Commit message (Collapse)AuthorAgeFilesLines
* Typos in commentsGabor Greif2016-10-211-1/+1
|
* hp2ps: fix invalid PostScript for names with parenthesesBen Gamari2016-07-171-1/+2
| | | | | | | | | | | | | | | | | The names in the .hp files may contain un-matched opening parentheses, so escape them. GHC Trac: #9517 Reviewers: bgamari, austin Reviewed By: bgamari, austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2398 GHC Trac Issues: #9517
* hp2ps: mark local functions as 'static'Sergei Trofimovich2016-02-077-18/+13
| | | | | | | | | | | | | | | | | | Found by uselex.rb: fonttab: [R]: exported from: ./utils/hp2ps/dist/build/Dimensions.o GetString: [R]: exported from: ./utils/hp2ps/dist/build/HpFile.o thestring: [R]: exported from: ./utils/hp2ps/dist/build/HpFile.o auxfp: [R]: exported from: ./utils/hp2ps/dist/build/Main.o dflag: [R]: exported from: ./utils/hp2ps/dist/build/Main.o filter: [R]: exported from: ./utils/hp2ps/dist/build/Main.o iflag: [R]: exported from: ./utils/hp2ps/dist/build/Main.o mflag: [R]: exported from: ./utils/hp2ps/dist/build/Main.o pflag: [R]: exported from: ./utils/hp2ps/dist/build/Main.o psfile: [R]: exported from: ./utils/hp2ps/dist/build/Main.o tflag: [R]: exported from: ./utils/hp2ps/dist/build/Main.o OrderOf: [R]: exported from: ./utils/hp2ps/dist/build/Reorder.o Signed-off-by: Sergei Trofimovich <siarheit@google.com>
* Fix `hp2ps -i-`Thomas Miedema2015-09-151-0/+1
| | | | | | | From the help text: -i[+|-] sort by identifier string (-i+ gives greatest on top) Found by David Binderman.
* Fix identifier parsing in hp2psYuras Shumovich2015-08-291-21/+23
| | | | | | | | | | | | | | | | | Now identifiers can start with a package key, which is a hash, so they may also start with a digit. Identifiers always appear at the beginning of a line, and numbers never appear here, soit's safe to allow identifiers to start with a digit. Test Plan: `concprog002` passes under `threaded2_hT` way Reviewers: austin, bgamari, thomie Reviewed By: austin, bgamari, thomie Differential Revision: https://phabricator.haskell.org/D1175 GHC Trac Issues: #10661
* Delete _MSC_VER when not necessary, fix #10511Bernard Desmyter2015-06-121-1/+1
| | | | | | | Simplify some preprocessor expressions involving `_MSC_VER` because `_WIN32` is always defined when `_MSC_VER` is. Differential Revision: https://phabricator.haskell.org/D981
* Removes all occurrences of __MINGW32__ (#10485)Thomas Miedema2015-06-111-1/+1
| | | | | | | | | | In Haskell files, replace `__MINGW32__` by `mingw32_HOST_OS`. In .c and .h files, delete `__MINGW32__` when `_WIN32` is also tested because `_WIN32` is always defined when `__MINGW32__` is. Also replace `__MINGW32__` by `_WIN32` when used standalone for consistency. Differential Revision: https://phabricator.haskell.org/D971
* Add a cast to new code in hp2psReid Barton2014-06-301-1/+1
| | | | | For parallelism with the existing code. I don't think it should make any difference.
* Avoid integer overflow in hp2ps (#9145)Reid Barton2014-06-301-3/+8
| | | | | This is slightly hackish, but hp2ps is already convoluted enough that I don't feel bad about it.
* Fix memleak in hp2psNicolas Trangez2014-04-271-0/+2
| | | | | | Issue discovered by Coverity scan, CID 43167. Signed-off-by: Austin Seipp <austin@well-typed.com>
* Fix potential out-of-bound memory accessNicolas Trangez2014-04-271-2/+2
| | | | | | Issue discovered by Coverity scan, CID 43165. Signed-off-by: Austin Seipp <austin@well-typed.com>
* Document -c in hp2hs(1)Joachim Breitner2013-10-171-0/+2
| | | | This fixes #8452.
* Globally replace "hackage.haskell.org" with "ghc.haskell.org"Simon Marlow2013-10-012-4/+4
|
* Make validate play nice with clang (for Xcode 5 command line tools)Manuel M T Chakravarty2013-09-041-4/+8
| | | | * This partially fixes #8148. However, --with-ghc-4.8 will still not work given the rather dubious m4 macros and the failures in the test suite due to '-nodefaultlibs' still need to be fixed.
* Typo in hp2ps help outputJoachim Breitner2013-06-131-1/+1
| | | | As spotted by Julian Gilbey and reported at http://bugs.debian.org/710305
* Automatically add the $(exeext) to program namesIan Lynagh2013-03-031-1/+1
| | | | | | | We now define _PROGNAME, and _PROG is automatically defined with $(exeext). This will shortly automatically use the right exeext depending on what stage it is being compiled with (exeext may be different for different stages when cross-compiling).
* add $(CrossCompilePrefix) to hp2ps (#7639)Simon Marlow2013-02-011-1/+1
|
* Build the dynamic way by default on Linux/amd64Ian Lynagh2012-10-031-7/+8
| | | | | | | | | | | | | This required various build system changes to get the build to go through. In the inplace shell wrappers, we set LD_LIBRARY_PATH to allow programs to find their libraries. In the future, we might change the inplace tree to be the same shape as an installed tree instead. However, this would mean changing the way we do installation, as currently we use cabal's installation methods to install the libraries, but that only works if the libraries are under libraries/foo/dist-install/build/..., rather than in inplace/lib/...
* escape(): don't forget the final '\0'Simon Marlow2012-05-231-0/+1
| | | | | Hopefully should fix random "bad heap profile" failures in the nightly builds.
* hp2ps: escape backslashes when generating output file (#5800).Paolo Capriotti2012-03-221-2/+20
|
* RefactoringIan Lynagh2012-01-081-1/+1
| | | | | This is working towards being able to put ghcautoconf.h and ghcplatform.h in includes/dist
* Remove some antiquated C constructsIan Lynagh2011-08-0118-144/+85
| | | | | | | | Fixes validate on amd64/Linux with: SRC_CC_OPTS += -Wmissing-parameter-type SRC_CC_OPTS += -Wold-style-declaration SRC_CC_OPTS += -Wold-style-definition
* Handle EXTRA_LIBRARIES when building programsIan Lynagh2010-09-301-1/+1
| | | | And set hp2ps's EXTRA_LIBRARIES. Based on a patch from Sergei Trofimovich.
* Link programs that have no Haskell objects with gcc rather than ghcIan Lynagh2010-07-161-0/+1
|
* Detect EOF when trying to parse a string in hp2psIan Lynagh2010-05-061-1/+4
|
* Fix hp2ps when the .hp file has large string literalsIan Lynagh2010-05-051-4/+13
|
* Add -Iincludes to hp2ps's CC_OPTSIan Lynagh2009-12-081-0/+2
| | | | Making C deps for hp2ps always failed, but we used to carry on regardless
* Add a header to all build system files:Simon Marlow2009-04-282-0/+24
| | | | | | | | | | | | | | # ----------------------------------------------------------------------------- # # (c) 2009 The University of Glasgow # # This file is part of the GHC build system. # # To understand how the build system works and how to modify it, see # http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture # http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying # # -----------------------------------------------------------------------------
* GHC new build system megapatchIan Lynagh2009-04-263-21/+14
|
* bindists are now some way towards workingIan Lynagh2008-08-101-4/+2
|
* FIX #1955: confusion between .exe.hp and .hp suffixes for heap profilesSimon Marlow2008-05-191-1/+0
| | | | Now we use <prog>.hp and <prog>.prof consistently.
* Mac OS X deployment target: piping opts through MakefilesManuel M T Chakravarty2008-02-211-0/+3
|
* Fix bindist creationIan Lynagh2007-06-011-0/+5
| | | | | Bindists should now work again, when doing "make install" at least. "make in-place" is probably still broken.
* Windows: the .hp file is <prog>.exe.hpSimon Marlow2007-02-281-1/+5
|
* Be compatible with older C standardsIan Lynagh2006-11-141-1/+3
|
* multipage_hp2psRavi Nanavati2006-09-298-16/+52
| | | | | | | | | | Add support for splitting the key index over multiple pages in hp2ps Multipage support can be requested with the -M command-line flag or inferred if the number of bands requested is greater than 20 (the limit on the number of bands displayed has been removed) Please include this change in the 6.6 branch as well as HEAD
* Reorganisation of the source treeSimon Marlow2006-04-0742-0/+3457
Most of the other users of the fptools build system have migrated to Cabal, and with the move to darcs we can now flatten the source tree without losing history, so here goes. The main change is that the ghc/ subdir is gone, and most of what it contained is now at the top level. The build system now makes no pretense at being multi-project, it is just the GHC build system. No doubt this will break many things, and there will be a period of instability while we fix the dependencies. A straightforward build should work, but I haven't yet fixed binary/source distributions. Changes to the Building Guide will follow, too.