Subversion Repositories SvarDOS

Rev

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

Rev 269 Rev 613
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-2021 Mateusz Viste
5
 * Copyright (C) 2015-2022 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"
11
#include "svarlang.lib\svarlang.h"
12
 
12
 
13
#include "kprintf.h"
13
#include "kprintf.h"
14
 
14
 
15
void kitten_printf(short x, short y, char *fmt, ...) {
15
void kitten_printf(short x, short y, ...) {
16
  va_list args;
16
  va_list args;
17
  va_start(args, fmt);
17
  va_start(args, y);
18
  vprintf(kittengets(x, y, fmt), args);
18
  vprintf(svarlang_str(x, y), args);
19
  va_end(args);
19
  va_end(args);
20
}
20
}
21
 
-
 
22
void kitten_puts(short x, short y, char *fmt) {
-
 
23
  puts(kittengets(x, y, fmt));
-
 
24
}
-