• Russ Cox's avatar
    build: annotations and modifications for c2go · ebce7944
    Russ Cox authored
    The main changes fall into a few patterns:
    
    1. Replace #define with enum.
    
    2. Add /*c2go */ comment giving effect of #define.
    This is necessary for function-like #defines and
    non-enum-able #defined constants.
    (Not all compilers handle negative or large enums.)
    
    3. Add extra braces in struct initializer.
    (c2go does not implement the full rules.)
    
    This is enough to let c2go typecheck the source tree.
    There may be more changes once it is doing
    other semantic analyses.
    
    LGTM=minux, iant
    R=minux, dave, iant
    CC=golang-codereviews
    https://golang.org/cl/106860045
    ebce7944
bisonerrors 3.46 KB