dungeon_crawler

diff prototype/drawtext/font.c @ 66:6a471c87f9ca

- added visual studio project files - changed some __func__ into __FUNCTION__ to compile on visual studio
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 07 Oct 2012 00:19:48 +0200
parents 2fc004802739
children
line diff
     1.1 --- a/prototype/drawtext/font.c	Tue Oct 02 13:42:18 2012 +0300
     1.2 +++ b/prototype/drawtext/font.c	Sun Oct 07 00:19:48 2012 +0200
     1.3 @@ -332,7 +332,7 @@
     1.4  
     1.5  			res = sscanf(line + 1, "%d: %fx%f+%f+%f\n", &c, &xsz, &ysz, &x, &y);
     1.6  			if(res != 5) {
     1.7 -				fprintf(stderr, "%s: invalid glyph info line\n", __func__);
     1.8 +				fprintf(stderr, "%s: invalid glyph info line\n", __FUNCTION__);
     1.9  				goto err;
    1.10  			}
    1.11  
    1.12 @@ -358,14 +358,14 @@
    1.13  			switch(hdr_lines) {
    1.14  			case 0:
    1.15  				if(0[line] != 'P' || 1[line] != '6') {
    1.16 -					fprintf(stderr, "%s: invalid file format (magic)\n", __func__);
    1.17 +					fprintf(stderr, "%s: invalid file format (magic)\n", __FUNCTION__);
    1.18  					goto err;
    1.19  				}
    1.20  				break;
    1.21  
    1.22  			case 1:
    1.23  				if(sscanf(line, "%d %d", &gmap->xsz, &gmap->ysz) != 2) {
    1.24 -					fprintf(stderr, "%s: invalid file format (dim)\n", __func__);
    1.25 +					fprintf(stderr, "%s: invalid file format (dim)\n", __FUNCTION__);
    1.26  					goto err;
    1.27  				}
    1.28  				break;
    1.29 @@ -375,7 +375,7 @@
    1.30  					char *endp;
    1.31  					max_pixval = strtol(line, &endp, 10);
    1.32  					if(endp == line) {
    1.33 -						fprintf(stderr, "%s: invalid file format (maxval)\n", __func__);
    1.34 +						fprintf(stderr, "%s: invalid file format (maxval)\n", __FUNCTION__);
    1.35  						goto err;
    1.36  					}
    1.37  				}
    1.38 @@ -438,7 +438,7 @@
    1.39  	int res;
    1.40  
    1.41  	if(!(fp = fopen(fname, "wb"))) {
    1.42 -		fprintf(stderr, "%s: failed to open file: %s: %s\n", __func__, fname, strerror(errno));
    1.43 +		fprintf(stderr, "%s: failed to open file: %s: %s\n", __FUNCTION__, fname, strerror(errno));
    1.44  		return -1;
    1.45  	}
    1.46  	res = dtx_save_glyphmap_stream(fp, gmap);