[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

[x11] code generation from sources

This was the code evaluated to build spec literals in ToDo list
See the result at [x11] to do literals
| stream lines returnAndName |
stream := '
Window XGetSelectionOwner( *display, selection); 
Pixmap XCreatePixmap( *display, d, height, depth); 
Cursor XCreateFontCursor( *display, shape); 
Cursor XCreateGlyphCursor( *display, mask_font, mask_char, *foreground_color, *background_color); 
Cursor XCreatePixmapCursor( *display, source, mask, *foreground_color, *background_color, y); 
Status XQueryBestCursor( *display, d, height, *height_return); 
Colormap XCreateColormap( *display, w, *visual, alloc); 
Colormap XCopyColormapAndFree( *display, colormap); 
Status XLookupColor( *display, colormap, *color_name, *screen_def_return); 
Status XParseColor( *display, colormap, *spec, *exact_def_return); 
Status XcmsLookupColor( *display, colormap, *color_string, *color_screen_return, result_format); 
Status XAllocColor( *display, colormap, *screen_in_out); 
Status XcmsAllocColor( *display, colormap, *color_in_out, result_format); 
Status XAllocNamedColor( *display, colormap, *color_name, *exact_def_return); 
Status XcmsAllocNamedColor( *display, colormap, *color_string, *color_screen_return, *color_exact_return, result_format); 
Status XcmsStoreColor( *display, colormap, *color); 
Status XcmsQueryColor( *display, colormap, *color_in_out, result_format); 
XcmsCCC XcmsCCCOfColormap( *display, colormap); 
XcmsCCC XcmsSetCCCOfColormap( *display, colormap, ccc); 
XcmsCCC XcmsDefaultCCC( *display, screen_number); 
int XcmsScreenNumberOfCCC( ccc); 
XcmsColor XcmsScreenWhitePointOfCCC( ccc); 
Status XcmsSetWhitePoint( ccc, *color); 
XcmsCompressionProc XcmsSetCompressionProc( ccc, compression_proc, client_data); 
XcmsWhiteAdjustProc XcmsSetWhiteAdjustProc( ccc, white_adjust_proc, client_data); 
XcmsCCC XcmsCreateCCC( *display, screen_number, *visual, *client_white_point, compression_proc, compression_client_data, white_adjust_proc, white_adjust_client_data); 
void XcmsFreeCCC( ccc); 
Status XcmsQueryBlack( ccc, target_format, *color_return); 
Status XcmsQueryBlue( ccc, target_format, *color_return); 
Status XcmsQueryGreen( ccc, target_format, *color_return); 
Status XcmsQueryRed( ccc, target_format, *color_return); 
Status XcmsQueryWhite( ccc, target_format, *color_return); 
Status XcmsCIELabQueryMaxC( ccc, hue_angle, lStar, *color_return); 
Status XcmsCIELabQueryMaxL( ccc, hue_angle, chroma, *color_return); 
Status XcmsCIELabQueryMaxLC( ccc, hue_angle, *color_return); 
Status XcmsCIELabQueryMinL( ccc, hue_angle, chroma, *color_return); 
Status XcmsCIELuvQueryMaxC( ccc, hue_angle, lStar, *color_return); 
Status XcmsCIELuvQueryMaxL( ccc, hue_angle, chroma, *color_return); 
Status XcmsCIELuvQueryMaxLC( ccc, hue_angle, *color_return); 
Status XcmsCIELuvQueryMinL( ccc, hue_angle, chroma, *color_return); 
Status XcmsTekHVCQueryMaxC( ccc, hue, value, *color_return); 
Status XcmsTekHVCQueryMaxV( ccc, hue, chroma, *color_return); 
Status XcmsTekHVCQueryMaxVC( ccc, hue, *color_return); 
Status XcmsTekHVCQueryMinV( ccc, hue, chroma, *color_return); 
Status XcmsAddColorSpace( *color_space); 
XcmsColorFormat XcmsFormatOfPrefix( *prefix); 
Status XcmsParseStringProc( *color_string, *color_return); 
Status XcmsAddFunctionSet( *function_set); 
GC XCreateGC( *display, d, valuemask, values); 
Status XGetGCValues( *display, gc, valuemask, *values_return); 
GContext XGContextFromGC( gc); 
void XFlushGC( *display, gc); 
Status XQueryBestSize( *display, class, which_screen, height, *height_return); 
Status XQueryBestTile( *display, which_screen, height, *height_return); 
Status XQueryBestStipple( *display, which_screen, height, *height_return); 
Font XLoadFont( *display, *name); 
Bool XGetFontProperty( *font_struct, atom, *value_return); 
int XTextWidth( *font_struct, *string, count); 
int XTextWidth16( *font_struct, *string, count); 
Status XInitImage( *image); 
int XEventsQueued( *display, mode); 
int XPending( *display); 
Bool XCheckIfEvent( *display, *event_return, predicate, arg); 
Bool XCheckWindowEvent( *display, w, event_mask, *event_return); 
Bool XCheckMaskEvent( *display, event_mask, *event_return); 
Bool XCheckTypedEvent( *display, event_type, *event_return); 
Bool XCheckTypedWindowEvent( *display, w, event_type, *event_return); 
Status XSendEvent( *display, w, propagate, event_mask, *event_send); 
int XGrabPointer( *display, grab_window, owner_events, event_mask, keyboard_mode, confine_to, cursor, time); 
int XGrabKeyboard( *display, grab_window, owner_events, keyboard_mode, time); 
int XSetModifierMapping( *display, *modmap); 
Bool XSupportsLocale() 
XVaNestedList XVaCreateNestedList( dummy); 
XOM XOpenOM( *display, db, *res_name, *res_class); 
Status XCloseOM( om); 
XOC XCreateOC( om); 
void XDestroyOC( oc); 
XOM XOMOfOC( oc); 
XFontSet XCreateFontSet( *display, *base_font_name_list, ***missing_charset_list_return, *missing_charset_count_return, **def_string_return); 
int XFontsOfFontSet( font_set, ***font_struct_list_return, ***font_name_list_return); 
void XFreeFontSet( *display, font_set); 
Bool XDirectionalDependentDrawing( font_set); 
Bool XContextualDrawing( font_set); 
Bool XContextDependentDrawing( font_set); 
int XmbTextEscapement( font_set, *string, num_bytes); 
int XwcTextEscapement( font_set, *string, num_wchars); 
int XmbTextExtents( font_set, *string, num_bytes, *overall_ink_return, *overall_logical_return); 
int XwcTextExtents( font_set, *string, num_wchars, *overall_ink_return, *overall_logical_return); 
Status XmbTextPerCharExtents( font_set, *string, num_bytes, *ink_array_return, *logical_array_return, array_size, *num_chars_return, *overall_ink_return, *overall_logical_return); 
Status XwcTextPerCharExtents( font_set, *string, num_wchars, *ink_array_return, *logical_array_return, array_size, *num_chars_return, *overall_ink_return, *overall_logical_return); 
void XmbDrawText( *display, d, gc, y, *items, nitems); 
void XwcDrawText( *display, d, gc, y, *items, nitems); 
void XmbDrawString( *display, num_bytes); 
void XwcDrawString( *display, num_wchars); 
void XmbDrawImageString( *display, num_bytes); 
void XwcDrawImageString( *display, num_wchars); 
XIM XOpenIM( *display, db, *res_name, *res_class); 
Status XCloseIM( im); 
Bool XRegisterIMInstantiateCallback( *display, db, *res_name, *res_class, callback, *client_data); 
Bool XUnregisterIMInstantiateCallback( *display, db, *res_name, *res_class, callback, *client_data); 
XIC XCreateIC( im); 
void XDestroyIC( ic); 
void XSetICFocus( ic); 
void XUnsetICFocus( ic); 
XIM XIMOfIC( ic); 
Bool XFilterEvent( *event, w); 
int XmbLookupString( ic, *event, *buffer_return, bytes_buffer, *keysym_return, *status_return); 
int XwcLookupString( ic, *event, *buffer_return, wchars_buffer, *keysym_return, *status_return); 
Status XIconifyWindow( *display, w, screen_number); 
Status XWithdrawWindow( *display, w, screen_number); 
Status XReconfigureWMWindow( *display, w, screen_number, value_mask, *values); 
int XmbTextListToTextProperty( *display, **list, count, *text_prop_return); 
int XwcTextListToTextProperty( *display, **list, count, *text_prop_return); 
int XmbTextPropertyToTextList( *display, *text_prop, ***list_return, *count_return); 
int XwcTextPropertyToTextList( *display, *text_prop, ***list_return, *count_return); 
void XwcFreeStringList( **list); 
Status XStringListToTextProperty( **list, count, *text_prop_return); 
Status XTextPropertyToStringList( *text_prop, ***list_return, *count_return); 
void XFreeStringList( **list); 
void XSetTextProperty( *display, w, *text_prop, property); 
Status XGetTextProperty( *display, w, *text_prop_return, property); 
void XSetWMName( *display, w, *text_prop); 
Status XGetWMName( *display, w, *text_prop_return); 
Status XFetchName( *display, w, **window_name_return); 
void XSetWMIconName( *display, w, *text_prop); 
Status XGetWMIconName( *display, w, *text_prop_return); 
Status XGetIconName( *display, w, **icon_name_return); 
void XSetWMNormalHints( *display, w, *hints); 
Status XGetWMNormalHints( *display, w, *hints_return, *supplied_return); 
void XSetWMSizeHints( *display, w, *hints, property); 
Status XGetWMSizeHints( *display, w, *hints_return, *supplied_return, property); 
Status XGetClassHint( *display, w, *class_hints_return); 
Status XGetTransientForHint( *display, w, *prop_window_return); 
Status XSetWMProtocols( *display, w, *protocols, count); 
Status XGetWMProtocols( *display, w, **protocols_return, *count_return); 
Status XSetWMColormapWindows( *display, w, *colormap_windows, count); 
Status XGetWMColormapWindows( *display, w, **colormap_windows_return, *count_return); 
Status XGetIconSizes( *display, w, **size_list_return, *count_return); 
void XmbSetWMProperties( *display, w, *window_name, *icon_name, *argv[], argc, *normal_hints, *wm_hints, *class_hints); 
void XSetWMProperties( *display, w, *window_name, *icon_name, **argv, argc, *normal_hints, *wm_hints, *class_hints); 
Status XGetCommand( *display, w, ***argv_return, *argc_return); 
void XSetWMClientMachine( *display, w, *text_prop); 
Status XGetWMClientMachine( *display, w, *text_prop_return); 
void XSetRGBColormaps( *display, w, *std_colormap, count, property); 
Status XGetRGBColormaps( *display, w, **std_colormap_return, *count_return, property); 
XrmQuark XrmUniqueQuark() 
XrmQuark XrmStringToQuark( *string); 
void XrmStringToQuarkList( *string, quarks_return); 
void XrmInitialize(); 
XrmDatabase XrmGetFileDatabase( *filename); 
void XrmPutFileDatabase( database, *stored_db); 
XrmDatabase XrmGetStringDatabase( *data); 
void XrmDestroyDatabase( database); 
void XrmSetDatabase( *display, database); 
XrmDatabase XrmGetDatabase( *display); 
Status XrmCombineFileDatabase( *filename, *target_db, override); 
void XrmCombineDatabase( *target_db, override); 
void XrmMergeDatabases( *target_db); 
Bool XrmGetResource( database, *str_name, *str_class, **str_type_return, *value_return); 
Bool XrmQGetResource( database, quark_name, quark_class, *quark_type_return, *value_return); 
Bool XrmQGetSearchResource( database, names, classes, list_return, list_length); 
Bool XrmQGetSearchResource( list, name, class, *type_return, *value_return); 
void XrmPutResource( *database, *specifier, *type, *value); 
void XrmQPutResource( *database, bindings, quarks, type, *value); 
void XrmPutStringResource( *database, *specifier, *value); 
void XrmQPutStringResource( *database, bindings, quarks, *value); 
void XrmPutLineResource( *database, *line); 
Bool XrmEnumerateDatabase( database, name_prefix, class_prefix, mode, proc, arg); 
void XrmParseCommand( *database, table, table_count, *name, *argc_in_out, **argv_in_out); 
KeySym XLookupKeysym( *key_event, index); 
KeySym XKeycodeToKeysym( *display, keycode, index); 
KeyCode XKeysymToKeycode( *display, keysym); 
void XConvertCase( keysym, *lower_return, *upper_return); 
KeySym XStringToKeysym( *string); 
int XLookupString( *event_struct, *buffer_return, bytes_buffer, *keysym_return, *status_in_out); 
int XParseGeometry( *parsestring, *y_return, *height_return); 
int XWMGeometry( *display, screen, *user_geom, *def_geom, bwidth, *hints, *y_return, *width_return, *height_return, *gravity_return); 
Region XCreateRegion() 
Bool XEmptyRegion( r); 
Bool XEqualRegion( r2); 
Bool XPointInRegion( r, y); 
int XRectInRegion( r, y, height); 
Status XMatchVisualInfo( *display, screen, depth, class, *vinfo_return); 
ulong XGetPixel( *ximage, x, y); 
int XReadBitmapFile( *display, d, *filename, *height_return, *bitmap_return, *y_hot_return); 
int XReadBitmapFileData( *filename, *height_return, *data_return, *y_hot_return); 
int XWriteBitmapFile( *display, *filename, bitmap, height, y_hot); 
Pixmap XCreatePixmapFromBitmapData( *display, d, *data, height, bg, depth); 
Pixmap XCreateBitmapFromData( *display, d, *data, height); 
int XSaveContext( *display, rid, context, data); 
int XFindContext( *display, rid, context, *data_return); 
int XDeleteContext( *display, rid, context); 
XContext XuniqueContext() 
Bool XQueryExtension( *display, *name, *major_opcode_return, *first_event_return, *first_error_return); 
int XESetCloseDisplay( *display, extension, proc); 
Status XGetNormalHints( *display, w, *hints_return); 
Status XGetZoomHints( *display, w, *zhints_return); 
Status XGetSizeHints( *display, w, *hints_return, property); 
Status XGetStandardColormap( *display, w, *colormap_return, property); 
int XGeometry( *display, screen, *default_position, bwidth, fheight, yadder, *y_return, *height_return); 
Status XDraw( *display, d, gc, *vlist, vcount); 
Status XDrawFilled( *display, d, gc, *vlist, vcount); 

XSetSelectionOwner( *display, selection, owner, time); 
XConvertSelection( *display, target, property, requestor, time); 
XFreePixmap( *display, pixmap); 
XRecolorCursor( *display, cursor, *background_color); 
XFreeCursor( *display, cursor); 
XFreeColormap( *display, colormap); 
XStoreColor( *display, colormap, *color); 
XStoreNamedColor( *display, colormap, *color, pixel, flags); 
XQueryColor( *display, colormap, *def_in_out); 
XCopyGC( *display, dest, valuemask); 
XChangeGC( *display, gc, valuemask, *values); 
XFreeGC( *display, gc); 
XSetState( *display, gc, background, function, plane_mask); 
XSetForeground( *display, gc, foreground); 
XSetBackground( *display, gc, background); 
XSetFunction( *display, gc, function); 
XSetPlaneMask( *display, gc, plane_mask); 
XSetLineAttributes( *display, gc, line_width, line_style, cap_style, join_style); 
XSetFillStyle( *display, gc, fill_style); 
XSetFillRule( *display, gc, fill_rule); 
XSetTile( *display, gc, tile); 
XSetStipple( *display, gc, stipple); 
XSetTSOrigin( *display, gc, ts_y_origin); 
XSetFont( *display, gc, font); 
XSetClipOrigin( *display, gc, clip_y_origin); 
XSetClipMask( *display, gc, pixmap); 
XSetArcMode( *display, gc, arc_mode); 
XSetSubwindowMode( *display, gc, subwindow_mode); 
XSetGraphicsExposures( *display, gc, graphics_exposures); 
XClearArea( *display, w, y, height, exposures); 
XClearWindow( *display, w); 
XCopyArea( *display, dest, gc, src_y, height, dest_y); 
XCopyPlane( *display, dest, gc, src_y, height, dest_y, plane); 
XDrawPoint( *display, d, gc, y); 
XDrawPoints( *display, d, gc, *points, npoints, mode); 
XDrawLine( *display, d, gc, y2); 
XDrawLines( *display, d, gc, *points, npoints, mode); 
XDrawSegments( *display, d, gc, *segments, nsegments); 
XDrawRectangle( *display, d, gc, y, height); 
XDrawArc( *display, d, gc, y, height, angle2); 
XDrawArcs( *display, d, gc, *arcs, narcs); 
XFillRectangle( *display, d, gc, y, height); 
XFillRectangles( *display, d, gc, *rectangles, nrectangles); 
XFillPolygon( *display, d, gc, *points, npoints, shape, mode); 
XFillArc( *display, d, gc, y, height, angle2); 
XFillArcs( *display, d, gc, *arcs, narcs); 
XFontStruct *XQueryFont( *display, font_ID); 
XFontStruct *XLoadQueryFont( *display, *name); 
XFreeFont( *display, *font_struct); 
XUnloadFont( *display, font); 
XFreeFontNames( *list[]); 
XFreeFontInfo( **names, *free_info, actual_count); 
XTextExtents( *font_struct, *string, nchars, *direction_return, *font_descent_return, *overall_return); 
XTextExtents16( *font_struct, *string, nchars, *direction_return, *font_descent_return, *overall_return); 
XQueryTextExtents( *display, font_ID, *string, nchars, *direction_return, *font_descent_return, *overall_return); 
XQueryTextExtents16( *display, font_ID, *string, nchars, *direction_return, *font_descent_return, *overall_return); 
XDrawText( *display, d, gc, y, *items, nitems); 
XDrawText16( *display, d, gc, y, *items, nitems); 
XDrawString( *display, d, gc, x, y, *string, length); 
XDrawString16( *display, d, gc, y, *string, length); 
XDrawImageString( *display, d, gc, y, *string, length); 
XDrawImageString16( *display, d, gc, y, *string, length); 
XPutImage( *display, d, gc, *image, src_y, dest_y, height); 
XImage *XGetImage( *display, d, y, height, plane_mask, format); 
XImage *XGetSubImage( *display, d, y, height, plane_mask, format, *dest_image, dest_y); 
XReparentWindow( *display, w, parent, y); 
XChangeSaveSet( *display, w, change_mode); 
XAddToSaveSet( *display, w); 
XRemoveFromSaveSet( *display, w); 
XInstallColormap( *display, colormap); 
XUninstallColormap( *display, colormap); 
XSetFontPath( *display, **directories, ndirs); 
XFreeFontPath( **list); 
XGrabServer( *display); 
XUngrabServer( *display); 
XKillClient( *display, resource); 
XSetScreenSaver( *display, interval, prefer_blanking, allow_exposures); 
XForceScreenSaver( *display, mode); 
XActivateScreenSaver( *display); 
XResetScreenSaver( *display); 
XGetScreenSaver( *display, *interval_return, *prefer_blanking_return, *allow_exposures_return); 
XAddHost( *display, *host); 
XAddHosts( *display, *hosts, num_hosts); 
XHostAddress *XListHosts( *display, *nhosts_return, *state_return); 
XRemoveHost( *display, *host); 
XRemoveHosts( *display, *hosts, num_hosts); 
XSetAccessControl( *display, mode); 
XEnableAccessControl( *display); 
XDisableAccessControl( *display); 
XSelectInput( *display, w, event_mask); 
XFlush( *display); 
XSync( *display, discard); 
XNextEvent( *display, *event_return); 
XPeekEvent( *display, *event_return); 
XIfEvent( *display, *event_return, predicate, arg); 
XPeekIfEvent( *display, *event_return, predicate, arg); 
XWindowEvent( *display, w, event_mask, *event_return); 
XMaskEvent( *display, event_mask, *event_return); 
XPutBackEvent( *display, *event); 
XTimeCoord *XGetMotionEvents( *display, w, stop, *nevents_return); 
XGetErrorText( *display, code, *buffer_return, length); 
XGetErrorDatabaseText( *display, *message, *default_string, *buffer_return, length); 
XUngrabPointer( *display, time); 
XChangeActivePointerGrab( *display, event_mask, cursor, time); 
XGrabButton( *display, button, modifiers, grab_window, owner_events, event_mask, keyboard_mode, confine_to, cursor); 
XUngrabButton( *display, button, modifiers, grab_window); 
XUngrabKeyboard( *display, time); 
XGrabKey( *display, keycode, modifiers, grab_window, owner_events, keyboard_mode); 
XUngrabKey( *display, keycode, modifiers, grab_window); 
XAllowEvents( *display, event_mode, time); 
XWarpPointer( *display, dest_w, src_y, src_height, dest_y); 
XSetInputFocus( *display, focus, revert_to, time); 
XGetInputFocus( *display, *focus_return, *revert_to_return); 
XChangeKeyboardControl( *display, value_mask, *values); 
XGetKeyboardControl( *display, *values_return); 
XAutoRepeatOn( *display); 
XAutoRepeatOff( *display); 
XBell( *display, percent); 
XQueryKeymap( *display, keys_return); 
XChangePointerControl( *display, do_threshold, accel_denominator, threshold); 
XGetPointerControl( *display, *accel_denominator_return, *threshold_return); 
XDisplayKeycodes( *display, *max_keycodes_return); 
XChangeKeyboardMapping( *display, first_keycode, keysyms_per_keycode, *keysyms, num_codes); 
XModifierKeymap *XNewModifiermap( max_keys_per_mod); 
XModifierKeymap *XInsertModifiermapEntry( *modmap, keycode_entry, modifier); 
XModifierKeymap *XDeleteModifiermapEntry( *modmap, keycode_entry, modifier); 
XFreeModifiermap( *modmap); 
XModifierKeymap *XGetModifierMapping( *display); 
XVaNestedList XVaCreateNestedList( dummy); 
XStoreName( *display, w, *window_name); 
XSetIconName( *display, w, *icon_name); 
XSetWMHints( *display, w, *wmhints); 
XSetClassHint( *display, w, *class_hints); 
XSetTransientForHint( *display, w, prop_window); 
XSetIconSizes( *display, w, *size_list, count); 
XSetCommand( *display, w, **argv, argc); 
XStandardColormap *XAllocStandardColormap() 
XrmStringToBindingQuarkList( *string, bindings_return, quarks_return); 
XrmQPutResource(database, bindings, quarks, 
XRefreshKeyboardMapping( *event_map); 
XSetRegion( *display, gc, r); 
XDestroyRegion( r); 
XOffsetRegion( r, dy); 
XShrinkRegion( r, dy); 
XClipBox( r, *rect_return); 
XIntersectRegion( dr_return); 
XUnionRegion( dr_return); 
XUnionRectWithRegion( *rectangle, src_region, dest_region_return); 
XSubtractRegion( dr_return); 
XXorRegion( dr_return); 
XStoreBytes( *display, *bytes, nbytes); 
XStoreBuffer( *display, *bytes, nbytes, buffer); 
XRotateBuffers( *display, rotate); 
XPutPixel( *ximage, x, y, pixel); 
XAddPixel( *ximage, value); 
XDestroyImage(ximage); 
XFreeExtensionList( **list); 
XAddToExtensionList( **structure, *ext_data); 
XAllocID( *display); 
XAllocIDs( *display, *ids_return, count); 
XDrawPoint(dpy, d, gc, x, y) 
XSetStandardProperties( *display, w, *window_name, *icon_name, icon_pixmap, **argv, argc, *hints); 
XSetNormalHints( *display, w, *hints); 
XSetZoomHints( *display, w, *zhints); 
XSetSizeHints( *display, w, *hints, property);  
XSetStandardColormap( *display, w, *colormap, property); 
XAssocTable *XCreateAssocTable( size); 
XMakeAssoc( *display, *table, x_id, *data); 
XDeleteAssoc( *display, *table, x_id); 
XDestroyAssocTable( *table); 

Display *XcmsDisplayOfCCC( ccc); 
Visual *XcmsVisualOfCCC( ccc); 
XcmsColor *XcmsClientWhitePointOfCCC( ccc); 
char *XcmsPrefixOfFormat( format); 
XFontStruct *XQueryFont( *display, font_ID); 
XFontStruct *XLoadQueryFont( *display, *name); 
XImage *XGetImage( *display, d, y, height, plane_mask, format); 
XImage *XGetSubImage( *display, d, y, height, plane_mask, format, *dest_image, dest_y); 
Colormap *XListInstalledColormaps( *display, w, *num_return); 
XHostAddress *XListHosts( *display, *nhosts_return, *state_return); 
XTimeCoord *XGetMotionEvents( *display, w, stop, *nevents_return); 
int *XSetErrorHandler( *handler); 
char *XDisplayName( *string); 
KeySym *XGetKeyboardMapping( *display, first_keycode, keycode_count, *keysyms_per_keycode_return); 
XModifierKeymap *XNewModifiermap( max_keys_per_mod); 
XModifierKeymap *XInsertModifiermapEntry( *modmap, keycode_entry, modifier); 
XModifierKeymap *XDeleteModifiermapEntry( *modmap, keycode_entry, modifier); 
XModifierKeymap *XGetModifierMapping( *display); 
char *XSetLocaleModifiers( *modifier_list); 
char *XSetOMValues( om); 
char *XGetOMValues( om); 
Display *XDisplayOfOM( om); 
char *XLocaleOfOM( om); 
char *XSetOCValues( oc); 
char *XGetOCValues( oc); 
char *XBaseFontNameListOfFontSet( font_set); 
char *XLocaleOfFontSet( font_set); 
XFontSetExtents *XExtentsOfFontSet( font_set); 
char *XSetIMValues( im); 
char *XGetIMValues( im); 
Display *XDisplayOfIM( im); 
char *XLocaleOfIM( im); 
char *XmbResetIC( ic); 
int *XwcResetIC( ic); 
char *XSetICValues( ic); 
char *XGetICValues( ic); 
char *XDefaultString() 
XWMHints *XAllocWMHints() 
XWMHints *XGetWMHints( *display, w); 
XSizeHints *XAllocSizeHints() 
XClassHint *XAllocClassHint() 
XIconSize *XAllocIconSize() 
XStandardColormap *XAllocStandardColormap() 
char *XrmQuarkToString( quark); 
char *XResourceManagerString( *display); 
char *XScreenResourceString( *screen); 
char *XrmLocaleOfDatabase( database); 
char *XKeysymToString( keysym); 
char *Xpermalloc( size); 
char *XFetchBytes( *display, *nbytes_return); 
char *XFetchBuffer( *display, *nbytes_return, buffer); 
XVisualInfo *XGetVisualInfo( *display, vinfo_mask, *vinfo_template, *nitems_return); 
XImage *XCreateImage( *display, *visual, depth, format, offset, *data, width, height, bitmap_pad, bytes_per_line); 
XImage *XSubImage( *ximage, x, y, subimage_width, subimage_height); 
XExtCodes *XInitExtension( *display, *name); 
XExtCodes *XAddExtension( *display); 
int *XESetCreateGC( *display, extension, proc); 
int *XESetCopyGC( *display, extension, proc); 
int *XESetFreeGC( *display, extension, proc); 
int *XESetCreateFont( *display, extension, proc); 
int *XESetFreeFont( *display, extension, proc); 
int *XESetWireToEvent( *display, event_number, proc); 
Status *XESetEventToWire( *display, event_number, proc); 
Bool *XESetWireToError( *display, error_number, proc); 
int *XESetError( *display, extension, proc); 
char *XESetErrorString( *display, extension, *proc); 
void *XESetPrintErrorValues( *display, extension, proc); 
int *XESetFlushGC( *display, extension, *proc); 
int *XESetCopyGC( *display, extension, *proc); 
XExtData *XFindOnExtensionList( **structure, number); 
char *XGetDefault( *display, *program, *option); 
XAssocTable *XCreateAssocTable( size); 
char *XLookUpAssoc( *display, *table, x_id); 

Status XAllocColorCells( *display, colormap, contig, plane_masks_return[], nplanes, pixels_return[], npixels); 
Status XAllocColorPlanes( *display, colormap, contig, pixels_return[], ncolors, nblues, *bmask_return); 
Status XcmsStoreColors( *display, colormap, colors[], ncolors, compression_flags_return[]); 
Status XcmsQueryColors( *display, colormap, colors_in_out[], ncolors, result_format); 
Status XcmsConvertColors( ccc, colors_in_out[], ncolors, target_format, compression_flags_return[]); 
Status XcmsTekHVCQueryMaxVSamples( ccc, hue, colors_return[], nsamples); 
int XSetPointerMapping( *display, map[], nmap); 
int XGetPointerMapping( *display, map_return[], nmap); 
Region XPolygonRegion( points[], n, fill_rule); 
XFreeColors( *display, colormap, pixels[], npixels, planes); 
XStoreColors( *display, colormap, color[], ncolors); 
XQueryColors( *display, colormap, defs_in_out[], ncolors); 
XSetDashes( *display, gc, dash_offset, dash_list[], n); 
XSetClipRectangles( *display, gc, clip_y_origin, rectangles[], n, ordering); 
XDrawRectangles( *display, d, gc, rectangles[], nrectangles); 
XRebindKeysym( *display, keysym, list[], mod_count, *string, num_bytes); 
' stream.
lines := #().
[stream atEnd] whileFalse: [|line|
	line := stream nextLine trimBlanks.
	line notEmpty ifTrue: [ lines add: line ].
].

returnAndName := [:string :line|| parts type |
	parts := string asArrayOfSubstrings.
	parts isEmpty ifTrue: [ self error: 'empty header in ',line printString ].
	(parts size > 1 and: [parts last startsWith: $*]) ifTrue: [
		parts	at: parts size - 1 put: (parts at: parts size - 1) ,$*;
			at: parts size put: (parts last copyFrom: 2 to: parts last size)
	].
	parts size = 1 ifTrue: [ parts addFirst: #void ].
	parts size > 2 ifTrue: [ self error: 'bad header ',string printString,' in ',line printString ].
	type := parts first.
	type = #Status ifTrue: [ type := #int ].
	type = 'char*' ifTrue: [ type := #string ].
	type = #Bool ifFalse: [
		type first isUpperCase ifTrue: [ type := #int ,'"',type,'"' ].
	].
	Array with: type with: parts last
].

lines := lines collect: [:line| | retName argList |
	stream := line stream.
	retName := returnAndName value: (stream upTo: $() value: line.
	argList := stream upTo: $).
	argList := argList isEmpty ifTrue: [#()] ifFalse: [ argList asArrayOfSubstringsSeparatedBy: $, ].
	argList := argList collect: [:each| each trimBlanks asSmalltalkName: false ].
	argList := argList collect: [:arg| | name type intPtr |
		name := arg. type := #int. intPtr := 'int*'.
		(name includes: '[]') ifTrue: [ type := 'int"[]"'. name := name upTo: $[ ].
		(name startsWith: $*) ifTrue: [ type := intPtr. name := name copyFrom: 2 to: name size ].
		(name startsWith: $*) ifTrue: [ type := intPtr. name := name copyFrom: 2 to: name size ].
		(name startsWith: $*) ifTrue: [ type := intPtr. name := name copyFrom: 2 to: name size ].
		(#(display ) includes: name) ifTrue: [ type := #int ].
		(type = intPtr and: [name = #data]) ifTrue: [ type := 'char*' ].
		((name includes: #Return) or: [name includes: #InOut]) ifTrue: [ type := intPtr ].
		((name includes: #Name) or: [name includes: #String]) ifTrue: [ type := #string ].
		((#(hue value chroma) includes: name) and: [type = #int]) ifTrue: [ type := float ].
		name = #class ifTrue: [ name := #cls ].
		name = #function ifTrue: [ name := #aFunction ].
		(name = #string and: [type = intPtr]) ifTrue: [ type := #string ].
		(name = #filename and: [type = intPtr]) ifTrue: [ type := #string ].
		Array with: name with: type
	].
	Array with: retName last with: (Array with: retName first with: argList)
].
lines := lines sorted: [:a :b| a first asUppercase < b first asUppercase ].
lines inject: '' into: [:total :each| |line|
 line := each second last inject: '' into: [:r :t| r,' #(', t first ,' '
	,(((t last includes: $")or: [t last asLiteral startsWith: $#]) ifTrue: [t last] ifFalse: [t last asLiteral]),')'].
 total,'
		#(',each first ,' #(' ,each second first ,' #(',line trimBlanks,')))'
]