Browse Source

#include resource.h added, fcn parameter void

pre-master-46
Jim Monte 6 years ago
committed by Holger Vogt
parent
commit
9a83e6705c
  1. 3
      src/frontend/get_avail_mem_size.c
  2. 3
      src/frontend/get_phys_mem_size.c
  3. 5
      src/frontend/get_resident_set_size.c

3
src/frontend/get_avail_mem_size.c

@ -5,6 +5,7 @@
*/ */
#include "ngspice/ngspice.h" #include "ngspice/ngspice.h"
#include "resource.h"
#if defined(_WIN32) #if defined(_WIN32)
#undef BOOLEAN #undef BOOLEAN
@ -29,7 +30,7 @@
/** /**
* Returns the size of available memory (RAM) in bytes. * Returns the size of available memory (RAM) in bytes.
*/ */
unsigned long long getAvailableMemorySize( )
unsigned long long getAvailableMemorySize(void)
{ {
#if defined(HAVE__PROC_MEMINFO) #if defined(HAVE__PROC_MEMINFO)
/* Cygwin , Linux--------------------------------- */ /* Cygwin , Linux--------------------------------- */

3
src/frontend/get_phys_mem_size.c

@ -7,6 +7,7 @@
*/ */
#include "ngspice/ngspice.h" #include "ngspice/ngspice.h"
#include "resource.h"
#if defined(_WIN32) #if defined(_WIN32)
#undef BOOLEAN #undef BOOLEAN
@ -29,7 +30,7 @@
/** /**
* Returns the size of physical memory (RAM) in bytes. * Returns the size of physical memory (RAM) in bytes.
*/ */
unsigned long long getMemorySize()
unsigned long long getMemorySize(void)
{ {
#if defined(HAVE__PROC_MEMINFO) #if defined(HAVE__PROC_MEMINFO)
/* Cygwin , Linux--------------------------------- */ /* Cygwin , Linux--------------------------------- */

5
src/frontend/get_resident_set_size.c

@ -7,6 +7,7 @@
*/ */
#include "ngspice/ngspice.h" #include "ngspice/ngspice.h"
#include "resource.h"
#if defined(_WIN32) #if defined(_WIN32)
#undef BOOLEAN #undef BOOLEAN
@ -39,7 +40,7 @@
* memory use) measured in bytes, or zero if the value cannot be * memory use) measured in bytes, or zero if the value cannot be
* determined on this OS. * determined on this OS.
*/ */
unsigned long long getPeakRSS()
unsigned long long getPeakRSS(void)
{ {
#if defined(HAVE__PROC_MEMINFO) #if defined(HAVE__PROC_MEMINFO)
/* Linux ---------------------------------------------------- */ /* Linux ---------------------------------------------------- */
@ -100,7 +101,7 @@ unsigned long long getPeakRSS()
* Returns the current resident set size (physical memory use) measured * Returns the current resident set size (physical memory use) measured
* in bytes, or zero if the value cannot be determined on this OS. * in bytes, or zero if the value cannot be determined on this OS.
*/ */
unsigned long long getCurrentRSS( )
unsigned long long getCurrentRSS(void)
{ {
#if defined(_WIN32) #if defined(_WIN32)
/* Windows -------------------------------------------------- */ /* Windows -------------------------------------------------- */

Loading…
Cancel
Save