Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/23/02 15:39
Read: times


 
#19020 - RE: typedef & optimisation? Peter/Erik
Sorry, I was referring to the point raised by Peter; eg,

main.h:
#ifdef MAIN 
#define U8 unsigned char 
: 
#else 
#define U8 extern unsigned char 
:
#endif
:

main.c:
#define MAIN 
#include "main.h"

U8 main_function( U8 param ) // No problem - "U8" is "unsigned char"
{ 
   U8 local_temp = 1; 
   return param + local_temp; 
} 

other.c:
#include "main.h"

U8 main_function( U8 param ) // Problem!  "U8" is "extern unsigned char" 
{ 
   U8 local_temp = 1; 
   return param + local_temp; 
} 




List of 21 messages in thread
TopicAuthorDate
typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation? Derek            01/01/70 00:00      
RE: typedef & optimisation? Peter            01/01/70 00:00      
RE: typedef & optimisation Franc            01/01/70 00:00      
RE: typedef & optimisation? Erik            01/01/70 00:00      
RE: typedef & optimisation? Peter            01/01/70 00:00      
RE: typedef & optimisation? Peter/Erik            01/01/70 00:00      
RE: typedef & optimisation? Peter/Erik            01/01/70 00:00      
RE: typedef & optimisation? Peter/Erik            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      
RE: typedef & optimisation?            01/01/70 00:00      

Back to Subject List