commit 8ccb609

Michael Forney  ·  2014-01-25 23:40:35 +0000 UTC
parent f98435b
README: Use static variables in tutorial
1 files changed,  +3, -3
+3, -3
 1@@ -34,12 +34,12 @@ allocate your own window window structure, and register a listener for the
 2 window's event signal. More information can be found in `swc.h`.
 3 
 4 ```C
 5-void new_window(struct swc_window * window)
 6+static void new_window(struct swc_window * window)
 7 {
 8     /* TODO: Implement */
 9 }
10 
11-void new_screen(struct swc_screen * screen)
12+static void new_screen(struct swc_screen * screen)
13 {
14     /* TODO: Implement */
15 }
16@@ -48,7 +48,7 @@ void new_screen(struct swc_screen * screen)
17 Create a `struct swc_manager` containing pointers to these functions.
18 
19 ```C
20-const struct swc_manager manager = { &new_window, &new_screen };
21+static const struct swc_manager manager = { &new_window, &new_screen };
22 ```
23 
24 In your startup code, you must create a Wayland display.