|
From: Shigeharu T. <sh...@ie...> - 2011-10-07 03:58:45
|
shige 10/07 2011
----------------
I wrote:
| The last behaver seems to be the reason the gnuplot says
| "undefined value". The following patch for src/internal.c is the
| dirty huck for this problem:
|
| ----- From here -----
| --- internal.c~ Fri Oct 7 12:33:11 2011
| +++ internal.c Fri Oct 7 12:35:29 2011
| @@ -1312,6 +1312,10 @@
| default:
| int_error(NO_CARET,"internal error: invalid spec_type");
| }
| +#if MSVC
| + buffer[bufsize-1] = '\0'; /* shige : for safe for VC++ */
| + if (errno == ERANGE) errno = 0; /* shige : very dirty huck for VC++ */
| +#endif
| #endif
|
| next_start[next_length] = tempchar;
| ----- To here -----
Sorry, I made a mistake for the position. The following is
correct:
----- From here -----
--- internal.c~ Fri Oct 7 12:33:11 2011
+++ internal.c Fri Oct 7 12:54:38 2011
@@ -1297,6 +1297,10 @@
default:
int_error(NO_CARET,"internal error: invalid spec_type");
}
+#if VCPP
+ buffer[bufsize-1] = '\0'; /* shige : for safe for VC++ */
+ if (errno == ERANGE) errno = 0; /* shige : very dirty huck for VC++ */
+#endif
#else
/* FIXME - this is bad; we should dummy up an snprintf equivalent */
switch(spec_type) {
----- To here -----
+========================================================+
Shigeharu TAKENO NIigata Institute of Technology
kashiwazaki,Niigata 945-1195 JAPAN
sh...@ie... TEL(&FAX): +81-257-22-8161
+========================================================+
|