Commits

Jaroslav Beran committed 4e3ece2

Small corrections

  • Participants
  • Parent commits 0ec85ef

Comments (0)

Files changed (5)

 */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <math.h>
 #include "printer.h"
 #include "graph.h"
 }
 
 /* Set Velocity (0 - 9) */
-xy_vs(PRINTER *p, int v) {
+void xy_vs(PRINTER *p, int v) {
 	xy_flush_moving_buffer(p);
 	pr_set_velocity(p, v);
 }
 extern void xy_hm(PRINTER *p);
 
 /* Set Velocity (0 - 9) */
-extern xy_vs(PRINTER *p, int v);
+extern void xy_vs(PRINTER *p, int v);
 
 /* Transforms position  */
 extern D_POSITION _transform_position(double x, double y, double angle);
 #include "printer.h"
 #include "graph.h"
 #include "text.h"
+#include "hpgl.h"
 #include "main.h"
 
 #define DEVICE "/dev/parport0" 
 	xy_ma(prn, paper.x - 190, 100);
 	xy_write(prn, "abcdefghijklmnopqrstuvwxyz");
 	xy_ma(prn, paper.x - 100, 100);
-	xy_write(prn, "!\"#$%&'()*+,-./:;<=>?@[\\]^_{|}~");
+	xy_write(prn, "!\"#$%&'()*+,-./:;<=>?@[\\]^_{|}~");
 
 	xy_vs(prn, 8);
 	xy_hm(prn);

File src/parport.h

 extern void usleep_win (long usec);
 #define USLEEP(t) (usleep_win(t))
 #else
+#include <unistd.h>
 #define USLEEP(t) (usleep(t))
 #endif /* _WIN32 */
 
 static POSITION transform_position(int x, int y, double angle);
 static char * get_first_command(char *s, int p[], int size);
 static int load_font(char *font_definition_file);
-static free_font(void);
+static void free_font(void);
 
 
 /* Set font size */
 }
 
 /* Free font */
-static free_font(void) {
+static void free_font(void) {
 
 	if (font == NULL) return;