The NetBSD Project

CVS log for src/usr.bin/make/buf.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / make

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.57 / (download) - annotate - [select for diffs], Tue Dec 19 19:33:39 2023 UTC (2 months ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored)

make: clean up comments

No binary change, except for line numbers in assertions.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Jun 1 07:44:10 2023 UTC (8 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored)

make: shorten function names, clean up comments

No functional change.

Revision 1.55 / (download) - annotate - [select for diffs], Sat Jan 8 17:25:19 2022 UTC (2 years, 1 month ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.54: +2 -10 lines
Diff to previous 1.54 (colored)

make: inline Buf_Clear

No functional change.

Revision 1.54 / (download) - annotate - [select for diffs], Wed Dec 15 09:29:55 2021 UTC (2 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.53: +4 -3 lines
Diff to previous 1.53 (colored)

make: prevent memory leaks from buffers

The warning about unused function results would have prevented the
memory leak that was fixed in cond.c 1.303 from 2021-12-13.

Revision 1.53 / (download) - annotate - [select for diffs], Sun Nov 28 22:48:06 2021 UTC (2 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.52: +12 -2 lines
Diff to previous 1.52 (colored)

make: move duplicate function Buf_AddFlag to buf.c

It is used only for debug output, therefore performance doesn't matter.

No functional change.

Revision 1.52 / (download) - annotate - [select for diffs], Mon Jun 21 19:59:58 2021 UTC (2 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.51: +3 -10 lines
Diff to previous 1.51 (colored)

make: use simpler upper bound for length in Buf_AddInt

No functional change.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Jan 30 21:18:14 2021 UTC (3 years ago) by rillig
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

make(1): remove __predict_false

The effect (at least on x86_64) is so minimal that it is not worth
cluttering the code.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Jan 30 21:03:32 2021 UTC (3 years ago) by rillig
Branch: MAIN
Changes since 1.49: +2 -17 lines
Diff to previous 1.49 (colored)

make(1): inline Buf_GetAll

Revision 1.49 / (download) - annotate - [select for diffs], Sat Jan 30 20:59:29 2021 UTC (3 years ago) by rillig
Branch: MAIN
Changes since 1.48: +10 -5 lines
Diff to previous 1.48 (colored)

make(1): only clean up the Buffer data in CLEANUP mode

Cleaning up the members is only useful during debugging but not during
use in production.

Revision 1.48 / (download) - annotate - [select for diffs], Sat Jan 30 20:53:29 2021 UTC (3 years ago) by rillig
Branch: MAIN
Changes since 1.47: +22 -13 lines
Diff to previous 1.47 (colored)

make(1): split Buf_Destroy into Buf_Done and Buf_DoneData

In all cases except one, the boolean argument to Buf_Destroy was
constant.  Removing that argument by splitting the function into two
separate functions makes the intention clearer on the call site.  It
also removes the possibility for using the return value of Buf_Done,
which would have made no sense.

The function Buf_Done now pairs with Buf_Init, just as in HashTable and
Lst.

Even though Buf_Done is essentially a no-op, it is kept as a function,
both for symmetry with Buf_Init and for clearing the Buffer members
after use (this will be done only in CLEANUP mode, in a follow-up
commit).

Revision 1.47 / (download) - annotate - [select for diffs], Wed Dec 30 10:03:16 2020 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.46: +14 -8 lines
Diff to previous 1.46 (colored)

make(1): format multi-line comments

Revision 1.46 / (download) - annotate - [select for diffs], Mon Dec 28 15:42:53 2020 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.45: +5 -5 lines
Diff to previous 1.45 (colored)

make(1): rename Buf_Expand_1 to Buf_Expand

Revision 1.45 / (download) - annotate - [select for diffs], Mon Nov 23 19:07:12 2020 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.44: +57 -56 lines
Diff to previous 1.44 (colored)

make(1): indent buf.c with tabs instead of spaces

Revision 1.44 / (download) - annotate - [select for diffs], Sat Nov 7 14:11:58 2020 UTC (3 years, 3 months ago) by rillig
Branch: MAIN
Changes since 1.43: +10 -7 lines
Diff to previous 1.43 (colored)

make(1): make API of Buf_Init simpler

In most cases, the caller doesn't want to specify the exact number of
preallocated bytes.

Revision 1.43 / (download) - annotate - [select for diffs], Sat Nov 7 10:16:18 2020 UTC (3 years, 3 months ago) by rillig
Branch: MAIN
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

make(1): clean up code stylistically

* Replace character literal 0 with '\0'.
* Replace pointer literal 0 with NULL.
* Remove redundant parentheses.
* Parentheses in multi-line conditions are not redundant at the
  beginning of a line.
* Replace a few !ptr with ptr == NULL.
* Replace a few ptr with ptr != NULL.
* Replace (expr & mask) == 0 with !(expr & mask).
* Remove redundant braces for blocks in cases where the generated code
  stays the same.  (Assertions further down in the code would get
  different line numbers.)
* Rename parameters in CondParser_String to reflect the data flow.
* Replace #ifdef notdef with #if 0.

The generated code stays exactly the same, at least with GCC 5.5.0 on
NetBSD 8.0 amd64 using the default configuration.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Oct 24 20:51:49 2020 UTC (3 years, 3 months ago) by rillig
Branch: MAIN
Changes since 1.41: +4 -4 lines
Diff to previous 1.41 (colored)

make(1): remove macros MIN and MAX

These macros typically evaluate one of their arguments twice.  Until
2020-08-31, they had not parenthesized their arguments properly.  They
are only used in a few places, therefore it doesn't hurt much to have
them expanded.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Oct 24 04:27:24 2020 UTC (3 years, 3 months ago) by rillig
Branch: MAIN
Changes since 1.40: +8 -9 lines
Diff to previous 1.40 (colored)

make(1): clean up comments in buf.c

Revision 1.40 / (download) - annotate - [select for diffs], Sun Sep 27 16:59:02 2020 UTC (3 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.39: +32 -32 lines
Diff to previous 1.39 (colored)

make(1): in the Buffer functions, rename bp to buf

It's not necessary to emphasize on the pointerness of the variable since
that's obvious from the context.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Sep 27 16:21:06 2020 UTC (3 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.38: +35 -36 lines
Diff to previous 1.38 (colored)

make(1): rename Buffer fields

It was confusing to have a function Buf_Size that returns buf->count
even though there is also buf->size.

Revision 1.38 / (download) - annotate - [select for diffs], Sun Sep 13 15:15:51 2020 UTC (3 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.37: +4 -14 lines
Diff to previous 1.37 (colored)

make(1): clean up RCSID blocks

These blocks mostly consisted of redundant structure, following the same
#ifndef pattern over and over, with only minimal variation.

It's easier to maintain if the common structure is only written once and
encapsulated in a macro.

To avoid "defined but unused" warnings from GCC in the case where
MAKE_NATIVE is not defined, I had to add volatile.  Adding
MAKE_ATTR_UNUSED alone would not preserve the rcsid variable in the
resulting binary.

Revision 1.37 / (download) - annotate - [select for diffs], Sun Aug 23 08:21:50 2020 UTC (3 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.36: +10 -12 lines
Diff to previous 1.36 (colored)

make(1): clean up code in buf.c

Revision 1.36 / (download) - annotate - [select for diffs], Sun Aug 23 06:12:52 2020 UTC (3 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.35: +6 -13 lines
Diff to previous 1.35 (colored)

make(1): use common MAX macro instead of self-defined

Revision 1.35 / (download) - annotate - [select for diffs], Thu Aug 13 04:12:13 2020 UTC (3 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.34: +10 -10 lines
Diff to previous 1.34 (colored)

make(1): remove type alias Byte = char

This alias was only actually used in very few places, and changing it to
unsigned char or any other type would not be possible without generating
lots of compile-time errors.  Therefore there was no abstraction, only
unnecessary complexity.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Aug 9 19:51:02 2020 UTC (3 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.33: +6 -6 lines
Diff to previous 1.33 (colored)

make(1): format the source code consistently, at least per file

Some files use 4 spaces per indentation level, others use 8.  At least
for the few files from this commit, they use a consistent style
throughout each file now.

In Cond_Eval, the #define has changed into an enum since the identifiers
need not be visible to the C preprocessor.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Aug 9 18:52:03 2020 UTC (3 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.32: +8 -5 lines
Diff to previous 1.32 (colored)

make(1): fix variable length array in Buf_AddInt

GCC 5 complained about this, but only when make is build with both
USE_COVERAGE=yes and USE_FORT=yes.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Aug 8 18:54:04 2020 UTC (3 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.31: +9 -9 lines
Diff to previous 1.31 (colored)

make(1): remove trailing Z from buffer functions

This Z had been useful during the migration from int to size_t.  This
migration is finished, at least for the Buffer type, so the Z is no
longer necessary.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Aug 3 20:26:09 2020 UTC (3 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.30: +5 -4 lines
Diff to previous 1.30 (colored)

make(1): no declaration-after-statement anymore

NetBSD make is intended to be maximally portable, therefore it uses only
C89.  This was not declared in the Makefile before.

There are still a few places in parse.c and metachar.c that use
end-of-line comments.  These will be fixed in a follow-up commit.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Aug 1 21:51:22 2020 UTC (3 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.29: +6 -8 lines
Diff to previous 1.29 (colored)

make(1): remove redundant if clause from Buf_DestroyCompact

bmake_realloc can never return NULL.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Aug 1 21:40:49 2020 UTC (3 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.28: +39 -135 lines
Diff to previous 1.28 (colored)

make(1): switch Buffer size from int to size_t

This change helps to make the various integer types compatible and is a
preparational step for setting WARNS=6 in the Makefile.

The documentation of buf.c has been cleaned up and condensed since it
was mostly redundant, and some statements were even slightly wrong.

All code changes are covered by the existing unit tests, except for the
few lines in for.c around for_var_len.  These changes have been reviewed
thoroughly and manually, like all the others in this commit.

Those buffer functions that deal with sizes have been renamed by
appending a Z, to make sure that no function call was accidentally
forgotten.  They will be renamed back in a follow-up commit.

As usual, the scope of a few affected variables has been reduced, and
some variables had to be split since they had been incorrectly merged
before.

The order of the arguments to Buf_AddBytes has changed from (mem_len,
mem) to (mem, mem_len), in order to make it consistent with the
functions from the C standard library, such as snprintf.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Jul 26 15:09:10 2020 UTC (3 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.27: +15 -3 lines
Diff to previous 1.27 (colored)

make(1): add Buffer functions for common tasks

Adding a string or a substring to a buffer are common tasks when handling
variables.  There is no need to spell out the strlen call or the pointer
subtraction at every call site.

Subtracting pointers results in a ptrdiff_t, which would have to be
converted to an int in each case for WARNS=6. Having this conversion in a
single place keeps the code clean.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Jul 26 13:39:30 2020 UTC (3 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.26: +29 -6 lines
Diff to previous 1.26 (colored)

make(1): add Buf_AddInt to make the calling code simpler

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jul 3 08:02:55 2020 UTC (3 years, 7 months ago) by rillig
Branch: MAIN
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (colored)

make(1): remove redundant parentheses around return values

Revision 1.24.8.1 / (download) - annotate - [select for diffs], Wed May 23 10:08:25 2012 UTC (11 years, 9 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.24: +44 -3 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

sync with head.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Apr 24 20:26:58 2012 UTC (11 years, 10 months ago) by sjg
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, dholland-make-base, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Changes since 1.24: +44 -3 lines
Diff to previous 1.24 (colored)

Var* are generally very liberal with memory, with the expectation
that none of it persists for long.
This isn't always true - for example a long running .for loop.

Buf_DestroyCompact() is used by Var_Subst(), rather than Buf_Destroy().
If it looks like we can save BUF_COMPACT_LIMIT (128) or more bytes,
call realloc.  This can reduce memory consumption by about 20%
Setting BUF_COMPACT_LIMIT to 0 dissables this.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:37 2009 UTC (15 years, 1 month ago) by dsl
Branch: MAIN
CVS Tags: yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-premerge-20091211, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache
Changes since 1.23: +48 -128 lines
Diff to previous 1.23 (colored)

Change 'Buffer' so that it is the actual struct, not a pointer to it.
Saves having to malloc/free a fixed size structure.
Buf_Init() now takes ptr to Buffer to initialiase.
Change Buf_Destroy() to return ptr to string when not freed.
Remove large number of casts to (Byte) and (Byte *) - 'Byte' is 'char' here.
Buf_AddByte[s] guarantees that the data is 0 termininated, so never add '\0'.
Keep 'count' not 'left' and 'inPtr', code is simplier with only one update.
Fix fallou, no functional change.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Dec 20 18:08:24 2008 UTC (15 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.22: +13 -18 lines
Diff to previous 1.22 (colored)

A lot of code assumes that the pointer returned by Buf_GetAll() is malloced.
Replace Buf_Discard() with Buf_Empty() since the former might leave the
'outPtr != buffer' and the only caller wanted all the data discared.
Remove 'outPtr' now that it always equals 'buffer'.
The assumption about Buf_GetAll()is now guaranteed by design.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Oct 6 22:09:21 2008 UTC (15 years, 4 months ago) by joerg
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Changes since 1.21: +6 -6 lines
Diff to previous 1.21 (colored)

Don't use emalloc and friends directly, but call them consistently
bmake_malloc and friends. Implement them via macros for the native case
and provide fallback implementations otherwise. Avoid polluting the
namespace by not defining enomem globally. Don't bother to provide
strdup and strndup, they were only used for the estrdup and estrndup
comapt code.

This addresses the presence of emalloc in system libraries on A/UX and
resulted strange issues as reported by Timothy E. Larson.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Feb 15 21:29:50 2008 UTC (16 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, mjf-devfs2-base, mjf-devfs2, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base
Changes since 1.20: +10 -12 lines
Diff to previous 1.20 (colored)

back all changes out until I fix it properly.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Feb 14 22:11:20 2008 UTC (16 years ago) by christos
Branch: MAIN
CVS Tags: christos-broken
Changes since 1.19: +15 -13 lines
Diff to previous 1.19 (colored)

- use pid_t/size_t as appropriate instead of int.
- use %ld to print pids.
- fix a bit of lint.
- WARNS=4

Revision 1.19 / (download) - annotate - [select for diffs], Mon Aug 8 16:42:54 2005 UTC (18 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, matt-armv6, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored)

From Max Okumoto:
- Remove casts to NULL.
- Remove space between cast and object.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Aug 5 00:53:18 2005 UTC (18 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.17: +5 -5 lines
Diff to previous 1.17 (colored)

More KNF cleanups from Max Okumoto

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jul 25 22:55:58 2005 UTC (18 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.16: +9 -9 lines
Diff to previous 1.16 (colored)

Whitespace KNF cleanup from Max Okumoto

Revision 1.16 / (download) - annotate - [select for diffs], Wed Feb 16 15:11:52 2005 UTC (19 years ago) by christos
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.15: +5 -5 lines
Diff to previous 1.15 (colored)

PR/29203, PR/29204: Max Okumoto: KNF changes to make [no functional changes]

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Mon May 10 15:44:17 2004 UTC (19 years, 9 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Pull up revision 1.15 (requested by sjg in ticket #282):
Simplify build, no functional changes.
Instead of adding MAKE_BOOTSTRAP for hosted environments, i.e., when
you want things simple, instead add MAKE_NATIVE to get those hugely
important features like __RCSID().
It's now possible to build make on some hosts with: cc *.c */*.c

Revision 1.15 / (download) - annotate - [select for diffs], Fri May 7 00:04:38 2004 UTC (19 years, 9 months ago) by ross
Branch: MAIN
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored)

Simplify build, no functional changes.

Instead of adding MAKE_BOOTSTRAP for hosted environments, i.e., when
you want things simple, instead add MAKE_NATIVE to get those hugely
important features like __RCSID().

It's now possible to build make on some hosts with: cc *.c */*.c

Revision 1.14 / (download) - annotate - [select for diffs], Thu Aug 7 11:14:48 2003 UTC (20 years, 6 months ago) by agc
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.13: +34 -3 lines
Diff to previous 1.13 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Jun 15 18:24:55 2002 UTC (21 years, 8 months ago) by wiz
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.12: +22 -26 lines
Diff to previous 1.12 (colored)

Remove !__STDC__ stuff, de-__P(), ANSIfy, and de-register.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Sep 15 04:16:31 1999 UTC (24 years, 5 months ago) by mycroft
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.11: +5 -169 lines
Diff to previous 1.11 (colored)

Nuke Buf_{G,Ung}etByte{,s}(), since they aren't used, and make BufExpand do
power-of-2 allocation.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Sep 28 03:31:00 1997 UTC (26 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.10: +6 -2 lines
Diff to previous 1.10 (colored)

wrap #include <sys/cdefs.h>, __RCSID(...) stuff in #ifndef MAKE_BOOTSTRAP

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jul 1 21:17:08 1997 UTC (26 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored)

Add WARNS=1
RCSID police

Revision 1.7.4.1 / (download) - annotate - [select for diffs], Sun Jan 26 05:51:30 1997 UTC (27 years, 1 month ago) by rat
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-PATCH001
Changes since 1.7: +33 -8 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Update make(1) from trunk, by request from Christos Zoulas.  Fixes many bugs.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Dec 31 17:53:21 1996 UTC (27 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Use only integral types in procedure arguments.

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sat Dec 28 04:40:54 1996 UTC (27 years, 2 months ago) by tls
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.1: +14 -14 lines
Diff to previous 1.1.1.1 (colored)

Import 4.4BSD-Lite2 sources onto CSRG branch (already merged at head)

Revision 1.8 / (download) - annotate - [select for diffs], Wed Nov 6 17:59:00 1996 UTC (27 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.7: +33 -8 lines
Diff to previous 1.7 (colored)

- Merge in FreeBSD and Lite2 changes.
- Fix bug where a non-archive target with a .a suffix would always
  be considered to be out of date, since it does not have a TOC.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Mar 29 02:17:13 1996 UTC (27 years, 11 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Added erealloc() function that calls enomem() if the allocation fails
(this is like the existing emalloc() function).  Changed all realloc()
calls to erealloc().

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jun 14 15:18:51 1995 UTC (28 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.5: +7 -2 lines
Diff to previous 1.5 (colored)

- $NetBSD$ rcsids
- Fixed so that .[A-Z]* targets that do not match keywords are ignored as
  Posix mandates
- Added .PHONY target keyword

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jun 6 22:45:19 1994 UTC (29 years, 8 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Fixes from Christos Zoulas, who used purify, objectcenter and testcenter
to find memory leaks and illegal memory accesses.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Mar 5 00:34:34 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.3: +11 -13 lines
Diff to previous 1.3 (colored)

fixes/improvements from Christos Zoulas <christos@deshaw.com>.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jan 13 21:01:42 1994 UTC (30 years, 1 month ago) by jtc
Branch: MAIN
Changes since 1.2: +3 -1 lines
Diff to previous 1.2 (colored)

Include appropriate header files to bring prototypes into scope.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Aug 1 18:11:55 1993 UTC (30 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

Add RCS identifiers.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (30 years, 11 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9, netbsd-0-8, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>