summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Michel Pedrono2013-02-25 04:37:04 (EST)
committerEugene Tarassov2013-04-09 12:17:58 (EDT)
commit6aa3c5990924d04ff9ae4f36b0b231ddbe96a755 (patch)
treed7490c1eecbaee302c40410a62b35a1b0a54b19f
parent296831ee6868660d13786919c9ecb5f00d99166e (diff)
downloadorg.eclipse.tcf.agent-6aa3c5990924d04ff9ae4f36b0b231ddbe96a755.zip
org.eclipse.tcf.agent-6aa3c5990924d04ff9ae4f36b0b231ddbe96a755.tar.gz
org.eclipse.tcf.agent-6aa3c5990924d04ff9ae4f36b0b231ddbe96a755.tar.bz2
TCF Agent: Adapt code for VxWorks
Renamed local variable to avoid conflicts with VxWorks macro OK.
-rw-r--r--agent/tcf/services/dwarfcache.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/agent/tcf/services/dwarfcache.c b/agent/tcf/services/dwarfcache.c
index 297fc8d..9194a6d 100644
--- a/agent/tcf/services/dwarfcache.c
+++ b/agent/tcf/services/dwarfcache.c
@@ -1405,9 +1405,9 @@ void read_dwarf_object_property(Context * Ctx, int Frame, ObjectInfo * Obj, U2_T
}
if (Obj->mTag == TAG_structure_type || Obj->mTag == TAG_class_type || Obj->mTag == TAG_union_type) {
/* It is OK to return size 0 if the structure has no data members */
- int OK = 1;
+ int ok = 1;
ObjectInfo * c = get_dwarf_children(Obj);
- while (OK && c != NULL) {
+ while (ok && c != NULL) {
ObjectInfo * d = c;
while (d->mTag == TAG_imported_declaration) {
PropertyValue v;
@@ -1418,7 +1418,7 @@ void read_dwarf_object_property(Context * Ctx, int Frame, ObjectInfo * Obj, U2_T
if (d == NULL) break;
}
if (d == NULL) {
- OK = 0;
+ ok = 0;
}
else {
switch (d->mTag) {
@@ -1432,15 +1432,15 @@ void read_dwarf_object_property(Context * Ctx, int Frame, ObjectInfo * Obj, U2_T
break;
case TAG_member:
if (d->mFlags & DOIF_external) break;
- OK = 0;
+ ok = 0;
break;
default:
- OK = 0;
+ ok = 0;
}
}
c = c->mSibling;
}
- if (OK) {
+ if (ok) {
Value->mForm = FORM_UDATA;
Value->mAddr = 0;
Value->mValue = 0;