<commit_before>package sdl

// #cgo windows LDFLAGS: -lSDL2
// #cgo linux freebsd darwin pkg-config: sdl2
// #include "wrapper.h"
import "C"
import (
	"errors"
	"runtime"
	"unsafe"
)

// Point is a structure that defines a two demensional point.
// (https://wiki.libsdl.org/SDL_Point)
type Point struct {
	X int32
	Y int32
}

func (p *Point) cptr() *C.SDL_Point {
	return (*C.SDL_Point)(unsafe.Pointer(p))
}

// Rect is a structure that defines a rectangle, with the origin at the upper
// left.
// (https://wiki.libsdl.org/SDL_Rect)
type Rect struct {
	X int32
	Y int32
	W int32
	H int32<commit_msg>Tweaked the cgo flags for windows, finally go the eff examples to build in windows.  This does not statically link the SDL2.dll it is dynamic so it needs to be in the search path for windows<commit_after>package sdl

// #cgo windows CFLAGS: -Ic:/mingw_dev_lib/include/SDL2
// #cgo windows LDFLAGS: -Lc:/mingw_dev_lib/lib -lSDL2
// #cgo linux freebsd darwin pkg-config: sdl2
// #include "wrapper.h"
import "C"
import (
	"errors"
	"runtime"
	"unsafe"
)

// Point is a structure that defines a two demensional point.
// (https://wiki.libsdl.org/SDL_Point)
type Point struct {
	X int32
	Y int32
}

func (p *Point) cptr() *C.SDL_Point {
	return (*C.SDL_Point)(unsafe.Pointer(p))
}

// Rect is a structure that defines a rectangle, with the origin at the upper
// left.
// (https://wiki.libsdl.org/SDL_Rect)
type Rect struct {
	X int32
	Y int32
	W int32
	H int32
{'fraction_non_alphanumeric': 0.11950549450549451, 'fraction_numerical': 0.020604395604395604, 'mean_word_length': 3.5248447204968945, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '4770420', 'n_tokens_mistral': 571, 'n_tokens_neox': 527, 'n_words': 183}