Move general functions out of typedefs.h
authorTeemu Murtola <teemu.murtola@gmail.com>
Sun, 25 May 2014 18:44:50 +0000 (21:44 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Sun, 25 May 2014 19:38:16 +0000 (22:38 +0300)
commit3af6723984e33dc0cfb772f284b22de4b70bd545
treeefbb283227751e6adb79d931bf67cae832b7ddd5
parentba5d8e3e2ed68e1daa72e919436bf1fa6da9572a
Move general functions out of typedefs.h

- Move overallocation routines to smalloc.h.  Perhaps the DD routines
  could go higher up the dependency stack, but then again, they weren't
  particularly high earlier.
- Move gmx_step_str() to cstringutil.h.  This could probably go away
  completely in favor of GMX_PRId64, but here it will force less
  dependencies on code that still uses it.

These changes allow files that use one of these functions to still get
rid of all unnecessary dependencies that typedefs.h brings.

Change-Id: Ic7973799c14f1748867965fda5bf8e33fae4fd0c
src/gromacs/gmxlib/typedefs.c
src/gromacs/legacyheaders/typedefs.h
src/gromacs/mdlib/nlistheuristics.c
src/gromacs/utility/cstringutil.c
src/gromacs/utility/cstringutil.h
src/gromacs/utility/smalloc.c
src/gromacs/utility/smalloc.h