From: tecodev Date: Tue, 11 Apr 2006 18:23:55 +0000 (+0000) Subject: * src/pic/device.c (find_device): removed debug output X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=b3da9cf67d6f35757a219a03e16674562daf258c;p=fw%2Fsdcc * src/pic/device.c (find_device): removed debug output (list_valid_pics): enabled verbose listing of supported devices * device/include/stdbool.h: define bool as char for pic14/16 as well git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4091 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index 4b06da0b..5892cd2d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-04-11 Raphael Neider + + * src/pic/device.c (find_device): removed debug output + (list_valid_pics): enabled verbose listing of supported devices + * device/include/stdbool.h: define bool as char for pic14/16 as well + 2006-04-07 Frieder Ferlemann * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)" diff --git a/device/include/stdbool.h b/device/include/stdbool.h index ea683216..1eef4760 100644 --- a/device/include/stdbool.h +++ b/device/include/stdbool.h @@ -21,14 +21,14 @@ #ifndef __SDC51_STDBOOL_H #define __SDC51_STDBOOL_H 1 -#define _Bool __bit +#define _Bool BOOL -#define bool _Bool +#define bool BOOL #define true 1 #define false 0 #define __bool_true_false_are_defined 1 -#if defined (SDCC_ds390) || defined (SDCC_hc08) || defined (SDCC_z80) || defined (SDCC_gbz80) +#if defined (SDCC_ds390) || defined (SDCC_hc08) || defined (SDCC_z80) || defined (SDCC_gbz80) || defined (SDCC_pic14) || defined (SDCC_pic16) #define BOOL char #else #define BOOL __bit diff --git a/src/pic/device.c b/src/pic/device.c index df172481..ce4746ae 100644 --- a/src/pic/device.c +++ b/src/pic/device.c @@ -240,7 +240,7 @@ static PIC_device *find_device(char *pic_name) !pic_file && dir; dir = setNextItem(includeDirsSet)) { - fprintf( stderr, "searching1 %s\n", dir ); + //fprintf( stderr, "searching1 %s\n", dir ); SNPRINTF(&filename[0], len, "%s%s%s", dir, DIR_SEPARATOR_STRING, DEVICE_FILE_NAME); pic_file = fopen( filename, "rt" ); if (pic_file) break; @@ -249,7 +249,7 @@ static PIC_device *find_device(char *pic_name) !pic_file && dir; dir = setNextItem(userIncDirsSet)) { - fprintf( stderr, "searching2 %s\n", dir ); + //fprintf( stderr, "searching2 %s\n", dir ); SNPRINTF(&filename[0], len, "%s%s%s", dir, DIR_SEPARATOR_STRING, DEVICE_FILE_NAME); pic_file = fopen( filename, "rt" ); if (pic_file) break; @@ -258,7 +258,7 @@ static PIC_device *find_device(char *pic_name) !pic_file && dir; dir = setNextItem(libDirsSet)) { - fprintf( stderr, "searching3 %s\n", dir ); + //fprintf( stderr, "searching3 %s\n", dir ); SNPRINTF(&filename[0], len, "%s%s%s", dir, DIR_SEPARATOR_STRING, DEVICE_FILE_NAME); pic_file = fopen( filename, "rt" ); if (pic_file) break; @@ -267,7 +267,7 @@ static PIC_device *find_device(char *pic_name) !pic_file && dir; dir = setNextItem(libPathsSet)) { - fprintf( stderr, "searching4 %s\n", dir ); + //fprintf( stderr, "searching4 %s\n", dir ); SNPRINTF(&filename[0], len, "%s%s%s", dir, DIR_SEPARATOR_STRING, DEVICE_FILE_NAME); pic_file = fopen( filename, "rt" ); if (pic_file) break; @@ -650,7 +650,7 @@ void dump_sfr(FILE *of) void list_valid_pics(int ncols, int list_alias) { int col=0,longest; - int i,j,k; + int i,j,k,l; int max_alias = 1; if (num_of_supported_PICS == 0) @@ -671,7 +671,7 @@ void list_valid_pics(int ncols, int list_alias) } } -#if 0 +#if 1 /* heading */ fprintf(stderr, "\nPIC14 processors and their characteristics:\n\n"); fprintf(stderr, " processor");