pike.git
/
src
/
modules
/
Image
/
orient.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/modules/Image/orient.c:1:
-
/* $Id: orient.c,v 1.
7
1998/
03
/
23
19
:12:
43
hedda
Exp $ */
+
/* $Id: orient.c,v 1.
8
1998/
04
/
13
14
:12:
26
grubba
Exp $ */
/* **! module Image **! note
-
**! $Id: orient.c,v 1.
7
1998/
03
/
23
19
:12:
43
hedda
Exp $
+
**! $Id: orient.c,v 1.
8
1998/
04
/
13
14
:12:
26
grubba
Exp $
**! class image */ #include "global.h" #include <math.h> #include <ctype.h> #include "stralloc.h" #include "global.h"
pike.git/src/modules/Image/orient.c:162:
if (!THIS->img) { error("no image\n"); return; } this=THIS; if (args) { if (sp[-args].type==T_INT) mag=sp[-args].u.integer; else if (sp[-args].type==T_FLOAT) mag=sp[-args].u.float_number;
-
else
+
else
{
error("Illegal argument 1 to image->orient\n");
-
+
/* Not reached, but keeps the compiler happy. */
+
mag = 0.0;
}
-
+
}
else mag=1.0; if (args==1) pop_n_elems(args); if (args>1) { if (sp[1-args].type!=T_ARRAY) error("Illegal argument 2 to image->orient\n"); if (sp[1-args].u.array->size!=4)