[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-devel
Subject: stgructure initialization stype shows as error
From: Kishore <kitts.mailinglists () gmail ! com>
Date: 2008-08-29 5:37:57
Message-ID: 200808291055.58252.kitts.mailinglists () gmail ! com
[Download RAW message or body]
In C, structures can be initialized by either having comma separated values or
by using member names as is shown below. Using the second method, shows a red
error mark with kdevelop.
struct SomeStruct
{
int a;
int b;
};
struct SomeStruct someStruct =
{
a: 10, //<-- : on this line is marked in red
b: 20
};
The above code is valid code but is not considered so by kdevelop.
--
Cheers!
Kishore
_______________________________________________
KDevelop-devel mailing list
KDevelop-devel@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic