Changeset 5317 for trunk/tools


Ignore:
Timestamp:
Mar 14, 2001, 9:17:52 PM (24 years ago)
Author:
bird
Message:

Addjustments of supertarget and NT version.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/fastdep/fastdep.c

    r5282 r5317  
    1 /* $Id: fastdep.c,v 1.25 2001-03-02 11:23:24 phaller Exp $
     1/* $Id: fastdep.c,v 1.26 2001-03-14 20:17:52 bird Exp $
    22 *
    33 * Fast dependents. (Fast = Quick and Dirty!)
    44 *
    5  * Copyright (c) 1999-2000 knut st. osmundsen
     5 * Copyright (c) 1999-2001 knut st. osmundsen
    66 *
    77 * PH 2001-03-01 added optional support for a super-dependency
     
    1717#define INCL_FILEMGR
    1818
     19/*
     20 * Size of the \n charater (forget '\r').
     21 * If you're compiling this under a UNICODE system this may perhaps change,
     22 * but I doubd that fastdep will work at all under a UNICODE system. ;-)
     23 */                       
     24#if defined(UNICODE) && !defined(__WIN32OS2__)
     25#define CBNEWLINE     (2)
     26#else
     27#define CBNEWLINE     (1)
     28#endif
     29
     30
    1931
    2032/*******************************************************************************
    2133*   Header Files                                                               *
    2234*******************************************************************************/
     35#if defined(OS2FAKE)
     36#include "os2fake.h"
     37#else
    2338#include <os2.h>
     39#endif
     40
    2441#include <stdio.h>
    2542#include <string.h>
     
    726743            int             i;
    727744
     745
    728746            /*
    729747             * If append option is specified we'll have to read the existing dep file
     
    817835{
    818836    printf(
    819         "FastDep v0.31\n"
     837        "FastDep v0.32\n"
    820838        "Dependency scanner. Creates a makefile readable depend file.\n"
    821839        " - was quick and dirty, now it's just quick -\n"
     
    850868        "                   -obr-: No object rule, rule for source filename is generated.\n"
    851869        "   -obj[ ]<objext> Object extention.           Default: obj\n"
    852         "   -s <name>       Insert super-dependency on top of tree, Default: alltargets:\n"
     870        "   -s[ ][name]     Insert super-dependency on top of tree.\n"
     871        "                   If not specified name defaults to 'alltargets'.\n"
     872        "                   Default: disabled\n"
    853873        "   -r[ ]<rsrcext>  Resource binary extention.  Default: res\n"
    854874        "   -x[ ]<f1[;f2]>  Files to exclude. Only exact filenames.\n"
     
    856876        "\n"
    857877        "Options and files could be mixed.\n"
    858         " copyright (c) 1999-2000 knut st. osmundsen (knut.stange.osmundsen@pmsc.no)\n",
     878        " copyright (c) 1999-2001 knut st. osmundsen (knut.stange.osmundsen@mynd.no)\n",
    859879        pszDefaultDepFile
    860880        );
     
    25772597        int         cch;
    25782598
    2579         /* PH Note: might not be CRLF on other platforms */
    2580         int iCRLF = strlen("\n");
    2581 
    2582 
    25832599        /* @@@PH 2001-03-01
    25842600         * If option is selected to generate a parent
     
    26122628
    26132629            /* Add two new lines. Flush buffer first if necessary. */
    2614             if (iBuffer + iCRLF + iCRLF >= sizeof(szBuffer))
     2630            if (iBuffer + CBNEWLINE*2 >= sizeof(szBuffer))
    26152631            {
    26162632                fwrite(szBuffer, iBuffer, 1, phFile);
     
    26202636            /* add 2 linefeeds */
    26212637            strcpy(szBuffer + iBuffer, "\n\n");
    2622             iBuffer += iCRLF + iCRLF;
     2638            iBuffer += CBNEWLINE*2;
    26232639        }
    26242640
     
    26592675
    26602676            /* Add two new lines. Flush buffer first if necessary. */
    2661             if (iBuffer + iCRLF + iCRLF >= sizeof(szBuffer))
     2677            if (iBuffer + CBNEWLINE*2 >= sizeof(szBuffer))
    26622678            {
    26632679                fwrite(szBuffer, iBuffer, 1, phFile);
     
    26672683            /* add 2 linefeeds */
    26682684            strcpy(szBuffer + iBuffer, "\n\n");
    2669             iBuffer += iCRLF + iCRLF;
     2685            iBuffer += CBNEWLINE*2;
    26702686
    26712687            /* next rule */
     
    28792895
    28802896
     2897
     2898
    28812899/*
    28822900 * Testing purpose.
    28832901 */
     2902#if !defined(OS2FAKE)
    28842903#include <os2.h>
     2904#endif
    28852905#ifdef OLEMANN
    28862906#include "olemann.h"
     
    28892909
    28902910
     2911
Note: See TracChangeset for help on using the changeset viewer.