Ignore:
Timestamp:
Oct 13, 2004, 4:06:32 AM (21 years ago)
Author:
bird
Message:

Merged in mozilla changes and config.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/makedep/main.c

    r164 r168  
    158158        char **undeflist = NULL;
    159159        int numundefs = 0, i;
     160        register char offset; /* mozilla */
    160161
    161162        ProgramName = argv[0];
     
    232233                        break;
    233234                case 'D':
     235                        offset = 2; /* mozilla */
     236Imaginary Buffer Line
    234237                        if (argv[0][2] == '\0') {
    235238                                argv++;
    236239                                argc--;
    237                         }
    238                         for (p=argv[0] + 2; *p ; p++)
     240                                offset = 0;
     241                        }
     242                        /* offset +1 here since first def letter
     243                         * cannot be `=`
     244                         */
     245                        for (p = argv[0] + offset + 1; *p; p++) /* mozilla */
    239246                                if (*p == '=') {
    240247                                        *p = ' ';
    241248                                        break;
    242249                                }
    243                         define(argv[0] + 2, &maininclist);
     250                        define(argv[0] + offset, &maininclist); /* mozilla */
    244251                        break;
    245252                case 'I':
     
    260267                            undeflist = realloc(undeflist,
    261268                                                numundefs * sizeof(char *));
     269                        offset = 2;  /* mozilla */
    262270                        if (argv[0][2] == '\0') {
    263271                                argv++;
    264272                                argc--;
    265                         }
    266                         undeflist[numundefs - 1] = argv[0] + 2;
     273                                offset = 0;  /* mozilla */
     274                        }
     275                        undeflist[numundefs - 1] = argv[0] + offset; /* mozilla */
    267276                        break;
    268277                case 'Y':
     
    510519 * eliminate \r chars from file
    511520 */
    512 static int 
     521static int
    513522elim_cr(char *buf, int sz)
    514523{
     
    634643                        whitespace = TRUE;
    635644                }
    636        
     645
    637646                if (*p == '/' && (p+1) < eof && *(p+1) == '*') {
    638647                        /* Consume C comments */
     
    662671                                }
    663672                                else if (*p == '?' && (p+3) < eof &&
    664                                          *(p+1) == '?' && 
     673                                         *(p+1) == '?' &&
    665674                                         *(p+2) == '/' &&
    666675                                         *(p+3) == '\n') {
     
    698707                                *(p++) = '\0';
    699708                                /* punt lines with just # (yacc generated) */
    700                                 for (cp = bol+1; 
     709                                for (cp = bol+1;
    701710                                     *cp && (*cp == ' ' || *cp == '\t'); cp++);
    702711                                if (*cp) goto done;
Note: See TracChangeset for help on using the changeset viewer.