data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/general/sim_file_io.svh
 line:11: before: "typedef"
data/verilator_xmls/9a97c5e6-126e-4508-894c-6f3081eab81f.xml
function open(fopen_mode_t mode = READ);
    if (mode == APPEND)
      handle  = $fopen(`ABSPATH(FILENAME), "a");
    else if (mode == WRITE)
      handle  = $fopen(`ABSPATH(FILENAME), "w");
    else
      handle  = $fopen(`ABSPATH(FILENAME), "r");

    if (handle == 0) begin
      $error("Could not open file: %s", `ABSPATH(FILENAME));
      $finish();
    end
    is_open = 1;
  endfunction
function open(fopen_mode_t mode = READ);

    if (mode == APPEND)
      handle  = $fopen(`ABSPATH(FILENAME), "a");
    else if (mode == WRITE)
      handle  = $fopen(`ABSPATH(FILENAME), "w");
    else
      handle  = $fopen(`ABSPATH(FILENAME), "r");

    if (handle == 0) begin
      $error("Could not open file: %s", `ABSPATH(FILENAME));
      $finish();
    end
    is_open = 1;
  endfunction