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