loci: split accessors into one file per class
diff --git a/c_gen/c_code_gen.py b/c_gen/c_code_gen.py
index fa4db2a..cbaba56 100644
--- a/c_gen/c_code_gen.py
+++ b/c_gen/c_code_gen.py
@@ -543,7 +543,7 @@
 """)
     gen_object_enum_str(out)
     if config_check("gen_unified_fns"):
-        gen_accessor_definitions(out)
+        gen_all_accessor_definitions(out)
     gen_new_function_definitions(out)
     gen_init_map(out)
     out.write("\n/* This code should be broken out to a different file */\n")
@@ -2160,7 +2160,7 @@
     out.write("%s\n%s_%s_get(\n    %s)\n" % (ret_type, cls, m_name, params))
     gen_unified_acc_body(out, cls, m_name, ver_type_map, "get", m_type)
 
-def gen_accessor_definitions(out):
+def gen_all_accessor_definitions(out):
     """
     Generate the body of each version independent accessor
 
@@ -2182,6 +2182,10 @@
             gen_list_accessors(out, cls)
             continue
         out.write("/** \\ingroup %s \n * @{ */\n" % cls)
+        #gen_accessor_definitions(out, cls)
+        out.write("\n/** @} */\n")
+
+def gen_accessor_definitions(out, cls):
         for m_name in of_g.ordered_members[cls]:
             if m_name in of_g.skip_members:
                 continue
@@ -2222,8 +2226,6 @@
             out.write("%s\n%s_%s_set(\n    %s)\n" % (ret_type, cls, m_name, params))
             gen_unified_acc_body(out, cls, m_name, ver_type_map, "set", m_type)
 
-        out.write("\n/** @} */\n")
-
 def gen_acc_pointer_typedefs(out):
     """
     Generate the function pointer typedefs for in-struct accessors