transform (record -&w matrix[][], int width, height)
{
  scan_row (int row, int col)                        
  {
    int width = ...                                                            /*  "variable name is already in use" */

    ...

  }

  ...

}