summaryrefslogtreecommitdiffstats
path: root/digikam/imageplugins/coreplugin/sharpnesseditor/clapack/err.c
diff options
context:
space:
mode:
Diffstat (limited to 'digikam/imageplugins/coreplugin/sharpnesseditor/clapack/err.c')
-rw-r--r--digikam/imageplugins/coreplugin/sharpnesseditor/clapack/err.c37
1 files changed, 2 insertions, 35 deletions
diff --git a/digikam/imageplugins/coreplugin/sharpnesseditor/clapack/err.c b/digikam/imageplugins/coreplugin/sharpnesseditor/clapack/err.c
index 573372c..90af7ca 100644
--- a/digikam/imageplugins/coreplugin/sharpnesseditor/clapack/err.c
+++ b/digikam/imageplugins/coreplugin/sharpnesseditor/clapack/err.c
@@ -5,14 +5,10 @@
#include "sys/stat.h"
#endif
#include "f2c.h"
-#ifdef KR_headers
-extern char *malloc();
-#else
#undef abs
#undef min
#undef max
#include "stdlib.h"
-#endif
#include "fio.h"
#include "fmt.h" /* for struct syl */
@@ -25,17 +21,10 @@ flag f__reading; /*1 if reading, 0 if writing*/
flag f__cplus,f__cblank;
char *f__fmtbuf;
flag f__external; /*1 if external io, 0 if internal */
-#ifdef KR_headers
-int (*f__doed)(),(*f__doned)();
-int (*f__doend)(),(*f__donewrec)(),(*f__dorevert)();
-int (*f__getn)(); /* for formatted input */
-void (*f__putn)(); /* for formatted output */
-#else
int (*f__getn)(void); /* for formatted input */
void (*f__putn)(int); /* for formatted output */
int (*f__doed)(struct syl*, char*, ftnlen),(*f__doned)(struct syl*);
int (*f__dorevert)(void),(*f__donewrec)(void),(*f__doend)(void);
-#endif
flag f__sequential; /*1 if sequential io, 0 if direct*/
flag f__formatted; /*1 if formatted io, 0 if unformatted*/
FILE *f__cf; /*current file*/
@@ -81,11 +70,7 @@ char *F_err[] =
};
#define MAXERR (sizeof(F_err)/sizeof(char *)+100)
-#ifdef KR_headers
-int f__canseek(f) FILE *f; /*SYSDEP*/
-#else
int f__canseek(FILE *f) /*SYSDEP*/
-#endif
{
#ifdef NON_UNIX_STDIO
return !isatty(fileno(f));
@@ -135,12 +120,7 @@ int f__canseek(FILE *f) /*SYSDEP*/
#endif
}
- void
-#ifdef KR_headers
-f__fatal(n,s) char *s;
-#else
-f__fatal(int n, char *s)
-#endif
+void f__fatal(int n, char *s)
{
if(n<100 && n>=0) perror(s); /*SYSDEP*/
else if(n >= (int)MAXERR || n < -1)
@@ -187,11 +167,7 @@ f_init(Void)
p->uwrt=1;
}
-#ifdef KR_headers
-int f__nowreading(x) unit *x;
-#else
int f__nowreading(unit *x)
-#endif
{
long loc;
int ufmt, urw;
@@ -219,11 +195,7 @@ int f__nowreading(unit *x)
return 0;
}
-#ifdef KR_headers
-int f__nowwriting(x) unit *x;
-#else
int f__nowwriting(unit *x)
-#endif
{
long loc;
int ufmt;
@@ -258,12 +230,7 @@ int f__nowwriting(unit *x)
return 0;
}
- int
-#ifdef KR_headers
-err__fl(f, m, s) int f, m; char *s;
-#else
-err__fl(int f, int m, char *s)
-#endif
+int err__fl(int f, int m, char *s)
{
if (!f)
f__fatal(m, s);