Skip to content

Commit 3b94e17

Browse files
committed
Clarify file naming
1 parent 65fa6e7 commit 3b94e17

File tree

5 files changed

+29
-29
lines changed

5 files changed

+29
-29
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ endif
7373
# Applications
7474

7575
libapps.a_files-y := apps/dummy.c
76-
libapps.a_files-$(CONFIG_DEMO_MULTI) += apps/demo.c
76+
libapps.a_files-$(CONFIG_DEMO_MULTI) += apps/multi.c
7777
libapps.a_files-$(CONFIG_DEMO_HELLO) += apps/hello.c
7878
libapps.a_files-$(CONFIG_DEMO_CLOCK) += apps/clock.c
7979
libapps.a_files-$(CONFIG_DEMO_CALCULATOR) += apps/calc.c

apps/apps_demo.h

Lines changed: 0 additions & 19 deletions
This file was deleted.

apps/apps_multi.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Twin - A Tiny Window System
3+
* Copyright (c) 2004 Keith Packard <keithp@keithp.com>
4+
* All rights reserved.
5+
*/
6+
7+
#ifndef _APPS_MULTI_H_
8+
#define _APPS_MULTI_H_
9+
10+
#include <twin.h>
11+
12+
void apps_multi_start(twin_screen_t *screen,
13+
const char *name,
14+
int x,
15+
int y,
16+
int w,
17+
int h);
18+
19+
#endif /* _APPS_MULTI_H_ */

apps/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
#include "apps_calc.h"
1717
#include "apps_clock.h"
18-
#include "apps_demo.h"
1918
#include "apps_hello.h"
2019
#include "apps_line.h"
20+
#include "apps_multi.h"
2121
#include "apps_spline.h"
2222

2323
#define WIDTH 640
@@ -105,7 +105,7 @@ int main(void)
105105
tx->screen, load_background(tx->screen, ASSET_PATH "/tux.png"));
106106

107107
#if defined(CONFIG_DEMO_MULTI)
108-
apps_demo_start(tx->screen, "Demo", 100, 100, 400, 400);
108+
apps_multi_start(tx->screen, "Demo", 100, 100, 400, 400);
109109
#endif
110110
#if defined(CONFIG_DEMO_HELLO)
111111
apps_hello_start(tx->screen, "Hello, World", 0, 0, 200, 200);

apps/demo.c renamed to apps/multi.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* All rights reserved.
55
*/
66

7-
#include "apps_demo.h"
7+
#include "apps_multi.h"
88

99
#define D(x) twin_double_to_fixed(x)
1010

@@ -219,12 +219,12 @@ static void apps_jelly_start(twin_screen_t *screen, int x, int y, int w, int h)
219219
twin_window_show(window);
220220
}
221221

222-
void apps_demo_start(twin_screen_t *screen,
223-
const char *name,
224-
int x,
225-
int y,
226-
int w,
227-
int h)
222+
void apps_multi_start(twin_screen_t *screen,
223+
const char *name,
224+
int x,
225+
int y,
226+
int w,
227+
int h)
228228
{
229229
(void) name;
230230
apps_circletext_start(screen, x, y, w, h);

0 commit comments

Comments
 (0)