repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
laser-turtle/ogaml | src/graphics/stubs/texture_stubs.c | <gh_stars>10-100
#define GL_GLEXT_PROTOTYPES
#if defined(_WIN32)
#include <windows.h>
#include <gl/glew.h>
#endif
#if defined(__APPLE__)
#include <OpenGL/gl3.h>
#ifndef GL_TESS_CONTROL_SHADER
#define GL_TESS_CONTROL_SHADER 0x00008e88
#endif
#ifndef GL_TESS_EVALUATION_SHADER
#define GL_TESS_EVALU... |
laser-turtle/ogaml | src/graphics/stubs/text_stubs.c | <reponame>laser-turtle/ogaml
#include <caml/bigarray.h>
#include "utils.h"
#define STB_TRUETYPE_IMPLEMENTATION
#include "stb_truetype.h"
CAMLprim value
caml_stb_load_font(value filename)
{
CAMLparam1(filename);
long size;
unsigned char* fontBuffer;
FILE* fontFile = fopen(String_val(filename), "rb");
stbtt_... |
laser-turtle/ogaml | src/core/windows/stubs/window_stubs.c | <reponame>laser-turtle/ogaml
#include "utils.h"
#include <windows.h>
#include <Windowsx.h>
#include <memory.h>
value* callback_get_window_from_id;
value* callback_push_event_to_window;
value getModifiers()
{
CAMLparam0();
CAMLlocal1(res);
res = caml_alloc(4,0);
Store_field(res,0,Val_bool(HIWORD(GetAs... |
laser-turtle/ogaml | src/core/x11/stubs/utils.c | #define CAML_NAME_SPACE
#include "utils.h"
static struct custom_operations XVisualInfo_custom_ops = {
identifier : "XVisualInfo handling",
finalize : custom_finalize_default,
compare : custom_compare_default,
hash : custom_hash_default,
serialize : custom_serialize_default,
deserialize : ... |
laser-turtle/ogaml | src/core/x11/stubs/window_stubs.c | <filename>src/core/x11/stubs/window_stubs.c
#include <X11/Xlib.h>
#include <GL/gl.h>
#include <GL/glx.h>
#include "utils.h"
// INPUT display, parent window, origin, size, border width,
// border value, bg value
// OUTPUT new window
CAMLprim value
caml_xcreate_simple_window(
value disp, value parent, ... |
laser-turtle/ogaml | src/core/x11/stubs/keyboard_stubs.c | <gh_stars>10-100
#include <X11/Xlib.h>
#include <xcb/xcb.h>
#include <X11/Xlib-xcb.h>
#include <X11/keysym.h>
#include "utils.h"
CAMLprim value
caml_is_key_down(value disp, value code)
{
CAMLparam2(disp, code);
Display* dpy = Display_val(disp);
xcb_generic_error_t* error = NULL;
xcb_connection_t* conn = XGe... |
laser-turtle/ogaml | src/core/windows/stubs/context_stubs.c | <filename>src/core/windows/stubs/context_stubs.c
#include "utils.h"
#include <windows.h>
#include <memory.h>
CAMLprim value
caml_wgl_create_context(value hwnd)
{
CAMLparam1(hwnd);
HDC hDC;
HGLRC hRC;
hDC = GetDC((HWND)hwnd);
hRC = wglCreateContext(hDC);
CAMLreturn((value)hRC);
}
CAMLprim ... |
laser-turtle/ogaml | src/core/x11/stubs/mouse_stubs.c | <gh_stars>10-100
#include <X11/Xlib.h>
#include "utils.h"
// INPUT a display, a window, a position
// OUTPUT nothing, warps the pointer to the position relatively to the window
CAMLprim value
caml_xwarp_pointer(value disp, value win, value x, value y)
{
CAMLparam4(disp, win, x, y);
Display* dpy = Display_val(d... |
laser-turtle/ogaml | src/core/cocoa/stubs/cocoa_stubs.h | #include "utils.h"
#ifndef __APPLE__
#define strong retain
#endif
#import <Foundation/Foundation.h>
#import <Cocoa/Cocoa.h>
#include <CoreFoundation/CoreFoundation.h>
#import <CoreGraphics/CoreGraphics.h>
#include <Carbon/Carbon.h>
// A function to move the cursor
void warpCursor(NSPoint loc);
// Our own event obj... |
laser-turtle/ogaml | src/core/x11/stubs/utils_stubs.c | #include "utils.h"
CAMLprim value
caml_realpath(value path)
{
CAMLparam1(path);
CAMLlocal1(res);
char* res_ptr = realpath(String_val(path), NULL);
res = caml_copy_string(res_ptr);
free(res_ptr);
CAMLreturn(res);
}
|
laser-turtle/ogaml | src/graphics/stubs/ebo_stubs.c | #define GL_GLEXT_PROTOTYPES
#if defined(_WIN32)
#include <windows.h>
#include <gl/glew.h>
#endif
#if defined(__APPLE__)
#include <OpenGL/gl3.h>
#ifndef GL_TESS_CONTROL_SHADER
#define GL_TESS_CONTROL_SHADER 0x00008e88
#endif
#ifndef GL_TESS_EVALUATION_SHADER
#define GL_TESS_EVALUATION_SHADER 0x00... |
laser-turtle/ogaml | src/graphics/stubs/image_stubs.c | #include "utils.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
CAMLprim value
caml_image_load_from_file(value filename)
{
CAMLparam1(filename);
CAMLlocal2(result, px);
int x,y,chan;
char* pixels;
stbi_set_flip_vertically_on... |
laser-turtle/ogaml | src/graphics/stubs/utils.h | #ifndef CAML_STUBS_HEADER
#define CAML_STUBS_HEADER
#define CAML_NAME_SPACE
#include <caml/custom.h>
#include <caml/fail.h>
#include <caml/callback.h>
#include <caml/memory.h>
#include <caml/alloc.h>
#include <caml/mlvalues.h>
#include <stdio.h>
#define Val_none Val_int(0)
#define Some_val(v) Field(v,0)
value Val_... |
laser-turtle/ogaml | src/graphics/stubs/types_stubs.h | <gh_stars>10-100
#ifndef TYPES_STUBS_HEADER
#define TYPES_STUBS_HEADER
#include <caml/custom.h>
#include <caml/fail.h>
#include <caml/callback.h>
#include <caml/memory.h>
#include <caml/alloc.h>
#include <caml/mlvalues.h>
#include <stdio.h>
GLenum BlendFunc_val(value func);
GLenum BlendFactor_val(value fac);
GLenu... |
laser-turtle/ogaml | src/core/windows/stubs/utils.c | #define CAML_NAME_SPACE
#include "utils.h"
struct custom_operations empty_custom_opts = {
"obj_st handling",
custom_finalize_default,
custom_compare_default,
custom_hash_default,
custom_serialize_default,
custom_deserialize_default
};
value Val_some(value v)
{
CAMLparam1(v);
CAMLlocal1(some);
some ... |
laser-turtle/ogaml | src/core/windows/stubs/style_stubs.c | #include "utils.h"
#include <windows.h>
#include <memory.h>
DWORD Style_val(value style)
{
switch(Int_val(style))
{
case 0:
return WS_BORDER;
case 1:
return WS_CAPTION;
case 2:
return WS_MAXIMIZE;
case 3:
return WS_MAXIMIZEBOX;
case 4:
return WS_MINIMIZE;
... |
laser-turtle/ogaml | src/graphics/stubs/types_stubs.c | <reponame>laser-turtle/ogaml<filename>src/graphics/stubs/types_stubs.c
#define GL_GLEXT_PROTOTYPES
#if defined(_WIN32)
#include <windows.h>
#include <gl/glew.h>
#endif
#if defined(__APPLE__)
#include <OpenGL/gl3.h>
#ifndef GL_TESS_CONTROL_SHADER
#define GL_TESS_CONTROL_SHADER 0x00008e88
#endif
#ifndef... |
laser-turtle/ogaml | src/graphics/stubs/blending_stubs.c | <filename>src/graphics/stubs/blending_stubs.c
#define GL_GLEXT_PROTOTYPES
#if defined(_WIN32)
#include <windows.h>
#include <gl/glew.h>
#endif
#if defined(__APPLE__)
#include <OpenGL/gl3.h>
#ifndef GL_TESS_CONTROL_SHADER
#define GL_TESS_CONTROL_SHADER 0x00008e88
#endif
#ifndef GL_TESS_EVALUATION_SHADE... |
laser-turtle/ogaml | src/graphics/stubs/vao_stubs.c | #define GL_GLEXT_PROTOTYPES
#if defined(_WIN32)
#include <windows.h>
#include <gl/glew.h>
#endif
#if defined(__APPLE__)
#include <OpenGL/gl3.h>
#ifndef GL_TESS_CONTROL_SHADER
#define GL_TESS_CONTROL_SHADER 0x00008e88
#endif
#ifndef GL_TESS_EVALUATION_SHADER
#define GL_TESS_EVALUATION_SHADER 0x00... |
laser-turtle/ogaml | src/core/windows/stubs/pixelformat_stubs.c | #include "utils.h"
#include <windows.h>
#include <wingdi.h>
#include <memory.h>
CAMLprim value
caml_simple_pfmt_descriptor(value hwnd, value depth, value stencil)
{
CAMLparam3(hwnd, depth, stencil);
PIXELFORMATDESCRIPTOR pfd =
{
sizeof(PIXELFORMATDESCRIPTOR),
1,
PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL... |
myoKun345/RcppCWB | src/cwb/cqp/eval.c | /*
* IMS Open Corpus Workbench (CWB)
* Copyright (C) 1993-2006 by IMS, University of Stuttgart
* Copyright (C) 2007- by the respective contributers (see file AUTHORS)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as publi... |
myoKun345/RcppCWB | src/cwb/cqp/ranges.c | <filename>src/cwb/cqp/ranges.c
/*
* IMS Open Corpus Workbench (CWB)
* Copyright (C) 1993-2006 by IMS, University of Stuttgart
* Copyright (C) 2007- by the respective contributers (see file AUTHORS)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU ... |
myoKun345/RcppCWB | src/cwb/cl/ngram-hash.c | <gh_stars>0
/*
* IMS Open Corpus Workbench (CWB)
* Copyright (C) 1993-2006 by IMS, University of Stuttgart
* Copyright (C) 2007- by the respective contributers (see file AUTHORS)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public Lice... |
myoKun345/RcppCWB | src/cwb/cqp/hash.c | <filename>src/cwb/cqp/hash.c
/*
* IMS Open Corpus Workbench (CWB)
* Copyright (C) 1993-2006 by IMS, University of Stuttgart
* Copyright (C) 2007- by the respective contributers (see file AUTHORS)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Ge... |
myoKun345/RcppCWB | src/cwb/cl/cdaccess.c | /*
* IMS Open Corpus Workbench (CWB)
* Copyright (C) 1993-2006 by IMS, University of Stuttgart
* Copyright (C) 2007- by the respective contributers (see file AUTHORS)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as publish... |
myoKun345/RcppCWB | src/cwb/cl/storage.c | /*
* IMS Open Corpus Workbench (CWB)
* Copyright (C) 1993-2006 by IMS, University of Stuttgart
* Copyright (C) 2007- by the respective contributers (see file AUTHORS)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as publi... |
myoKun345/RcppCWB | src/cwb/utils/_cwb_huffcode.c | /*
* IMS Open Corpus Workbench (CWB)
* Copyright (C) 1993-2006 by IMS, University of Stuttgart
* Copyright (C) 2007- by the respective contributers (see file AUTHORS)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as publi... |
myoKun345/RcppCWB | src/cwb/cl/bitio.c | <filename>src/cwb/cl/bitio.c
/*
* IMS Open Corpus Workbench (CWB)
* Copyright (C) 1993-2006 by IMS, University of Stuttgart
* Copyright (C) 2007- by the respective contributers (see file AUTHORS)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Ge... |
myoKun345/RcppCWB | src/cwb/cqp/ascii-print.c | <reponame>myoKun345/RcppCWB
/*
* IMS Open Corpus Workbench (CWB)
* Copyright (C) 1993-2006 by IMS, University of Stuttgart
* Copyright (C) 2007- by the respective contributers (see file AUTHORS)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Gen... |
myoKun345/RcppCWB | src/cwb/editline/vc_editline_config.h |
/************************************************************************/
/* */
/* Centre for Speech Technology Research */
/* University of Edinburgh, UK */
/* ... |
myoKun345/RcppCWB | src/cwb/cl/regopt.c | <filename>src/cwb/cl/regopt.c
/*
* IMS Open Corpus Workbench (CWB)
* Copyright (C) 1993-2006 by IMS, University of Stuttgart
* Copyright (C) 2007- by the respective contributers (see file AUTHORS)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU G... |
myoKun345/RcppCWB | src/cwb/cqp/eval.h | /*
* IMS Open Corpus Workbench (CWB)
* Copyright (C) 1993-2006 by IMS, University of Stuttgart
* Copyright (C) 2007- by the respective contributers (see file AUTHORS)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as publish... |
myoKun345/RcppCWB | src/cwb/cqp/parse_actions.c | /*
* IMS Open Corpus Workbench (CWB)
* Copyright (C) 1993-2006 by IMS, University of Stuttgart
* Copyright (C) 2007- by the respective contributers (see file AUTHORS)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as publi... |
myoKun345/RcppCWB | src/cwb/cqp/variables.c | /*
* IMS Open Corpus Workbench (CWB)
* Copyright (C) 1993-2006 by IMS, University of Stuttgart
* Copyright (C) 2007- by the respective contributers (see file AUTHORS)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as publi... |
myoKun345/RcppCWB | src/utils.h | <reponame>myoKun345/RcppCWB
Corpus *corpus;
int cleanup(int error_code);
void compress_reversed_index(Attribute *attr, char *output_fn, char *corpus_id, int debug);
void decompress_check_reversed_index(Attribute *attr, char *output_fn, char *corpus_id, int debug);
int decode_check_huff(Attribute *attr, char* corpus_id,... |
myoKun345/RcppCWB | src/cwb/cqp/lex.yy.c |
#line 3 "lex.yy.c"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
#define YY_FLEX_SUBMINOR_VERSION 35
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
/* First, we deal with platform-specific... |
myoKun345/RcppCWB | src/cwb/cl/attributes.c | /*
* IMS Open Corpus Workbench (CWB)
* Copyright (C) 1993-2006 by IMS, University of Stuttgart
* Copyright (C) 2007- by the respective contributers (see file AUTHORS)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as publi... |
maguangxiao/GXKit_OC | GXKit_OC/Class/Frame/Controller/GXNavigationController.h | <gh_stars>0
//
// GXNavigationController.h
// GXKit_OC
//
// Created by GuangXiao on 2018/2/24.
// Copyright © 2018年 guangxiao. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface GXNavigationController : UINavigationController
@end
|
maguangxiao/GXKit_OC | GXKit_OC/Class/Mine/mine/Controller/MineViewController.h | <reponame>maguangxiao/GXKit_OC
//
// MineViewController.h
// GXKit_OC
//
// Created by GuangXiao on 2018/2/24.
// Copyright © 2018年 guangxiao. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "GXViewController.h"
@interface MineViewController : GXViewController
@end
|
maguangxiao/GXKit_OC | GXKit_OC/Class/Frame/Controller/GXTabBarController.h | <gh_stars>0
//
// GXTabBarController.h
// GXKit_OC
//
// Created by GuangXiao on 2018/2/24.
// Copyright © 2018年 guangxiao. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface GXTabBarController : UITabBarController
@end
|
maguangxiao/GXKit_OC | GXKit_OC/Class/Home/home/Controller/HomeViewController.h | <reponame>maguangxiao/GXKit_OC
//
// HomeViewController.h
// GXKit_OC
//
// Created by GuangXiao on 2018/2/24.
// Copyright © 2018年 guangxiao. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "GXViewController.h"
@interface HomeViewController : GXViewController
@end
|
maguangxiao/GXKit_OC | GXKit_OC/Class/Frame/Controller/GXViewController.h | //
// GXViewController.h
// GXKit_OC
//
// Created by GuangXiao on 2018/2/24.
// Copyright © 2018年 guangxiao. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface GXViewController : UIViewController
@end
|
eliasdaler/sfgc | include/sfgc/sfgc.h | #ifndef SFGC_H
#define SFGC_H
#pragma once
#include <array>
#include <cstdint>
#include <SFML/Window/Joystick.hpp>
namespace sf
{
class Event;
}
namespace sfgc
{
enum class Button : std::size_t {
A,
B,
X,
Y,
LeftShoulder,
RightShoulder,
LeftTrigger,
RightTrigger,
LeftStick,
... |
janbiedermann/cstl | tests/http.c | /* *****************************************************************************
Copyright: <NAME>, 2019-2020
License: ISC / MIT (choose your license)
Feel free to copy, use and enjoy according to the license provided.
***************************************************************************** */
/* ***************... |
janbiedermann/cstl | stl_slices/299 reference counter.h | /* *****************************************************************************
Copyright: <NAME>, 2019-2021
License: ISC / MIT (choose your license)
Feel free to copy, use and enjoy according to the license provided.
***************************************************************************** */
#ifndef H___FIO_CST... |
janbiedermann/cstl | stl_slices/211 unordered map.h | <filename>stl_slices/211 unordered map.h
/* *****************************************************************************
Copyright: <NAME>, 2019-2021
License: ISC / MIT (choose your license)
Feel free to copy, use and enjoy according to the license provided.
***********************************************************... |
janbiedermann/cstl | tests/base64.c | #define FIO_STR_NAME fio_str
#define FIO_CLI
#define FIO_SOCK
#include "fio-stl.h"
FIO_IFUNC fio_str_info_s fio_str_write_base64enc2(fio_str_s *s,
const void *data,
size_t len) {
return fio_str_write_base64enc(s, data... |
janbiedermann/cstl | stl_slices/200 linked lists.h | <reponame>janbiedermann/cstl<filename>stl_slices/200 linked lists.h<gh_stars>10-100
/* *****************************************************************************
Copyright: <NAME>, 2019-2021
License: ISC / MIT (choose your license)
Feel free to copy, use and enjoy according to the license provided.
****************... |
janbiedermann/cstl | stl_slices/106 signals.h | <filename>stl_slices/106 signals.h
/* *****************************************************************************
Copyright: <NAME>, 2019-2021
License: ISC / MIT (choose your license)
Feel free to copy, use and enjoy according to the license provided.
*****************************************************************... |
janbiedermann/cstl | tests/stl.c | <reponame>janbiedermann/cstl
#ifndef FIO_TEST_CSTL
#define FIO_TEST_CSTL
#endif
#include "fio-stl.h"
int main(int argc, char const *argv[]) {
fio_test_dynamic_types();
(void)argc;
(void)argv;
return 0;
}
|
janbiedermann/cstl | tests/array.c | <filename>tests/array.c
#define FIO_LOG
#define FIO_TIME
#include "fio-stl.h"
#define FIO_FIOBJ
#include "fio-stl.h"
#define FIO_ARRAY_NAME ary1
#include "fio-stl.h"
#define FIO_ARRAY_NAME ary2
#define FIO_ARRAY_ENABLE_EMBEDDED 0
#include "fio-stl.h"
#define FIO_ARRAY_NAME ary3
#define FIO_ARR... |
janbiedermann/cstl | stl_slices/004 bitwise.h | <reponame>janbiedermann/cstl
/* *****************************************************************************
Copyright: <NAME>, 2019-2021
License: ISC / MIT (choose your license)
Feel free to copy, use and enjoy according to the license provided.
***********************************************************************... |
janbiedermann/cstl | tests/client.c | /* *****************************************************************************
Copyright: <NAME>, 2019-2020
License: ISC / MIT (choose your license)
Feel free to copy, use and enjoy according to the license provided.
***************************************************************************** */
/* ***************... |
janbiedermann/cstl | stl_slices/700 cleanup.h | <gh_stars>10-100
/* *****************************************************************************
Common Cleanup
***************************************************************************** */
/* *****************************************************************************
Common c... |
janbiedermann/cstl | tests/mempool.c |
#define FIO_MALLOC_TEST_NOTICE \
"Testing FIO_MEMORY_NAME with the default, small allocator, settings."
/* use the fast-setup global allocator shortcut for FIO_MEMORY_NAME */
#define FIO_MEMORY_NAME fio
#define FIO_LOG
#define FIO_TIME
#define FIO_ATOMIC
#include <fio... |
janbiedermann/cstl | stl_slices/103 cli.h | <gh_stars>0
/* *****************************************************************************
Copyright: <NAME>, 2019-2021
License: ISC / MIT (choose your license)
Feel free to copy, use and enjoy according to the license provided.
***************************************************************************** */
#ifndef... |
janbiedermann/cstl | stl_slices/210 map api.h | /* *****************************************************************************
Copyright: <NAME>, 2019-2021
License: ISC / MIT (choose your license)
Feel free to copy, use and enjoy according to the license provided.
***************************************************************************** */
#ifndef H___FIO_CST... |
janbiedermann/cstl | stl_slices/005 riskyhash.h | <filename>stl_slices/005 riskyhash.h
/* *****************************************************************************
Copyright: <NAME>, 2019-2021
License: ISC / MIT (choose your license)
Feel free to copy, use and enjoy according to the license provided.
***************************************************************... |
janbiedermann/cstl | stl_slices/699 empty module.h | <gh_stars>10-100
/* *****************************************************************************
Copyright: <NAME>, 2019-2021
License: ISC / MIT (choose your license)
Feel free to copy, use and enjoy according to the license provided.
***************************************************************************** */
#i... |
janbiedermann/cstl | stl_slices/050 url.h | /* *****************************************************************************
Copyright: <NAME>, 2019-2021
License: ISC / MIT (choose your license)
Feel free to copy, use and enjoy according to the license provided.
***************************************************************************** */
#ifndef H___FIO_CST... |
janbiedermann/cstl | tests/json.c | <reponame>janbiedermann/cstl<gh_stars>10-100
#define FIO_CLI
#define FIO_LOG
#include "fio-stl.h"
#define FIO_FIOBJ
#include "fio-stl.h"
// Prettyfy JSON? this is passed as an argument to `fiobj2json`
#define PRETTY 0
int main(int argc, char const *argv[]) {
// a default string to demo
const char *json_cstr =
... |
janbiedermann/cstl | tests/http1_parser.h | /*
Copyright: <NAME>, 2017-2020
License: MIT
Feel free to copy, use and enjoy according to the license provided.
*/
/**
This is a callback based parser. It parses the skeleton of the HTTP/1.x protocol
and leaves most of the work (validation, error checks, etc') to the callbacks.
This is an attempt to replace the exi... |
janbiedermann/cstl | tests/random.c | <filename>tests/random.c
/*
* Original Source code copied from: http://xoshiro.di.unimi.it/hwd.php
*
* Copyright (C) 2004-2016 <NAME>.
* Copyright (C) 2017-2018 <NAME> and <NAME>.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as ... |
janbiedermann/cstl | stl_slices/005 sha1.h | <gh_stars>10-100
/* *****************************************************************************
Copyright: <NAME>, 2021
License: ISC / MIT (choose your license)
Feel free to copy, use and enjoy according to the license provided.
***************************************************************************** */
#ifndef... |
janbiedermann/cstl | stl_slices/105 stream.h | /* *****************************************************************************
Copyright: <NAME>, 2019-2021
License: ISC / MIT (choose your license)
Feel free to copy, use and enjoy according to the license provided.
***************************************************************************** */
#ifndef H___FIO_CST... |
janbiedermann/cstl | tests/json_find.c | <filename>tests/json_find.c<gh_stars>10-100
#define FIO_LOG
#define FIO_CLI
#include "fio-stl.h" /* from: https://github.com/facil-io/cstl */
#define FIO_FIOBJ
#include "fio-stl.h" /* from: https://github.com/facil-io/cstl */
int main(int argc, char const *argv[]) {
// select the JSON file.
fio_cli_start(argc,
... |
janbiedermann/cstl | stl_slices/211 ordered map.h | /* *****************************************************************************
Copyright: <NAME>, 2019-2021
License: ISC / MIT (choose your license)
Feel free to copy, use and enjoy according to the license provided.
***************************************************************************** */
#ifndef H___FIO_CST... |
janbiedermann/cstl | tests/json_minify.c | #define FIO_JSON
#define FIO_STR_NAME fio_str
#define FIO_LOG
#include "fio-stl.h"
#define FIO_CLI
#include "fio-stl.h"
typedef struct {
fio_json_parser_s p;
fio_str_s out;
uint8_t counter;
uint8_t done;
} my_json_parser_s;
#define JSON_PARSER_CAST(ptr) FIO_PTR_FROM_FIELD(my_json_parser_s, p, ptr)
#define JS... |
janbiedermann/cstl | tests/url.c | <reponame>janbiedermann/cstl<gh_stars>10-100
#define FIO_URL
#include "fio-stl.h"
int main(int argc, char const *argv[]) {
char *to_parse =
(char *)"http://anon:1234@example.com:443/my/path?answer=42#target";
if (argc >= 2)
to_parse = (char *)argv[1];
fio_url_s u = fio_url_parse(to_parse, strlen(to_par... |
janbiedermann/cstl | stl_slices/102 queue.h | /* *****************************************************************************
Copyright: <NAME>, 2019-2021
License: ISC / MIT (choose your license)
Feel free to copy, use and enjoy according to the license provided.
***************************************************************************** */
#ifndef H___FIO_CST... |
janbiedermann/cstl | stl_slices/101 time.h | <filename>stl_slices/101 time.h
/* *****************************************************************************
Copyright: <NAME>, 2019-2021
License: ISC / MIT (choose your license)
Feel free to copy, use and enjoy according to the license provided.
********************************************************************... |
janbiedermann/cstl | stl_slices/000 header.h | <reponame>janbiedermann/cstl
/* *****************************************************************************
Copyright: <NAME>, 2019-2021
License: ISC / MIT (choose your license)
Feel free to copy, use and enjoy according to the license provided.
***********************************************************************... |
janbiedermann/cstl | stl_slices/219 map finish.h | /* *****************************************************************************
Map Testing
***************************************************************************** */
#ifndef H___FIO_CSTL_INCLUDE_ONCE_H /* Development inclusion - ignore line */
#define FIO_MAP_NAME map /* Development inclusion - ignor... |
janbiedermann/cstl | stl_slices/800 fiobj.h | /* *****************************************************************************
Copyright: <NAME>, 2019-2021
License: ISC / MIT (choose your license)
Feel free to copy, use and enjoy according to the license provided.
***************************************************************************** */
#ifndef H___FIO_CST... |
janbiedermann/cstl | stl_slices/007 threads.h | <reponame>janbiedermann/cstl<gh_stars>0
/* *****************************************************************************
Copyright: <NAME>, 2019-2021
License: ISC / MIT (choose your license)
Feel free to copy, use and enjoy according to the license provided.
************************************************************... |
thegmarlow/TagTrack- | src/pru_adc.c | <gh_stars>10-100
/*
* beaglebone_pru_adc - fast analog sensor capture for BeagleBone Black
*
* @author <NAME>
* @email: <EMAIL>
*/
#include <Python.h>
#include <stddef.h>
#include "prussdrv.h"
#include "pruss_intc_mapping.h"
#include "firmware.h"
typedef struct {
PyObject_HEAD
locals_t locals;
int starte... |
thegmarlow/TagTrack- | src/firmware.h | #ifndef _FIRMWARE_H
#define _FIRMWARE_H
typedef unsigned int word;
typedef unsigned short halfword;
typedef unsigned char byte;
typedef struct {
word threshold; // threshold used for detecting wheel encoder ticks
word raw; // raw value of encoder
word min; // min value for current half-tick
word max; ... |
kotcrab/xdelta-wasm | native/xdelta3-wasm.c | #include "xdelta3.h"
#include <emscripten.h>
#include <stdio.h>
#include <sys/stat.h>
size_t readSource(void* buffer, size_t offset, size_t size) {
return EM_ASM_INT({ return readSource($0, $1, $2); }, buffer, offset, size);
}
size_t readPatch(void* buffer, size_t offset, size_t size) {
return EM_ASM_INT({ return... |
jmckell/Test-One | usb/usbview/display.c | /*++
Copyright (c) 1997-2011 Microsoft Corporation
Module Name:
DISPLAY.C
Abstract:
This source file contains the routines which update the edit control
to display information about the selected USB device.
Environment:
user mode
Revision History:
04-25-97 : created
03-28-03 : extensive cha... |
Geronius/DeploymentFramework | src/Documentation/HelpNDoc/Templates/code/C-Defines/header.pas.h | <filename>src/Documentation/HelpNDoc/Templates/code/C-Defines/header.pas.h
var
aTopicList: THndTopicsInfoArray;
nCurTopic: integer;
sModuleName: string;
begin
HndGeneratorInfo.CurrentFile := ExtractFileName(HndGeneratorInfo.OutputFile);
sModuleName := ChangeFileExt(ExtractFileName(HndGeneratorInfo.OutputFile), ''... |
IwoZachary/MSiD | Sort3i4/Sort3i4/InsertSort.h | #pragma once
class InsertSort {
public:
InsertSort(int ammount, int volume);
~InsertSort();
void vSort();
void vShow();
private:
int* tab;
int length;
};
|
IwoZachary/MSiD | Sort3i4/Sort3i4/BubbleSort.h | #pragma once
class BubbleSort {
public:
BubbleSort(int ammount,int volume);
~BubbleSort();
void vShow();
void vSort();
private:
void vSwap(int i,int j);
int* tab;
int length;
}; |
IwoZachary/MSiD | Sort3i4/Sort3i4/Generator.h | <reponame>IwoZachary/MSiD
#pragma once
class Generator {
public:
Generator(int max);
void vGenerate(int* tab,int length);
private:
int max;
}; |
da-phil/libdw1000 | inc/libdw1000Types.h | <reponame>da-phil/libdw1000
/*
* Driver for decaWave DW1000 802.15.4 UWB radio chip.
*
* Copyright (c) 2016 Bitcraze AB
* Converted to C from the Decawave DW1000 library for arduino.
* which is Copyright (c) 2015 by <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may ... |
ErvinXie/VIPSS | vipss/src/surfacer/utils/Rn_vector.h | // -*-c++-*-
#ifndef IG_VECTOR_H
#define IG_VECTOR_H
// $Id: Rn_vector.h,v 1.2 2004/05/07 20:24:51 cmg Exp $
// CwMtx matrix and vector math library
// Copyright (C) 1999-2001 <NAME>
// Copyright (C) 2000 <NAME> (template conversion)
// This library is free software; you can redistribute it and/or
// modify it und... |
ErvinXie/VIPSS | vipss/src/surfacer/utils/LiveWire.h | #pragma once
#include <math.h>
#include <stack>
#include <queue>
#include <../src/utils/LiveWire/MyStack.h>
#include <../src/utils/LiveWire/MyQueue.h>
#include <../src/utils/LiveWire/MyList.h>
#include <../src/utils/LiveWire/MyCPoint.h>
#include <utils/Rn_Defs.H>
#include <utils/Mesh_Array.H>
#include <iostream>
#incl... |
ErvinXie/VIPSS | vipss/src/readers.h | #ifndef READERS_H
#define READERS_H
#include<vector>
#include<string>
#include <fstream>
using namespace std;
//extern ofstream debug_output;
bool readOffFile(string filename, vector<double> &vertices, vector<unsigned int> &faces2vertices);
bool writeOffFile(string filename, const vector<double> &vertices, cons... |
ErvinXie/VIPSS | vipss/src/surfacer/utils/BaryPoly.h | #ifndef BARY_POLY_H
#define BARY_POLY_H
#include <utils/Pm_MeshLite.H>
WINbool CalculateWeights( const PMeshLite &in_mesh, const R3Pt &in_pt, Array<double> &out_adWeights );
/// Sorts points by angle in tangent plane first
double LaplacianWeights( const R3Pt &in_pt, const R3Vec &in_vecNorm, const Array<R3Pt> &in_apt... |
ErvinXie/VIPSS | vipss/src/surfacer/ImplicitedSurfacing.h | #ifndef IMPLICITEDSURFACING_H
#define IMPLICITEDSURFACING_H
#include "Polygonizer.h"
#include "../readers.h"
class Surfacer {
public:
R3Pt s_ptMin, s_ptMax;
Array<R3Pt> s_aptSurface;
Array<R3Vec> s_avecSurface;
Array<R3Pt_i> s_afaceSurface;
vector<double> all_v;
vector<uint> all_fv;
... |
ErvinXie/VIPSS | vipss/src/surfacer/OctotreeSurfacer.h | //
// Created by 谢威宇 on 2020/5/12.
//
#ifndef VIPSS_OCTOTREESURFACER_H
#define VIPSS_OCTOTREESURFACER_H
#include <vector>
#include <functional>
#include <map>
#include <fstream>
#include <string>
using namespace std;
class OctotreeSurfacer;
class OctNode;
typedef OctNode *np;
class OctNode {
public:
OctNode... |
ckuehnel/LoRa | radino32_sx1272.h | <reponame>ckuehnel/LoRa
/*
* THE FOLLOWING FIRMWARE IS PROVIDED: (1) "AS IS" WITH NO WARRANTY; AND
* (2)TO ENABLE ACCESS TO CODING INFORMATION TO GUIDE AND FACILITATE CUSTOMER.
* CONSEQUENTLY, SEMTECH SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR
* CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISIN... |
aha-app/librdkafka | src/rdkafka_sasl_aws_msk_iam.c | /*
* librdkafka - The Apache Kafka C/C++ library
*
* Copyright (c) 2017 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above ... |
aha-app/librdkafka | src/rdkafka_aws.c | <gh_stars>0
/*
* librdkafka - The Apache Kafka C/C++ library
*
* Copyright (c) 2017 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retai... |
aha-app/librdkafka | src/rdkafka_conf.h | /*
* librdkafka - Apache Kafka C library
*
* Copyright (c) 2014-2018 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above cop... |
el-hoshino/CooldownProgressView | CooldownProgressView/CooldownProgressView/CooldownProgressView.h | //
// CooldownProgressView.h
// CooldownProgressView
//
// Created by <NAME> on 2017/02/27.
// Copyright © 2017年 Crazism. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for CooldownProgressView.
FOUNDATION_EXPORT double CooldownProgressViewVersionNumber;
//! Project version string for... |
khval/amosExtention2Ascii | startup.h | <gh_stars>1-10
BOOL open_lib( const char *name, int ver , const char *iname, int iver, struct Library **base, struct Interface **interface);
char *get_filename(int args,char **arg);
char *asl();
|
josnelihurt/algorithms | cpp-src/src/data-structures/tree/bst/bst.h | namespace bst{
struct Node{
int data;
Node *left;
Node *right;
};
Node* newNode(int data);
Node *insert(Node *root, int data);
Node *lca(Node *root, int v1,int v2);
int height(Node *root);
void deleteNode(Node *root);
void inOrder(Node *root);
void levelOrder... |
josnelihurt/algorithms | cpp-src/src/algorithms/hacker-rank/implementation/the_birthday_bar.h |
#include <bits/stdc++.h>
#include <vector>
namespace the_birthday_bar{
int birthday(std::vector<int> s, int d, int m);
}
|
josnelihurt/algorithms | cpp-src/template/name.h | <filename>cpp-src/template/name.h
namespace name{
//Function definition goes here
} |
josnelihurt/algorithms | cpp-src/src/algorithms/hacker-rank/implementation/between_two_sets.h | <filename>cpp-src/src/algorithms/hacker-rank/implementation/between_two_sets.h
#include <vector>
namespace between_two_sets{
int getTotalX(std::vector<int> a, std::vector<int> b);
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.