Subversion Repositories SvarDOS

Rev

Rev 219 | Rev 244 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 219 Rev 221
1
/*
1
/*
2
 * This file provides dummy functions that simulate kitten-enabled routines
2
 * This file provides dummy functions that simulate kitten-enabled routines
3
 * without actually having kitten.
3
 * without actually having kitten.
4
 *
4
 *
5
 * Copyright (C) 2015-2016 Mateusz Viste
5
 * Copyright (C) 2015-2016 Mateusz Viste
6
 */
6
 */
7
 
7
 
8
#include <stdio.h>    /* vprintf() */
8
#include <stdio.h>    /* vprintf() */
9
#include <stdarg.h>   /* va_list, va_start()... */
9
#include <stdarg.h>   /* va_list, va_start()... */
10
 
10
 
11
#include "kprintf.h"
11
#include "kprintf.h"
12
 
12
 
13
void kitten_printf(short x, short y, char *fmt, ...) {
13
void kitten_printf(short x, short y, char *fmt, ...) {
14
  va_list args;
14
  va_list args;
15
  va_start(args, fmt);
15
  va_start(args, fmt);
16
  vprintf(fmt, args);
16
  vprintf(fmt, args);
17
  va_end(args);
17
  va_end(args);
18
  x = y;
18
  x = y;
19
}
19
}
20
 
20
 
21
void kitten_puts(short x, short y, char *fmt) {
21
void kitten_puts(short x, short y, char *fmt) {
22
  x = y;
22
  x = y;
23
  puts(fmt);
23
  puts(fmt);
24
}
24
}
25
 
25