The R Project SVN R

Rev

Rev 62204 | Rev 67543 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 62204 Rev 62580
Line 1... Line 1...
1
/*
1
/*
2
  R : A Computer Language for Statistical Data Analysis
2
  R : A Computer Language for Statistical Data Analysis
3
  Copyright (C) 1995-1996   Robert Gentleman and Ross Ihaka
3
  Copyright (C) 1995-1996   Robert Gentleman and Ross Ihaka
4
  Copyright (C) 1997-2012   The R Core Team
4
  Copyright (C) 1997-2013   The R Core Team
5
 
5
 
6
  This program is free software; you can redistribute it and/or modify
6
  This program is free software; you can redistribute it and/or modify
7
  it under the terms of the GNU General Public License as published by
7
  it under the terms of the GNU General Public License as published by
8
  the Free Software Foundation; either version 2 of the License, or (at
8
  the Free Software Foundation; either version 2 of the License, or (at
9
  your option) any later version.
9
  your option) any later version.
Line 198... Line 198...
198
    if (vsize < 1000 && vsize > 0) {
198
    if (vsize < 1000 && vsize > 0) {
199
	R_ShowMessage("WARNING: vsize ridiculously low, Megabytes assumed\n");
199
	R_ShowMessage("WARNING: vsize ridiculously low, Megabytes assumed\n");
200
	vsize *= (R_size_t) Mega;
200
	vsize *= (R_size_t) Mega;
201
    }
201
    }
202
    if(vsize < Min_Vsize || vsize > Max_Vsize) {
202
    if(vsize < Min_Vsize || vsize > Max_Vsize) {
-
 
203
	snprintf(msg, 1024, 
203
	sprintf(msg, "WARNING: invalid v(ector heap)size `%lu' ignored\n"
204
		 "WARNING: invalid v(ector heap)size `%lu' ignored\n"
204
		 "using default = %gM\n", (unsigned long) vsize,
205
		 "using default = %gM\n", (unsigned long) vsize,
205
		R_VSIZE / Mega);
206
		 R_VSIZE / Mega);
206
	R_ShowMessage(msg);
207
	R_ShowMessage(msg);
207
	R_VSize = R_VSIZE;
208
	R_VSize = R_VSIZE;
208
    } else
209
    } else
209
	R_VSize = vsize;
210
	R_VSize = vsize;
210
    if(nsize < Min_Nsize || nsize > Max_Nsize) {
211
    if(nsize < Min_Nsize || nsize > Max_Nsize) {
-
 
212
	snprintf(msg, 1024,
211
	sprintf(msg, "WARNING: invalid language heap (n)size `%lu' ignored,"
213
		 "WARNING: invalid language heap (n)size `%lu' ignored,"
212
		 " using default = %ld\n", (unsigned long) nsize, R_NSIZE);
214
		 " using default = %ld\n", (unsigned long) nsize, R_NSIZE);
213
	R_ShowMessage(msg);
215
	R_ShowMessage(msg);
214
	R_NSize = R_NSIZE;
216
	R_NSize = R_NSIZE;
215
    } else
217
    } else
216
	R_NSize = nsize;
218
	R_NSize = nsize;