mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
417 B
23 lines
417 B
15 years ago
|
#include "clapack.h"
|
||
|
#undef abs
|
||
|
#undef min
|
||
|
#undef max
|
||
|
#include "stdio.h"
|
||
|
|
||
|
static integer memfailure = 3;
|
||
|
|
||
|
#include "stdlib.h"
|
||
|
|
||
|
char* F77_aloc(integer Len, char *whence)
|
||
|
{
|
||
|
char *rv;
|
||
|
unsigned int uLen = (unsigned int) Len; /* for K&R C */
|
||
|
|
||
|
if (!(rv = (char*)malloc(uLen))) {
|
||
|
fprintf(stderr, "malloc(%u) failure in %s\n",
|
||
|
uLen, whence);
|
||
|
exit_(&memfailure);
|
||
|
}
|
||
|
return rv;
|
||
|
}
|