BlinkenLib v.0.5 (2005-12-06)
Christian Heimke

Christian Heimke commited on 2011-07-15 09:03:49
Showing 13 changed files, with 30 additions and 70 deletions.

... ...
@@ -1,9 +1,8 @@
1 1
 /* BlinkenLib
2
- * version 0.4.1 date 2005-12-05
2
+ * version 0.5 date 2005-12-06
3 3
  * Copyright 2004-2005 Stefan Schuermans <1stein@schuermans.info>
4 4
  * Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html
5 5
  * a blinkenarea.org project
6
- * powered by eventphone.de
7 6
  */
8 7
 
9 8
 #ifndef INC_BlinkenConstants
... ...
@@ -1,9 +1,8 @@
1 1
 /* BlinkenLib
2
- * version 0.4.1 date 2005-12-05
2
+ * version 0.5 date 2005-12-06
3 3
  * Copyright 2004-2005 Stefan Schuermans <1stein@schuermans.info>
4 4
  * Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html
5 5
  * a blinkenarea.org project
6
- * powered by eventphone.de
7 6
  */
8 7
 
9 8
 #include <stdio.h>
... ...
@@ -21,11 +20,10 @@ int main( int argCnt, char * * args )
21 20
 
22 21
   //print info
23 22
   printf( "BlinkenLib - BlinkenConv\n"
24
-          "version 0.4.1 date 2005-12-05\n"
23
+          "version 0.5 date 2005-12-06\n"
25 24
           "Copyright 2004-2005 Stefan Schuermans <1stein@schuermans.info>\n"
26 25
           "Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html\n"
27
-          "a blinkenarea.org project\n"
28
-          "powered by eventphone.de\n\n" );
26
+          "a blinkenarea.org project\n\n" );
29 27
 
30 28
   //print syntax
31 29
   if( argCnt <= 1 )
... ...
@@ -1,9 +1,8 @@
1 1
 /* BlinkenLib
2
- * version 0.4.1 date 2005-12-05
2
+ * version 0.5 date 2005-12-06
3 3
  * Copyright 2004-2005 Stefan Schuermans <1stein@schuermans.info>
4 4
  * Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html
5 5
  * a blinkenarea.org project
6
- * powered by eventphone.de
7 6
  */
8 7
 
9 8
 #include <stdio.h>
... ...
@@ -1,9 +1,8 @@
1 1
 /* BlinkenLib
2
- * version 0.4.1 date 2005-12-05
2
+ * version 0.5 date 2005-12-06
3 3
  * Copyright 2004-2005 Stefan Schuermans <1stein@schuermans.info>
4 4
  * Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html
5 5
  * a blinkenarea.org project
6
- * powered by eventphone.de
7 6
  */
8 7
 
9 8
 #ifndef INC_BlinkenFrame
... ...
@@ -1,9 +1,8 @@
1 1
 /* BlinkenLib
2
- * version 0.4.1 date 2005-12-05
2
+ * version 0.5 date 2005-12-06
3 3
  * Copyright 2004-2005 Stefan Schuermans <1stein@schuermans.info>
4 4
  * Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html
5 5
  * a blinkenarea.org project
6
- * powered by eventphone.de
7 6
  */
8 7
 
9 8
 #ifndef INC_BlinkenLib
... ...
@@ -1,9 +1,8 @@
1 1
 /* BlinkenLib
2
- * version 0.4.1 date 2005-12-05
2
+ * version 0.5 date 2005-12-06
3 3
  * Copyright 2004-2005 Stefan Schuermans <1stein@schuermans.info>
4 4
  * Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html
5 5
  * a blinkenarea.org project
6
- * powered by eventphone.de
7 6
  */
8 7
 
9 8
 #include <stdio.h>
