mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
Compare commits
2 Commits
2.10.3t5.4
...
2.11.0t0
Author | SHA1 | Date | |
---|---|---|---|
|
5307c4e16b | ||
|
b4e94b7eaa |
3
CHANGES
3
CHANGES
@@ -51,6 +51,9 @@ Following is the change from calc version 2.10.3t5.38 to date:
|
||||
The function version(), now returns a malloced version string
|
||||
without the title.
|
||||
|
||||
Consolidated multiple SGI IRIX -n32 sections (for r4k, r5k and r10k)
|
||||
into a single section.
|
||||
|
||||
|
||||
Following is the change from calc version 2.10.3t5.34 to 2.10.3t5.37:
|
||||
|
||||
|
168
Makefile
168
Makefile
@@ -213,10 +213,10 @@ ALIGN32= -DMUST_ALIGN32
|
||||
# MAIN= -DMAIN=void main() is of type void
|
||||
# MAIN= -DMAIN=int main() is of type int
|
||||
#
|
||||
# When in doubt, try MAIN= -DMAIN=void. If you get a warning try the other.
|
||||
# When in doubt, try MAIN= -DMAIN=int. If you get a warning try the other.
|
||||
#
|
||||
MAIN= -DMAIN=void
|
||||
#MAIN= -DMAIN=int
|
||||
#MAIN= -DMAIN=void
|
||||
MAIN= -DMAIN=int
|
||||
|
||||
# where to install binary files
|
||||
#
|
||||
@@ -332,7 +332,7 @@ CALCPAGER= more
|
||||
|
||||
# Debug/Optimize options for ${CC}
|
||||
#
|
||||
DEBUG= -O
|
||||
#DEBUG= -O
|
||||
#DEBUG= -O -g
|
||||
#DEBUG= -O -g3
|
||||
#DEBUG= -O1
|
||||
@@ -340,7 +340,7 @@ DEBUG= -O
|
||||
#DEBUG= -O1 -g3
|
||||
#DEBUG= -O2
|
||||
#DEBUG= -O2 -g
|
||||
#DEBUG= -O2 -g3
|
||||
DEBUG= -O2 -g3
|
||||
#DEBUG= -O2 -ipa
|
||||
#DEBUG= -O2 -g3 -ipa
|
||||
#DEBUG= -O3
|
||||
@@ -388,8 +388,8 @@ LD_NO_SHARED=
|
||||
# a *.a library. Set RANLIB to the utility that performs this action.
|
||||
# Set RANLIB to : if your system does not need such a utility.
|
||||
#
|
||||
#RANLIB=ranlib
|
||||
RANLIB=:
|
||||
RANLIB=ranlib
|
||||
#RANLIB=:
|
||||
|
||||
# Some systems are able to form lint libs. How it is formed depends
|
||||
# on your system. If you do not care about lint, use : as the
|
||||
@@ -507,21 +507,21 @@ ALLOW_CUSTOM= -DCUSTOM
|
||||
#
|
||||
# common cc set
|
||||
#
|
||||
CCWARN=
|
||||
CCOPT= ${DEBUG} ${NO_SHARED}
|
||||
CCMISC=
|
||||
#CCWARN=
|
||||
#CCOPT= ${DEBUG} ${NO_SHARED}
|
||||
#CCMISC=
|
||||
#
|
||||
CFLAGS= ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
ICFLAGS= ${CCWARN} ${CCMISC}
|
||||
#CFLAGS= ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= ${CCWARN} ${CCMISC}
|
||||
#
|
||||
CCMAIN= ${ICFLAGS} ${MAIN}
|
||||
CCSHS= ${CFLAGS}
|
||||
#CCMAIN= ${ICFLAGS} ${MAIN}
|
||||
#CCSHS= ${CFLAGS}
|
||||
#
|
||||
LCFLAGS=
|
||||
LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}
|
||||
ILDFLAGS=
|
||||
#LCFLAGS=
|
||||
#LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}
|
||||
#ILDFLAGS=
|
||||
#
|
||||
CC= ${PURIFY} cc
|
||||
#CC= ${PURIFY} cc
|
||||
#
|
||||
###
|
||||
#
|
||||
@@ -556,7 +556,7 @@ CC= ${PURIFY} cc
|
||||
#
|
||||
###
|
||||
#
|
||||
# SGI IRIX6.2 (or later) -n32 (v7.1 or later) Compiler for the R4k
|
||||
# SGI IRIX6.2 (or later) -n32 (v7.1 or later) Compiler
|
||||
#
|
||||
# You must set above:
|
||||
# RANLIB=:
|
||||
@@ -572,87 +572,19 @@ CC= ${PURIFY} cc
|
||||
#
|
||||
#CCWARN= -fullwarn -woff 1209
|
||||
#CCOPT= ${DEBUG} ${NO_SHARED}
|
||||
#CCMISC= -use_readonly_const
|
||||
#CCMISC= -rdata_shared
|
||||
#
|
||||
#CFLAGS= ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= ${CCWARN} ${CCMISC}
|
||||
#
|
||||
#CCMAIN= ${ICFLAGS} ${MAIN}
|
||||
#CCSHS= ${CFLAGS}
|
||||
#CCSHS=
|
||||
#
|
||||
#LCFLAGS=
|
||||
#LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}
|
||||
#ILDFLAGS=
|
||||
#
|
||||
#CC= ${PURIFY} cc -n32 -r4000 -xansi
|
||||
#
|
||||
###
|
||||
#
|
||||
# SGI IRIX6.2 (or later) -n32 (v7.1 or later) Compiler for the R5k
|
||||
#
|
||||
# You must set above:
|
||||
# RANLIB=:
|
||||
#
|
||||
# for better performance, set the following above:
|
||||
# DEBUG= -O2 -g3
|
||||
#
|
||||
# If you have the directory /usr/lib32/nonshared, then set the following above:
|
||||
# NO_SHARED= -non_shared
|
||||
# LD_NO_SHARED= -Wl,-rdata_shared
|
||||
#
|
||||
# woff 1209: cancel 'controlling expression is constant' warnings
|
||||
#
|
||||
#CCWARN= -fullwarn -woff 1209
|
||||
#CCOPT= ${DEBUG} ${NO_SHARED}
|
||||
#CCMISC= -use_readonly_const
|
||||
#
|
||||
#CFLAGS= ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= ${CCWARN} ${CCMISC}
|
||||
#
|
||||
#CCMAIN= ${ICFLAGS} ${MAIN}
|
||||
#CCSHS= ${CFLAGS}
|
||||
#
|
||||
#LCFLAGS=
|
||||
#LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}
|
||||
#ILDFLAGS=
|
||||
#
|
||||
#CC= ${PURIFY} cc -n32 -r5000 -xansi
|
||||
#
|
||||
###
|
||||
#
|
||||
# SGI IRIX6.5 (or later) -n32 (v7.2 or later) Compiler for the R10k
|
||||
#
|
||||
# NOTE: For Pre IRIX6.5 and pre v7.2 compilers, use:
|
||||
#
|
||||
# CCSHS= ${CFLAGS} -OPT:fold_arith_limit=1668
|
||||
#
|
||||
# You must set above:
|
||||
# RANLIB=:
|
||||
#
|
||||
# for better performance, set the following above:
|
||||
# DEBUG= -O2 -g3
|
||||
#
|
||||
# If you have the directory /usr/lib32/nonshared, then set the following above:
|
||||
# NO_SHARED= -non_shared
|
||||
# LD_NO_SHARED= -Wl,-rdata_shared
|
||||
#
|
||||
# woff 1209: cancel 'controlling expression is constant' warnings
|
||||
#
|
||||
#CCWARN= -fullwarn -woff 1209
|
||||
#CCOPT= ${DEBUG} ${NO_SHARED}
|
||||
#CCMISC= -use_readonly_const
|
||||
#
|
||||
#CFLAGS= ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= ${CCWARN} ${CCMISC}
|
||||
#
|
||||
#CCMAIN= ${ICFLAGS} ${MAIN}
|
||||
#CCSHS= ${CFLAGS}
|
||||
#
|
||||
#LCFLAGS=
|
||||
#LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}
|
||||
#ILDFLAGS=
|
||||
#
|
||||
#CC= ${PURIFY} cc -n32 -r10000 -mips4 -xansi
|
||||
#CC= ${PURIFY} cc -n32 -xansi
|
||||
#
|
||||
###
|
||||
#
|
||||
@@ -748,61 +680,37 @@ CC= ${PURIFY} cc
|
||||
#
|
||||
###
|
||||
#
|
||||
# gcc set
|
||||
# Red Hat Linux 6.0
|
||||
#
|
||||
# for better performance, set the following above:
|
||||
# DEBUG= -O
|
||||
# DEBUG= -O2
|
||||
#
|
||||
#CCWARN= -Wall
|
||||
#CCOPT= ${DEBUG} ${NO_SHARED}
|
||||
#CCMISC= -ansi
|
||||
CCWARN= -Wall -Wno-implicit -Wno-comment
|
||||
CCOPT= ${DEBUG} ${NO_SHARED}
|
||||
CCMISC=
|
||||
#
|
||||
#CFLAGS= ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= ${CCWARN} ${CCMISC}
|
||||
CFLAGS= ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
ICFLAGS= ${CCWARN} ${CCMISC}
|
||||
#
|
||||
#CCMAIN= ${ICFLAGS} ${MAIN}
|
||||
#CCSHS= ${CFLAGS}
|
||||
CCMAIN= ${ICFLAGS} ${MAIN}
|
||||
CCSHS= ${CFLAGS}
|
||||
#
|
||||
#LCFLAGS=
|
||||
#LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}
|
||||
#ILDFLAGS=
|
||||
LCFLAGS=
|
||||
LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}
|
||||
ILDFLAGS=
|
||||
#
|
||||
#CC= ${PURIFY} gcc
|
||||
CC= ${PURIFY} gcc
|
||||
#
|
||||
###
|
||||
#
|
||||
# gcc1 set (some call it gcc1, some call it gcc)
|
||||
#
|
||||
# for better performance, set the following above:
|
||||
# DEBUG= -O
|
||||
#
|
||||
#CCWARN= -Wall
|
||||
#CCOPT= ${DEBUG} ${NO_SHARED}
|
||||
#CCMISC= -ansi
|
||||
#
|
||||
#CFLAGS= ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= ${CCWARN} ${CCMISC}
|
||||
#
|
||||
#CCMAIN= ${ICFLAGS} ${MAIN}
|
||||
#CCSHS= ${CFLAGS}
|
||||
#
|
||||
#LCFLAGS=
|
||||
#LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}
|
||||
#ILDFLAGS=
|
||||
#
|
||||
#CC= ${PURIFY} gcc1
|
||||
#CC= ${PURIFY} gcc
|
||||
#
|
||||
###
|
||||
#
|
||||
# gcc2 set (some call it gcc2, some call it gcc)
|
||||
# gcc set (some call it gcc2, some call it gcc)
|
||||
#
|
||||
# for better performance, set the following above:
|
||||
# DEBUG= -O2
|
||||
#
|
||||
#CCWARN= -Wall -Wno-implicit -Wno-comment
|
||||
#CCOPT= ${DEBUG} ${NO_SHARED}
|
||||
#CCMISC= -ansi
|
||||
#CCMISC=
|
||||
#
|
||||
#CFLAGS= ${CCWARN} ${CCOPT} ${CCMISC}
|
||||
#ICFLAGS= ${CCWARN} ${CCMISC}
|
||||
@@ -814,8 +722,8 @@ CC= ${PURIFY} cc
|
||||
#LDFLAGS= ${NO_SHARED} ${LD_NO_SHARED}
|
||||
#ILDFLAGS=
|
||||
#
|
||||
#CC= ${PURIFY} gcc2
|
||||
#CC= ${PURIFY} gcc
|
||||
#CC= ${PURIFY} gcc2
|
||||
|
||||
##############################################################################
|
||||
#-=-=-=-=-=-=-=-=- Be careful if you change something below -=-=-=-=-=-=-=-=-#
|
||||
|
@@ -470,7 +470,8 @@ install: all
|
||||
else \
|
||||
true; \
|
||||
fi
|
||||
${Q}for i in ${INSTALL_H_SRC}; do \
|
||||
${Q}for i in ${INSTALL_H_SRC} /dev/null; do \
|
||||
if [ X$$i = X/dev/null ]; then continue; fi; \
|
||||
echo rm -f ${CUSTOMLIBDIR}/$$i; \
|
||||
rm -f ${CUSTOMLIBDIR}/$$i; \
|
||||
echo cp $$i ${CUSTOMLIBDIR}; \
|
||||
|
6
func.c
6
func.c
@@ -77,9 +77,9 @@ static VALUE f_fsize(VALUE *vp);
|
||||
/*
|
||||
* external declarations
|
||||
*/
|
||||
extern int errno; /* last system error */
|
||||
extern char *sys_errlist[]; /* system error messages */
|
||||
extern int sys_nerr; /* number of system errors */
|
||||
extern int errno; /* last system error */
|
||||
extern const char *const sys_errlist[]; /* system error messages */
|
||||
extern int sys_nerr; /* number of system errors */
|
||||
extern char cmdbuf[]; /* command line expression */
|
||||
extern CONST char *error_table[E__COUNT+2]; /* calc coded error messages */
|
||||
extern void matrandperm(MATRIX *M);
|
||||
|
@@ -97,6 +97,12 @@
|
||||
|
||||
#include "longlong.h"
|
||||
|
||||
#if defined(__linux)
|
||||
# if !defined(isascii)
|
||||
extern int isascii(int c);
|
||||
# endif /* !isascii */
|
||||
#endif /* __linux */
|
||||
|
||||
char *program; /* our name */
|
||||
|
||||
MAIN
|
||||
|
@@ -10,9 +10,9 @@
|
||||
#include "calc.h"
|
||||
|
||||
#define MAJOR_VER 2 /* major version */
|
||||
#define MINOR_VER 10 /* minor version */
|
||||
#define MAJOR_PATCH 3 /* patch level or 0 if no patch */
|
||||
#define MINOR_PATCH "t5.45" /* test number or empty string if no patch */
|
||||
#define MINOR_VER 11 /* minor version */
|
||||
#define MAJOR_PATCH 0 /* patch level or 0 if no patch */
|
||||
#define MINOR_PATCH "0" /* test number or empty string if no patch */
|
||||
|
||||
/*
|
||||
* calc version constants
|
||||
|
Reference in New Issue
Block a user