commit 8ccb609f157f4138151d522be25885ed8d38b28d
parent f98435b88f424bb017d8077f910e41da176bf311
Author: Michael Forney <mforney@mforney.org>
Date: Sat, 25 Jan 2014 15:40:35 -0800
README: Use static variables in tutorial
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
@@ -34,12 +34,12 @@ allocate your own window window structure, and register a listener for the
window's event signal. More information can be found in `swc.h`.
```C
-void new_window(struct swc_window * window)
+static void new_window(struct swc_window * window)
{
/* TODO: Implement */
}
-void new_screen(struct swc_screen * screen)
+static void new_screen(struct swc_screen * screen)
{
/* TODO: Implement */
}
@@ -48,7 +48,7 @@ void new_screen(struct swc_screen * screen)
Create a `struct swc_manager` containing pointers to these functions.
```C
-const struct swc_manager manager = { &new_window, &new_screen };
+static const struct swc_manager manager = { &new_window, &new_screen };
```
In your startup code, you must create a Wayland display.