... ...
@@ -1433,7 +1432,7 @@ stBlinkenMovie * BlinkenMovieReceive( int udpSocket, int timeout, etBlinkenProto
1433 1432
   etBlinkenProto proto, p;
1434 1433
   fd_set readFds;
1435 1434
   struct timeval timeo, lastTime, curTime;
1436
-  char buffer[65536]; //64kB is more tham maximum UDP size
1435
+  char buffer[65536]; //64kB is more than maximum UDP size
1437 1436
   int len;
1438 1437
 
1439 1438
   //correct timeout
... ...
@@ -1,9 +1,8 @@
1 1
 /* BlinkenLib
2
- * version 0.4.1 date 2005-12-05
2
+ * version 0.5 date 2005-12-06
3 3
  * Copyright 2004-2005 Stefan Schuermans <1stein@schuermans.info>
4 4
  * Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html
5 5
  * a blinkenarea.org project
6
- * powered by eventphone.de
7 6
  */
8 7
 
9 8
 #ifndef INC_BlinkenMovie
... ...
@@ -1,9 +1,8 @@
1 1
 /* BlinkenLib
2
- * version 0.4.1 date 2005-12-05
2
+ * version 0.5 date 2005-12-06
3 3
  * Copyright 2004-2005 Stefan Schuermans <1stein@schuermans.info>
4 4
  * Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html
5 5
  * a blinkenarea.org project
6
- * powered by eventphone.de
7 6
  */
8 7
 
9 8
 #include <stdio.h>
... ...
@@ -26,11 +25,10 @@ int main( int argCnt, char * * args )
26 25
 
27 26
   //print info
28 27
   printf( "BlinkenLib - BlinkenRecv\n"
29
-          "version 0.4.1 date 2005-12-05\n"
28
+          "version 0.5 date 2005-12-06\n"
30 29
           "Copyright 2004-2005 Stefan Schuermans <1stein@schuermans.info>\n"
31 30
           "Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html\n"
32
-          "a blinkenarea.org project\n"
33
-          "powered by eventphone.de\n\n" );
31
+          "a blinkenarea.org project\n\n" );
34 32
 
35 33
   //print syntax
36 34
   if( argCnt <= 1 )
... ...
@@ -1,9 +1,8 @@
1 1
 /* BlinkenLib
2
- * version 0.4.1 date 2005-12-05
2
+ * version 0.5 date 2005-12-06
3 3
  * Copyright 2004-2005 Stefan Schuermans <1stein@schuermans.info>
4 4
  * Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html
5 5
  * a blinkenarea.org project
6
- * powered by eventphone.de
7 6
  */
8 7
 
9 8
 #include <stdio.h>
... ...
@@ -28,11 +27,10 @@ int main( int argCnt, char * * args )
28 27
 
29 28
   //print info
30 29
   printf( "BlinkenLib - BlinkenSend\n"
31
-          "version 0.4.1 date 2005-12-05\n"
30
+          "version 0.5 date 2005-12-06\n"
32 31
           "Copyright 2004-2005 Stefan Schuermans <1stein@schuermans.info>\n"
33 32
           "Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html\n"
34
-          "a blinkenarea.org project\n"
35
-          "powered by eventphone.de\n\n" );
33
+          "a blinkenarea.org project\n\n" );
36 34
 
37 35
   //print syntax
38 36
   if( argCnt <= 1 )
... ...
@@ -1,3 +1,8 @@
1
+0.5 2005-12-06
2
+--------------
3
+added BlinkenOutput to output streams to devices
4
+removed no longer needed (since 0.4) malloc3D from Tools
5
+
1 6
 0.4.1 2005-12-05
2 7
 ----------------
3 8
 added number-of-times-to-play parameter to BlinkenSend
... ...
@@ -1,9 +1,8 @@
1 1
 # BlinkenLib
2
-# version 0.4.1 date 2005-12-05
2
+# version 0.5 date 2005-12-06
3 3
 # Copyright 2004-2005 Stefan Schuermans <1stein@schuermans.info>
4 4
 # Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html
5 5
 # a blinkenarea.org project
6
-# powered by eventphone.de
7 6
 
8 7
 CC=gcc
9 8
 CFLAGS=-W -Wall -O2
... ...
@@ -14,7 +13,7 @@ RANLIB=ranlib
14 13
 
