repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
zedshaw/earing | src/module.h | <reponame>zedshaw/earing<gh_stars>1-10
#ifndef module_h
#define module_h
#include <stdio.h>
#include <string.h>
#include "tst.h"
#include "token.h"
#include <gc/cord.h>
#include "array.h"
#include "hash.h"
#include "types.h"
#include "function.h"
typedef struct Machine {
tst_t *directives;
tst_t *libraries;
... |
zedshaw/earing | src/error.h | #ifndef error_h
#define error_h
#include "module.h"
void error(Module *state, const char *format, ...);
void die(Module *state, const char *format, ...);
#endif
|
zedshaw/earing | src/dis.h | #ifndef dis_h
#define dis_h
void dis_functions(Module *state);
#endif
|
zedshaw/earing | src/unsupported.h | <gh_stars>1-10
/** This file contains combinations of macros and types that do not exist in lightning.
* They should not exist, and instead act as error markers so that the code generation
* for the ops.c file can be consistent and raise errors for any given type.
*
* It was obtained by trying to compile ops.c, and... |
zedshaw/earing | src/label.c | #include "function.h"
#include "label.h"
#include <assert.h>
Label *Label_find(Function *func, Token *tk)
{
hnode_t *hn = hash_lookup(func->labels, tk->data);
return hn ? hnode_get(hn) : NULL;
}
Token *Label_expression(Function *func, Token *tk)
{
Label *label = Label_find(func, tk);
if(!label) {
... |
zedshaw/earing | src/types.h | <filename>src/types.h
#ifndef types_h
#define types_h
/**
* These are used to determine the types of both operations and function returns.
* For an operation it follows a '.' as in movi.ui(...). For functions it follows
* the function's name after a ':' as in function adder : int. The lexer will actually
* allow... |
zedshaw/earing | src/grammar.h | #define TK_EOL 1
#define TK_IDENT 2
#define TK_EQ 3
#define TK_LPAREN 4
#define TK_RPAREN 5
#define TK_COMMA 6
#define TK_OP 7
#defi... |
zedshaw/earing | src/allocator.c | <filename>src/allocator.c
#include "allocator.h"
#include <gc/gc.h>
#include "error.h"
Token *Allocator_expression(Module *state, Token *tk)
{
if(!tk) {
die(state, "invalid identifier given to allocation");
return NULL;
} else {
tk->value = (int)GC_MALLOC(tk->value);
return tk;... |
zedshaw/earing | tests/tst_tests.c | #include <cut/2.6/cut.h>
#include "tst.h"
#include <gc.h>
void __CUT__tst_Bringup(void)
{
GC_INIT();
}
void __CUT__tst_create(void)
{
tst_t *t = NULL;
void *result = NULL;
void *result2 = NULL;
int val = 10;
tst_collect_t vals;
t = tst_insert(t, "test", 4, &val);
ASSERT(t != NULL, "F... |
zedshaw/earing | tests/error_tests.c | <filename>tests/error_tests.c
#include <cut/2.6/cut.h>
#include "error.h"
#include <gc.h>
void __CUT_error_Bringup(void)
{
GC_INIT();
}
void __CUT__error_test(void)
{
CORD name = CORD_from_char_star("<NAME>");
int tested = 10;
error(NULL, "%d times I called %r", tested, name);
}
|
zedshaw/earing | src/util.c | <gh_stars>1-10
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <assert.h>
#include "module.h"
#include "error.h"
#include <errno.h>
#include "list.h"
void run_function(Module *state, const char *named)
{
Function *func = NULL;
func = tst_sear... |
HPTears/commonDefine | Component/Classes/XKCommonEnum.h | //
// XKCommonEnum.h
// XKComponentBaseProject
//
// Created by Jamesholy on 2019/3/11.
// Copyright © 2019 Jamesholy. All rights reserved.
//
#ifndef XKCommonEnum_h
#define XKCommonEnum_h
typedef NS_ENUM(NSInteger ,XKRelationType) {
XKRelationNoting = 0, // 没关系
XKRelationOneWay, // 单向关系, 你关注了他
XKRela... |
HPTears/commonDefine | Component/Classes/XKComponentNotification.h | <reponame>HPTears/commonDefine
//
// XKComponentNotification.h
// XKComponentBaseProject
//
// Created by Jamesholy on 2019/3/11.
// Copyright © 2019 Jamesholy. All rights reserved.
//
#ifndef XKComponentNotification_h
#define XKComponentNotification_h
static NSString *const XKSecretFriendListInfoChangeNoti = @"... |
HPTears/commonDefine | Component/Classes/XKCommonDefine.h | //
// XKCommonDefine.h
// XKComponentBaseProject
//
// Created by Jamesholy on 2019/2/28.
// Copyright © 2019 Jamesholy. All rights reserved.
//
#ifndef XKCommonDefine_h
#define XKCommonDefine_h
//-------------------------- 数据库表名 --------------------------
//#define XKHistorySearchTable [NSString stringWi... |
Jongkeun/Papago-cpp | Papago-cpp/Papago-cppDlg.h | <reponame>Jongkeun/Papago-cpp<gh_stars>1-10
// Papago-cppDlg.h : header file
//
#pragma once
// CPapagocppDlg dialog
class CPapagocppDlg : public CDialogEx
{
// Construction
public:
CPapagocppDlg(CWnd* pParent = nullptr); // standard constructor
// Dialog Data
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_PAPAGOCPP_DI... |
yushansu/incubator-tvm | src/runtime/contrib/sparse/csrmm.h | <gh_stars>0
#pragma once
#include <tvm/runtime/data_type.h>
#include <tvm/runtime/registry.h>
namespace tvm {
namespace contrib {
using namespace runtime;
void jiacsrmm(int* colptr, int* rowidx, float* values, int N, int K, int C, float* l_a, float* l_c);
}
}
|
swegener/stlink | flash/main.c | /* simple wrapper around the stlink_flash_write function */
// TODO - this should be done as just a simple flag to the st-util command line...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include "stlink-common.h"
#define DEBUG_LOG_LEVEL 100
#define STND_LOG_LEVEL 50
enum st_... |
C0rmander/software3DEngine | VertexShader.h | <gh_stars>0
#ifndef VERTEXSHADER_H
#define VERTEXSHADER_H
#include <vector>
#include <SDL.h>
#include <string>
#include <unordered_map>
#include "Vector3D.h"
#include "Face3D.h"
using namespace std;
class VertexShader
{
public:
VertexShader();
VertexShader(unordered_map<int, vector<Vector3D> > Norma... |
C0rmander/software3DEngine | Matrix3D.h | #ifndef MATRIX3D_H
#define MATRIX3D_H
#include "Vector3D.h"
struct Matrix3D
{
private:
float n[3] [3];
float test[3] [3];
public:
Matrix3D()
{
}
Matrix3D(float n00, float n01, float n02,
float n10, float n11, float n12,
float n20, float n21, float n2... |
C0rmander/software3DEngine | Face3D.h | #ifndef FACE3D_H
#define FACE3D_H
#include "Vector3D.h"
struct Face3D
{
int f1,f2,f3;
Face3D()
{
}
Face3D(int a, int b, int c)
{
f1=a;
f2=b;
f3=c;
}
Face3D(const std::vector <float> &face)
{
if(face.size() == 3)
{
f1 = face[0];
f2 = face[1];
f3 = face[2];
}
else
{
... |
C0rmander/software3DEngine | Obj_Loader.h | #ifndef OBJ_LOADER_H
#define OBJ_LOADER_H
#include "Vector3D.h"
#include "Face3D.h"
#include <vector>
#include "Tex_Loader.h"
#include <map>
using namespace std;
class Obj_Loader
{
public:
Obj_Loader();
vector<struct Vector3D> verts(string OBJfile);
vector<struct Face3D> faces();
vec... |
C0rmander/software3DEngine | Draw.h | #ifndef DRAW_H
#define DRAW_H
#include "Draw.h"
#include "Vector3D.h"
#include <SDL.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include<windows.h>
#include <sstream>
#include <string>
using namespace std;
const int SCREEN_WIDTH = 640;
const int SCREEN_HEIGHT = 480;
class Draw
{
public:
... |
C0rmander/software3DEngine | Tex_Loader.h | #ifndef TEX_LOADER_H
#define TEX_LOADER_H
#include "Texture2D.h"
#include <string>
#include <vector>
#include "Face3D.h"
#include <SDL.h>
using namespace std;
class Tex_Loader
{
public:
Tex_Loader();
SDL_Surface* getTex(string TEXfile);
void setTexCoords(vector<Texture2D>& texcoords);
... |
C0rmander/software3DEngine | kiss_events_system.h | #ifndef KISS_EVENTS_SYSTEM_H
#define KISS_EVENTS_SYSTEM_H
#include "kiss_sdl.h"
#include <stdio.h>
#include <iostream>
#include<vector>
class kiss_events_system
{
public:
kiss_events_system();
static void text_reset(kiss_textbox *textbox, kiss_vscrollbar *vscrollbar);
static float hscrollba... |
C0rmander/software3DEngine | Texture2D.h | <filename>Texture2D.h
#ifndef TEXTURE2D_H
#define TEXTURE2D_H
#include <vector>
struct Texture2D
{
double Tx,Ty;
Texture2D()
{
}
Texture2D(double a, double b)
{
Tx=a;
Ty=b;
}
Texture2D(const std::vector <float> &tex)
{
// if(tex.size() == 2)
// {
Tx = tex[0];
Ty = tex[1];
// }
};
dou... |
C0rmander/software3DEngine | kiss_general.c | <reponame>C0rmander/software3DEngine
/*
kiss_sdl widget toolkit
Copyright (c) 2016 <NAME> <<EMAIL>>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone... |
C0rmander/software3DEngine | MTL.h | <filename>MTL.h<gh_stars>0
#ifndef MTL_H
#define MTL_H
#include <string>
#include "SDL.h"
#include "Vector3D.h"
struct MTL
{
Vector3D Ka,Kd,Ks;
std::string newMTL;
SDL_Surface* map_Kd = nullptr;
MTL()
{
}
MTL(std::string newmtl, Vector3D ka, Vector3D kd, Vector3D ks, SDL_Surface* map_kd)
{
newMTL = newmtl;
Ka ... |
C0rmander/software3DEngine | Vector3D.h | #ifndef VECTOR3D_H
#define VECTOR3D_H
#include <cmath>
#include <vector>
struct Vector3D
{
float x,y,z;
Vector3D()
{
}
//Vector3D(double& a, double& b, double& c)
//{
// x=a;
// y=b;
// z=c;
//};
Vector3D(const std::vector <float> &vertex)
{
if(vertex.size() == 3)
{
x = vertex[0];
y = v... |
C0rmander/software3DEngine | MathsFunc.h | #ifndef MATHSFUNC_H
#define MATHSFUNC_H
#include <vector>
#include "Vector3D.h"
#include "Face3D.h"
#include <string>
using namespace std;
class MathsFunc
{
public:
MathsFunc();
struct Vector3D minXY(struct Vector3D vec1,struct Vector3D vec2,struct Vector3D vec3, int xTransform, int yTransform, int sca... |
C0rmander/software3DEngine | FragmentShader.h | <gh_stars>0
#ifndef FRAGMENTSHADER_H
#define FRAGMENTSHADER_H
#include <vector>
#include "Face3D.h"
#include "Matrix3D.h"
#include <SDL.h>
#include <string>
#include "MTL.h"
using namespace std;
class FragmentShader
{
public:
FragmentShader(SDL_Renderer* render);
void get_scanline(const vector<MTL>&... |
C0rmander/software3DEngine | MTL_Loader.h | #ifndef MTL_LOADER_H
#define MTL_LOADER_H
#include <vector>
#include "Vector3D.h"
#include "SDL.h"
#include <string>
#include <unordered_map>
#include "MTL.h"
class MTL_Loader
{
public:
MTL_Loader();
std::vector<MTL> getMaterials();
std::vector<Vector3D> getAmbientColour();
std::vect... |
C0rmander/software3DEngine | Pixel.h | <filename>Pixel.h
#ifndef PIXEL_H
#define PIXEL_H
#include "Vector3D.h"
#include "SDL.h"
struct Pixel
{
Vector3D Coordinates, Colour, Normal;
Pixel();
Pixel(Vector3D coordinates, Vector3D colour, Vector3D normal)
{
Coordinates = coordinates;
Colour = colour;
Normal = normal;
}
};
#endif // PIXEL_H
|
C0rmander/software3DEngine | Widget.h | <reponame>C0rmander/software3DEngine
#ifndef WIDGET_H
#define WIDGET_H
#include "MathsFunc.h"
#include <stdio.h>
#include <iostream>
class Widget
{
public:
Widget();
DrawArrow(float x, float y, uint32_t colour);
protected:
private:
};
#endif // WIDGET_H
|
windayski/inclavare-containers | rune/libenclave/internal/runtime/pal/skeleton/arch.h | <reponame>windayski/inclavare-containers
/* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
/**
* Copyright(c) 2016-18 Intel Corporation.
*
* Contains data structures defined by the SGX architecture. Data structures
* defined by the Linux software stack should not be placed here.
*/
#ifndef _ASM_X86_SGX_ARC... |
windayski/inclavare-containers | rune/libenclave/internal/runtime/pal/skeleton/sgxsign.c | <gh_stars>0
// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
// Copyright(c) 2016-18 Intel Corporation.
#define _GNU_SOURCE
#include <getopt.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#incl... |
windayski/inclavare-containers | rune/libenclave/internal/runtime/pal/skeleton/sgx_call.h | /* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright(c) 2016-19 Intel Corporation.
*/
#ifndef SGX_CALL_H
#define SGX_CALL_H
#define ECALL_MAGIC 0
#define ECALL_REPORT 1
#define MAX_ECALLS 2
#define EEXIT 4
#define INIT_MAGIC 0xdeadfacedeadbeefUL
#ifndef __ASSEMBLER__
#define SGX_ENTER_1_ARG(ecall_num, tc... |
windayski/inclavare-containers | rune/libenclave/internal/runtime/pal/skeleton/encl.c | <filename>rune/libenclave/internal/runtime/pal/skeleton/encl.c
// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
// Copyright(c) 2016-18 Intel Corporation.
#include <stddef.h>
#include "defines.h"
#include "arch.h"
#include "sgx_call.h"
static void *memcpy(void *dest, const void *src, size_t n)
{
size_t i;
for... |
windayski/inclavare-containers | rune/libenclave/internal/runtime/pal/skeleton/liberpal-skeleton.h | <filename>rune/libenclave/internal/runtime/pal/skeleton/liberpal-skeleton.h
#ifndef LIBERPAL_SKELETON_H
#define LIBERPAL_SKELETON_H
#include <stdbool.h>
extern bool is_oot_driver;
extern bool debugging;
typedef struct {
const char *args;
const char *log_level;
} pal_attr_t;
typedef struct {
... |
windayski/inclavare-containers | rune/libenclave/internal/runtime/pal/skeleton/sgx.h | /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) WITH Linux-syscall-note */
/*
* Copyright(c) 2016-19 Intel Corporation.
*/
#ifndef _UAPI_ASM_X86_SGX_H
#define _UAPI_ASM_X86_SGX_H
#include <linux/types.h>
#include <linux/ioctl.h>
/**
* enum sgx_epage_flags - page control flags
* %SGX_PAGE_MEASURE: Measure th... |
wenwudong/tagVew | tagView/tagView/ViewController.h | //
// ViewController.h
// tagView
//
// Created by Mark on 16/1/11.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
/**
* 背景图
*/
@property (weak, nonatomic) IBOutlet UIImageView* backImage;
/**
* 菜名按钮
*/
@property (weak, nonatomic) IB... |
wenwudong/tagVew | tagView/tagView/MDTagView.h | //
// MDTagView.h
// tagView
//
// Created by Mark on 16/1/11.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MDTagView : UIView
/**
* 标签内容
*/
@property (copy, nonatomic) NSString* labelText;
/**
* 标签位置(暂时无用)
*/
@property (assign, nonatomic) CGPoint point;
/**
* 标签... |
wenwudong/tagVew | tagView/tagView/UIView+Frame.h |
#import <UIKit/UIKit.h>
/**
* 此扩展用于方便的修改控件的frame 获取控件的各个属性
*/
@interface UIView (Frame)
@property (nonatomic, assign) CGFloat x;
@property (nonatomic, assign) CGFloat y;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign) CGPoint origin;
@proper... |
Shokwav/errhndl | test.c | <reponame>Shokwav/errhndl
/* This file has no copyright assigned and is placed in the Public Domain. */
#include <stdio.h>
#include <stdlib.h>
#include "errhndl.h"
enum { test_error = 1 };
int main(void){
errinfo err;
ERRTRY(err,
ERRTHROW(err, test_error); /* Comment this out for no error */
puts("No error");
... |
Shokwav/errhndl | errhndl.h | /* This file has no copyright assigned and is placed in the Public Domain. */
#ifndef ERRHNDL_H
#define ERRHNDL_H
#include <setjmp.h>
/* "Internal" structure; only access through provided macros */
typedef struct {
jmp_buf buffer;
int type, in_try_block;
} errinfo;
#define ERRGET(err) ((err).type)
#... |
FahadGhouri/FreeRTOS_InterTaskCommunication | RTOS_IPC/WIN32-MSVC/main_exercise.c | /******************************************************************************
* NOTE: Windows will not be running the FreeRTOS demo threads continuously, so
* do not expect to get real time behaviour from the FreeRTOS Windows port, or
* this demo application. Also, the timing information in the FreeRTOS+Trace
* ... |
Ultracoolguy/retroarch-switch-updater | source/main.c | // Include the most common headers from the C standard library
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <curl/curl.h>
// Include the main libnx system header, for Switch development
#include <switch.h>
#include <minizip/unzip.h>
#define URL "http://buildbot.libretro.com/nightly/nintendo/switc... |
mikaelmessias/utfpr-algorithms | src/structures/graph/graph.h | <filename>src/structures/graph/graph.h
/****************************************************************************
* Copyright 2018 <NAME> <<EMAIL>>
*
* You can do whatever you want with this code, as long as you include the
* original copyright and license notice in any copy of the software/source.
* Furthermor... |
mikaelmessias/utfpr-algorithms | src/sort/merge.c | /****************************************************************************
* Copyright 2018 <NAME> <<EMAIL>>
*
* You can do whatever you want with this code, as long as you include the
* original copyright and license notice in any copy of the software/source.
* Furthermore, please read the LICENSE file for mor... |
mikaelmessias/utfpr-algorithms | src/structures/stack/stack.h | #ifndef STACK_H
#define STACK_H
typedef struct node *Stack;
Stack *stack_create();
void stack_push();
int stack_pop();
int stack_size();
void stack_destroy();
#endif |
mikaelmessias/utfpr-algorithms | src/sort/heap.c | <filename>src/sort/heap.c<gh_stars>0
/****************************************************************************
* Copyright 2018 <NAME> <<EMAIL>>
*
* You can do whatever you want with this code, as long as you include the
* original copyright and license notice in any copy of the software/source.
* Furthermore,... |
mikaelmessias/utfpr-algorithms | src/sort/vector.c | /****************************************************************************
* Copyright 2018 <NAME> <<EMAIL>>
*
* You can do whatever you want with this code, as long as you include the
* original copyright and license notice in any copy of the software/source.
* Furthermore, please read the LICENSE file for mor... |
mikaelmessias/utfpr-algorithms | src/sort/shell.c | /****************************************************************************
* Copyright 2018 <NAME> <<EMAIL>>
*
* You can do whatever you want with this code, as long as you include the
* original copyright and license notice in any copy of the software/source.
* Furthermore, please read the LICENSE file for mor... |
mikaelmessias/utfpr-algorithms | src/sort/insertion.c | /****************************************************************************
* Copyright 2018 <NAME> <<EMAIL>>
*
* You can do whatever you want with this code, as long as you include the
* original copyright and license notice in any copy of the software/source.
* Furthermore, please read the LICENSE file for mor... |
mikaelmessias/utfpr-algorithms | src/structures/graph/main.c | #include <stdio.h>
#include "graph.h"
int main() {
Graph *g = graph_create(3, 2, 0);
if(g) {
printf("Graph created sucessfully.\n\n");
printf("Vertices: %d\nMax degree: %d\nIs weighted? ", g->vertices, \
g->maxDegree);
if(g->isWeighted) {
printf("Yes\n");
}
else {
... |
mikaelmessias/utfpr-algorithms | src/structures/stack/stack.c | <reponame>mikaelmessias/utfpr-algorithms
#include <stdlib.h>
#include "stack.h"
struct node
{
int data;
struct node *prox;
};
typedef struct node Node;
Stack *stack_create()
{
Stack *stack = (Stack *)malloc(sizeof(Stack));
if (stack != NULL)
{
*stack = NULL;
}
return stack;
} |
mikaelmessias/utfpr-algorithms | src/sort/selection.c | <filename>src/sort/selection.c
/****************************************************************************
* Copyright 2018 <NAME> <<EMAIL>>
*
* You can do whatever you want with this code, as long as you include the
* original copyright and license notice in any copy of the software/source.
* Furthermore, pleas... |
mikaelmessias/utfpr-algorithms | src/sort/sort.h | /****************************************************************************
* Copyright 2018 <NAME> <<EMAIL>>
*
* You can do whatever you want with this code, as long as you include the
* original copyright and license notice in any copy of the software/source.
* Furthermore, please read the LICENSE file for mor... |
mikaelmessias/utfpr-algorithms | src/sort/main.c | /****************************************************************************
* Copyright 2018 <NAME> <<EMAIL>>
*
* You can do whatever you want with this code, as long as you include the
* original copyright and license notice in any copy of the software/source.
* Furthermore, please read the LICENSE file for mor... |
mikaelmessias/utfpr-algorithms | src/structures/stack/main.c | <filename>src/structures/stack/main.c
#include <stdio.h>
#include "stack.h"
int main()
{
Stack *stack = stack_create();
printf("%lx", sizeof(stack));
return 0;
} |
mikaelmessias/utfpr-algorithms | src/sort/vector.h | <gh_stars>0
/****************************************************************************
* Copyright 2018 <NAME> <<EMAIL>>
*
* You can do whatever you want with this code, as long as you include the
* original copyright and license notice in any copy of the software/source.
* Furthermore, please read the LICENSE ... |
mikaelmessias/utfpr-algorithms | src/sort/bubble.c | /****************************************************************************
* Copyright 2018 <NAME> <<EMAIL>>
*
* You can do whatever you want with this code, as long as you include the
* original copyright and license notice in any copy of the software/source.
* Furthermore, please read the LICENSE file for mor... |
mikaelmessias/utfpr-algorithms | src/structures/graph/graph.c | <reponame>mikaelmessias/utfpr-algorithms
/****************************************************************************
* Copyright 2018 <NAME> <<EMAIL>>
*
* You can do whatever you want with this code, as long as you include the
* original copyright and license notice in any copy of the software/source.
* Furtherm... |
mikaelmessias/utfpr-algorithms | src/sort/quick.c | <reponame>mikaelmessias/utfpr-algorithms
/****************************************************************************
* Copyright 2018 <NAME> <<EMAIL>>
*
* You can do whatever you want with this code, as long as you include the
* original copyright and license notice in any copy of the software/source.
* Furtherm... |
bvbfan/sslxx | sslxx.h | <filename>sslxx.h
///////////////////////////////////////////////////////////////////////////////
/// \author (c) <NAME> (<EMAIL>)
/// 2017, <NAME>
///
/// \license The MIT License (MIT)
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated docu... |
cojosef96/OpenSfM | opensfm/src/map/rig.h | <reponame>cojosef96/OpenSfM
#pragma once
#include <geometry/camera.h>
#include <geometry/pose.h>
#include <map/defines.h>
#include <map/shot.h>
#include <exception>
#include <set>
#include <unordered_map>
namespace map {
struct RigCamera {
/* Pose of the camera wrt. the rig coordinate frame */
geometry::Pose pos... |
cojosef96/OpenSfM | opensfm/src/bundle/bundle_adjuster.h | <gh_stars>0
#pragma once
#include <bundle/data/camera.h>
#include <bundle/data/data.h>
#include <bundle/data/pose.h>
#include <bundle/data/rig.h>
#include <bundle/data/shot.h>
#include <foundation/optional.h>
#include <geometry/camera.h>
#include <geometry/pose.h>
#include <cmath>
#include <cstdio>
#include <fstream>... |
cojosef96/OpenSfM | opensfm/src/map/shot.h | #pragma once
#include <foundation/optional.h>
#include <geometry/camera.h>
#include <geometry/pose.h>
#include <map/defines.h>
#include <map/landmark.h>
#include <sfm/observation.h>
#include <Eigen/Eigen>
#include <iostream>
#include <unordered_map>
namespace map {
class Map;
class RigInstance;
struct RigCamera;
str... |
cojosef96/OpenSfM | opensfm/src/bundle/data/rig.h | <reponame>cojosef96/OpenSfM
#pragma once
#include <bundle/data/camera.h>
#include <bundle/data/data.h>
#include <bundle/data/pose.h>
namespace bundle {
using RigCamera = Pose;
struct RigModel : public DataContainer {
RigModel(
const std::string &id,
const std::unordered_map<std::string, geometry::Pose... |
EduardPetcu/Editor-text | nodes.h | <gh_stars>0
typedef struct node
{
char data;
struct node * next;
struct node * prev;
} node;
typedef struct TDoubleLinkedList
{
node *head;
node *tail;
int len;
} TDoubleLinkedList;
typedef struct ListaNode
{
TDoubleLinkedList linie;
struct ListaNode * urmator;
struct... |
EduardPetcu/Editor-text | functions.h | <gh_stars>0
#include "nodes.h"
void initL(TDoubleLinkedList **list)
{
(*list) = malloc(sizeof(TDoubleLinkedList));
(*list)->head = NULL;
(*list)->tail = NULL;
(*list)->len=0;
}
void initListaLista()
{
lis = malloc(sizeof(ListaLista));
lis->cap = NULL;
lis->coada = NULL;
lis-... |
EduardPetcu/Editor-text | Editor_text.c | <gh_stars>0
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include "nodes.h"
#define LMAX 100
ListaLista *lis;
FILE *input,*output;
bool text_mode=1;
int middleInsert=0,cate;
pozitie cursor= {1,1},cc,semn= {0,0};
stiva *undo,*redo,*strings;
stivaIndici *ind,*indredo,*chars,... |
koreadragon/fuckpods | fuckpods/fuckpods/fuckpods/fuck.h | <reponame>koreadragon/fuckpods
//
// fuck.h
// fuckpods
//
// Created by koreadragon on 2020/5/28.
// Copyright © 2020 cytx. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface fuck : NSObject
+(void)printVersion;
@end
NS_ASSUME_NONNULL_END
|
MartinWeindel/differential-datalog | rust/template/ddlog_ovsdb_test.c | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include "ddlog.h"
int main(int args, char *argv)
{
ddlog_prog prog = ddlog_run(1, true, NULL, 0);
if (prog == NULL) {
fprintf(stderr, "failed to initialize DDlog program\n");
return -1;
};
// Each line in the input stream is a JSON <table-updates> ... |
MartinWeindel/differential-datalog | lib/ddlog_log.h | /*
* C prototypes for the logging API (see `log.dl`, `log.rs`)
*/
/*
* Set logging callback and log level for a given module.
*
* `module` - Opaque module identifier. Can represent module, subsystem, log
* stream, etc.
* `cb` - Callback to be invoked for each log message with the given ... |
xnox/shim | include/test.h | // SPDX-License-Identifier: BSD-2-Clause-Patent
/*
* test.h - fake a bunch of EFI types so we can build test harnesses with libc
* Copyright <NAME> <<EMAIL>>
*/
#ifdef SHIM_UNIT_TEST
#ifndef TEST_H_
#define TEST_H_
#include <stdarg.h>
#if defined(__aarch64__)
#include <aa64/efibind.h>
#elif defined(__arm__)
#incl... |
xnox/shim | test-sbat.c | // SPDX-License-Identifier: BSD-2-Clause-Patent
/*
* test-sbat.c - test our sbat functions.
*/
#ifndef SHIM_UNIT_TEST
#define SHIM_UNIT_TEST
#endif
#include "shim.h"
#include <stdio.h>
#define MAX_SIZE 512
list_t sbat_var;
#if 0
/*
* Mock test helpers
*/
static struct sbat_entry *
create_mock_sbat_entry(const ... |
xnox/shim | include/str.h | <gh_stars>0
// SPDX-License-Identifier: BSD-2-Clause-Patent
#ifndef SHIM_STR_H
#define SHIM_STR_H
#ifdef SHIM_UNIT_TEST
#pragma GCC diagnostic error "-Wnonnull-compare"
#else
#pragma GCC diagnostic ignored "-Wnonnull-compare"
#endif
static inline UNUSED NONNULL(1) unsigned long
strnlena(const CHAR8 *s, unsigned long... |
xnox/shim | test-str.c | // SPDX-License-Identifier: BSD-2-Clause-Patent
/*
* test-str.c - test our string functions.
*/
#ifndef SHIM_UNIT_TEST
#define SHIM_UNIT_TEST
#endif
#include "shim.h"
#include <stdio.h>
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic error "-Wnonnull"
int
test_strchrnul(void)
{
const ch... |
xnox/shim | include/sbat.h | <gh_stars>0
// SPDX-License-Identifier: BSD-2-Clause-Patent
/*
* sbat.c - parse SBAT data from the .sbat section data
*/
#ifndef SBAT_H_
#define SBAT_H_
extern UINTN _sbat, _esbat;
struct sbat_var_entry {
const CHAR8 *component_name;
const CHAR8 *component_generation;
/*
* This column is only actually on the ... |
xnox/shim | include/hexdump.h | // SPDX-License-Identifier: BSD-2-Clause-Patent
#ifndef STATIC_HEXDUMP_H
#define STATIC_HEXDUMP_H
#include <stdint.h>
static inline unsigned long UNUSED
prepare_hex(const void *data, size_t size, char *buf, unsigned int position)
{
char hexchars[] = "0123456789abcdef";
int offset = 0;
unsigned long i;
unsigned l... |
HexabitzPlatform/H0BR4x-Firmware | H0BR4/H0BR4.h | <reponame>HexabitzPlatform/H0BR4x-Firmware
/*
BitzOS (BOS) V0.2.5 - Copyright (C) 2017-2021 Hexabitz
All rights reserved
File Name : H0BR4.c
Description : Header file for module H0BR4.
IMU (ST LSM6DS3TR) + Digital Compass (ST LSM303AGRTR)
*/
/* Define to prevent recursive inclusion ----------------------... |
HexabitzPlatform/H0BR4x-Firmware | H0BR4/H0BR4.c | <gh_stars>1-10
/*
BitzOS (BOS) V0.2.5 - Copyright (C) 2017-2021 Hexabitz
All rights reserved
File Name : H0BR4.c
Description : Source code for module H0BR4.
IMU (ST LSM6DS3TR) + Digital Compass (ST LSM303AGRTR)
Required MCU resources :
>> USARTs 1,2,3,4,5,6 for module ports.
>> I2C2 for LSM6DS3TR an... |
HexabitzPlatform/H0BR4x-Firmware | H0BR4/H0BR4_i2c.h | <reponame>HexabitzPlatform/H0BR4x-Firmware
/*
BitzOS (BOS) V0.2.5 - Copyright (C) 2017-2021 Hexabitz
All rights reserved
File Name : H08R6_i2c.h
Description : This file contains all the functions prototypes for
the i2c
*/
/* Define to prevent recursive inclusion --------------------------------... |
HexabitzPlatform/H0BR4x-Firmware | H0BR4/H0BR4_i2c.c | <reponame>HexabitzPlatform/H0BR4x-Firmware
/*
BitzOS (BOS) V0.2.5 - Copyright (C) 2017-2021 Hexabitz
All rights reserved
File Name : H0BR4_i2c.c
Description : This file provides code for the configuration
of the I2C instances.
*/
/* Includes -----------------------------------------------------... |
84KaliPleXon3/sslstrip-hsts-openwrt | python2.7/site-packages/twisted/internet/iocpreactor/_iocp.c | #include <Python.h>
#include <winsock2.h>
#include <mswsock.h>
#include <windows.h>
#include "structmember.h"
static int g_imallocs, g_ifrees, g_amallocs, g_afrees;
static int g_incobj, g_decobj, g_incarg, g_decarg;
static PyObject * callWithLogger;
//#define SPEW
// compensate for mingw's (and MSVC6's) lack of recen... |
84KaliPleXon3/sslstrip-hsts-openwrt | python2.7/site-packages/twisted/python/_epoll.c | <gh_stars>100-1000
/* Generated by Pyrex 0.9.4.1 on Sun Oct 15 15:04:09 2006 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "structmember.h"
#ifndef PY_LONG_LONG
#define PY_LONG_LONG LONG_LONG
#endif
#if PY_VERSION_HEX < 0x02050000
typedef int Py_ssize_t;
#define PY_SSIZE_T_MAX INT_MAX
#define PY_SSI... |
84KaliPleXon3/sslstrip-hsts-openwrt | python2.7/site-packages/twisted/protocols/_c_urlarg.c | /*
* Copyright (c) 2001-2004 Twisted Matrix Laboratories.
* See LICENSE for details.
*
*/
/* _c_urlarg.c */
#ifdef __cplusplus
extern "C" {
#endif
#include <Python.h>
#include <cStringIO.h>
#ifdef __cplusplus
}
#endif
#ifdef __GNUC__
# define TM_INLINE inline
#else
# define TM_INLINE /* */
#endif
st... |
84KaliPleXon3/sslstrip-hsts-openwrt | python2.7/site-packages/twisted/internet/cfsupport/cfsupport.c | <gh_stars>10-100
/* Generated by Pyrex 0.9.3 on Sat Mar 12 04:43:18 2005 */
#include "Python.h"
#include "structmember.h"
#ifndef PY_LONG_LONG
#define PY_LONG_LONG LONG_LONG
#endif
#include "pymactoolbox.h"
typedef struct {PyObject **p; char *s;} __Pyx_InternTabEntry; /*proto*/
typedef struct {PyObject **p; char *... |
skn123/penguinV | test/performance_tests/cuda/performance_test_image_function_cuda.h | #pragma once
class PerformanceTestFramework;
void addTests_Image_Function_Cuda( PerformanceTestFramework & framework );
|
skn123/penguinV | test/unit_tests/unit_test_image_function.h | #pragma once
class UnitTestFramework;
void addTests_Image_Function( UnitTestFramework & framework );
|
skn123/penguinV | test/unit_tests/unit_test_file.h | #pragma once
class UnitTestFramework;
void addTests_File( UnitTestFramework & framework );
|
skn123/penguinV | test/performance_tests/performance_test_edge_detection.h | <reponame>skn123/penguinV<gh_stars>100-1000
#pragma once
class PerformanceTestFramework;
void addTests_Edge_Detection( PerformanceTestFramework & framework );
|
skn123/penguinV | test/performance_tests/performance_test_blob_detection.h | #pragma once
class PerformanceTestFramework;
void addTests_Blob_Detection( PerformanceTestFramework & framework );
|
skn123/penguinV | src/opencl/image_buffer_opencl.h | #pragma once
#if defined(__APPLE__) || defined(__MACOSX)
#include <OpenCL/cl.h>
#else
#include <CL/cl.h>
#endif
#include "../image_buffer.h"
#include "opencl_device.h"
namespace penguinV
{
template <typename TColorDepth>
class ImageTemplateOpenCL : public ImageTemplate<TColorDepth>
{
public:
... |
skn123/penguinV | test/unit_tests/unit_test_edge_detection.h | #pragma once
class UnitTestFramework;
void addTests_Edge_Detection( UnitTestFramework & framework );
|
skn123/penguinV | test/unit_tests/opencl/unit_test_image_function_opencl.h | #pragma once
class UnitTestFramework;
void addTests_Image_Function_OpenCL( UnitTestFramework & framework );
|
skn123/penguinV | test/performance_tests/opencl/performance_test_image_function_opencl.h | #pragma once
class PerformanceTestFramework;
void addTests_Image_Function_OpenCL( PerformanceTestFramework & framework );
|
skn123/penguinV | test/unit_tests/unit_test_image_buffer.h | <gh_stars>100-1000
#pragma once
class UnitTestFramework;
void addTests_Image_Buffer( UnitTestFramework & framework );
|
skn123/penguinV | src/penguinv_exception.h | #pragma once
#include <exception>
#include <string>
// Thanks to Visual Studio noexcept is no supported so we have to do like this :(
#ifndef _MSC_VER
#define NOEXCEPT noexcept
#else
#define NOEXCEPT
#endif
class penguinVException : public std::exception
{
public:
penguinVException()
: _name( "unknown i... |
skn123/penguinV | test/unit_tests/cuda/unit_test_image_function_cuda.h | <filename>test/unit_tests/cuda/unit_test_image_function_cuda.h
#pragma once
class UnitTestFramework;
void addTests_Image_Function_Cuda( UnitTestFramework & framework );
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.