1. 19 Feb, 2013 2 commits
  2. 12 Feb, 2013 7 commits
  3. 11 Feb, 2013 2 commits
  4. 10 Feb, 2013 4 commits
  5. 09 Feb, 2013 2 commits
  6. 08 Feb, 2013 1 commit
  7. 07 Feb, 2013 1 commit
  8. 06 Feb, 2013 1 commit
    • Rafaël Carré's avatar
      Remove variable name clashes in TAB_REMOVE · 6be4754f
      Rafaël Carré authored
      If foo[i] or bar[i_index] are used in TAB_REMOVE / TAB_FIND, they will
      use another variable with local scope declared inside the macro.
      
      for (int i = 0; i < 1; i++) {
          TAB_REMOVE( count, array, foo[i] );
      }
      
      will expand to:
      
      for (int i = 0; i < 1; i++) {
          int i_index;
          .....
          for (int i = 0; i < count; i++)
              if (array[i] == foo[i])
              {
                  index = i;
                  break;
              }
          .....
      }
      
      And inner scope i is used to index foo, instead of the outer scope i
      which we would expect without knowing the content of the macro.
      (cherry picked from commit 728ef39d15cdbfc5b1bc9beba8a97493ef6c08fc)
      Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
      6be4754f
  9. 05 Feb, 2013 7 commits
  10. 04 Feb, 2013 1 commit
  11. 30 Jan, 2013 1 commit
  12. 29 Jan, 2013 4 commits
  13. 28 Jan, 2013 3 commits
  14. 27 Jan, 2013 4 commits