15 14
 .phony: all clean
16 15
 
17
-all: BlinkenLib.a BlinkenConv BlinkenSend BlinkenRecv
16
+all: BlinkenLib.a BlinkenConv BlinkenSend BlinkenRecv BlinkenOutput
18 17
 
19 18
 BlinkenFrame.o: BlinkenFrame.c BlinkenFrame.h Tools.h
20 19
 	$(CC) $(CFLAGS) -c -o BlinkenFrame.o BlinkenFrame.c
... ...
@@ -38,5 +37,9 @@ BlinkenSend: BlinkenSend.c BlinkenLib.h BlinkenLib.a
38 37
 BlinkenRecv: BlinkenRecv.c BlinkenLib.h BlinkenLib.a
39 38
 	$(CC) $(LFLAGS) -o BlinkenRecv BlinkenRecv.c BlinkenLib.a
40 39
 
40
+BlinkenOutput: BlinkenOutput.c BlinkenLib.h BlinkenLib.a
41
+	$(CC) $(LFLAGS) -o BlinkenOutput BlinkenOutput.c BlinkenLib.a
42
+
41 43
 clean:
42
-	rm -f *.o BlinkenLib.a BlinkenConv BlinkenSend BlinkenRecv
44
+	rm -f *.o BlinkenLib.a BlinkenConv BlinkenSend BlinkenRecv BlinkenOutput
45
+
... ...
@@ -1,9 +1,8 @@
1 1
 /* BlinkenLib
2
- * version 0.4.1 date 2005-12-05
2
+ * version 0.5 date 2005-12-06
3 3
  * Copyright 2004-2005 Stefan Schuermans <1stein@schuermans.info>
4 4
  * Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html
5 5
  * a blinkenarea.org project
6
- * powered by eventphone.de
7 6
  */
8 7
 
9 8
 #include <stdlib.h>
... ...
@@ -45,35 +44,3 @@ void * * malloc2D( int count1, int count2, int size )
45 44
   return ptr;
46 45
 }
47 46
 
48
-void * * * malloc3D( int count1, int count2, int count3, int size )
49
-{
50
-  int sz, i, j;
51
-  char * p;
52
-  void * * * ptr;
53
-
54
-  if( count1 < 1 ) count1 = 1;
55
-  if( count2 < 1 ) count2 = 1;
56
-  if( count3 < 1 ) count3 = 1;
57
-  if( size < 1 )
58
-    return NULL;
59
-
60
-  sz = count1 * sizeof( void * * ) + count1 * count2 * sizeof( void * ) + count1 * count2 * count3 * size;
61
-  p = (char *)malloc( sz );
62
-  if( p == NULL )
63
-    return NULL;
64
-
65
-  ptr = (void * * *)p;
66
-  p += count1 * sizeof( void * * );
67
-  for( i = 0; i < count1; i++ )
68
-  {
69
-    ptr[i] = (void * *)p;
70
-    p += count2 * sizeof( void * );
71
-  }
72
-  for( i = 0; i < count1; i++ )
73
-    for( j = 0; j < count2; j++ )
74
-    {
75
-      ptr[i][j] = (void *)p;
76
-      p += count3 * size;
77
-    }
78
-  return ptr;
79
-}
... ...
@@ -1,9 +1,8 @@
1 1
 /* BlinkenLib
2
- * version 0.4.1 date 2005-12-05
2
+ * version 0.5 date 2005-12-06
3 3
  * Copyright 2004-2005 Stefan Schuermans <1stein@schuermans.info>
4 4
  * Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html
5 5
  * a blinkenarea.org project
6
- * powered by eventphone.de
7 6
  */
8 7
 
9 8
 #ifndef INC_Tools
... ...
@@ -13,7 +12,5 @@ void * malloc1D( int count1, int size );
13 12
 
14 13
 void * * malloc2D( int count1, int count2, int size );
15 14
 
16
-void * * * malloc3D( int count1, int count2, int count3, int size );
17
-
18 15
 #endif //#ifndef INC_Tools
19 16
 
20 17