Is sdcc still trying to maintain VS2010 source compatibility?   A lot of the 
recent commits are incompatible with VS2010, all having to do with mixing 
declarations inside code blocks which VS2010 does not support.  A recent 
example:


int csdOfVal (int *topbit, int *nonzero, unsigned long long *csd_add, unsigned 
long long *csd_sub, value *val) 
{ 
  *topbit = 0; 
  *nonzero = 0; 
  *csd_add = 0; 
  *csd_sub = 0; 

  unsigned long long binary = ullFromVal (val); 
  bool gamma, theta, a; 
  int bit, next; 
...



This must be rearranged so that executable code occurs after the variable 
declarations.  In short, C89.


int csdOfVal (int *topbit, int *nonzero, unsigned long long *csd_add, unsigned 
long long *csd_sub, value *val) 
{ 
  unsigned long long binary;
  bool gamma, theta, a; 
  int bit, next; 

 *topbit = 0; 
  *nonzero = 0; 
  *csd_add = 0; 
  *csd_sub = 0; 

   binary = ullFromVal (val);


There are about a dozen of these sorts of fixes currently so I thought I'd 
better say something before it turns into hundreds.

------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to