ADMB Documentation  11.1.2528
 All Classes Files Functions Variables Typedefs Friends Defines
ptr2.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: ptr2.cpp 2260 2014-08-27 23:53:23Z 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(__ZTC__)
00024   #if defined( __NDPX__) || defined(__SUN__)
00025 void * _farptr_fromlong(long int i)
00026   #else
00027 void * _farptr_fromlong(unsigned long int i)
00028   #endif
00029 {
00030   return( (void *) i);
00031 }
00032 #endif
00033 
00038 #if !defined(__MINGW64__)
00039 long int _farptr_tolong(void * ptr)
00040 {
00041   return( (long int) ptr);
00042 }
00043 #endif
00044 
00045 #if defined(__ZTC__)
00046 
00050 void * _farptr_norm(void * ptr)
00051 {
00052   return(ptr);
00053 }
00054 #endif