summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/version.cc
Commit message (Collapse)AuthorAgeFilesLines
* Axe a buttload of useless #includes.Adam Borowski2013-11-031-1/+0
| | | | | Can't test Android, MSVC or Mac, but a very brief glance at the diff suggests it's unlikely they're affected.
* Don't include literal "%s" in compiler info.Adam Borowski2013-03-231-1/+1
|
* Simplify handling of version info.Adam Borowski2013-03-141-63/+18
| | | | | They're static strings, there's no point in having functions just to malloc and pass them around.
* Use std namespace.Raphael Langella2012-08-261-13/+13
| | | | | | | | | | | | | I had to rename distance() (in coord.h) to distance2() because it conflicts with the STL function to compare 2 iterators. Not a bad change given how it returns the square of the distance anyway. I also had to rename the message global variable (in message.cc) to buffer. I tried to fix and improve the coding style has much as I could, but I probably missed a few given how huge and tedious it is. I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool and util/levcomp.*, because I have no clue about those.
* Fix a typo.Neil Moore2012-07-251-1/+1
|
* String scalars are scalars, too.Adam Borowski2012-07-051-6/+6
|
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-1/+1
|
* Add Version::Major(), returning e.g. "0.10" for 0.10-a0 and 0.10.1 both.Samuel Bronson2011-10-041-0/+5
|
* Determine release type (alpha / beta / final) in only one place.Adam Borowski2011-07-091-2/+3
|
* Include build and runtime architectures in version info.Adam Borowski2011-04-231-0/+11
| | | | | | | | | | | | | | The old info used kernel version and bitness of build machine, which are irrelevant: most 32 bit systems today will run 64 bit kernels since distributions tend to install these if the machine is capable of that. We (very slightly) care about userland, not the kernel. uname is worthless, too: in scratchbox, you might have an amd64 kernel, i386 native userland, armel compiler, armhf target. And if you want real fun, just wait for Debian multiarch. And all that complexity is totally not needed, since the compiler knows everything that is relevant already.
* Fix patched stable versions being "devel", sanitize gen_ver.pl, rip unused junk.Adam Borowski2011-04-231-55/+3
|
* Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-5/+4
| | | | | | | "File:" is shown in your editor's status bar. "Written by:" was used only for the first person who changed a file. We got git for that now, and pre-DCSS history is so woefully inaccurate it doesn't really matter.
* Remove EOL.Robert Vollmert2010-03-111-6/+6
| | | | | | | | | | | We were only setting it to "\r\n" on DOS, but according to commens in #1045, DOS will translate "\n" to "\r\n" automatically for text output. Also, the DOS EOL handling was likely broken anyway looking at how a lot of the linebreaking code only considered "\n". Fixes issue #1045.
* Remove libutil.h from AppHdr.h and include explicitly.Robert Vollmert2010-01-201-0/+1
| | | | | | | Also extract unwind_var template to unwind.h. The latter is now included from AppHdr.h, though it needn't really be. This means it's now possible to use coord_def in libutil.h.
* version.cc: combine CFLAGS_L and CFLAGSSteven Noonan2009-10-311-6/+0
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* version.cc: add OS version to the compilation_info() printoutSteven Noonan2009-10-181-2/+8
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Add compilation information to Version namespaceMatthew Cline2009-10-181-0/+69
| | | | | | | | | | The Version namespace now provides the compiler which was used, the OS, machine type and processor type the compilation was done on, and the CFLAGS, CFLAGS_L and LDFLAGS which were used. If GCC was the compiler, it also provides the compiler version. This information is included in crash reports, and can be dumped using the new command line option "-version".
* versioning: remove SVN-specific revision data, add Git versioningSteven Noonan2009-10-181-15/+41
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* Allow BUILD_REVISION to be defined at compilation time to manually specify ↵ennewalker2009-02-091-0/+4
| | | | | | the SVN revision, overriding the number derived from keywords. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9010 c06c8d41-db1a-0410-9941-cceddc491573
* Adding REVISION() macro to all source files.ennewalker2009-01-041-4/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8217 c06c8d41-db1a-0410-9941-cceddc491573
* Addition of REVISION() macro for tracking SVN revision.ennewalker2009-01-041-0/+24
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8213 c06c8d41-db1a-0410-9941-cceddc491573