<commit_before>/* Copyright 2013 <NAME>.
   This file is part of SGLib.  SGLib is licensed under the terms of the
   2-clause BSD license.  For more information, see LICENSE.txt. */
#define _CRT_SECURE_NO_WARNINGS
#include "sg/opengl.h"
#include "sg/type.h"

/* ========================================
   Menu system
   ======================================== */

union sg_event;

struct st_iface {
    const char *name;
    void (*init)(void);
    void (*destroy)(void);
    void (*event)(union sg_event *evt);
    void (*draw)(int width, int height, unsigned msec);
};

extern const struct st_iface *st_screen;
extern const struct st_iface
    ST_MENU, ST_IMAGE, ST_TYPE, ST_AUDIO;

/* ========================================
   Resource loading<commit_msg>cleanup: suppress demo warnings on Windows<commit_after>/* Copyright 2013 <NAME>.
   This file is part of SGLib.  SGLib is licensed under the terms of the
   2-clause BSD license.  For more information, see LICENSE.txt. */

#if defined _WIN32
# define _CRT_SECURE_NO_WARNINGS
# pragma warning(disable: 4244)
# pragma warning(disable: 4305)
#endif

#include "sg/opengl.h"
#include "sg/type.h"

/* ========================================
   Menu system
   ======================================== */

union sg_event;

struct st_iface {
    const char *name;
    void (*init)(void);
    void (*destroy)(void);
    void (*event)(union sg_event *evt);
    void (*draw)(int width, int height, unsigned msec);
};

extern const struct st_iface *st_screen;
extern const struct st_iface
    ST_MENU, ST_IMAGE, ST_TYPE, ST_AUDIO;

/* ========================================
   Resource loading
{'fraction_non_alphanumeric': 0.2399756986634265, 'fraction_numerical': 0.012150668286755772, 'mean_word_length': 4.471760797342193, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7018107', 'n_tokens_mistral': 530, 'n_tokens_neox': 496, 'n_words': 156}