﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1974	Types in the OMC compiler	Adrian Pop	Adrian Pop	"
Maybe we should switch all the f2c types from
int to long so they are the same size as void*
on different platforms.

Also, it might be a good idea to have 
our own types everywhere in the compiler.
Have a new header omc_types.h where we 
define all the types we need and we use
them everywhere:
- SimulationRuntime/*
- Compiler/runtime
- generated code
- parser

We have this in openmodelica.h:
{{{
#if defined(__alpha__) || defined(__sparc64__) || defined(__x86_64__) || defined(__ia64__)
typedef int fortran_integer;
typedef unsigned int fortran_uinteger;
#else
typedef long int fortran_integer;
typedef unsigned long int fortran_uinteger;
#endif
}}}

""int"" is rather bad because it varies in size 
on different platform and various issues might
appear because of data loss when casting, etc.

Comments, suggestions? Feel free to comment here."	enhancement	new	low	Future	Build Environment	trunk			Martin Sjölund
