summaryrefslogtreecommitdiff
path: root/bcc/table.c
diff options
context:
space:
mode:
Diffstat (limited to 'bcc/table.c')
-rw-r--r--bcc/table.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/bcc/table.c b/bcc/table.c
index e863fb5..ae34839 100644
--- a/bcc/table.c
+++ b/bcc/table.c
@@ -726,6 +726,24 @@ char *name;
return symptr;
}
}
+
+#ifndef VERY_SMALL_MEMORY
+ /* In ancient UNIX, C structure members were global */
+ if (!ancient)
+ return NULL;
+
+ /* Find any structure member of given name */
+ laststruct(name);
+ while (name[0]) {
+ if ((symptr = findlorg(name)) != NULL)
+ return symptr;
+ if (--name[1] == 0) {
+ name[1] = 255;
+ name[0]--;
+ }
+ }
+#endif
+
return NULL;
}
#endif