Release calc version 2.12.0.1

This commit is contained in:
Landon Curt Noll
2006-05-22 12:06:21 -07:00
parent 58d94b08d8
commit 23a5fc3ede
8 changed files with 28 additions and 27 deletions

View File

@@ -19,8 +19,8 @@
* received a copy with calc; if not, write to Free Software Foundation, Inc. * received a copy with calc; if not, write to Free Software Foundation, Inc.
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
* *
* @(#) $Revision: 29.8 $ * @(#) $Revision: 29.9 $
* @(#) $Id: addop.c,v 29.8 2006/05/20 08:43:55 chongo Exp $ * @(#) $Id: addop.c,v 29.9 2006/05/22 19:04:45 chongo Exp $
* @(#) $Source: /usr/local/src/cmd/calc/RCS/addop.c,v $ * @(#) $Source: /usr/local/src/cmd/calc/RCS/addop.c,v $
* *
* Under source code control: 1990/02/15 01:48:10 * Under source code control: 1990/02/15 01:48:10
@@ -211,7 +211,7 @@ endfunc(void)
if (newname[0] != '*' && (conf->traceflags & TRACE_FNCODES)) { if (newname[0] != '*' && (conf->traceflags & TRACE_FNCODES)) {
dumpnames = TRUE; dumpnames = TRUE;
for (size = 0; size < fp->f_opcodecount; ) { for (size = 0; size < fp->f_opcodecount; ) {
printf("%u: ", size); printf("%ld: ", (unsigned long)size);
size += dumpop(&fp->f_opcodes[size]); size += dumpop(&fp->f_opcodes[size]);
} }
} }

View File

@@ -17,8 +17,8 @@
* received a copy with calc; if not, write to Free Software Foundation, Inc. * received a copy with calc; if not, write to Free Software Foundation, Inc.
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
* *
* @(#) $Revision: 29.6 $ * @(#) $Revision: 29.7 $
* @(#) $Id: c_argv.c,v 29.6 2006/05/19 15:26:10 chongo Exp $ * @(#) $Id: c_argv.c,v 29.7 2006/05/22 19:04:45 chongo Exp $
* @(#) $Source: /usr/local/src/cmd/calc/custom/RCS/c_argv.c,v $ * @(#) $Source: /usr/local/src/cmd/calc/custom/RCS/c_argv.c,v $
* *
* Under source code control: 1997/03/09 20:27:37 * Under source code control: 1997/03/09 20:27:37
@@ -152,10 +152,10 @@ c_argv(char UNUSED *name, int count, VALUE **vals)
/* getsize error */ /* getsize error */
printf("\tsize=unknown"); printf("\tsize=unknown");
} }
printf("\tsizeof=%u\n", lsizeof(vals[i])); printf("\tsizeof=%ld\n", (long int)lsizeof(vals[i]));
} else { } else {
printf("\tsize=%ld\tsizeof=%u\n", printf("\tsize=%ld\tsizeof=%ld\n",
elm_count(vals[i]), lsizeof(vals[i])); elm_count(vals[i]), (long int)lsizeof(vals[i]));
} }
} }

View File

