Updates von /doc/LPC aus Driversourcen
Change-Id: I60960bf74c3914a6fb6b0bd6628b39c1a4d8ba2d
diff --git a/doc/LPC/structs b/doc/LPC/structs
index a53029a..e45f464 100644
--- a/doc/LPC/structs
+++ b/doc/LPC/structs
@@ -50,8 +50,9 @@
with the difference that all structs live in the same flat namespace.
This means: a struct defined in a program is visible in _all_
inherited programs, regardless of how deep the inheritance is
- nested. This also means that in one program there must not be
- two structs, inherited or not, with the same name.
+ nested. This also means that in one program there must not be
+ two structs, inherited or not, with the same name. This does not
+ apply to structs declared as private.
To declare a struct without defining it, write:
@@ -78,13 +79,16 @@
LPC it constructs a new struct type whereever it is included).
- A variable to hold a struct is defined like this:
+ A variable to hold a specific or arbitrary struct is defined like
+ this:
struct Foo var;
+ struct mixed var;
and similar for function arguments:
void fun (struct Foo arg)
+ void fun (struct mixed arg)
Just writing 'struct Foo var' however does not _create_ a struct,