aboutsummaryrefslogtreecommitdiff
path: root/examples/ex4.c
diff options
context:
space:
mode:
authorgrischka <grischka>2009-04-18 14:31:35 +0200
committergrischka <grischka>2009-04-18 15:08:03 +0200
commit5829791ffaca0178fbbd4111fbdf8c7cbd6de27f (patch)
treed41bf8392e3059cc21c58b5193b5f81fb083ed71 /examples/ex4.c
parentea5e81bd6a3376232bf4747b2fa2e0a91c19b337 (diff)
downloadtinycc-5829791ffaca0178fbbd4111fbdf8c7cbd6de27f.tar.gz
tinycc-5829791ffaca0178fbbd4111fbdf8c7cbd6de27f.tar.bz2
fix makefiles etc for subdirs
Diffstat (limited to 'examples/ex4.c')
-rwxr-xr-xexamples/ex4.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/ex4.c b/examples/ex4.c
index 3a3fed7..b33b033 100755
--- a/examples/ex4.c
+++ b/examples/ex4.c
@@ -1,9 +1,10 @@
#!./tcc -run -L/usr/X11R6/lib -lX11
#include <stdlib.h>
-/* Yes, TCC can use X11 too ! */
#include <stdio.h>
#include <X11/Xlib.h>
+/* Yes, TCC can use X11 too ! */
+
int main(int argc, char **argv)
{
Display *display;
@@ -16,8 +17,8 @@ int main(int argc, char **argv)
}
printf("X11 display opened.\n");
screen = XScreenOfDisplay(display, 0);
- printf("width = %d\nheight = %d\ndepth = %d\n",
- screen->width,
+ printf("width = %d\nheight = %d\ndepth = %d\n",
+ screen->width,
screen->height,
screen->root_depth);
XCloseDisplay(display);