xref: /haiku/src/kits/debugger/dwarf/SourceLanguageInfo.cpp (revision fce4895d1884da5ae6fb299d23c735c598e690b1)
1 /*
2  * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 #include "SourceLanguageInfo.h"
7 
8 #include "Dwarf.h"
9 
10 
UnknownSourceLanguageInfo()11 UnknownSourceLanguageInfo::UnknownSourceLanguageInfo()
12 {
13 	name = "unknown";
14 	arrayOrdering = DW_ORD_row_major;
15 	subrangeLowerBound = 0;
16 }
17 
18 
CFamilySourceLanguageInfo()19 CFamilySourceLanguageInfo::CFamilySourceLanguageInfo()
20 {
21 	arrayOrdering = DW_ORD_row_major;
22 	subrangeLowerBound = 0;
23 }
24 
25 
CSourceLanguageInfo()26 CSourceLanguageInfo::CSourceLanguageInfo()
27 {
28 	name = "C";
29 }
30 
31 
C89SourceLanguageInfo()32 C89SourceLanguageInfo::C89SourceLanguageInfo()
33 {
34 	name = "C 89";
35 }
36 
37 
C99SourceLanguageInfo()38 C99SourceLanguageInfo::C99SourceLanguageInfo()
39 {
40 	name = "C 99";
41 }
42 
43 
CPlusPlusSourceLanguageInfo()44 CPlusPlusSourceLanguageInfo::CPlusPlusSourceLanguageInfo()
45 {
46 	name = "C++";
47 }
48 
49 
50 const UnknownSourceLanguageInfo		kUnknownLanguageInfo;
51 const UnknownSourceLanguageInfo		kUnsupportedLanguageInfo;
52 const CSourceLanguageInfo			kCLanguageInfo;
53 const C89SourceLanguageInfo			kC89LanguageInfo;
54 const C99SourceLanguageInfo			kC99LanguageInfo;
55 const CPlusPlusSourceLanguageInfo	kCPlusPlusLanguageInfo;
56