SlickEdit Community

General => General Programming => Topic started by: Mike H on October 16, 2020, 08:20:47 pm

Title: beautifier C reference file
Post by: Mike H on October 16, 2020, 08:20:47 pm
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.