home bbs files messages ]

Just a sample of the Echomail archive

Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.

   MAKENL_NG      MakeNL Next Generation.      1,725 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,464 of 1,725   
   Kees van Eeten to Andrew Leary   
   Dailylists with makenl_ng   
   24 Nov 17 12:41:16   
   
   Hello Andrew!   
      
   24 Nov 17 05:58, you wrote to Ward Dossche:   
      
    AL> Besides, the coding and testing time for this change will be minimal, as   
    AL> the code is basically already written.   
      
    I found that there are 4 superfluous curly brackets in my code example.   
    This is what the whole case should look like:   
      
           case CFG_PUBLISH:   
               NewExtWDay = xlate_switch(strupper(args[0]), DOWSwitchTab);   
               if (NewExtWDay == -1)   
               {   
                   mklog(LOG_ERROR, "%s -- Invalid day of week '%s'",   
                           cfgline, args[0]);   
                   mode = -1;   
                   break;   
               }   
               time(&thetime);   
               mytime = localtime(&thetime);   
               if (NewExtWDay == 7)   
                   NewExtWDay = mytime->tm_wday;   
               if (NewExtWDay == 8)   
                   NewExtWDay = mytime->tm_wday + 1;   
               NewExtWDay = (NewExtWDay + 1) % 7; /* publishing day->new   
                                                     filextension day */   
               break;   
      
      
   For completeness the is the other change in it's complete context.   
      
   static const struct switchstruct DOWSwitchTab[] = {   
       {"SUNDAY", 3, 0},   
       {"MONDAY", 3, 1},   
       {"TUESDAY", 3, 2},   
       {"WEDNESDAY", 3, 3},   
       {"THURSDAY", 3, 4},   
       {"FRIDAY", 3, 5},   
       {"SATURDAY", 3, 6},   
       {"TODAY", 3, 7},   
       {"TOMORROW", 3, 8},   
       {NULL, 0, -1}   
   };   
      
   Kees   
      
   --- GoldED+/LNX 1.1.5   
    * Origin: As for me, all I know is that, I know nothing. (2:280/5003.4)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca