aboutsummaryrefslogblamecommitdiffstats
path: root/test/auto-refac-tdd/auto-refac-tdd01.c
blob: 40e60d1f654c78aa7c75a1d70c9b30d70c831df6 (plain) (tree)
















































                                                                                                                        
/*first line's intentionally left blank.*/
/**********************************************************************************************************************/
/*inclusion directives*/
#include "auto-refac-tdd01.h"
/**********************************************************************************************************************/
/**************************************************MACROS & DEFS*******************************************************/
#define MACRO1 100U

/**********************************************************************************************************************/
/******************************************************Globals*********************************************************/


/**********************************************************************************************************************/
/***********************************************Function Definitions***************************************************/
void tdd_forfixer(void)
{
  int loopcounter;
  int counter;

  for (loopcounter = 0; loopcounter < 10; ++loopcounter)
    counter;

  for (loopcounter = 0; loopcounter < 10; ++loopcounter)
    counter--       ;
}

void tdd_ifconstswapper(void)
{
  int a;

  if (a = 10)
  {
    /*blah blah*/
  }

  if (a == MACRO1)
  {

  }

  if (MACRO1 == a)
  {

  }
}
/**********************************************************************************************************************/
/**********************************************************************************************************************/
/*last line's intntionally left blank.*/