search for: fram_j

Displaying 1 result from an estimated 1 matches for "fram_j".

Did you mean: fram_i
2012 Jul 30
3
[LLVMdev] Regarding scope information for variable declaration.
...tion.   If I have .c source with scope as below. void func() {    //-- some code here..    { //parent scope       if() //high pass       {          int i;          for( i =0; i < FRAM_I; i++)          {          }       }       if() //low pass       {          int i;          for( i =0; i < FRAM_J; i++)          {          }       }    } }   In this case, the 'variable i' is not initialized in any of the if scope, so it should belong to which scope? Is it ok, if 'scope information' gives me that it belongs to the parent scope of 'if-scope'? Is it because the scope i...