Subversion Repositories SvarDOS

Rev

Rev 221 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 221 Rev 244
Line 1... Line 1...
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-2021 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 "kitten/kitten.h"
-
 
12
 
11
#include "kprintf.h"
13
#include "kprintf.h"
12
 
14
 
13
void kitten_printf(short x, short y, char *fmt, ...) {
15
void kitten_printf(short x, short y, char *fmt, ...) {
14
  va_list args;
16
  va_list args;
15
  va_start(args, fmt);
17
  va_start(args, fmt);
16
  vprintf(fmt, args);
18
  vprintf(kittengets(x, y, fmt), args);
17
  va_end(args);
19
  va_end(args);
18
  x = y;
-
 
19
}
20
}
20
 
21
 
21
void kitten_puts(short x, short y, char *fmt) {
22
void kitten_puts(short x, short y, char *fmt) {
22
  x = y;
-
 
23
  puts(fmt);
23
  puts(kittengets(x, y, fmt));
24
}
24
}