VirtualBox

Ignore:
Timestamp:
Sep 22, 2016 11:01:17 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
110828
Message:

OpenGL: fixed the most annoying coding style flaws, mainly removing spaces after '(' and before ')', no semantic change

Location:
trunk/src/VBox/GuestHost/OpenGL/spu_loader
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/spu_loader/dispatch.py

    r63939 r63942  
    2929        for (temp = spu->function_table->table ; temp->name != NULL ; temp++)
    3030        {
    31                 if (!crStrcmp( name, temp->name ) )
     31                if (!crStrcmp(name, temp->name))
    3232                {
    3333                        return temp->fn;
    3434                }
    3535        }
    36         return __findFunc( name, spu->superSPU );
     36        return __findFunc(name, spu->superSPU);
    3737}
    3838
     
    6565        for (temp = table ; temp->name != NULL ; temp++)
    6666        {
    67                 if (!crStrcmp( fname, temp->name ) )
     67                if (!crStrcmp(fname, temp->name))
    6868                {
    6969                        return temp->fn;
  • trunk/src/VBox/GuestHost/OpenGL/spu_loader/glloader.py

    r63939 r63942  
    7575 */
    7676static int
    77 fillin( SPUNamedFunctionTable *entry, const char *funcName, SPUGenericFunction funcPtr )
     77fillin(SPUNamedFunctionTable *entry, const char *funcName, SPUGenericFunction funcPtr)
    7878{
    7979        if (funcPtr) {
    80                 entry->name = crStrdup( funcName );
     80                entry->name = crStrdup(funcName);
    8181                entry->fn = funcPtr;
    8282                return 1;
     
    463463
    464464for fun in useful_wgl_functions:
    465         print('\tinterface->%s = (%sFunc_t) crDLLGetNoError( glDll, "%s" );' % (fun,fun,fun))
     465        print('\tinterface->%s = (%sFunc_t) crDLLGetNoError(glDll, "%s");' % (fun,fun,fun))
    466466
    467467print('#elif defined(DARWIN)')
    468468print('# ifndef VBOX_WITH_COCOA_QT')
    469469for fun in useful_agl_functions:
    470         print('\tinterface->%s = (%sFunc_t) crDLLGetNoError( aglDll, "%s" );' % (fun,fun,fun))
     470        print('\tinterface->%s = (%sFunc_t) crDLLGetNoError(aglDll, "%s");' % (fun,fun,fun))
    471471print('# endif')
    472472
    473473for fun in useful_cgl_functions:
    474         print('\tinterface->%s = (%sFunc_t) crDLLGetNoError( cglDll, "%s" );' % (fun, fun,fun))
     474        print('\tinterface->%s = (%sFunc_t) crDLLGetNoError(cglDll, "%s");' % (fun, fun,fun))
    475475
    476476for fun in in_gl_functions:
    477         print('\tinterface->%s = (%sFunc_t) crDLLGetNoError( glDll, "%s" );' % (fun, fun,fun))
     477        print('\tinterface->%s = (%sFunc_t) crDLLGetNoError(glDll, "%s");' % (fun, fun,fun))
    478478
    479479print('#else')
     
    482482# XXX merge these loops?
    483483for fun in useful_glx_functions:
    484         print('\tinterface->%s = (%sFunc_t) crDLLGetNoError( glDll, "%s" );' % (fun, fun, fun))
     484        print('\tinterface->%s = (%sFunc_t) crDLLGetNoError(glDll, "%s");' % (fun, fun, fun))
    485485for fun in possibly_useful_glx_functions:
    486         print('\tinterface->%s = (%sFunc_t) crDLLGetNoError( glDll, "%s" );' % (fun, fun, fun))
     486        print('\tinterface->%s = (%sFunc_t) crDLLGetNoError(glDll, "%s");' % (fun, fun, fun))
    487487print('#endif')
    488488
     
    593593
    594594        *createContext =  (OSMesaContext (*) ( GLenum format, OSMesaContext sharelist ))
    595                 crDLLGetNoError( osMesaDll, "OSMesaCreateContext" );
     595                crDLLGetNoError(osMesaDll, "OSMesaCreateContext");
    596596
    597597        *makeCurrent =  (GLboolean (*) ( OSMesaContext ctx, GLubyte *buffer,
    598598                                          GLenum type, GLsizei width, GLsizei height ))
    599                 crDLLGetNoError( osMesaDll, "OSMesaMakeCurrent" );
     599                crDLLGetNoError(osMesaDll, "OSMesaMakeCurrent");
    600600
    601601        *destroyContext =  (void (*) ( OSMesaContext ctx))
    602                 crDLLGetNoError( osMesaDll, "OSMesaDestroyContext" );
     602                crDLLGetNoError(osMesaDll, "OSMesaDestroyContext");
    603603
    604604        return 1;
  • trunk/src/VBox/GuestHost/OpenGL/spu_loader/spuchange.py

    r63939 r63942  
    1818#include "cr_error.h"
    1919
    20 void crSPUChangeInterface( SPUDispatchTable *table, void *orig_func, void *new_func )
     20void crSPUChangeInterface(SPUDispatchTable *table, void *orig_func, void *new_func)
    2121{
    2222        struct _copy_list_node *temp;
     
    3939        print('\t\tfor (temp = table->copyList ; temp ; temp = temp->next)')
    4040        print('\t\t{')
    41         print('\t\t\tcrSPUChangeInterface( temp->copy, orig_func, new_func );')
     41        print('\t\t\tcrSPUChangeInterface(temp->copy, orig_func, new_func);')
    4242        print('\t\t}')
    4343        print('\t}')
     
    4646        if (table->copy_of != NULL)
    4747        {
    48                 crSPUChangeInterface( table->copy_of, orig_func, new_func );
     48                crSPUChangeInterface(table->copy_of, orig_func, new_func);
    4949        }
    50         for (temp = table->copyList ; temp ; temp = temp->next)
     50        for (temp = table->copyList; temp; temp = temp->next)
    5151        {
    52                 crSPUChangeInterface( temp->copy, orig_func, new_func );
     52                crSPUChangeInterface(temp->copy, orig_func, new_func);
    5353        }
    5454        table->mark = 0;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette