[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] tcc stringize patch
From: |
Rob Landley |
Subject: |
Re: [Tinycc-devel] tcc stringize patch |
Date: |
Sat, 12 May 2007 00:31:29 -0400 |
User-agent: |
KMail/1.9.1 |
On Monday 07 May 2007 8:33 pm, Harald van Dijk wrote:
> Hi,
>
> Here's a patch to handle spacing during stringizing.
Two questions:
1) Why does this file touch Makefile?
2) Hunk #38 FAILED at 8490.
Which consists of this:
***************
*** 8477,8492 ****
nested_list = NULL;
ml = NULL;
if (macro_subst_tok(&str, &nested_list, top, &ml) == 0) {
- int t, *stri;
CValue cval;
preprocess_out("#define ");
preprocess_out(get_tok_str(tok,NULL));
- tok_str_add(&str, 0);
stri=str.str;
for (;;) {
- TOK_GET(t, stri, cval);
if (!t) break;
preprocess_out(" ");
preprocess_out(get_tok_str(t, &cval));
--- 8490,8505 ----
nested_list = NULL;
ml = NULL;
if (macro_subst_tok(&str, &nested_list, top, &ml) == 0) {
+ int t, tf, *stri;
CValue cval;
preprocess_out("#define ");
preprocess_out(get_tok_str(tok,NULL));
+ tok_str_add(&str, 0, 0);
stri=str.str;
for (;;) {
+ TOK_GET(t, tf, stri, cval);
if (!t) break;
preprocess_out(" ");
preprocess_out(get_tok_str(t, &cval));
I can't find "preprocess_out" anywhere in the current codebase. Your patch
uses it, but doesn't define it.
Rob