Ignore:
Timestamp:
Nov 6, 2005, 7:07:59 PM (18 years ago)
Author:
Sam Hocevar
Message:
  • fixed int size issues here and there
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/include/specs.hpp

    r2 r7  
    77#include <fcntl.h>
    88#include <stdlib.h>
     9#include <stdint.h>
    910
    1011extern char *spec_types[];
     
    9697
    9798  // these read and writes, allways read/write Intel endian-ness
    98   unsigned short read_short();
    99   unsigned long read_long();
    100   unsigned char read_byte();
     99  uint16_t read_short();
     100  uint32_t read_long();
     101  uint8_t read_byte();
    101102  double read_double();
    102   void write_short(unsigned short x);
    103   void write_long(unsigned long x);
    104   void write_byte(unsigned char x);
     103  void write_short(uint16_t x);
     104  void write_long(uint32_t x);
     105  void write_byte(uint8_t x);
    105106  void write_double(double x);
    106107  void set_read_buffer_size(long size);
     
    193194                         char *link_filename=NULL);*/
    194195
    195 unsigned short read_short(FILE *fp);
    196 unsigned long read_long(FILE *fp);
    197 unsigned short read_other_long(FILE *fp);
    198 unsigned long read_other_short(FILE *fp);
    199 unsigned char read_byte(FILE *fp);
    200 
    201 void write_short(FILE *fp, unsigned short x);
    202 void write_long(FILE *fp, unsigned long x);
    203 void write_other_short(FILE *fp, unsigned short x);
    204 void write_other_long(FILE *fp, unsigned long x);
    205 void write_byte(FILE *fp, unsigned char x);
     196uint16_t read_short(FILE *fp);
     197uint32_t read_long(FILE *fp);
     198uint32_t read_other_long(FILE *fp);
     199uint16_t read_other_short(FILE *fp);
     200uint8_t read_byte(FILE *fp);
     201
     202void write_short(FILE *fp, uint16_t x);
     203void write_long(FILE *fp, uint32_t x);
     204void write_other_short(FILE *fp, uint16_t x);
     205void write_other_long(FILE *fp, uint32_t x);
     206void write_byte(FILE *fp, uint8_t x);
    206207
    207208void set_spec_main_file(char *filename, int Search_order);
Note: See TracChangeset for help on using the changeset viewer.