Quick Search:

View detailed chart Line History

line history graph

View Mode

Logical Physical

Show Arbitrary Diff

From to

Supports revisions and tags.

Watches and RSS

History

MAIN 1.121 1.48 1.1 r-1-0-0 1.48.2.2 1.48.2.1

latest revision download Branch MAIN

1.121 annotated / raw | Diffs: previous, other | Lines: 1456 ( +21, -17 )

Created: 2014-12-05 11:56:37 +0100 (21 days ago) | Author: plunky | Changeset: MAIN:plunky:20141205105637

re-introduce putch() and putstr() to deal with output. This is a short
term fix, to allow Mflag to suppress output for dependency generation
which is in the process of being rewritten separately.

patch from Aharon 'Arnold' Robbins on pcc-list, except that I
removed the buffering, as stdio has its own.

this fixes PCC-504

1.120 annotated / raw | Diffs: previous, other | Lines: 1452 ( +22, -25 )

Created: 2014-10-19 19:40:36 +0200 (2 months 6 days ago) | Author: ragge | Changeset: MAIN:ragge:20141019174036

Use stdio instead of a homegrown bunch of routines for output.

1.119 annotated / raw | Diffs: previous, other | Lines: 1455 ( +11, -12 )

Created: 2014-10-18 17:02:03 +0200 (2 months 7 days ago) | Author: ragge | Changeset: MAIN:ragge:20141018150203

First step in cpp cleanup: Write a small recursive parser for the #if
statements instead of pulling in yacc; which is overkill here.

1.118 annotated / raw | Diffs: previous, other | Lines: 1456 ( +4, -1 )

Created: 2014-08-29 20:02:25 +0200 (3 months 26 days ago) | Author: ragge | Changeset: MAIN:ragge:20140829180225

Do not allow anything else than digits after e- for floating points.
Fixes Jira#PCC-481 by Volkmar Klatt.

Branch point for: r-1-1-0

Tags: r-1-1-0$BP r-1-1-0-RELEASE

1.117 annotated / raw | Diffs: previous, other | Lines: 1453 ( +3, -2 )

Created: 2014-08-18 20:46:05 +0200 (4 months 7 days ago) | Author: ragge | Changeset: MAIN:ragge:20140818184605

Understand -MMD. Fixes Jira#PCC-473 by rl.

1.116 annotated / raw | Diffs: previous, other | Lines: 1452 ( +1, -2 )

Created: 2014-06-06 17:32:53 +0200 (6 months ago) | Author: plunky | Changeset: MAIN:plunky:20140606153253

sloscan() does not [any more] recurse into itself

1.115 annotated / raw | Diffs: previous, other | Lines: 1453 ( +5, -1 )

Created: 2014-05-29 00:09:32 +0200 (6 months ago) | Author: plunky | Changeset: MAIN:plunky:20140528220932

reject UCN with values given in C99 6.4.3.2
from Antoine Leca, on pcc-list (slightly differently)

1.114 annotated / raw | Diffs: previous, other | Lines: 1449 ( +101, -55 )

Created: 2014-05-28 22:20:54 +0200 (6 months ago) | Author: plunky | Changeset: MAIN:plunky:20140528202054

rework the universal-character-name support
- only handle ucn in identifiers, string literals and char constants
- do not require unicode.c
- do not require ctype.h
- retire u8error() function

1.113 annotated / raw | Diffs: previous, other | Lines: 1403 ( +20, -20 )

Created: 2014-05-28 10:52:42 +0200 (6 months ago) | Author: plunky | Changeset: MAIN:plunky:20140528085242

remove extra whitespace

1.112 annotated / raw | Diffs: previous, other | Lines: 1403 ( +5, -5 )

Created: 2014-05-27 20:20:35 +0200 (6 months ago) | Author: plunky | Changeset: MAIN:plunky:20140527182035

style nits

1.111 annotated / raw | Diffs: previous, other | Lines: 1403 ( +65, -1 )

Created: 2014-05-16 15:02:02 +0200 (7 months ago) | Author: ragge | Changeset: MAIN:ragge:20140516130202

Support for unicode indentifiers in pcc, C99 6.4.2.1.
Written by Eric Olson.

1.110 annotated / raw | Diffs: previous, other | Lines: 1339 ( +5, -7 )

Created: 2014-05-09 20:00:02 +0200 (7 months ago) | Author: plunky | Changeset: MAIN:plunky:20140509180002

consistent code styling

1.109 annotated / raw | Diffs: previous, other | Lines: 1341 ( +19, -17 )

Created: 2014-05-09 19:58:13 +0200 (7 months ago) | Author: plunky | Changeset: MAIN:plunky:20140509175813

for '#ifdef' and '#ifndef' statements, sloscan() the line in the
(flslvl > 0) case. This accounts for multi-line comments which
might appear there.

1.108 annotated / raw | Diffs: previous, other | Lines: 1339 ( +66, -60 )

Created: 2014-05-09 19:18:25 +0200 (7 months ago) | Author: plunky | Changeset: MAIN:plunky:20140509171825


a minor tidy up, to handle unexpected EOF more completely

1.107 annotated / raw | Diffs: previous, other | Lines: 1333 ( +11, -1 )

Created: 2014-04-08 21:54:14 +0200 (8 months ago) | Author: ragge | Changeset: MAIN:ragge:20140408195414

