diff --git a/src/modules/_Image_JPEG/image_jpeg.c b/src/modules/_Image_JPEG/image_jpeg.c index 27ddd9d3f00f9f8f6a09975f94cb71e492446e58..2dc08f112cfd2e6bc71c3eeee2bbe4d5b1af6426 100644 --- a/src/modules/_Image_JPEG/image_jpeg.c +++ b/src/modules/_Image_JPEG/image_jpeg.c @@ -1,5 +1,5 @@ /* - * $Id: image_jpeg.c,v 1.16 1998/05/01 23:22:33 grubba Exp $ + * $Id: image_jpeg.c,v 1.17 1998/05/13 18:47:48 grubba Exp $ */ #include "config.h" @@ -22,7 +22,7 @@ #undef HAVE_STDLIB_H #endif #include "global.h" -RCSID("$Id: image_jpeg.c,v 1.16 1998/05/01 23:22:33 grubba Exp $"); +RCSID("$Id: image_jpeg.c,v 1.17 1998/05/13 18:47:48 grubba Exp $"); #include "pike_macros.h" #include "object.h" @@ -619,30 +619,11 @@ void pike_module_init(void) add_function("encode",image_jpeg_encode, "function(object,void|mapping(string:int):string)",0); - push_constant_text("IFAST"); - push_int(JDCT_IFAST); - add_constant(sp[-2].u.string,sp-1,0); - pop_n_elems(2); - - push_constant_text("FLOAT"); - push_int(JDCT_FLOAT); - add_constant(sp[-2].u.string,sp-1,0); - pop_n_elems(2); - - push_constant_text("DEFAULT"); - push_int(JDCT_DEFAULT); - add_constant(sp[-2].u.string,sp-1,0); - pop_n_elems(2); - - push_constant_text("ISLOW"); - push_int(JDCT_ISLOW); - add_constant(sp[-2].u.string,sp-1,0); - pop_n_elems(2); - - push_constant_text("FASTEST"); - push_int(JDCT_FASTEST); - add_constant(sp[-2].u.string,sp-1,0); - pop_n_elems(2); + add_integer_constant("IFAST", JDCT_IFAST, 0); + add_integer_constant("FLOAT", JDCT_FLOAT, 0); + add_integer_constant("DEFAULT", JDCT_DEFAULT, 0); + add_integer_constant("ISLOW", JDCT_ISLOW, 0); + add_integer_constant("FASTEST", JDCT_FASTEST, 0); } #endif /* HAVE_JPEGLIB_H */