aboutsummaryrefslogtreecommitdiffstats
path: root/test/auto-refac-tdd/auto-refac-tdd01.c
blob: 40e60d1f654c78aa7c75a1d70c9b30d70c831df6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*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.*/