~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/core/alloc_func.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Matthijs Kooijman, Jordi Mallach
  • Date: 2009-04-15 18:22:10 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090415182210-22ktb8kdbp2tf3bm
[ Matthijs Kooijman ]
* New upstream release.
* Remove Debian specific desktop file, upstream provides one now. 
* Add debian/watch file.

[ Jordi Mallach ]
* Bump Standards-Version to 3.8.1, with no changes required.
* Move to debhelper compat 7. Bump Build-Depends accordingly.
* Use dh_prep.
* Add "set -e" to config script.
* Remove a few extra doc files that get installed by upstream Makefile.
* Add more complete copyright information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: alloc_func.cpp 12115 2008-02-11 20:23:38Z smatz $ */
 
1
/* $Id: alloc_func.cpp 12971 2008-05-06 15:11:33Z rubidium $ */
2
2
 
3
 
/** @file alloc_func.cpp functions to 'handle' memory allocation errors */
 
3
/** @file alloc_func.cpp Functions to 'handle' memory allocation errors */
4
4
 
5
5
#include "../stdafx.h"
6
6
#include "alloc_func.hpp"
9
9
 * Function to exit with an error message after malloc() or calloc() have failed
10
10
 * @param size number of bytes we tried to allocate
11
11
 */
12
 
void MallocError(size_t size)
 
12
void NORETURN MallocError(size_t size)
13
13
{
14
14
        error("Out of memory. Cannot allocate %i bytes", size);
15
15
}
18
18
 * Function to exit with an error message after realloc() have failed
19
19
 * @param size number of bytes we tried to allocate
20
20
 */
21
 
void ReallocError(size_t size)
 
21
void NORETURN ReallocError(size_t size)
22
22
{
23
23
        error("Out of memory. Cannot reallocate %i bytes", size);
24
24
}