The NetBSD Project

CVS log for src/usr.bin/xlint/lint2/read.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.90 / (download) - annotate - [select for diffs], Sun Dec 3 18:17:41 2023 UTC (2 months, 3 weeks ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.89: +28 -28 lines
Diff to previous 1.89 (colored)

lint: in declarations, replace tab with space

Previously, in some cases, the keywords 'const' or 'struct' were
followed by a tab, which doesn't make sense.

No functional change.

Revision 1.89 / (download) - annotate - [select for diffs], Sun Dec 3 13:12:40 2023 UTC (2 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.88: +19 -20 lines
Diff to previous 1.88 (colored)

lint: re-wrap comments

No functional change.

Revision 1.88 / (download) - annotate - [select for diffs], Sun Dec 3 12:03:38 2023 UTC (2 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.87: +4 -4 lines
Diff to previous 1.87 (colored)

lint: indent statement continuations consistently

No binary change.

Revision 1.87 / (download) - annotate - [select for diffs], Thu Jul 13 08:40:38 2023 UTC (7 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.86: +3 -3 lines
Diff to previous 1.86 (colored)

lint: indent copyright lines consistently

Revision 1.86 / (download) - annotate - [select for diffs], Mon Jul 10 14:13:19 2023 UTC (7 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.85: +5 -6 lines
Diff to previous 1.85 (colored)

lint: push memory management one layer down

Just as with type_name in lint1, it is more convenient if the
application code does not have to deal with memory management.

Revision 1.85 / (download) - annotate - [select for diffs], Mon Jul 10 12:40:22 2023 UTC (7 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.84: +13 -13 lines
Diff to previous 1.84 (colored)

lint: clean up lint2

Revision 1.84 / (download) - annotate - [select for diffs], Mon Jul 10 09:51:30 2023 UTC (7 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.83: +4 -6 lines
Diff to previous 1.83 (colored)

lint: clean up wchar_t and hash tables

Revision 1.83 / (download) - annotate - [select for diffs], Sat Jul 8 11:18:16 2023 UTC (7 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.82: +4 -4 lines
Diff to previous 1.82 (colored)

lint: enable more lint warnings for its own source code

Revision 1.82 / (download) - annotate - [select for diffs], Mon Jul 3 07:03:19 2023 UTC (7 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.81: +5 -5 lines
Diff to previous 1.81 (colored)

lint: rename uppercase QUAD to LLONG

No binary change.

Revision 1.81 / (download) - annotate - [select for diffs], Fri Jun 9 13:03:49 2023 UTC (8 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.80: +43 -43 lines
Diff to previous 1.80 (colored)

lint: indent local variables consistently

No binary change.

Revision 1.80 / (download) - annotate - [select for diffs], Mon May 22 12:55:04 2023 UTC (9 months ago) by rillig
Branch: MAIN
Changes since 1.79: +4 -4 lines
Diff to previous 1.79 (colored)

lint: rename constant NOTSPEC to NO_TSPEC

It was too easy to misread the old name as NOT_SPEC instead of the
intended NO_TSPEC.

Revision 1.79 / (download) - annotate - [select for diffs], Tue Feb 21 19:30:51 2023 UTC (12 months ago) by rillig
Branch: MAIN
Changes since 1.78: +3 -3 lines
Diff to previous 1.78 (colored)

lint: use __printflike

Revision 1.78 / (download) - annotate - [select for diffs], Sat Jan 14 09:30:07 2023 UTC (13 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored)

lint: clean up messages for internal errors

Revision 1.77 / (download) - annotate - [select for diffs], Fri Jan 13 19:50:00 2023 UTC (13 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.76: +12 -2 lines
Diff to previous 1.76 (colored)

lint: move xalloc to the only file where it is used

No functional change.

Revision 1.76 / (download) - annotate - [select for diffs], Fri May 20 21:18:55 2022 UTC (21 months 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.75: +3 -3 lines
Diff to previous 1.75 (colored)

lint: use __RCSID in lint mode as well

Since 1995-10-02, lint supports __asm statements and __asm modifiers.

No binary change.

Revision 1.75 / (download) - annotate - [select for diffs], Sun Dec 19 10:42:36 2021 UTC (2 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.74: +32 -44 lines
Diff to previous 1.74 (colored)

lint: remove redundant braces

No binary change.

Revision 1.74 / (download) - annotate - [select for diffs], Sun Dec 19 10:29:06 2021 UTC (2 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.73: +14 -14 lines
Diff to previous 1.73 (colored)

lint: reduce pointer usage when reading .ln lines

No binary change.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Dec 19 10:19:58 2021 UTC (2 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.72: +4 -4 lines
Diff to previous 1.72 (colored)

lint: remove unused parameter in read_ln_line

Revision 1.72 / (download) - annotate - [select for diffs], Thu Dec 16 03:53:13 2021 UTC (2 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.71: +5 -5 lines
Diff to previous 1.71 (colored)

lint: improve error message for missing newline in .ln file

Revision 1.71 / (download) - annotate - [select for diffs], Sun Nov 28 09:16:46 2021 UTC (2 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.70: +7 -4 lines
Diff to previous 1.70 (colored)

lint2: in case of parse errors, output the offending line

This provides more of a clue than a simple '(not alnum or _: )',
especially in the output of build.sh.

While here, change the format of the error message to the standard
'%s:%d'. Since these are internal errors, they are not supposed to occur
often, so no need to change error(1).

Revision 1.70 / (download) - annotate - [select for diffs], Sun Nov 28 08:21:49 2021 UTC (2 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.69: +9 -7 lines
Diff to previous 1.69 (colored)

lint: move fgetln peculiarities out of read_ln_line

This allows the function parameter to be a pointer to const.

No functional change.

Revision 1.69 / (download) - annotate - [select for diffs], Tue Nov 16 22:12:44 2021 UTC (2 years, 3 months ago) by rillig
Branch: MAIN
Changes since 1.68: +7 -7 lines
Diff to previous 1.68 (colored)

lint: clean up lint2

No functional change.

Revision 1.68 / (download) - annotate - [select for diffs], Tue Nov 16 22:03:12 2021 UTC (2 years, 3 months ago) by rillig
Branch: MAIN
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored)

lint: clean up initialization of lint2 symbol table

No functional change.

Revision 1.67 / (download) - annotate - [select for diffs], Sun Sep 5 19:58:53 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.66: +8 -9 lines
Diff to previous 1.66 (colored)

lint: remove source code references from internal error message

The additional strings that are provided with the error message are
distinctive enough.

Revision 1.66 / (download) - annotate - [select for diffs], Sun Sep 5 19:44:56 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.65: +72 -65 lines
Diff to previous 1.65 (colored)

lint: extract function for reading a single line from a .ln file

No functional change.

Revision 1.65 / (download) - annotate - [select for diffs], Sun Sep 5 16:15:05 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.64: +8 -7 lines
Diff to previous 1.64 (colored)

lint: fix some more lint warnings

The only remaining warnings are in scan.c, which is a generated Flex
scanner.

No functional change.

Revision 1.64 / (download) - annotate - [select for diffs], Sat Sep 4 19:16:38 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.63: +41 -39 lines
Diff to previous 1.63 (colored)

lint: reduce complexity of reading a function call

No functional change.

Revision 1.63 / (download) - annotate - [select for diffs], Mon Aug 30 21:35:23 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.62: +75 -69 lines
Diff to previous 1.62 (colored)

lint: extract parse_function_attribute from decldef

No functional change.

Revision 1.62 / (download) - annotate - [select for diffs], Mon Aug 30 20:20:20 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.61: +8 -5 lines
Diff to previous 1.61 (colored)

lint: remove redundant call to strchr in decldef

This time, the branches for varargs, printflike and scanflike in the big
switch statement are covered by unit tests.  These tests would have
caught the previous "cleanup" that broke parsing of these function
attributes.  Furthermore, this second cleanup is closer to the original
code and conceptually simpler since it avoids having many 'continue'
statements in a 'switch' statement, which would have been unusual.

The branches for inline functions and used functions are still not
covered by the tests, but they are structurally equal to several other
branches.

No functional change.

Revision 1.61 / (download) - annotate - [select for diffs], Mon Aug 30 19:07:57 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.60: +16 -21 lines
Diff to previous 1.60 (colored)

lint: revert "remove redundant call to strchr" from yesterday

This "refactoring" broke the parsing code for varargs, printflike and
scanflike functions, and there were no tests for these.  Revert for now,
maybe try again later, after adding the corresponding tests.

Revision 1.60 / (download) - annotate - [select for diffs], Mon Aug 30 18:03:52 2021 UTC (2 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.59: +6 -3 lines
Diff to previous 1.59 (colored)

Move the character one back so that we don't increment twice

Revision 1.59 / (download) - annotate - [select for diffs], Mon Aug 30 14:57:04 2021 UTC (2 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.58: +3 -2 lines
Diff to previous 1.58 (colored)

Skip the current character before parsing the number of arguments.

Revision 1.58 / (download) - annotate - [select for diffs], Sun Aug 29 10:18:17 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.57: +15 -15 lines
Diff to previous 1.57 (colored)

lint: remove redundant call to strchr

Revision 1.57 / (download) - annotate - [select for diffs], Sun Aug 29 10:13:02 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.56: +22 -21 lines
Diff to previous 1.56 (colored)

lint: un-abbreviate members of sym_t

No functional change.

Revision 1.56 / (download) - annotate - [select for diffs], Sat Aug 28 12:21:53 2021 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.55: +21 -21 lines
Diff to previous 1.55 (colored)

lint: un-abbreviate unsigned integer types

No functional change.

Revision 1.55 / (download) - annotate - [select for diffs], Sun Aug 22 13:21:48 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.54: +8 -8 lines
Diff to previous 1.54 (colored)

lint: clean up error handling in lint2

These are edge cases that don't happen in practice, therefore reduce the
size of the binary.

Revision 1.54 / (download) - annotate - [select for diffs], Sun Aug 22 13:12:39 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored)

lint: use unsigned integers for storing hash values

The computation of the hash values is unchanged, only the resulting
value (which is always less than 1009 anyway, see HSHSIZ2) is stored as
unsigned as well.

No functional change.

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

lint: simplify reading of type qualifiers in lint2

The only producer of .ln files is lint1, which always writes the type
qualifiers in the order 'c', 'v', therefore there is no need to expect
any other order or check for duplicates.  There is no ambiguity since
the other type modifiers are neither 'c' nor 'v' and the main types are
all uppercase letters.

No functional change.

Revision 1.52 / (download) - annotate - [select for diffs], Sun Aug 22 12:25:16 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.51: +7 -62 lines
Diff to previous 1.51 (colored)

lint: clean up switch statements in gettlen

Since the switch statements are only about tagged and derived types,
there is no need to list all integer and floating types.

No functional change.

Revision 1.51 / (download) - annotate - [select for diffs], Sun Aug 22 12:15:37 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.50: +9 -13 lines
Diff to previous 1.50 (colored)

lint: convert TP from macro to inline function

No functional change.

Revision 1.50 / (download) - annotate - [select for diffs], Sun Aug 22 11:57:23 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.49: +61 -65 lines
Diff to previous 1.49 (colored)

lint: extract parse_tspec from inptype

Add error handling for unknown type character, which led to read of
uninitialized memory before.  No practical change as far as lint2 only
ever reads output from lint1, since that is well-formed.

Revision 1.49 / (download) - annotate - [select for diffs], Sun Aug 8 11:56:35 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

lint: force strict bool mode

No functional change.

Revision 1.48 / (download) - annotate - [select for diffs], Thu Aug 5 06:54:16 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.47: +5 -5 lines
Diff to previous 1.47 (colored)

lint: fix type of local variable in inpqstrg

Noted by Clang-Tidy.

Revision 1.47 / (download) - annotate - [select for diffs], Thu Aug 5 06:45:37 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.46: +11 -2 lines
Diff to previous 1.46 (colored)

lint: fix handling of __int128_t/__uint128_t in lint2

Previously, lint exited with "bad type: J u".

Revision 1.46 / (download) - annotate - [select for diffs], Sat Jul 31 19:52:44 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.45: +7 -2 lines
Diff to previous 1.45 (colored)

lint: improve support for __int128_t and __uint128_t

For the .ln files, I chose the letter 'J' to represent the 128-bit
integer types since it is close to 'I' for int.  The naming of 'L' for
'long' is obvious, but 'Q' for 64-bit integers is a quad-16-bit word,
which is an unusual measurement unit nowadays.  One benefit of choosing
'J' is that the next letter, 'K' can then be used for 256-bit integer
types.

Support for 128-bit integer types is still very basic.  Plus, it is only
supported on LP64 platforms, which means that lint cannot be
cross-compiled to check for an LP64 platform while running on an ILP32
platform.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Apr 18 22:51:24 2021 UTC (2 years, 10 months 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.44: +3 -3 lines
Diff to previous 1.44 (colored)

lint: remove WARNS=3, falling back to the default WARNS=5

It's strange that GCC does not warn about the nonliteral format strings
in lint1/err.c, lint2/msg.c and lint2/read.c, despite -Wformat=2, but
Clang does.

Revision 1.44 / (download) - annotate - [select for diffs], Sun Apr 18 21:12:50 2021 UTC (2 years, 10 months ago) by rillig
Branch: MAIN
Changes since 1.43: +59 -70 lines
Diff to previous 1.43 (colored)

lint: reduce duplicate code for parsing .ln files

Revision 1.43 / (download) - annotate - [select for diffs], Sun Apr 18 20:40:51 2021 UTC (2 years, 10 months ago) by rillig
Branch: MAIN
Changes since 1.42: +5 -7 lines
Diff to previous 1.42 (colored)

lint: fix error message in lint2 for missing record type in .ln file

Revision 1.42 / (download) - annotate - [select for diffs], Fri Apr 2 12:16:50 2021 UTC (2 years, 10 months ago) by rillig
Branch: MAIN
Changes since 1.41: +28 -28 lines
Diff to previous 1.41 (colored)

lint: add parentheses after sizeof, as required by share/misc/style

No functional change.

Revision 1.41 / (download) - annotate - [select for diffs], Fri Mar 26 20:31:07 2021 UTC (2 years, 10 months ago) by rillig
Branch: MAIN
Changes since 1.40: +28 -28 lines
Diff to previous 1.40 (colored)

lint: in malloc calls, use 'sizeof *ptr' instead of 'sizeof(type)'

No functional change.

Revision 1.40 / (download) - annotate - [select for diffs], Sun Feb 28 17:16:50 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

lint2: align comments in the code with actual messages

Revision 1.39 / (download) - annotate - [select for diffs], Fri Feb 19 22:27:49 2021 UTC (3 years ago) by rillig
Branch: MAIN
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

lint: rename t_isenum and t_aincompl to be more expressive

No functional change.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Jan 16 16:53:24 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.37: +12 -12 lines
Diff to previous 1.37 (colored)

lint: replace integer constant expressions with true and false

LINTFLAGS=-gST make lint, with manual review.

The error messages from lint are all correct, they are not complete
though.  The return value of a function returning bool may still be
compared to the integer 0.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Jan 16 02:40:02 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.36: +60 -57 lines
Diff to previous 1.36 (colored)

lint: replace 0 and 1 with false and true, where appropriate

Change in behavior: Passing the option -h exactly 4294967296 times or
any multiple thereof is no longer equivalent to passing it never at all,
it is now equivalent to passing it once.  See main2.c, hflag++ for the
actual change.

Other than that, no functional change intended.

A very large portion of the code already conformed to the requirements
of the strict bool mode.  The only missing thing was using the constant
literals false and true instead of 0 and 1.  For sure there are some
integer literals left that can be converted.  For now, all literals that
appeared in the form " = 0" or " = 1" have been replaced.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Jan 4 22:26:51 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.35: +6 -6 lines
Diff to previous 1.35 (colored)

lint: fix typos and other minor stylistic issues

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jan 1 11:51:15 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.34: +2 -8 lines
Diff to previous 1.34 (colored)

lint: remove NTSPEC from enum tspec_t

The number of elements in an enumeration is not a valid enum constant of
that enumeration itself.

Revision 1.34 / (download) - annotate - [select for diffs], Wed Dec 30 11:39:55 2020 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.33: +7 -7 lines
Diff to previous 1.33 (colored)

lint: inline STRUCT_ASSIGN

This had only been necessary for some pre-C90 compilers.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Dec 30 10:46:11 2020 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.32: +20 -20 lines
Diff to previous 1.32 (colored)

lint: rename more _nxt members to _next

Revision 1.32 / (download) - annotate - [select for diffs], Wed Dec 30 10:26:12 2020 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.31: +12 -12 lines
Diff to previous 1.31 (colored)

lint: rename s_nxt to s_next

Revision 1.31 / (download) - annotate - [select for diffs], Tue Dec 29 12:18:42 2020 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.30: +4 -4 lines
Diff to previous 1.30 (colored)

lint: fix indentation and alignment that used space-tab

Revision 1.30 / (download) - annotate - [select for diffs], Tue Dec 29 11:35:11 2020 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.29: +12 -12 lines
Diff to previous 1.29 (colored)

lint: remove redundant parentheses around return value

Revision 1.29 / (download) - annotate - [select for diffs], Mon Dec 28 19:07:43 2020 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

lint: sort includes

Revision 1.27.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:10:27 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.27: +11 -3 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Sync with HEAD

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:59 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.27: +11 -3 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Ssync with HEAD

Revision 1.28 / (download) - annotate - [select for diffs], Fri Sep 7 15:16:15 2018 UTC (5 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, 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, is-mlppp-base, is-mlppp
Changes since 1.27: +11 -3 lines
Diff to previous 1.27 (colored)

recognize int128

Revision 1.27 / (download) - annotate - [select for diffs], Tue Dec 26 17:02:19 2017 UTC (6 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-base, 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
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.26: +22 -17 lines
Diff to previous 1.26 (colored)

Don't print duplicate definitions for inline symbols.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Oct 18 08:33:30 2014 UTC (9 years, 4 months ago) by snj
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, 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, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.25: +5 -5 lines
Diff to previous 1.25 (colored)

src is too big these days to tolerate superfluous apostrophes.  It's
"its", people!

Revision 1.23.6.1 / (download) - annotate - [select for diffs], Wed May 13 19:20:13 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.23: +15 -15 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.25 / (download) - annotate - [select for diffs], Wed Apr 15 01:20:57 2009 UTC (14 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, 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, 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, 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, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Changes since 1.24: +6 -6 lines
Diff to previous 1.24 (colored)

Lukemify (WARNS=4)

Revision 1.24 / (download) - annotate - [select for diffs], Tue Apr 14 09:06:25 2009 UTC (14 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.23: +11 -11 lines
Diff to previous 1.23 (colored)

Fix -Wshadow and -Wcast-qual issues

Revision 1.23 / (download) - annotate - [select for diffs], Fri Sep 26 22:52:24 2008 UTC (15 years, 5 months ago) by matt
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
Branch point for: jym-xensuspend
Changes since 1.22: +8 -3 lines
Diff to previous 1.22 (colored)

Teach lint about long double _Complex (C99)

Revision 1.19.6.1 / (download) - annotate - [select for diffs], Sun May 18 12:36:13 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.19: +110 -66 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

sync with head.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Apr 26 20:11:09 2008 UTC (15 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, hpcarm-cleanup-nbase
Changes since 1.21: +14 -8 lines
Diff to previous 1.21 (colored)

make the complex float/double annotated consistently with regular float/double.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Apr 26 17:11:52 2008 UTC (15 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.20: +9 -10 lines
Diff to previous 1.20 (colored)

- simplify logic in getting the filename index.
- fix an allocation botch.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Apr 25 22:18:34 2008 UTC (15 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.19: +97 -58 lines
Diff to previous 1.19 (colored)

preliminary _Complex support.
NB: Does not really understand type conversions between complex and doubles.

Revision 1.18.12.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:36:19 2007 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.18: +11 -7 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

sync with HEAD

Revision 1.18.8.1 / (download) - annotate - [select for diffs], Sun Sep 30 20:27:55 2007 UTC (16 years, 4 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.18: +11 -7 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Catch up w/ last night's netbsd-4

Revision 1.18.6.1 / (download) - annotate - [select for diffs], Fri Sep 28 22:03:29 2007 UTC (16 years, 5 months ago) by xtraeme
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-1-RELEASE, netbsd-4-0
Changes since 1.18: +11 -7 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Pull up following revision(s) (requested by uwe in ticket #907):
	usr.bin/xlint/lint2/read.c: revision 1.19

tlst[inptype(...)] is bad C code because inptype() can realloc tlst
and there's no intermediate sequence point!  We actually hit this on
sh3 with -O2 where gcc4 caches tlst in a register prior to recursive
call to inptype() and if you are unlucky the recursive call needs to
realloc tlst.
Introduce a temp variable to force a sequence point.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Sep 28 21:53:50 2007 UTC (16 years, 5 months ago) by uwe
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf
Branch point for: yamt-pf42
Changes since 1.18: +11 -7 lines
Diff to previous 1.18 (colored)

tlst[inptype(...)] is bad C code because inptype() can realloc tlst
and there's no intermediate sequence point!  We actually hit this on
sh3 with -O2 where gcc4 caches tlst in a register prior to recursive
call to inptype() and if you are unlucky the recursive call needs to
realloc tlst.

Introduce a temp variable to force a sequence point.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Mar 22 16:16:59 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-4-base, netbsd-4-0-RC1, matt-mips64-base, matt-mips64, hpcarm-cleanup, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: wrstuden-fixsa, netbsd-4, matt-armv6
Changes since 1.17: +6 -2 lines
Diff to previous 1.17 (colored)

gcc says case is missing, coverity says case not reached. Appease both.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Mar 22 02:17:52 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.16: +2 -4 lines
Diff to previous 1.16 (colored)

Coverity CID 46: Remove dead code.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Jul 16 19:54:00 2005 UTC (18 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.15: +7 -8 lines
Diff to previous 1.15 (colored)

- make input errors print the lint source line number they are called from.
- simplify a conditional.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Sep 12 08:58:52 2004 UTC (19 years, 5 months ago) by yamt
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.14: +11 -2 lines
Diff to previous 1.14 (colored)

recognize _Bool.

Revision 1.13.4.1 / (download) - annotate - [select for diffs], Tue Jun 22 07:18:49 2004 UTC (19 years, 8 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.13: +6 -2 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

Pull up revision 1.14 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jun 20 22:20:17 2004 UTC (19 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.13: +6 -2 lines
Diff to previous 1.13 (colored)

Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jan 31 19:36:56 2002 UTC (22 years ago) by tv
Branch: MAIN
CVS Tags: netbsd-2-0-base, 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, fvdl_fs64_base
Branch point for: netbsd-2-0
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

Protect __RCSID and __COPYRIGHT from being invoked if not defined.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jan 21 19:49:52 2002 UTC (22 years, 1 month ago) by tv
Branch: MAIN
Changes since 1.11: +4 -5 lines
Diff to previous 1.11 (colored)

Add hooks for compiling on non-NetBSD hosts.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jan 3 18:50:54 2002 UTC (22 years, 1 month ago) by tron
Branch: MAIN
Changes since 1.10: +6 -4 lines
Diff to previous 1.10 (colored)

Add "case" statements for "NTSPEC" to fix "gcc" warnings.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jul 26 15:05:10 2001 UTC (22 years, 7 months ago) by wiz
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Various typos in comments (neccessary, sceme, choise, ...).

Revision 1.9 / (download) - annotate - [select for diffs], Mon May 28 12:40:38 2001 UTC (22 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.8: +38 -68 lines
Diff to previous 1.8 (colored)

cleanup (prior to more adding more features):
- convert to ANSI KNF
- remove trailing whitespace
- translate some comments from german into english

code compiles and runs clean, and tested by running "make lint" against
xlint source using previous and this lint produces same results.

Revision 1.7.8.1 / (download) - annotate - [select for diffs], Fri Jun 23 16:40:21 2000 UTC (23 years, 8 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jun 14 06:49:23 2000 UTC (23 years, 8 months ago) by cgd
Branch: MAIN
CVS Tags: 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
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well.  No functional changes.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Dec 20 19:08:12 1998 UTC (25 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, minoura-xpg4dl-base, comdex-fall-1999-base, comdex-fall-1999
Branch point for: minoura-xpg4dl
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

char -> unsigned char

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jul 27 12:10:24 1998 UTC (25 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +8 -3 lines
Diff to previous 1.5 (colored)

Fix uses of uninitialized memory, and incorrect types for initializers.
From ITOH Yasufumi, PR 5861.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Feb 22 15:40:41 1998 UTC (26 years ago) by christos
Branch: MAIN
Changes since 1.4: +44 -5 lines
Diff to previous 1.4 (colored)

WARNSify

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Tue Nov 4 21:42:51 1997 UTC (26 years, 3 months ago) by thorpej
Branch: netbsd-1-3
CVS Tags: 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
Changes since 1.3: +62 -10 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Pull up from trunk: make renaming work and other minor fixes.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Nov 3 22:37:09 1997 UTC (26 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.3: +62 -10 lines
Diff to previous 1.3 (colored)

implement (hack in) symbol (function and variable) renaming, so that
the function renaming tricks currently needed by libc can be tolerated
by lint.  This needs some cleanup, but it appears to work.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Dec 22 11:31:10 1996 UTC (27 years, 2 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.2: +35 -6 lines
Diff to previous 1.2 (colored)

* recognize that pointers to identical unnamed and untyped structs,
  unions, and enums are, in fact, identical.  This is done by tagging
  each of unnamed and untyped structure, union and enum with a unique
  position of creation, which is used as a unique identifier that
  when determine whether or not a pair of structures, unions, or enums
  are identical.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jul 3 21:24:59 1995 UTC (28 years, 7 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

RCS id cleanup

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Mon Jul 3 20:56:38 1995 UTC (28 years, 7 months ago) by cgd
Branch: Jochen_Pohl
CVS Tags: Jochen_Pohl-950703
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

lint(1) implementation, by Jochen Pohl.  named 'xlint' for a similar
reason to why 'install' is named 'xinstall'.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Jul 3 20:56:38 1995 UTC (28 years, 7 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>