portable.c File Reference

#include <string.h>
#include <grass/gis.h>
#include <grass/portable.h>
#include <grass/Vect.h>

Include dependency graph for portable.c:

Go to the source code of this file.

Functions

int dig__fread_port_D (double *buf, int cnt, GVFILE *fp)
int dig__fread_port_F (float *buf, int cnt, GVFILE *fp)
int dig__fread_port_L (long *buf, int cnt, GVFILE *fp)
int dig__fread_port_I (int *buf, int cnt, GVFILE *fp)
int dig__fread_port_S (short *buf, int cnt, GVFILE *fp)
int dig__fread_port_C (char *buf, int cnt, GVFILE *fp)
int dig__fread_port_P (plus_t *buf, int cnt, GVFILE *fp)
int dig__fwrite_port_D (double *buf, int cnt, GVFILE *fp)
int dig__fwrite_port_F (float *buf, int cnt, GVFILE *fp)
int dig__fwrite_port_L (long *buf, int cnt, GVFILE *fp)
int dig__fwrite_port_I (int *buf, int cnt, GVFILE *fp)
int dig__fwrite_port_S (short *buf, int cnt, GVFILE *fp)
int dig__fwrite_port_P (plus_t *buf, int cnt, GVFILE *fp)
int dig__fwrite_port_C (char *buf, int cnt, GVFILE *fp)
void dig_init_portable (struct Port_info *port, int byte_order)
int dig_set_cur_port (struct Port_info *port)
int dig__byte_order_out ()

Variables

struct Port_info * Cur_Head


Function Documentation

int dig__byte_order_out (  ) 

Definition at line 696 of file portable.c.

References DOUBLE_ORDER.

Referenced by V1_open_new_nat(), Vect_cidx_save(), Vect_save_spatial_index(), and Vect_save_topo().

int dig__fread_port_C ( char *  buf,
int  cnt,
GVFILE *  fp 
)

int dig__fread_port_D ( double *  buf,
int  cnt,
GVFILE *  fp 
)

int dig__fread_port_F ( float *  buf,
int  cnt,
GVFILE *  fp 
)

Definition at line 96 of file portable.c.

References Cur_Head, and dig_fread().

Referenced by dig_Rd_P_node(), and main().

int dig__fread_port_I ( int *  buf,
int  cnt,
GVFILE *  fp 
)

int dig__fread_port_L ( long *  buf,
int  cnt,
GVFILE *  fp 
)

int dig__fread_port_P ( plus_t *  buf,
int  cnt,
GVFILE *  fp 
)

int dig__fread_port_S ( short *  buf,
int  cnt,
GVFILE *  fp 
)

Definition at line 283 of file portable.c.

References Cur_Head, dig_fread(), and NATIVE_SHORT.

Referenced by main(), and Vect__Read_line_nat().

int dig__fwrite_port_C ( char *  buf,
int  cnt,
GVFILE *  fp 
)

int dig__fwrite_port_D ( double *  buf,
int  cnt,
GVFILE *  fp 
)

int dig__fwrite_port_F ( float *  buf,
int  cnt,
GVFILE *  fp 
)

Definition at line 416 of file portable.c.

References Cur_Head, and dig_fwrite().

Referenced by dig_Wr_P_node(), and main().

int dig__fwrite_port_I ( int *  buf,
int  cnt,
GVFILE *  fp 
)

int dig__fwrite_port_L ( long *  buf,
int  cnt,
GVFILE *  fp 
)

int dig__fwrite_port_P ( plus_t *  buf,
int  cnt,
GVFILE *  fp 
)

int dig__fwrite_port_S ( short *  buf,
int  cnt,
GVFILE *  fp 
)

Definition at line 543 of file portable.c.

References Cur_Head, dig_fwrite(), and NATIVE_SHORT.

Referenced by main(), and V1__rewrite_line_nat().

void dig_init_portable ( struct Port_info *  port,
int  byte_order 
)

int dig_set_cur_port ( struct Port_info *  port  ) 


Variable Documentation

struct Port_info* Cur_Head


Generated on Sun Apr 6 17:32:52 2008 for GRASS by  doxygen 1.5.5