[libfake437] r341 committed - Go away printf, nobody likes you.

1 view
Skip to first unread message

libfa...@googlecode.com

unread,
Oct 1, 2011, 7:14:10 PM10/1/11
to libfake43...@googlegroups.com
Revision: 341
Author: endga...@gmail.com
Date: Sat Oct 1 16:02:41 2011
Log: Go away printf, nobody likes you.
http://code.google.com/p/libfake437/source/detail?r=341

Modified:
/trunk/include/fake437/surface.h
/trunk/src/surface.c

=======================================
--- /trunk/include/fake437/surface.h Sat Oct 1 16:01:11 2011
+++ /trunk/include/fake437/surface.h Sat Oct 1 16:02:41 2011
@@ -97,32 +97,8 @@
** (F437Surface* @var{surface}, @
** const char* @var{str})
**
- ** @deftypefunx void f437_surface_printf @
- ** (F437Surface* @var{surface}, @
- ** const char* @var{format}, @
- ** ...)
- **
- ** @deftypefunx void f437_surface_nprintf @
- ** (F437Surface* @var{surface}, @
- ** int @var{n}, @
- ** const char* @var{format}, @
- ** ...)
- **
- ** @deftypefunx void f437_surface_vprintf @
- ** (F437Surface* @var{surface}, @
- ** const char* @var{format}, @
- ** va_list @var{args})
- **
- ** @deftypefunx void f437_surface_vnprintf @
- ** (F437Surface* @var{surface}, @
- ** int @var{n}, @
- ** const char* @var{format}, @
- ** va_list @var{args})
- **
- ** Write a character, string or formatted string to the
- ** surface. @code{f437_surface_nprintf} places an upper bound on the
- ** number of characters written. Because code page 437 defines
- ** various dingbats for the low characters, characters like
+ ** Write a character or string to the surface. Because code page 437
+ ** defines various dingbats for the low characters, characters like
** @code{'\n'} will not behave as they would when writing to a
** terminal.
**
@@ -134,16 +110,7 @@

void f437_surface_putc(F437Surface* surface, int ch);
void f437_surface_puts(F437Surface* surface, const char* str);
-// TODO: write own version of G_GNUC_PRINTF(2,3) and use
-void f437_surface_printf(F437Surface* surface, const char* format, ...);
-void f437_surface_nprintf(F437Surface* surface, int n, const char*
format, ...);
-void f437_surface_vprintf(F437Surface* surface,
- const char* format,
- va_list args);
-void f437_surface_vnprintf(F437Surface* surface,
- int n,
- const char* format,
- va_list args);
+
/**
** @deftypefun void f437_surface_fg @
** (F437Surface* @var{surface}, @
=======================================
--- /trunk/src/surface.c Sat Oct 1 16:01:46 2011
+++ /trunk/src/surface.c Sat Oct 1 16:02:41 2011
@@ -81,9 +81,6 @@
void f437_surface_puts(F437Surface* surface, const char* str) {
while (*str != '\0') f437_surface_putc(surface, *str++);
}
-
-void f437_surface_printf(F437Surface* surface, const char* format, ...);
-void f437_surface_nprintf(F437Surface* surface, int n, const char*
format, ...);

void f437_surface_fg(F437Surface* surface, const SDL_Color* fg) {
assert(surface != NULL);

Reply all
Reply to author
Forward
0 new messages