ADMB Documentation  11.1.2192
 All Classes Files Functions Variables Typedefs Friends Defines
ptr2.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: ptr2.cpp 1899 2014-04-17 09:09:05Z johnoel $
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00011 #include "fvar.hpp"
00012 #ifdef __ZTC__
00013 #include <iostream.hpp>
00014 #endif
00015 
00016 #ifdef __TURBOC__
00017 #pragma hdrstop
00018 #pragma options -h-
00019 #include <iostream.h>
00020 #endif
00021 #include <stdlib.h>
00022 
00023 #if defined( __NDPX__) || defined(__SUN__)
00024   void * _farptr_fromlong(long int i)
00025 #else
00026   void * _farptr_fromlong(unsigned long int i)
00027 #endif
00028 {
00029   return( (void *) i);
00030 }
00031 
00036 #if !defined(__MINGW64__)
00037 long int _farptr_tolong(void * ptr)
00038 {
00039   return( (long int) ptr);
00040 }
00041 #endif
00042 
00047 void * _farptr_norm(void * ptr)
00048 {
00049   return(ptr);
00050 }