mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
Release calc version 2.11.0t1
This commit is contained in:
8
func.c
8
func.c
@@ -10,6 +10,7 @@
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <sys/types.h>
|
||||
#include <errno.h>
|
||||
|
||||
#if defined(FUNCLIST)
|
||||
|
||||
@@ -77,9 +78,6 @@ static VALUE f_fsize(VALUE *vp);
|
||||
/*
|
||||
* external declarations
|
||||
*/
|
||||
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);
|
||||
@@ -4838,14 +4836,14 @@ strscan(char *s, int count, VALUE **vals)
|
||||
while (*s != '\0') {
|
||||
s--;
|
||||
while ((ch = *++s)) {
|
||||
if (!isspace(ch))
|
||||
if (!isspace((int)ch))
|
||||
break;
|
||||
}
|
||||
if (ch == '\0' || count-- == 0)
|
||||
return n;
|
||||
s0 = s;
|
||||
while ((ch = *++s)) {
|
||||
if (isspace(ch))
|
||||
if (isspace((int)ch))
|
||||
break;
|
||||
}
|
||||
chtmp = ch;
|
||||
|
Reference in New Issue
Block a user