Accept (but ignore) ident directive, other c compilers seems to do the same.

1.106 annotated / raw | Diffs: previous, other | Lines: 1323 ( +7, -2 )

Created: 2013-02-26 20:27:38 +0100 (21 months ago) | Author: plunky | Changeset: MAIN:plunky:20130226192738

add a switch to cpp to allow it to ignore non-directive lines
starting with a #, instead of raising an error

modify front end to use this switch when passing assembler-with-cpp
input files

fixes a problem noted by Antoine Leca on pcc-list

1.105 annotated / raw | Diffs: previous, other | Lines: 1318 ( +3, -2 )

Created: 2012-11-29 10:52:14 +0100 (2 years ago) | Author: plunky | Changeset: MAIN:plunky:20121129095214

since ccom does not understand #pragma directive with preceeding
whitespace, ensure that we output them at the start of a line,
and prtline() to keep the correct line count

fixes a problem building musl reported by Szabolics Nagy, on pcc-list

1.104 annotated / raw | Diffs: previous, other | Lines: 1317 ( +8, -4 )

Created: 2012-11-08 12:11:36 +0100 (2 years 1 month ago) | Author: plunky | Changeset: MAIN:plunky:20121108111136

warn about unterminated string literals & character constants

1.103 annotated / raw | Diffs: previous, other | Lines: 1313 ( +1, -2 )

Created: 2012-11-07 10:57:02 +0100 (2 years 1 month ago) | Author: plunky | Changeset: MAIN:plunky:20121107095702

remove spurious }

1.102 annotated / raw | Diffs: previous, other | Lines: 1314 ( +190, -225 )

Created: 2012-11-07 10:52:00 +0100 (2 years 1 month ago) | Author: plunky | Changeset: MAIN:plunky:20121107095159

combination of changes
- reorder the input functions and split some functionality
- use inline for minimal inch() and inpch()
- only use inpch() from within inch()/chktg()/chkeol()
- use inch() directly instead of NXTCH() macro or inpch()
- '?' and '\\' no longer need to be C_SPEC
- escaped newlines absorbed by inch()
- only fastscan() emits normal newline (except during comments)
- fastscan() emits escaped newlines at end of line
- no need to emit line markers after conditional markers
- simplify conditional statement processing
- error() consistency

resulting in
+ trigraphs and escaped newline always processed
+ output line count same as input
+ 10-15% speedup of raw processing!

1.101 annotated / raw | Diffs: previous, other | Lines: 1349 ( +3, -2 )

Created: 2012-11-02 11:55:45 +0100 (2 years 1 month ago) | Author: plunky | Changeset: MAIN:plunky:20121102105545

move flslvl++ side effect out of skpln()

1.100 annotated / raw | Diffs: previous, other | Lines: 1348 ( +20, -2 )

Created: 2012-11-02 10:01:24 +0100 (2 years 1 month ago) | Author: plunky | Changeset: MAIN:plunky:20121102090124

handle comments on preprocessor directive lines
(needed to build binutils)

1.99 annotated / raw | Diffs: previous, other | Lines: 1330 ( +3, -3 )

Created: 2012-11-02 07:51:52 +0100 (2 years 1 month ago) | Author: plunky | Changeset: MAIN:plunky:20121102065152

after +- stay in the pp-number loop. eg when parsing
        123.4e+foo
foo is not a separate token..

1.98 annotated / raw | Diffs: previous, other | Lines: 1330 ( +9, -14 )

Created: 2012-10-31 13:13:43 +0100 (2 years 1 month ago) | Author: plunky | Changeset: MAIN:plunky:20121031121343

simplify logic in ppdir(), and error() for invalid directive

1.97 annotated / raw | Diffs: previous, other | Lines: 1335 ( +35, -23 )

Created: 2012-10-31 12:54:54 +0100 (2 years 1 month ago) | Author: plunky | Changeset: MAIN:plunky:20121031115454

modify spechr[] to also know about digits, hex digits etc, and
use it directly instead of <ctype.h>

1.96 annotated / raw | Diffs: previous, other | Lines: 1323 ( +3, -3 )

Created: 2012-10-29 18:59:16 +0100 (2 years 1 month ago) | Author: plunky | Changeset: MAIN:plunky:20121029175916

use WARN macro, instead of '1'

1.95 annotated / raw | Diffs: previous, other | Lines: 1323 ( +2, -2 )

Created: 2012-10-29 18:55:51 +0100 (2 years 1 month ago) | Author: plunky | Changeset: MAIN:plunky:20121029175551

brackets around & operation

1.94 annotated / raw | Diffs: previous, other | Lines: 1323 ( +34, -23 )

Created: 2012-10-29 18:48:01 +0100 (2 years 1 month ago) | Author: plunky | Changeset: MAIN:plunky:20121029174801

various EOF
inch() returns -1 for EOF; try not to store or use that as array index
sloscan() returns 0 for EOF

1.93 annotated / raw | Diffs: previous, other | Lines: 1312 ( +3, -1 )

Created: 2012-10-29 18:26:23 +0100 (2 years 1 month ago) | Author: plunky | Changeset: MAIN:plunky:20121029172623

for unch(), if a -1 was passed, just ignore it..
(otherwise it will be returned shortly as an 0xff)

