Plan 9 from Bell Labs’s /usr/web/sources/patch/sorry/macbody/notes

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


Thu Feb 10 18:11:36 EST 2005 rsc
    This fix breaks the following program:
    
    #include <u.h>
    #include <libc.h>
    
    #define x(y) "y\n"
    
    void
    main(void)
    {
    	print(x(hello world));
    }
    
    Replacing within quotes is occasionally useful
    for "stringizing", especially since Ken doesn't
    support the ANSI preprocessor # foo syntax.
    
    I think the comment problem is still fixable
    without breaking the above program, just not
    this way.
    


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.