@@ -17,8 +17,8 @@
* received a copy with calc; if not, write to Free Software Foundation, Inc. * received a copy with calc; if not, write to Free Software Foundation, Inc.
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
* *
* @(#) $Revision: 29.10 $ * @(#) $Revision: 29.11 $
* @(#) $Id: c_sysinfo.c,v 29.10 2004/03/31 05:02:10 chongo Exp $ * @(#) $Id: c_sysinfo.c,v 29.11 2006/05/22 19:04:45 chongo Exp $
* @(#) $Source: /usr/local/src/cmd/calc/custom/RCS/c_sysinfo.c,v $ * @(#) $Source: /usr/local/src/cmd/calc/custom/RCS/c_sysinfo.c,v $
* *
* Under source code control: 1997/03/09 23:14:40 * Under source code control: 1997/03/09 23:14:40
@@ -191,6 +191,7 @@ c_sysinfo(char UNUSED *name, int count, VALUE **vals)
* we will return NULL if a value was not found * we will return NULL if a value was not found
*/ */
result.v_type = V_NULL; result.v_type = V_NULL;
result.v_subtype = V_NOSUBTYPE;
/* /*
* case 0: if no args, then dump the table with no values * case 0: if no args, then dump the table with no values

6
file.c
View File

@@ -19,8 +19,8 @@
* received a copy with calc; if not, write to Free Software Foundation, Inc. * received a copy with calc; if not, write to Free Software Foundation, Inc.
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
* *
* @(#) $Revision: 29.14 $ * @(#) $Revision: 29.15 $
* @(#) $Id: file.c,v 29.14 2006/05/20 08:43:55 chongo Exp $ * @(#) $Id: file.c,v 29.15 2006/05/22 19:04:45 chongo Exp $
* @(#) $Source: /usr/local/src/cmd/calc/RCS/file.c,v $ * @(#) $Source: /usr/local/src/cmd/calc/RCS/file.c,v $
* *
* Under source code control: 1991/07/20 00:21:56 * Under source code control: 1991/07/20 00:21:56
@@ -1988,7 +1988,7 @@ showfiles(void)
math_chr('\n'); math_chr('\n');
continue; continue;
} }
printf(" size = %ld\n", sizes[i]); printf(" size = %lld\n", (long long int)sizes[i]);
for (j = i + 1; j < idnum; j++) { for (j = i + 1; j < idnum; j++) {
if (listed[j] || sizes[j] == -1) if (listed[j] || sizes[j] == -1)
continue; continue;

8
hist.c
View File

@@ -17,8 +17,8 @@
* received a copy with calc; if not, write to Free Software Foundation, Inc. * received a copy with calc; if not, write to Free Software Foundation, Inc.
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
* *
* @(#) $Revision: 29.10 $ * @(#) $Revision: 29.11 $
* @(#) $Id: hist.c,v 29.10 2006/05/20 08:43:55 chongo Exp $ * @(#) $Id: hist.c,v 29.11 2006/05/22 19:04:45 chongo Exp $
* @(#) $Source: /usr/local/src/cmd/calc/RCS/hist.c,v $ * @(#) $Source: /usr/local/src/cmd/calc/RCS/hist.c,v $
* *
* Under source code control: 1993/05/02 20:09:19 * Under source code control: 1993/05/02 20:09:19
@@ -262,7 +262,7 @@ static void insert_string(char *str, int len);
* the line. * the line.
*/ */
size_t size_t
hist_getline(char *prompt, char *buf, int len) hist_getline(char *prompt, char *buf, size_t len)
{ {
/* /*
* initialize if we have not already done so * initialize if we have not already done so
@@ -351,7 +351,7 @@ hist_init(char *filename)
*/ */
if (filename == NULL) if (filename == NULL)
filename = HIST_BINDING_FILE; filename = HIST_BINDING_FILE;
if (opensearchfile(filename, calcpath, NULL, FALSE, FALSE) > 0) if (opensearchfile(filename, calcpath, NULL, FALSE) > 0)
return HIST_NOFILE; return HIST_NOFILE;
/* /*

View File

@@ -17,8 +17,8 @@
* received a copy with calc; if not, write to Free Software Foundation, Inc. * received a copy with calc; if not, write to Free Software Foundation, Inc.
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
* *
* @(#) $Revision: 29.5 $ * @(#) $Revision: 29.6 $
* @(#) $Id: longbits.c,v 29.5 2006/05/19 15:26:10 chongo Exp $ * @(#) $Id: longbits.c,v 29.6 2006/05/22 19:04:45 chongo Exp $
* @(#) $Source: /usr/local/src/cmd/calc/RCS/longbits.c,v $ * @(#) $Source: /usr/local/src/cmd/calc/RCS/longbits.c,v $
* *
* Under source code control: 1994/03/18 03:06:18 * Under source code control: 1994/03/18 03:06:18
@@ -145,7 +145,7 @@ main(int argc, char **argv)
* report size of long * report size of long
*/ */
printf("#undef LONG_BITS\n"); printf("#undef LONG_BITS\n");
printf("#define LONG_BITS %d\t\t/%s/\n", printf("#define LONG_BITS %ld\t\t/%s/\n",
long_bits, "* bit length of a long *"); long_bits, "* bit length of a long *");
putchar('\n'); putchar('\n');

View File

@@ -1398,8 +1398,8 @@ showstrings(void)
for (j = 0; j < STRALLOC; j++, k++, sp++) { for (j = 0; j < STRALLOC; j++, k++, sp++) {
if (sp->s_links > 0) { if (sp->s_links > 0) {
++count; ++count;
printf("%5ld %5ld %6u \"", printf("%5ld %5ld %6ld \"",
k, sp->s_links, sp->s_len); k, sp->s_links, (long int)sp->s_len);
fitstring(sp->s_str, sp->s_len, 50); fitstring(sp->s_str, sp->s_len, 50);
printf("\"\n"); printf("\"\n");
} }
@@ -1423,8 +1423,8 @@ showliterals(void)
sp = stringconsttable[i]; sp = stringconsttable[i];
if (sp->s_links > 0) { if (sp->s_links > 0) {
++count; ++count;
printf("%5ld %5ld %6u \"", printf("%5ld %5ld %6ld \"",
i, sp->s_links, sp->s_len); i, sp->s_links, (long int)sp->s_len);
fitstring(sp->s_str, sp->s_len, 50); fitstring(sp->s_str, sp->s_len, 50);
printf("\"\n"); printf("\"\n");
} }

View File

@@ -19,8 +19,8 @@
* received a copy with calc; if not, write to Free Software Foundation, Inc. * received a copy with calc; if not, write to Free Software Foundation, Inc.
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
* *
* @(#) $Revision: 29.57 $ * @(#) $Revision: 29.58 $
* @(#) $Id: version.c,v 29.57 2006/05/21 06:04:01 chongo Exp $ * @(#) $Id: version.c,v 29.58 2006/05/22 19:04:45 chongo Exp $
* @(#) $Source: /usr/local/src/cmd/calc/RCS/version.c,v $ * @(#) $Source: /usr/local/src/cmd/calc/RCS/version.c,v $
* *
* Under source code control: 1990/05/22 11:00:58 * Under source code control: 1990/05/22 11:00:58
@@ -48,7 +48,7 @@ static char *program;
#define MAJOR_VER 2 /* major version */ #define MAJOR_VER 2 /* major version */
#define MINOR_VER 12 /* minor version */ #define MINOR_VER 12 /* minor version */
#define MAJOR_PATCH 0 /* patch level or 0 if no patch */ #define MAJOR_PATCH 0 /* patch level or 0 if no patch */
#define MINOR_PATCH 0 /* test number or 0 if no minor patch */ #define MINOR_PATCH 1 /* test number or 0 if no minor patch */
/* /*