VirtualBox

Changeset 2016 in kBuild for trunk/src


Ignore:
Timestamp:
Nov 1, 2008 10:18:19 PM (17 years ago)
Author:
bird
Message:

kmk_append: new line -> newline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/append.c

    r2015 r2016  
    5050            "      the first argument following the file name.\n"
    5151            "  -c  Output the command for specified target(s). [builtin only]\n"
    52             "  -n  Insert a new line between the strings.\n"
    53             "  -N  Suppress the trailing new line.\n"
     52            "  -n  Insert a newline between the strings.\n"
     53            "  -N  Suppress the trailing newline.\n"
    5454            "  -t  Truncate the file instead of appending\n"
    5555            "  -v  Output the value(s) for specified variable(s). [builtin only]\n"
     
    6969    int iFile;
    7070    FILE *pFile;
    71     int fNewLine = 0;
    72     int fNoTrailingNewLine = 0;
     71    int fNewline = 0;
     72    int fNoTrailingNewline = 0;
    7373    int fTruncate = 0;
    7474    int fDefine = 0;
     
    117117                        break;
    118118                    case 'n':
    119                         fNewLine = 1;
     119                        fNewline = 1;
    120120                        break;
    121121                    case 'N':
    122                         fNoTrailingNewLine = 1;
     122                        fNoTrailingNewline = 1;
    123123                        break;
    124124                    case 't':
     
    191191        size_t cch = strlen(psz);
    192192        if (!fFirst)
    193             fputc(fNewLine ? '\n' : ' ', pFile);
     193            fputc(fNewline ? '\n' : ' ', pFile);
    194194#ifndef kmk_builtin_append
    195195        if (fCommands)
     
    241241     * Add the final newline (unless supressed) and close the file.
    242242     */
    243     if (    (   !fNoTrailingNewLine
     243    if (    (   !fNoTrailingNewline
    244244             && fputc('\n', pFile) == EOF)
    245245        ||  ferror(pFile))
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette