untabifying GLContext.cpp
authorVladimir Vukicevic <vladimir@pobox.com>
Mon, 14 Jun 2010 23:56:29 -0700
changeset 43629 0d8bf91aa71e7ee60d6be773657a69ee3c592760
parent 43628 3b3e795a1c2e4bd77f94fea408631a68b45af3be
child 43630 1fe09d6f34d8b73594254a3f2cbcfc6a3a7476ec
push id13817
push uservladimir@mozilla.com
push dateTue, 15 Jun 2010 06:57:50 +0000
treeherdermozilla-central@0d8bf91aa71e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9.3a6pre
first release with
nightly linux32
0d8bf91aa71e / 3.7a6pre / 20100615030033 / files
nightly linux64
0d8bf91aa71e / 3.7a6pre / 20100615030733 / files
nightly mac
0d8bf91aa71e / 3.7a6pre / 20100615030658 / files
nightly win32
0d8bf91aa71e / 3.7a6pre / 20100615035834 / files
nightly win64
0d8bf91aa71e / 3.7a6pre / 20100615040015 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
untabifying GLContext.cpp
gfx/thebes/src/GLContext.cpp
--- a/gfx/thebes/src/GLContext.cpp
+++ b/gfx/thebes/src/GLContext.cpp
@@ -1,8 +1,9 @@
+/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /* ***** BEGIN LICENSE BLOCK *****
  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  *
  * The contents of this file are subject to the Mozilla Public License Version
  * 1.1 (the "License"); you may not use this file except in compliance with
  * the License. You may obtain a copy of the License at
  * http://www.mozilla.org/MPL/
  *
@@ -74,18 +75,18 @@ LibrarySymbolLoader::OpenLibrary(const c
 PRBool
 LibrarySymbolLoader::LoadSymbols(SymLoadStruct *firstStruct, PRBool tryplatform, const char *prefix)
 {
     return LoadSymbols(mLibrary, firstStruct, tryplatform ? mLookupFunc : nsnull, prefix);
 }
 
 PRFuncPtr
 LibrarySymbolLoader::LookupSymbol(PRLibrary *lib,
-				  const char *sym,
-				  PlatformLookupFunction lookupFunction)
+                                  const char *sym,
+                                  PlatformLookupFunction lookupFunction)
 {
     PRFuncPtr res = 0;
 
     // try finding it in the library directly, if we have one
     if (lib) {
         res = PR_FindFunctionSymbol(lib, sym);
     }
 
@@ -100,19 +101,19 @@ LibrarySymbolLoader::LookupSymbol(PRLibr
         res = lookupFunction(sym);
     }
 
     return res;
 }
 
 PRBool
 LibrarySymbolLoader::LoadSymbols(PRLibrary *lib,
-				 SymLoadStruct *firstStruct,
-				 PlatformLookupFunction lookupFunction,
-				 const char *prefix)
+                                 SymLoadStruct *firstStruct,
+                                 PlatformLookupFunction lookupFunction,
+                                 const char *prefix)
 {
     char sbuf[MAX_SYMBOL_LENGTH * 2];
 
     SymLoadStruct *ss = firstStruct;
     while (ss->symPointer) {
         *ss->symPointer = 0;
 
         for (int i = 0; i < MAX_SYMBOL_NAMES; i++) {
@@ -314,18 +315,18 @@ GLContext::InitWithPrefix(const char *pr
         { (PRFuncPtr*) &fGenFramebuffers, { "GenFramebuffers", "GenFramebuffersEXT", NULL } },
         { (PRFuncPtr*) &fGenRenderbuffers, { "GenRenderbuffers", "GenRenderbuffersEXT", NULL } },
         { (PRFuncPtr*) &fGetFramebufferAttachmentParameteriv, { "GetFramebufferAttachmentParameteriv", "GetFramebufferAttachmentParameterivEXT", NULL } },
         { (PRFuncPtr*) &fGetRenderbufferParameteriv, { "GetRenderbufferParameteriv", "GetRenderbufferParameterivEXT", NULL } },
         { (PRFuncPtr*) &fIsFramebuffer, { "IsFramebuffer", "IsFramebufferEXT", NULL } },
         { (PRFuncPtr*) &fIsRenderbuffer, { "IsRenderbuffer", "IsRenderbufferEXT", NULL } },
         { (PRFuncPtr*) &fRenderbufferStorage, { "RenderbufferStorage", "RenderbufferStorageEXT", NULL } },
 #if 0
-	{ (PRFuncPtr*) &fMapBuffer, { "MapBuffer", NULL } },
-	{ (PRFuncPtr*) &fUnmapBuffer, { "UnmapBuffer", NULL } },
+        { (PRFuncPtr*) &fMapBuffer, { "MapBuffer", NULL } },
+        { (PRFuncPtr*) &fUnmapBuffer, { "UnmapBuffer", NULL } },
 #endif
 
         { NULL, { NULL } },
 
     };
 
     mInitialized = LoadSymbols(&symbols[0], trygl, prefix);
     return mInitialized;
@@ -348,23 +349,23 @@ GLContext::IsExtensionSupported(const ch
      * It takes a bit of care to be fool-proof about parsing the
      * OpenGL extensions string. Don't be fooled by sub-strings,
      * etc. 
      */
     start = extensions;
     for (;;) {
         where = (GLubyte *) strstr((const char *) start, extension);
         if (!where) {
-	    break;
+            break;
         }
         terminator = where + strlen(extension);
         if (where == start || *(where - 1) == ' ') {
-	    if (*terminator == ' ' || *terminator == '\0') {
-	        return PR_TRUE;
-	    }
+            if (*terminator == ' ' || *terminator == '\0') {
+                return PR_TRUE;
+            }
         }
         start = terminator;
     }
     return PR_FALSE;
 }
 
 } /* namespace gl */
 } /* namespace mozilla */