Diff for /parser3/src/classes/image.C between versions 1.80 and 1.83

version 1.80, 2002/11/22 16:16:33 version 1.83, 2002/11/25 15:37:12
Line 78  public: Line 78  public:
                                         value, whence, strerror(errno), errno, fname);                                          value, whence, strerror(errno), errno, fname);
         }          }
   
         /*override*/long tell() { return ::tell(f); }          /*override*/long tell() { return lseek(f, 0, SEEK_CUR); }
   
 private:  private:
         Pool& pool;          Pool& pool;
Line 212  inline uint endian_to_uint(bool is_big, Line 212  inline uint endian_to_uint(bool is_big,
 static void measure_gif(Pool& pool, const String *origin_string,   static void measure_gif(Pool& pool, const String *origin_string, 
                          Measure_reader& reader, ushort& width, ushort& height) {                           Measure_reader& reader, ushort& width, ushort& height) {
   
         void *buf;          const void *buf;
         const int head_size=sizeof(GIF_Header);          const int head_size=sizeof(GIF_Header);
         if(reader.read(buf, head_size)<head_size)          if(reader.read(buf, head_size)<head_size)
                 throw Exception("image.format",                   throw Exception("image.format", 
Line 456  static void measure_jpeg(Pool& pool, con Line 456  static void measure_jpeg(Pool& pool, con
         const uchar CODE_SIZE_D=0xC3;          const uchar CODE_SIZE_D=0xC3;
         const uchar CODE_EXIF=0xE1;          const uchar CODE_EXIF=0xE1;
   
         void *buf;          const void *buf;
         const size_t prefix_size=2;          const size_t prefix_size=2;
         if(reader.read(buf, prefix_size)<prefix_size)          if(reader.read(buf, prefix_size)<prefix_size)
                 throw Exception("image.format",                   throw Exception("image.format", 
Line 517  static void measure_jpeg(Pool& pool, con Line 517  static void measure_jpeg(Pool& pool, con
 static void measure_png(Pool& pool, const String *origin_string,   static void measure_png(Pool& pool, const String *origin_string, 
                          Measure_reader& reader, ushort& width, ushort& height) {                           Measure_reader& reader, ushort& width, ushort& height) {
   
         void *buf;          const void *buf;
         const int head_size=sizeof(PNG_Header);          const int head_size=sizeof(PNG_Header);
         if(reader.read(buf, head_size)<head_size)          if(reader.read(buf, head_size)<head_size)
                 throw Exception("image.format",                   throw Exception("image.format", 
Line 637  static void _html(Request& r, const Stri Line 637  static void _html(Request& r, const Stri
                 Value &vattribs=r.process_to_value(params->get(0),                  Value &vattribs=r.process_to_value(params->get(0),
                         /*0/*no name* /,*/                          /*0/*no name* /,*/
                         false/*don't intercept string*/);                          false/*don't intercept string*/);
                 if(vattribs.is_defined()) // allow 'void'                  if(!vattribs.is_string()) // allow empty
                         if(attribs=vattribs.get_hash(&method_name)) {                          if(attribs=vattribs.get_hash(&method_name)) {
                                 Attrib_info attrib_info={&tag, 0};                                  Attrib_info attrib_info={&tag, 0};
                                 attribs->for_each(append_attrib_pair, &attrib_info);                                  attribs->for_each(append_attrib_pair, &attrib_info);

Removed from v.1.80  
changed lines
  Added in v.1.83


E-mail: