RetroBSD

2.11BSD operating system for microcontrollers
It is currently Tue Jun 25, 2019 11:42 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue May 16, 2017 4:34 pm 

Joined: Tue May 16, 2017 3:41 pm
Posts: 2
Hi,

while testing out something, i had to spend +30minutes to figure out this strange omission
being the cause of a broken build..
Now I have something like this:
Code:
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c
index b7518ee3..d2c755fa 100644
--- a/usr.sbin/config/mkmakefile.c
+++ b/usr.sbin/config/mkmakefile.c
@@ -167,6 +167,8 @@ openit:
        }
 next:
        /*
+        * #<ignored line>
+        *      -OR-
         * filename     [ standard | optional ] [ config-dependent ]
         *      [ dev* | profiling-routine ] [ device-driver]
         *      [ compile-with "compile rule" ]
@@ -191,6 +193,13 @@ next:
        if (wd == 0)
                goto next;
        this = ns(wd);
+       if (*wd == '#') {
+               /*printf("%s: %s", fname, wd);*/
+               while ((wd = get_word(fp)) != 0)
+                       /*printf(" %s"wd)*/;
+               /*printf("\n");*/
+               goto next;
+       }
        next_word(fp, wd);
        if (wd == 0) {
                printf("%s: No type for %s.\n",


And do let me know, if this is the wrong place for these:)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron




Powered by phpBB® Forum Software © phpBB Group

BSD Daemon used with permission