General > General Programming

beautifier C reference file

(1/1)

Mike H:
Can someone provide (or point me to) a C99 file with various code snippets that I can use to see the effect of beautifier options I've selected?
The standard one that comes with SE only has this

class Something : public OrAnother {
public:
    Something() : OrAnother(CTX_ST) {
    }

    int* getStorage() {
        if (isPickled() || needsReset() ||
            fullyQualifiedName() ==
                DEFAULT_NAME) {
            char const *file = storageFile();
            Pickle::load(file,
                         FLG_IMMEDIATE,
                         false);
        }
        return m_payload;
    }

private:
    template<class A>
    struct StorageRep {
        int *ref;
        char type;
        short refcnt;
        A *proxy;
    };
};

which is C++ and no control statements.  I'd like something with declarations, for loops, switch statements, etc. etc.  Then I can load it into SE and see how it will look using various beautifier options.

Navigation

[0] Message Index

Go to full version