Fix a few compilation warnings on Linux; Fix a possible bug in Mode5 loader; Removed a pair of debug printfs in realpath.c
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1933 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
		
							parent
							
								
									30e8079236
								
							
						
					
					
						commit
						55f4884e34
					
				@ -32,7 +32,11 @@
 | 
			
		||||
    #include <dirent.h>
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
// On Debian, this is already implied in dirent.h
 | 
			
		||||
// I don't know which targets need it and what it does. - yr
 | 
			
		||||
#ifndef _XOPEN_SOURCE
 | 
			
		||||
#define _XOPEN_SOURCE 500
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include <fcntl.h>
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
@ -5533,4 +5537,4 @@ void Button_Brush_container(void)
 | 
			
		||||
byte Any_effect_active(void)
 | 
			
		||||
{
 | 
			
		||||
    return Shade_mode||Quick_shade_mode||Colorize_mode||Smooth_mode||Tiling_mode||Smear_mode||Stencil_mode||Mask_mode||Sieve_mode||Snap_mode||Main_tilemap_mode;
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -378,9 +378,7 @@ int Analyze_command_line(int argc, char * argv[], char *main_filename, char *mai
 | 
			
		||||
        else if (File_exists(argv[index]))
 | 
			
		||||
        {
 | 
			
		||||
          file_in_command_line ++;
 | 
			
		||||
		  printf("PATH RESOLVE %s\n", argv[index]);
 | 
			
		||||
          buffer = Realpath(argv[index], NULL);
 | 
			
		||||
		  printf("returns : %p\n", buffer);
 | 
			
		||||
        
 | 
			
		||||
          if (file_in_command_line == 1)
 | 
			
		||||
          {
 | 
			
		||||
 | 
			
		||||
@ -2963,7 +2963,7 @@ void Load_CM5(T_IO_Context* context)
 | 
			
		||||
  FILE *file;
 | 
			
		||||
  char filename[MAX_PATH_CHARACTERS];
 | 
			
		||||
  byte value = 0;
 | 
			
		||||
  int mod;
 | 
			
		||||
  int mod=0;
 | 
			
		||||
  short line = 0;
 | 
			
		||||
  int tx, ty;
 | 
			
		||||
  byte buffer[48*6/4];
 | 
			
		||||
 | 
			
		||||
@ -408,4 +408,4 @@ byte C64_FLI_enforcer(void)
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
  return 0;
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user