1.92 annotated / raw | Diffs: previous, other | Lines: 1310 ( +12, -17 )

Created: 2012-10-29 18:23:13 +0100 (2 years 1 month ago) | Author: plunky | Changeset: MAIN:plunky:20121029172313

slight simplifications in fastscan()..
- where a condition resulted in a jump, no need to use else
- for eatcmnt(), don't bother testing for EOF.. it will be
 discovered immediately in any case

1.91 annotated / raw | Diffs: previous, other | Lines: 1315 ( +2, -2 )

Created: 2012-10-25 21:59:24 +0200 (2 years 1 month ago) | Author: plunky | Changeset: MAIN:plunky:20121025195924

fix line counts when outputting multi-line comment blocks with -C,
(don't output the newline twice)

1.90 annotated / raw | Diffs: previous, other | Lines: 1315 ( +6, -6 )

Created: 2012-10-20 19:24:32 +0200 (2 years 2 months ago) | Author: plunky | Changeset: MAIN:plunky:20121020172432

be more obvious that EOF is -1

1.89 annotated / raw | Diffs: previous, other | Lines: 1315 ( +2, -1 )

Created: 2012-10-20 19:20:24 +0200 (2 years 2 months ago) | Author: plunky | Changeset: MAIN:plunky:20121020172024

nnl++ for postponed newline

1.88 annotated / raw | Diffs: previous, other | Lines: 1314 ( +2, -2 )

Created: 2012-10-20 19:18:10 +0200 (2 years 2 months ago) | Author: plunky | Changeset: MAIN:plunky:20121020171810

maintain line count when folding back in postponed newlines

1.87 annotated / raw | Diffs: previous, other | Lines: 1314 ( +3, -3 )

Created: 2012-10-19 16:35:43 +0200 (2 years 2 months ago) | Author: plunky | Changeset: MAIN:plunky:20121019143543

use NULL for zero pointer

1.86 annotated / raw | Diffs: previous, other | Lines: 1314 ( +4, -4 )

Created: 2012-10-19 16:34:05 +0200 (2 years 2 months ago) | Author: plunky | Changeset: MAIN:plunky:20121019143405

make it clear we refer to preprocessor directives, in error message

1.85 annotated / raw | Diffs: previous, other | Lines: 1314 ( +2, -2 )

Created: 2012-10-19 16:32:18 +0200 (2 years 2 months ago) | Author: plunky | Changeset: MAIN:plunky:20121019143218

flslvl is always 0, here

1.84 annotated / raw | Diffs: previous, other | Lines: 1314 ( +9, -14 )

Created: 2012-10-19 16:19:51 +0200 (2 years 2 months ago) | Author: plunky | Changeset: MAIN:plunky:20121019141951

simplify and improve pragmastmt() - don't output extra newlines,
this is a complete line and they are handled upstream, so no need
to output a line marker either, the line count is not changed.

1.83 annotated / raw | Diffs: previous, other | Lines: 1319 ( +11, -12 )

Created: 2012-10-17 12:29:10 +0200 (2 years 2 months ago) | Author: plunky | Changeset: MAIN:plunky:20121017102910

simplify prtline() as sheap() is cumulative.. we can just output once

1.82 annotated / raw | Diffs: previous, other | Lines: 1320 ( +5, -6 )

Created: 2012-10-17 12:14:44 +0200 (2 years 2 months ago) | Author: plunky | Changeset: MAIN:plunky:20121017101444

add xwrite() which actually ensures a write succeeds, rather
than using a dummy variable to defeat return value checking

1.81 annotated / raw | Diffs: previous, other | Lines: 1321 ( +3, -1 )

Created: 2012-10-17 11:52:52 +0200 (2 years 2 months ago) | Author: plunky | Changeset: MAIN:plunky:20121017095252

don't rely on the linker merging common definitions

1.80 annotated / raw | Diffs: previous, other | Lines: 1319 ( +17, -24 )

Created: 2012-10-11 12:17:42 +0200 (2 years 2 months ago) | Author: plunky | Changeset: MAIN:plunky:20121011101742

clean up #error and #warning a little.. use common function to copy
up to (but not including) end of line, use clearer error messages,
and remove unreachable code (flslvl is never true, we already returned)

1.79 annotated / raw | Diffs: previous, other | Lines: 1326 ( +1, -2 )

Created: 2012-10-02 19:12:32 +0200 (2 years 2 months ago) | Author: plunky | Changeset: MAIN:plunky:20121002171232

don't need <errno.h>

1.78 annotated / raw | Diffs: previous, other | Lines: 1327 ( +2, -9 )

Created: 2012-10-02 11:56:07 +0200 (2 years 2 months ago) | Author: plunky | Changeset: MAIN:plunky:20121002095607

convert badop() to error()

1.77 annotated / raw | Diffs: previous, other | Lines: 1334 ( +1, -10 )

Created: 2012-10-02 11:38:59 +0200 (2 years 2 months ago) | Author: plunky | Changeset: MAIN:plunky:20121002093859

define norep etc in cpp.c, since it is only used therein

1.76 annotated / raw | Diffs: previous, other | Lines: 1343 ( +1, -7 )

Created: 2012-10-02 11:37:32 +0200 (2 years 2 months ago) | Author: plunky | Changeset: MAIN:plunky:20121002093732

removed unused debug code

1.75 annotated / raw | Diffs: previous, other | Lines: 1349 ( +1, -13 )

Created: 2012-10-02 11:24:33 +0200 (2 years 2 months ago) | Author: plunky | Changeset: MAIN:plunky:20121002092433

since we don't use lex, we don't need yywrap(), yyp or yybuf
also unused: variables "slow" and "inif"

1.74 annotated / raw | Diffs: previous, other | Lines: 1361 ( +4, -4 )

Created: 2012-10-02 11:18:56 +0200 (2 years 2 months ago) | Author: plunky | Changeset: MAIN:plunky:20121002091856

consistency: return VALUE

1.73 annotated / raw | Diffs: previous, other | Lines: 1361 ( +8, -8 )

Created: 2012-10-02 11:13:13 +0200 (2 years 2 months ago) | Author: plunky | Changeset: MAIN:plunky:20121002091313

no need to cast (usch *)yytext since it is an usch array already

1.72 annotated / raw | Diffs: previous, other | Lines: 1361 ( +2, -2 )

Created: 2012-08-31 21:33:09 +0200 (2 years 3 months ago) | Author: plunky | Changeset: MAIN:plunky:20120831193309

tidy up a bit; use explicit rules
while here, make cpy.y -> cpy.c -> cpy.o and use "cpy.h"

1.71 annotated / raw | Diffs: previous, other | Lines: 1361 ( +8, -6 )

Created: 2012-08-10 10:12:35 +0200 (2 years 4 months ago) | Author: ragge | Changeset: MAIN:ragge:20120810081235

Avoid outputting \n in the middle of pragma statements.

1.70 annotated / raw | Diffs: previous, other | Lines: 1359 ( +3, -1 )

Created: 2012-07-30 19:32:40 +0200 (2 years 4 months ago) | Author: ragge | Changeset: MAIN:ragge:20120730173240

Discard PHOLD's when found in yylex.  Solves a problem with lint.

1.69 annotated / raw | Diffs: previous, other | Lines: 1357 ( +2, -2 )

Created: 2012-07-30 14:47:59 +0200 (2 years 4 months ago) | Author: plunky | Changeset: MAIN:plunky:20120730124759

don't discard 'const' qualifier

1.68 annotated / raw | Diffs: previous, other | Lines: 1357 ( +10, -4 )

Created: 2012-07-30 11:51:52 +0200 (2 years 4 months ago) | Author: ragge | Changeset: MAIN:ragge:20120730095152

Add support for the -MP, -MT and -MQ.  Fixes part of Jira#PCC-334.

1.67 annotated / raw | Diffs: previous, other | Lines: 1351 ( +2, -1 )

Created: 2012-07-29 19:27:12 +0200 (2 years 4 months ago) | Author: ragge | Changeset: MAIN:ragge:20120729172712

Null-terminate input buffer to make debug-printouts prettier.

1.66 annotated / raw | Diffs: previous, other | Lines: 1350 ( +2, -1 )

Created: 2012-07-17 21:40:49 +0200 (2 years 5 months ago) | Author: ragge | Changeset: MAIN:ragge:20120717194049

Fix bug causing wrong line-number-count, from Nils M Holm.

1.65 annotated / raw | Diffs: previous, other | Lines: 1349 ( +7, -3 )

Created: 2012-04-22 14:44:11 +0200 (2 years 8 months ago) | Author: ragge | Changeset: MAIN:ragge:20120422124411

Print 3 after line directive to tell this is a system header.

Tags: newstyle_cpp

1.64 annotated / raw | Diffs: previous, other | Lines: 1345 ( +6, -9 )

Created: 2011-08-30 22:12:21 +0200 (3 years 3 months ago) | Author: plunky | Changeset: MAIN:plunky:20110830201221

clean some function prototyping

1.63 annotated / raw | Diffs: previous, other | Lines: 1348 ( +1, -2 )

Created: 2011-07-16 18:14:56 +0200 (3 years 5 months ago) | Author: ragge | Changeset: MAIN:ragge:20110716161456

Deal with the ugly situation where there are macro directives inside
an expanding macro.  This is not allowed but gcc accepts it, so...

1.62 annotated / raw | Diffs: previous, other | Lines: 1349 ( +2, -2 )

Created: 2011-07-15 12:52:59 +0200 (3 years 5 months ago) | Author: ragge | Changeset: MAIN:ragge:20110715105259

In traditional mode only ignore strings while defining macros.

1.61 annotated / raw | Diffs: previous, other | Lines: 1349 ( +15, -8 )

Created: 2011-07-06 18:01:23 +0200 (3 years 5 months ago) | Author: ragge | Changeset: MAIN:ragge:20110706160123

Give better error message when an end of line is not encountered.
Fixes Jira#PCC-365 with patch from Anthony Mallet.

1.60 annotated / raw | Diffs: previous, other | Lines: 1342 ( +3, -2 )

Created: 2011-06-05 10:43:50 +0200 (3 years 6 months ago) | Author: plunky | Changeset: MAIN:plunky:20110605084350

fix up building without PCC_DEBUG

1.59 annotated / raw | Diffs: previous, other | Lines: 1341 ( +2, -2 )

Created: 2011-06-03 17:42:45 +0200 (3 years 6 months ago) | Author: plunky | Changeset: MAIN:plunky:20110603154245

rename CPP_DEBUG as PCC_DEBUG

1.58 annotated / raw | Diffs: previous, other | Lines: 1341 ( +1, -0 )

Created: 2011-05-30 06:24:06 +0200 (3 years 6 months ago) | Author: gmcgarry | Changeset: MAIN:gmcgarry:20110530042406

Re-add unintentional removal of line.

1.57 annotated / raw | Diffs: previous, other | Lines: 1340 ( +2, -3 )

Created: 2011-05-30 05:40:55 +0200 (3 years 6 months ago) | Author: gmcgarry | Changeset: MAIN:gmcgarry:20110530034055

Remove set-but-unused variables.

1.56 annotated / raw | Diffs: previous, other | Lines: 1341 ( +3, -2 )

Created: 2011-05-22 19:17:32 +0200 (3 years 7 months ago) | Author: ragge | Changeset: MAIN:ragge:20110522171732

Do not give bad complaints or crash in the preprocessor.
Fixes bug reported on pcc-list by Szabolcz Nagy.

1.55 annotated / raw | Diffs: previous, other | Lines: 1340 ( +7, -1 )

Created: 2011-05-18 12:02:22 +0200 (3 years 7 months ago) | Author: ragge | Changeset: MAIN:ragge:20110518100222

Accept trigraphs when seraching for #-directives.
Fixes Jira#PCC-350 by Nicolas Joly.

1.54 annotated / raw | Diffs: previous, other | Lines: 1334 ( +3, -1 )

Created: 2011-04-23 12:48:36 +0200 (3 years 8 months ago) | Author: ragge | Changeset: MAIN:ragge:20110423104836

Ignore syntax on #undef if we are in a false block.
Fixes Jira#PCC-330 by Fred J. Tydeman.

1.53 annotated / raw | Diffs: previous, other | Lines: 1332 ( +12, -6 )

Created: 2011-03-19 10:31:32 +0100 (3 years 9 months ago) | Author: ragge | Changeset: MAIN:ragge:20110319093132

Handle unterminated strings better.  Also deal with \\n inside strings.
Fixes Jira#PCC-278 by Iain Hibbert with small fix from me.

1.52 annotated / raw | Diffs: previous, other | Lines: 1326 ( +14, -7 )

Created: 2011-03-19 10:15:18 +0100 (3 years 9 months ago) | Author: ragge | Changeset: MAIN:ragge:20110319091518

Handle non-terminated character constant better. Patch provided by Iain Hibbert
in Jira#PCC-281 by Iain Hibbert, with \\\n handling by me.

1.51 annotated / raw | Diffs: previous, other | Lines: 1319 ( +4, -3 )

Created: 2011-03-17 16:37:14 +0100 (3 years 9 months ago) | Author: ragge | Changeset: MAIN:ragge:20110317153714

Add missing \n after \\n.  \ is not an identifier. Output gotten char after \
instead of \n.  Fixes Jira#PCC-279 by Iain Hibbert.

1.50 annotated / raw | Diffs: previous, other | Lines: 1318 ( +9, -2 )

Created: 2011-03-12 18:06:45 +0100 (3 years 9 months ago) | Author: ragge | Changeset: MAIN:ragge:20110312170645

Handle \\n before macro directives.  Fixes Jira#PCC-272 by Igor Zinovik.

1.49 annotated / raw | Diffs: previous, other | Lines: 1311 ( +10, -1 )

Created: 2011-02-26 07:32:07 +0100 (3 years 9 months ago) | Author: ragge | Changeset: MAIN:ragge:20110226063207

Clean up heap after macro expansion.  Increase pushback buffer to 2*64k.
malloc() pushback buffer instead of having it on the stack to avoid hitting
stack limits.
Harmless macros may sometimes expand to something really big, and as cpp now
rescan the whole buffer over again for more macros to expand a large pushback
buffer is needed.

1.48 annotated / raw | Diffs: previous, other | Lines: 1302 ( +5, -4 )

Created: 2011-02-21 09:00:42 +0100 (3 years 10 months ago) | Author: ragge | Changeset: MAIN:ragge:20110221080042

Change macro expanded logic to use a short instead of a char for storing
max number of expanded macros inside one macro.  Fixes problem compiling
snmpd on OpenBSD which has a gigantic macro with the MIBs.

Branch point for: r-1-0-0

Tags: r-1-0-0$BP

1.47 annotated / raw | Diffs: previous, other | Lines: 1301 ( +11, -2 )

Created: 2011-02-18 22:28:18 +0100 (3 years 10 months ago) | Author: ragge | Changeset: MAIN:ragge:20110218212818

Handle \\n inside numeric constants.  Fixes part of Jira#PCC-232 by
Fred J. Tydeman.

1.46 annotated / raw | Diffs: previous, other | Lines: 1292 ( +3, -1 )

Created: 2011-02-04 08:27:01 +0100 (3 years 10 months ago) | Author: ragge | Changeset: MAIN:ragge:20110204072701

Expansion blocks will be put before identifiers also in comments if -C
is given, so we need to handle them.  Fixes Jira#PCC-229 by Iain Hibbert.

1.45 annotated / raw | Diffs: previous, other | Lines: 1290 ( +48, -26 )

Created: 2011-01-29 14:48:48 +0100 (3 years 10 months ago) | Author: ragge | Changeset: MAIN:ragge:20110129134848

Handle the case where a preprocessor directive is preceeded by a comment.

1.44 annotated / raw | Diffs: previous, other | Lines: 1268 ( +6, -17 )

Created: 2011-01-16 12:55:54 +0100 (3 years 11 months ago) | Author: ragge | Changeset: MAIN:ragge:20110116115554

More changes:  add symbols blocking against expansions to each identifier
instead of keeping blocking ranges. Solves a problem where new argument
lists are created inside macros.

1.43 annotated / raw | Diffs: previous, other | Lines: 1279 ( +49, -24 )

Created: 2011-01-09 16:25:39 +0100 (3 years 11 months ago) | Author: ragge | Changeset: MAIN:ragge:20110109152539

Rewrite macro expansion logic so that it iterates over macros for more
to expand instead of recurse.  This fixes a bunch of problems with the
preprocessor.  Also fixes Jira#PCC-130 and Jira#PCC-118.

1.42 annotated / raw | Diffs: previous, other | Lines: 1254 ( +5, -3 )

Created: 2011-01-02 10:27:28 +0100 (3 years 11 months ago) | Author: ragge | Changeset: MAIN:ragge:20110102092728

Do not tokenize strings while expanding macros in traditional mode.
Bug reported by David A. Holland.

1.41 annotated / raw | Diffs: previous, other | Lines: 1252 ( +2, -2 )

Created: 2010-12-27 19:13:10 +0100 (3 years 11 months ago) | Author: ragge | Changeset: MAIN:ragge:20101227181310

Clear inititial arguments given before scanning again, otherwise includes
on the command line will loop.

1.40 annotated / raw | Diffs: previous, other | Lines: 1252 ( +10, -1 )

Created: 2010-08-29 18:53:38 +0200 (4 years 3 months ago) | Author: ragge | Changeset: MAIN:ragge:20100829165338

Understand %: for include directives.  Fixes part of digraph001.

1.39 annotated / raw | Diffs: previous, other | Lines: 1243 ( +29, -2 )

Created: 2010-06-13 21:16:31 +0200 (4 years 6 months ago) | Author: ragge | Changeset: MAIN:ragge:20100613191631

Add support for #warning, which gcc supports.
Patch in Jira#PCC-79 by Detlef Riekenberg.

1.38 annotated / raw | Diffs: previous, other | Lines: 1216 ( +8, -1 )

Created: 2010-06-12 17:45:31 +0200 (4 years 6 months ago) | Author: ragge | Changeset: MAIN:ragge:20100612154531

Reset line counting after the command line defines are handled.
Fixes Jira#PCC-151 by Nicolas Joly.

1.37 annotated / raw | Diffs: previous, other | Lines: 1209 ( +11, -2 )

Created: 2010-06-07 09:10:35 +0200 (4 years 6 months ago) | Author: ragge | Changeset: MAIN:ragge:20100607071035

Handle \\n outside identifiers per update to PCC-149.

1.36 annotated / raw | Diffs: previous, other | Lines: 1200 ( +11, -1 )

Created: 2010-06-06 22:10:31 +0200 (4 years 6 months ago) | Author: ragge | Changeset: MAIN:ragge:20100606201031

Fix a \\n bug when reading tokens; Jira#PCC-149.
XXX - this should be done in a better way.

1.35 annotated / raw | Diffs: previous, other | Lines: 1190 ( +4, -3 )

Created: 2010-06-05 13:47:17 +0200 (4 years 6 months ago) | Author: ragge | Changeset: MAIN:ragge:20100605114717

Fix bug causing just a single * disappear if inside a comment and -C given
as argument.  Found and fixed by Iain Hibbert.

1.34 annotated / raw | Diffs: previous, other | Lines: 1189 ( +2, -1 )

Created: 2010-04-20 13:20:20 +0200 (4 years 8 months ago) | Author: ragge | Changeset: MAIN:ragge:20100420112020

Forgot to null-terminate yytext.  Bug pointed out by Iain Hibbert.

1.33 annotated / raw | Diffs: previous, other | Lines: 1188 ( +19, -3 )

Created: 2010-04-18 18:42:32 +0200 (4 years 8 months ago) | Author: ragge | Changeset: MAIN:ragge:20100418164232

Discard comments in yylex() so that -C works even with comments in
#if directives.  Supposes to fix Jira#PCC-126 by Iain Hibbert.

1.32 annotated / raw | Diffs: previous, other | Lines: 1172 ( +5, -1 )

Created: 2010-03-24 09:23:17 +0100 (4 years 9 months ago) | Author: ragge | Changeset: MAIN:ragge:20100324082317

Allow # alone on lines, as requested by Mickey.

1.31 annotated / raw | Diffs: previous, other | Lines: 1168 ( +8, -7 )

Created: 2010-02-25 16:49:00 +0100 (4 years 9 months ago) | Author: ragge | Changeset: MAIN:ragge:20100225154900

Fix const usage.  From Iain Hibbert.

1.30 annotated / raw | Diffs: previous, other | Lines: 1167 ( +2, -2 )

Created: 2009-12-31 14:17:28 +0100 (4 years 11 months ago) | Author: ragge | Changeset: MAIN:ragge:20091231131728

Print out an extra \n before emitting a new line-file directive.
Solves Jira#PCC-97 by Gregory McGarry.

1.29 annotated / raw | Diffs: previous, other | Lines: 1167 ( +11, -4 )

Created: 2009-12-31 12:46:13 +0100 (4 years 11 months ago) | Author: ragge | Changeset: MAIN:ragge:20091231114613

Understand gcc directive #include_next. Solves Jira#PCC-106 by Altamiranus.

1.28 annotated / raw | Diffs: previous, other | Lines: 1160 ( +2, -2 )

Created: 2009-08-23 14:23:13 +0200 (5 years 4 months ago) | Author: ragge | Changeset: MAIN:ragge:20090823122313

Do not match \r in fastscan.  Fixes Jira#PCC-87 but in a different way.

1.27 annotated / raw | Diffs: previous, other | Lines: 1160 ( +9, -5 )

Created: 2009-08-13 18:59:01 +0200 (5 years 4 months ago) | Author: ragge | Changeset: MAIN:ragge:20090813165901

Handling of character constants in #if expressions broke when the preprocessor
were changed recently.  Fixes Jira#PCC-77 by Detlef Riekenberg.

1.26 annotated / raw | Diffs: previous, other | Lines: 1156 ( +21, -20 )

Created: 2009-08-13 10:01:27 +0200 (5 years 4 months ago) | Author: gmcgarry | Changeset: MAIN:gmcgarry:20090813080125

Add -Wtruncate option which detects truncation of types during assignment.
Let pcc compile with this option enabled.

Inspired by similar warning in the Microsoft compiler.

1.25 annotated / raw | Diffs: previous, other | Lines: 1155 ( +4, -2 )

Created: 2009-08-09 18:45:16 +0200 (5 years 4 months ago) | Author: ragge | Changeset: MAIN:ragge:20090809164516

Print out a \n before prtline() in an #endif, otherwise we may end up with
an illegal statement.  Bug found by Jonathan Gray.

1.24 annotated / raw | Diffs: previous, other | Lines: 1153 ( +3, -4 )

Created: 2009-08-09 16:41:49 +0200 (5 years 4 months ago) | Author: ragge | Changeset: MAIN:ragge:20090809144149

Line endings with \ were not concatenated to next line iside strings.
Bug spotted by Jonathan Gray.

1.23 annotated / raw | Diffs: previous, other | Lines: 1154 ( +3, -1 )

Created: 2009-08-08 09:41:23 +0200 (5 years 4 months ago) | Author: ragge | Changeset: MAIN:ragge:20090808074123

Ignore character constants in traditional mode. Should help Jira#PCC-4.

1.22 annotated / raw | Diffs: previous, other | Lines: 1152 ( +2, -2 )

Created: 2009-08-07 21:45:09 +0200 (5 years 4 months ago) | Author: ragge | Changeset: MAIN:ragge:20090807194509

Check for \t was accidentally written \n, causing #<tab>define to fail.
Fixes Jira#PCC-68 reported by Jonathan Gray.

1.21 annotated / raw | Diffs: previous, other | Lines: 1152 ( +12, -12 )

Created: 2009-08-07 20:57:17 +0200 (5 years 4 months ago) | Author: ragge | Changeset: MAIN:ragge:20090807185717

Fix bug where string with escaped char would not terminate.  Fixes bug
reported by Alt.

1.20 annotated / raw | Diffs: previous, other | Lines: 1152 ( +31, -16 )

Created: 2009-08-04 21:23:44 +0200 (5 years 4 months ago) | Author: ragge | Changeset: MAIN:ragge:20090804192344

Always print out a \n after a directive that turned false, to avoid
indented # line directives to cc.  Fixes Jira#PCC-66.

1.19 annotated / raw | Diffs: previous, other | Lines: 1137 ( +448, -479 )

Created: 2009-08-01 17:53:06 +0200 (5 years 4 months ago) | Author: ragge | Changeset: MAIN:ragge:20090801155306

Significant update of cpp, now runs in only around 10% time compared to before.

1.18 annotated / raw | Diffs: previous, other | Lines: 1168 ( +3, -2 )

Created: 2009-05-22 10:00:11 +0200 (5 years 7 months ago) | Author: ragge | Changeset: MAIN:ragge:20090522080011

Fix badly placed BEGIN/yylex().  Caused some #ifdefs not to be handled.

1.17 annotated / raw | Diffs: previous, other | Lines: 1167 ( +2, -2 )

Created: 2009-04-19 11:15:47 +0200 (5 years 8 months ago) | Author: gmcgarry | Changeset: MAIN:gmcgarry:20090419091547

Avoid build failure: isdigit() expects an integer argument.

1.16 annotated / raw | Diffs: previous, other | Lines: 1167 ( +7, -1 )

Created: 2009-04-15 01:22:46 +0200 (5 years 8 months ago) | Author: gmcgarry | Changeset: MAIN:gmcgarry:20090414232246

Make this compile with YYTEXT_POINTER.

1.15 annotated / raw | Diffs: previous, other | Lines: 1161 ( +13, -4 )

Created: 2009-03-12 21:19:43 +0100 (5 years 9 months ago) | Author: ragge | Changeset: MAIN:ragge:20090312201943

Check if pushback buffer overflows.
Tokens beginning with a digit may be an IDENT.
Now seems to work as well as at least the old parser.

1.14 annotated / raw | Diffs: previous, other | Lines: 1152 ( +15, -8 )

Created: 2009-03-09 21:20:39 +0100 (5 years 9 months ago) | Author: ragge | Changeset: MAIN:ragge:20090309202039

Fix a few \n bugs.

1.13 annotated / raw | Diffs: previous, other | Lines: 1145 ( +997, -337 )

Created: 2009-03-08 11:21:51 +0100 (5 years 9 months ago) | Author: ragge | Changeset: MAIN:ragge:20090308102151

Start the slow move towards a better cpp.  This tokenizer is work-in-progress.

1.12 annotated / raw | Diffs: previous, other | Lines: 485 ( +2, -12 )

Created: 2008-04-15 11:54:23 +0200 (6 years 8 months ago) | Author: gmcgarry | Changeset: MAIN:gmcgarry:20080415095423

Don't re-define struct includ here.

1.11 annotated / raw | Diffs: previous, other | Lines: 495 ( +49, -134 )

Created: 2006-09-28 13:10:08 +0200 (8 years 2 months ago) | Author: ragge | Changeset: MAIN:ragge:20060928111007

Large rewrite of the preprocessor.  Now uses lex for tokenizing, and
handles many actions in lex via states.

1.10 annotated / raw | Diffs: previous, other | Lines: 580 ( +96, -1 )

Created: 2006-08-05 12:24:29 +0200 (8 years 4 months ago) | Author: ragge | Changeset: MAIN:ragge:20060805102429

Check in more work on new pre-processor.

1.9 annotated / raw | Diffs: previous, other | Lines: 485 ( +21, -46 )

Created: 2005-05-15 23:06:35 +0200 (9 years 7 months ago) | Author: ragge | Changeset: MAIN:ragge:20050515210634

Fix cpp. fix BREG strengthening.  Now (almost) compiler NetBSD again.

1.8 annotated / raw | Diffs: previous, other | Lines: 510 ( +3, -2 )

Created: 2005-05-15 14:01:42 +0200 (9 years 7 months ago) | Author: ragge | Changeset: MAIN:ragge:20050515120142

Fix unterminated conditional check.

1.7 annotated / raw | Diffs: previous, other | Lines: 509 ( +57, -84 )

Created: 2005-05-14 10:03:49 +0200 (9 years 7 months ago) | Author: ragge | Changeset: MAIN:ragge:20050514080349

Remove NEWBUF, it's now mandatory.  Start making the preprocessor faster.

1.6 annotated / raw | Diffs: previous, other | Lines: 536 ( +70, -78 )

Created: 2005-05-11 21:32:59 +0200 (9 years 7 months ago) | Author: ragge | Changeset: MAIN:ragge:20050511193259

Make NEWBUF use recursive including.

1.5 annotated / raw | Diffs: previous, other | Lines: 544 ( +4, -4 )

Created: 2005-04-16 10:16:38 +0200 (9 years 8 months ago) | Author: ragge | Changeset: MAIN:ragge:20050416081638

Fix bug where // comments did not count up line number.
Fix another bug where preprocessor directive on first line were not handled.

1.4 annotated / raw | Diffs: previous, other | Lines: 544 ( +38, -1 )

Created: 2005-04-04 18:49:47 +0200 (9 years 8 months ago) | Author: ragge | Changeset: MAIN:ragge:20050404164947

Start working on newnew buffer handling.

1.3 annotated / raw | Diffs: previous, other | Lines: 507 ( +78, -17 )

Created: 2005-03-20 17:21:12 +0100 (9 years 9 months ago) | Author: ragge | Changeset: MAIN:ragge:20050320162112

More basic buffer reorganization.

1.2 annotated / raw | Diffs: previous, other | Lines: 446 ( +53, -12 )

Created: 2005-03-19 10:34:05 +0100 (9 years 9 months ago) | Author: ragge | Changeset: MAIN:ragge:20050319093405

Start working on new-style handling of preprocessing buffers.

1.1 new annotated / raw | Lines: 405 ( +405, -0 )

Created: 2005-03-06 16:58:06 +0100 (9 years 9 months ago) | Author: ragge | Changeset: MAIN:ragge:20050306155806

Remove use of lex in cpp.

latest revision download Branch r-1-0-0

1.48.2.2 annotated / raw | Diffs: previous, other | Lines: 1318 ( +9, -2 )

Created: 2011-03-12 18:08:26 +0100 (3 years 9 months ago) | Author: ragge | Changeset: r-1-0-0:ragge:20110312170826

Pullup rev 1.50 from mainline.

Branch point for: r-1-0-1

Tags: r-1-0-0-RELEASE r-1-0-1$BP

1.48.2.1 annotated / raw | Diffs: previous, other | Lines: 1311 ( +10, -1 )

Created: 2011-02-26 07:36:40 +0100 (3 years 9 months ago) | Author: ragge | Changeset: r-1-0-0:ragge:20110226063640

Pullup cpp.h 1.48 and token.c 1.49 from trunk.

FishEye: Open Source License registered to PCC.
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-12-26 12:29 +0100