{"name": "menuVisualSetup", "code": "int menuVisualSetup ( ) { int @@result@@ ; int @@v1@@ ; int @@v2@@ ; XColor @@v3@@ ; char @@v4@@ [ Number ] ; int @@v5@@ ; __int64 @@v6@@ ; int @@v7@@ ; __int64 @@v8@@ ; void * @@v9@@ ; int @@v10@@ ; int @@j@@ ; int @@i@@ ; for ( @@i@@ = Number ; @@i@@ > Number ; -- @@i@@ ) { @@v6@@ = @@i@@ ; @@v5@@ = _glutScreen ; @@v9@@ = ( void * ) _glutXGetLayerVisualInfo ( _glutDisplay , Number L , @@v4@@ , & @@v2@@ ) ; if ( @@v9@@ ) { for ( @@j@@ = Number ; @@j@@ < @@v2@@ ; ++ @@j@@ ) { @@v8@@ = ( __int64 ) @@v9@@ + Number * @@j@@ ; if ( * ( int * ) ( @@v8@@ + Number ) > Number ) { menuColormap = XCreateColormap ( _glutDisplay , _glutRoot , * ( Visual * * ) @@v8@@ , Number ) ; @@v3@@ . blue = Number ; @@v3@@ . green = Number ; @@v3@@ . red = Number ; @@v7@@ = XAllocColor ( _glutDisplay , menuColormap , & @@v3@@ ) ; if ( @@v7@@ ) { menuGray = @@v3@@ . pixel ; @@v3@@ . blue = Number ; @@v3@@ . green = Number ; @@v3@@ . red = Number ; @@v7@@ = XAllocColor ( _glutDisplay , menuColormap , & @@v3@@ ) ; if ( @@v7@@ ) { menuBlack = @@v3@@ . pixel ; @@v3@@ . blue = Number ; @@v3@@ . green = Number ; @@v3@@ . red = Number ; @@v7@@ = XAllocColor ( _glutDisplay , menuColormap , & @@v3@@ ) ; if ( @@v7@@ ) { menuWhite = @@v3@@ . pixel ; menuVisual = * ( Visual * * ) @@v8@@ ; menuDepth = * ( _DWORD * ) ( @@v8@@ + Number ) ; useSaveUnders = Number L ; return XFree ( @@v9@@ ) ; } } } XFreeColormap ( _glutDisplay , menuColormap ) ; } } XFree ( @@v9@@ ) ; } } menuVisual = _glutDisplay -> screens [ ( __int64 ) _glutScreen ] . root_visual ; menuDepth = _glutDisplay -> screens [ ( __int64 ) _glutScreen ] . root_depth ; menuColormap = _glutDisplay -> screens [ ( __int64 ) _glutScreen ] . cmap ; menuBlack = _glutDisplay -> screens [ ( __int64 ) _glutScreen ] . black_pixel ; menuWhite = _glutDisplay -> screens [ ( __int64 ) _glutScreen ] . white_pixel ; @@v3@@ . blue = Number ; @@v3@@ . green = Number ; @@v3@@ . red = Number ; noFaultXAllocColor ( _glutDisplay , menuColormap , ( unsigned int ) menuVisual -> map_entries , & @@v3@@ ) ; menuGray = @@v3@@ . pixel ; @@result@@ = XQueryExtension ( _glutDisplay , String , & @@v1@@ , & @@v1@@ , & @@v1@@ ) == Number ; @@v10@@ = @@result@@ ; if ( @@result@@ ) useSaveUnders = Number L ; else useSaveUnders = Number L ; return @@result@@ ; }", "source": [{"n": "result", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s112"}, {"n": "v10", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v4", "t": {"T": 2, "n": 16, "s": 1, "t": "char"}, "location": "s128"}, {"n": "v3", "t": {"T": 6, "n": "XColor", "l": [{"T": 4, "n": "pixel", "t": "unsigned __int64", "s": 8}, {"T": 4, "n": "red", "t": "unsigned __int16", "s": 2}, {"T": 4, "n": "green", "t": "unsigned __int16", "s": 2}, {"T": 4, "n": "blue", "t": "unsigned __int16", "s": 2}, {"T": 4, "n": "flags", "t": "char", "s": 1}, {"T": 4, "n": "pad", "t": "char", "s": 1}]}, "location": "s144"}, {"n": "v2", "t": {"T": 1, "n": "int", "s": 4}, "location": "s148"}, {"n": "v1", "t": {"T": 1, "n": "int", "s": 4}, "location": "s152"}, {"n": "v9", "t": {"T": 3, "t": "void"}, "location": "s24"}, {"n": "v8", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}, {"n": "v7", "t": {"T": 1, "n": "int", "s": 4}, "location": "s36"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s64"}, {"n": "j", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}]}
{"name": "menuSetup", "code": "XFontStruct * menuSetup ( ) { XFontStruct * @@result@@ ; @@result@@ = menuFont ; if ( ! menuFont ) { menuFont = XLoadQueryFont ( _glutDisplay , String ) ; if ( ! menuFont ) menuFont = XLoadQueryFont ( _glutDisplay , String ) ; if ( ! menuFont ) _glutFatalError ( String ) ; menuVisualSetup ( ) ; fontHeight = menuFont -> ascent + menuFont -> descent ; @@result@@ = ( XFontStruct * ) XCreateFontCursor ( _glutDisplay , Number ) ; menuCursor = ( Cursor ) @@result@@ ; } return @@result@@ ; }", "source": [{"n": "result", "t": {"T": 3, "t": "XFontStruct"}, "location": "r8"}]}