[Gtkradiant] [Bug 828] New: Using SYN_REQUIRE_ANY gives an Error in console, and fails to fill the table.

gtkradiant@zerowing.idsoftware.com gtkradiant@zerowing.idsoftware.com
Tue, 24 Jun 2003 12:23:36 -0500


http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=828

           Summary: Using SYN_REQUIRE_ANY gives an Error in console, and
                    fails to fill the table.
           Product: GtkRadiant
           Version: 1.3
          Platform: All
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: bobtoolz
        AssignedTo: ttimo@idsoftware.com
        ReportedBy: gbiggans@uglab.eee.strath.ac.uk


g_SynapseClient.AddAPI(DATA_MAJOR, NULL, sizeof(g_AppDataTable), SYN_REQUIRE, 
&g_AppDataTable);
  g_SynapseClient.AddAPI(BRUSH_MAJOR, NULL, sizeof(g_BrushTable), SYN_REQUIRE, 
&g_BrushTable);
  g_SynapseClient.AddAPI(SHADERS_MAJOR, NULL, sizeof(g_ShadersTable), 
SYN_REQUIRE_ANY, &g_ShadersTable);
  g_SynapseClient.AddAPI(ENTITY_MAJOR, NULL, sizeof(g_EntityTable), 
SYN_REQUIRE, &g_EntityTable);
  g_SynapseClient.AddAPI(SELECTEDFACE_MAJOR, NULL, sizeof(g_SelectedFaceTable), 
SYN_REQUIRE, &g_SelectedFaceTable);
  g_SynapseClient.AddAPI(UI_MAJOR, NULL, sizeof(g_MessageTable), SYN_REQUIRE, 
&g_MessageTable);
  g_SynapseClient.AddAPI(RADIANT_MAJOR, NULL, sizeof(g_FuncTable), SYN_REQUIRE, 
&g_FuncTable);
  g_SynapseClient.AddAPI(QGL_MAJOR, NULL, sizeof(g_QglTable), SYN_REQUIRE, 
&g_QglTable);

gives

AddAPI: SYN_PROVIDE 09979390 'toolbar' 'bobtoolz' from 'bobToolz module built 
Jun 24 2003 1.3.8-beta', size 12
AddAPI: SYN_PROVIDE 099794D0 'plugin' 'bobtoolz' from 'bobToolz module built 
Jun 24 2003 1.3.8-beta', size 20
AddAPI: SYN_REQUIRE 09979610 'data' '(null)' from 'bobToolz module built Jun 24 
2003 1.3.8-beta', size 20
AddAPI: SYN_REQUIRE 09979750 'brush' '(null)' from 'bobToolz module built Jun 
24 2003 1.3.8-beta', size 40
ERROR: AddAPI type '2' not supported
AddAPI: SYN_REQUIRE 099799D0 'entity' '(null)' from 'bobToolz module built Jun 
24 2003 1.3.8-beta', size 80
AddAPI: SYN_REQUIRE 0997A080 'selectedface' '(null)' from 'bobToolz module 
built Jun 24 2003 1.3.8-beta', size 36
AddAPI: SYN_REQUIRE 0997A1C0 'ui' '(null)' from 'bobToolz module built Jun 24 
2003 1.3.8-beta', size 28
AddAPI: SYN_REQUIRE 0997A300 'radiant' '(null)' from 'bobToolz module built Jun 
24 2003 1.3.8-beta', size 396
AddAPI: SYN_REQUIRE 0997A440 'qgl' '(null)' from 'bobToolz module built Jun 24 
2003 1.3.8-beta', size 368

Note, the error on using SYN_REQUIRE_ANY. "ERROR: AddAPI type '2' not supported"

The shaders table is left un-inited.