[Lldb-commits] [lldb] r105723 - /lldb/trunk/source/Core/Language.cpp
Eli Friedman
eli.friedman at gmail.com
Wed Jun 9 03:16:08 PDT 2010
Author: efriedma
Date: Wed Jun 9 05:16:07 2010
New Revision: 105723
URL: http://llvm.org/viewvc/llvm-project?rev=105723&view=rev
Log:
A few more warning/error fixes.
Modified:
lldb/trunk/source/Core/Language.cpp
Modified: lldb/trunk/source/Core/Language.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Language.cpp?rev=105723&r1=105722&r2=105723&view=diff
==============================================================================
--- lldb/trunk/source/Core/Language.cpp (original)
+++ lldb/trunk/source/Core/Language.cpp Wed Jun 9 05:16:07 2010
@@ -10,13 +10,14 @@
#include "lldb/lldb-private.h"
#include "lldb/Core/Language.h"
#include "lldb/Core/Stream.h"
+#include <string.h>
using namespace lldb;
using namespace lldb_private;
#define ENUM_TO_DCSTREAM(x) case x: s->PutCString(#x); return
-typedef struct LanguageStrings
+struct LanguageStrings
{
const char * names[3];
};
@@ -24,27 +25,27 @@
static LanguageStrings
g_languages[] =
{
- { "unknown" , NULL , NULL },
- { "c89" , NULL , "ISO C:1989" },
- { NULL , NULL , "K&R C" },
- { "ada83" , "Ada83" , "ISO Ada:1983" },
- { "c++" , "cxx" , "ISO C++:1998" },
- { "cobol74" , "Cobol74" , "ISO Cobol:1974" },
- { "cobol" , "Cobol85" , "ISO Cobol:1985." },
- { "f77" , "Fortran77" , "ISO Fortran 77." },
- { "f90" , "Fortran90" , "ISO Fortran 90" },
- { "pascal" , "Pascal83" , "ISO Pascal:1983" },
- { "modula2" , "Modula2" , "ISO Modula-2:1996" },
- { "java" , NULL , "Java" },
- { "c" , "C99" , "ISO C:1999" },
- { "ada" , "Ada95" , "ISO Ada:1995" },
- { "f95" , "Fortran95" , "ISO Fortran 95" },
- { "PLI" , NULL , "ANSI PL/I:1976" },
- { "objc" , NULL , "Objective-C" },
- { "objc++" , NULL , "Objective-C++" },
- { "upc" , NULL , "Unified Parallel C" },
- { "d" , NULL , "D" },
- { "python" , NULL , "Python" }
+ { { "unknown" , NULL , NULL } },
+ { { "c89" , NULL , "ISO C:1989" } },
+ { { NULL , NULL , "K&R C" } },
+ { { "ada83" , "Ada83" , "ISO Ada:1983" } },
+ { { "c++" , "cxx" , "ISO C++:1998" } },
+ { { "cobol74" , "Cobol74" , "ISO Cobol:1974" } },
+ { { "cobol" , "Cobol85" , "ISO Cobol:1985." } },
+ { { "f77" , "Fortran77" , "ISO Fortran 77." } },
+ { { "f90" , "Fortran90" , "ISO Fortran 90" } },
+ { { "pascal" , "Pascal83" , "ISO Pascal:1983" } },
+ { { "modula2" , "Modula2" , "ISO Modula-2:1996" } },
+ { { "java" , NULL , "Java" } },
+ { { "c" , "C99" , "ISO C:1999" } },
+ { { "ada" , "Ada95" , "ISO Ada:1995" } },
+ { { "f95" , "Fortran95" , "ISO Fortran 95" } },
+ { { "PLI" , NULL , "ANSI PL/I:1976" } },
+ { { "objc" , NULL , "Objective-C" } },
+ { { "objc++" , NULL , "Objective-C++" } },
+ { { "upc" , NULL , "Unified Parallel C" } },
+ { { "d" , NULL , "D" } },
+ { { "python" , NULL , "Python" } }
};
static const uint32_t
More information about the lldb-commits
mailing list