]> git.gag.com Git - fw/sdcc/commitdiff
* src/pic/device.c (find_device): removed debug output
authortecodev <tecodev@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 11 Apr 2006 18:23:55 +0000 (18:23 +0000)
committertecodev <tecodev@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 11 Apr 2006 18:23:55 +0000 (18:23 +0000)
  (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

ChangeLog
device/include/stdbool.h
src/pic/device.c

index 4b06da0b6ae4c486defa0aa75426f1d2a076bbcd..5892cd2df2a39722012f4de60d9fbe833caf6634 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-04-11 Raphael Neider <rneider AT web.de>
+
+       * 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 <Frieder.Ferlemann AT web.de>
 
        * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
index ea6832168091e07fc90b14d837136183d0ef643c..1eef47605596b96d380ea0071b4c9914c1bf4577 100644 (file)
 #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
index df172481173abc96961597ad9483041eefc7f9b5..ce4746aebdf440fd449ca050dce1348ad7b23f8d 100644 (file)
@@ -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");