[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] PDFPIC macro
From: |
Werner LEMBERG |
Subject: |
Re: [Groff] PDFPIC macro |
Date: |
Mon, 29 Sep 2014 22:20:05 +0200 (CEST) |
> I've refactored the appropriate code, in src/roff/troff/input.cpp,
> with a view to accommodating this; see patch attached. While I've
> not yet progressed any implementation for PDF handling, I have
> indicated the point at which it should be invoked. Okay to commit,
> thus far?
This is very nice, thanks! For my taste, the comments are a bit
excessive, but I guess this is probably only me who thinks so :-)
Some comments, mainly regarding formatting:
+ while ((context = bounding_box_args()) == NULL
+ && get_line(DSC_LINE_MAX_ENFORCE) > 0)
+ ;
Please say
while ((context = bounding_box_args()) == NULL
&& get_line(DSC_LINE_MAX_ENFORCE) > 0)
;
+ while (*context == '\x20' || *context == '\t')
+ context++;
Please say
while (*context == '\x20' || *context == '\t')
context++;
+ status = (context_args("(atend)", context) == NULL)
+ ? llx = lly = urx = ury = PSBB_RANGE_IS_BAD
+ : PSBB_RANGE_AT_END;
Please say
status = (context_args("(atend)", context) == NULL)
? llx = lly = urx = ury = PSBB_RANGE_IS_BAD
: PSBB_RANGE_AT_END;
+ register size_t len = strlen(tag);
Given that recent versions of clang emit warnings if it encounters the
`register' keyword, and given that this keyword has no effect for
about 20 years, please don't use it:
size_t len = strlen(tag);
[It would be a trivial clean-up in the groff source code to remove
`register' everywhere.]
Werner
- Re: [Groff] PDFPIC macro, (continued)
- Re: [Groff] PDFPIC macro, Tadziu Hoffmann, 2014/09/22
- Re: [Groff] PDFPIC macro, Keith Marshall, 2014/09/21
- Re: [Groff] PDFPIC macro, Ulrich Lauther, 2014/09/21
- Re: [Groff] PDFPIC macro, Deri James, 2014/09/21
- Re: [Groff] PDFPIC macro, Keith Marshall, 2014/09/21
- Re: [Groff] PDFPIC macro, Keith Marshall, 2014/09/21
- Re: [Groff] PDFPIC macro, Deri James, 2014/09/21
- Re: [Groff] PDFPIC macro, Peter Schaffter, 2014/09/21
- Re: [Groff] PDFPIC macro, Keith Marshall, 2014/09/29
- Re: [Groff] PDFPIC macro, Steffen Nurpmeso, 2014/09/29
- Re: [Groff] PDFPIC macro,
Werner LEMBERG <=
- Re: [Groff] PDFPIC macro, Keith Marshall, 2014/09/29
- Re: [Groff] PDFPIC macro, Clarke Echols, 2014/09/29
- Re: [Groff] PDFPIC macro, Werner LEMBERG, 2014/09/30
- Re: [Groff] PDFPIC macro, Keith Marshall, 2014/09/30
- Re: [Groff] PDFPIC macro, Werner LEMBERG, 2014/09/30
- Re: [Groff] PDFPIC macro, Ralph Corderoy, 2014/09/30
- Re: [Groff] PDFPIC macro, Keith Marshall, 2014/09/18
- Re: [Groff] PDFPIC macro, Steffen Nurpmeso, 2014/09/19
- Re: [Groff] PDFPIC macro, Peter Schaffter, 2014/09/21
Re: [Groff] PDFPIC macro, Keith Marshall, 2014/09/17