diff options
author | Tom Lane | 2006-09-05 17:20:29 +0000 |
---|---|---|
committer | Tom Lane | 2006-09-05 17:20:29 +0000 |
commit | af7d257e21aae3d75c46977482309b658b3a29d7 (patch) | |
tree | cf93e41a5d1c182cc80f5c9122bd34a3d52caf20 /contrib/dbase/endian.c | |
parent | a3242fb42cc2b85581a195aa72cf72a1df94b78f (diff) |
Remove contrib modules that have been migrated to pgfoundry: adddepend,
dbase, dbmirror, fulltextindex, mac, userlock; or abandoned: mSQL-interface,
tips.
Diffstat (limited to 'contrib/dbase/endian.c')
-rw-r--r-- | contrib/dbase/endian.c | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/contrib/dbase/endian.c b/contrib/dbase/endian.c deleted file mode 100644 index 9f32f2ca2a2..00000000000 --- a/contrib/dbase/endian.c +++ /dev/null @@ -1,50 +0,0 @@ -/* $PostgreSQL: pgsql/contrib/dbase/endian.c,v 1.4 2006/03/11 04:38:28 momjian Exp $ */ -/* Maarten Boekhold ([email protected]) oktober 1995 */ - -#include <sys/types.h> -#include "dbf.h" -/* - * routine to change little endian long to host long - */ -long -get_long(u_char *cp) -{ - long ret; - - ret = *cp++; - ret += ((*cp++) << 8); - ret += ((*cp++) << 16); - ret += ((*cp++) << 24); - - return ret; -} - -void -put_long(u_char *cp, long lval) -{ - cp[0] = lval & 0xff; - cp[1] = (lval >> 8) & 0xff; - cp[2] = (lval >> 16) & 0xff; - cp[3] = (lval >> 24) & 0xff; -} - -/* - * routine to change little endian short to host short - */ -short -get_short(u_char *cp) -{ - short ret; - - ret = *cp++; - ret += ((*cp++) << 8); - - return ret; -} - -void -put_short(u_char *cp, short sval) -{ - cp[0] = sval & 0xff; - cp[1] = (sval >> 8) & 0xff; -} |