repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
serkan3k/dgp | Kmeans.h | class KMeans{
private:
int dimension_data;
int number_clusters;
public:
double **centroid;
KMeans(int dimension_data, int number_clusters);
~KMeans();
// forgy method
void Initialize(int number_data, double **data);
int Classify(double data[]);
double Cluster(int number_data, double **data);
};
|
serkan3k/dgp | Painter.h | #pragma once
#define HAVE_SINGLEPRECISION_MATH
#define _CRT_SECURE_NO_WARNINGS
#define COIN_DLL
#define HAVE_INT8_T
#include <Inventor/nodes/SoMaterial.h>
#include <Inventor/nodes/SoCoordinate3.h>
#include <Inventor/nodes/SoIndexedFaceSet.h>
#include <Inventor/nodes/SoSeparator.h>
#include <Inventor/nodes/SoShapeHints.... |
serkan3k/dgp | Mesh.h | <filename>Mesh.h
#pragma once
#define HAVE_SINGLEPRECISION_MATH
#define _CRT_SECURE_NO_WARNINGS
#define COIN_DLL
#define HAVE_INT8_T
#include <iostream>
#include <vector>
#include <Inventor/fields/SoMFColor.h>
using namespace std;
struct Vertex
{
float* coords, * normals; //3d coordinates etc
int idx; //who am i; v... |
serkan3k/dgp | Matrix.h | #include <string>
using namespace std;
class Matrix{
private:
int number_rows;
int number_columns;
int **index_M;
int **index_N;
public:
Matrix();
~Matrix();
void Inverse(string type_matrix, int number_rows, float **M, float **N);
void Inverse(string type_matrix, int number_rows, double **M, double **N);
v... |
martinventer/musical-dollop | qd/cae/dyna_cpp/dyna/binout/lsda/lsda.c | <filename>qd/cae/dyna_cpp/dyna/binout/lsda/lsda.c
/*
Copyright (C) 2002
by Livermore Software Technology Corp. (LSTC)
All rights reserved
NOTE: things to consider working on/fixing some day. In the open/openmany
routines, I'm not sure what will happen if the file name passed in has
a %XXX on the end already. I... |
martinventer/musical-dollop | qd/cae/dyna_cpp/dyna/binout/lsda/btree.h | #ifdef __cplusplus
extern "C"{
#endif
typedef int BT_CompFunc(void *,void *);
void *BT_new(BT_CompFunc *compare);
#define BT_store(a,b) BT_lookup((a),(b),1)
void BT_delete(void *bt, void *key);
void *BT_lookup(void *bt, void *data, int store);
int BT_numentries(void *bt);
void *BT_enumerate(void *bt, int *cont);
void B... |
martinventer/musical-dollop | qd/cae/dyna_cpp/dyna/binout/lsda/l2a_version.h | <filename>qd/cae/dyna_cpp/dyna/binout/lsda/l2a_version.h
#define L2A_REVISION "93473"
|
martinventer/musical-dollop | qd/cae/dyna_cpp/dyna/binout/lsda/l2a.c | /*
Copyright (C) 2002
by Livermore Software Technology Corp. (LSTC)
All rights reserved
*/
#include <stdlib.h>
#include <stdio.h>
#ifdef MACX
#include <sys/malloc.h>
#else
#include <malloc.h>
#endif
#include <ctype.h>
#include <string.h>
#include <math.h>
/* Requested by ARUP for portability */
#ifndef LOCALIZED... |
martinventer/musical-dollop | qd/cae/dyna_cpp/dyna/binout/lsda/trans.c | <gh_stars>100-1000
/*
Copyright (C) 2002
by Livermore Software Technology Corp. (LSTC)
All rights reserved
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if defined WIN32 || defined WIN64
#include <windows.h>
#endif
#include "lsda.h"
#include "lsda_internal.h"
static int little_i = 1;
#define lit... |
martinventer/musical-dollop | qd/cae/dyna_cpp/dyna/binout/lsda/lsda.h | <filename>qd/cae/dyna_cpp/dyna/binout/lsda/lsda.h
#ifndef LSDA_H
#define LSDA_H
#ifdef __cplusplus
extern "C" {
#endif
#undef EXTERN
#ifdef __BUILD_LSDA__
#define EXTERN
#else
#define EXTERN extern
#endif
typedef size_t LSDA_Offset;
typedef size_t LSDA_Length;
typedef unsigned char LSDA_Command;
typedef unsigned cha... |
martinventer/musical-dollop | qd/cae/dyna_cpp/dyna/binout/lsda/lsdatypes.c | <filename>qd/cae/dyna_cpp/dyna/binout/lsda/lsdatypes.c<gh_stars>100-1000
/*
Copyright (C) 2002
by Livermore Software Technology Corp. (LSTC)
All rights reserved
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if defined WIN32 || defined WIN64
#include <windows.h>
#endif
#include "lsda.h"
#include "... |
martinventer/musical-dollop | qd/cae/dyna_cpp/dyna/binout/lsda/lsdatable.c | /*
Copyright (C) 2002
by Livermore Software Technology Corp. (LSTC)
All rights reserved
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if defined WIN32 || defined WIN64
#include <windows.h>
#endif
#include "lsda.h"
#include "lsda_internal.h"
typedef struct _tf
{
void* p;
struct _tf* next;
} T... |
martinventer/musical-dollop | qd/cae/dyna_cpp/dyna/binout/lsda/define.h | <gh_stars>100-1000
#define NODIALS 1
#define NOGL 1
#define NOOGL 1
#define NOMOTIF 1
#define NOPEX 1
#define NOPHIGS 1
#define HIGHFIRST
#define ORDER_ABCD
#ifdef AUTODOUBLE
#define FortranMindex long long
#define FortranInteger long long
#define FortranI8 long long
#define FortranRea... |
martinventer/musical-dollop | qd/cae/dyna_cpp/dyna/binout/lsda/btree.c | /*
Copyright (C) 2002
by Livermore Software Technology Corp. (LSTC)
All rights reserved
*/
#define __BUILD_BTREE__
#include <stdio.h>
#include <stdlib.h>
#if defined WIN32 || defined WIN64 || defined MPPWIN
#include <windows.h>
#include <direct.h>
#endif
#include "btree.h"
#ifdef VISIBLE
#define STATIC
#else
#d... |
martinventer/musical-dollop | qd/cae/dyna_cpp/dyna/binout/lsda/lsda_internal.h | #ifndef LSDA_INTERNAL_H
#define LSDA_INTERNAL_H
#include "define.h"
#define _HAVE_R4
typedef float TYPE_R4;
#define _HAVE_R8
typedef double TYPE_R8;
#define FP_FORMAT 0 /* 0 = IEEE, others someday....???? */
typedef void (*_CF)(void* vp1, void* pv2, int count);
#ifndef TRUE
#define TRUE 1
#define FALSE 0
#endif
#de... |
martinventer/musical-dollop | qd/cae/dyna_cpp/dyna/binout/lsda/l2amain.c | #include <ctype.h>
#include <malloc.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "l2a_version.h"
#include "lsda.h"
extern int
translate_secforc(int handle);
extern int
translate_rwforc(int handle);
extern int
translate_nodout(int handle);
extern int
tran... |
martinventer/musical-dollop | qd/cae/dyna_cpp/dyna/d3plot/femzip.h | #ifdef FEMZIP_LCASE_USCORE
#define GEOMETRY_READ geometry_read_
#define FEMUNZIPLIB_VERSION femunziplib_version_
#define FEMUNZIPLIB_VERSION_FILE femunziplib_version_file
#define STATES_READ states_read_
#define GLOBAL_READ global_read_
#define DISP_READ_ONLY disp_read_only_
#define STATES_CLOSE states_close_
#define C... |
martinventer/musical-dollop | qd/cae/dyna_cpp/dyna/binout/lsda/lsdaf2c.c | <gh_stars>100-1000
/*
Copyright (C) 2002
by Livermore Software Technology Corp. (LSTC)
All rights reserved
*/
#define __BUILD_LSDAF2C__
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if !defined _WIN32 && !defined WIN64 && !defined MPPWIN
#include <dirent.h>
#include <unistd.h>
#define DIR_SEP '/'
#e... |
lighttpd/evcon | src/backend-glib/glib-backend.c | <reponame>lighttpd/evcon
#define _GNU_SOURCE
#include <evcon-glib.h>
#include <evcon-allocator.h>
#include <evcon-backend.h>
#include <evcon-config-private.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#define UNUSED(x) ((void)(x))
#ifndef EVCON_GLIB_COMPAT_API
# if GLIB_MAJOR_VERSION == 2 && GLIB... |
lighttpd/evcon | src/core/evcon-backend.h | <gh_stars>1-10
#ifndef __EVCON_EVCON_BACKEND_H
#define __EVCON_EVCON_BACKEND_H __EVCON_EVCON_BACKEND_H
#include <evcon.h>
typedef void (*evcon_backend_free_loop_cb)(evcon_loop *loop, void *loop_data, void *backend_data);
/* fd == -1: delete watcher */
typedef void (*evcon_backend_fd_update_cb)(evcon_fd_watcher *watc... |
lighttpd/evcon | src/backend-glib/evcon-glib.h | <reponame>lighttpd/evcon
#ifndef __EVCON_EVCON_GLIB_H
#define __EVCON_EVCON_GLIB_H __EVCON_EVCON_GLIB_H
#include <evcon.h>
#include <glib.h>
evcon_allocator* evcon_glib_allocator(void);
evcon_loop* evcon_loop_from_glib(GMainContext *ctx, evcon_allocator *allocator);
GMainContext* evcon_loop_glib_get_context(evcon_l... |
lighttpd/evcon | src/tests/evcon-echo.c | <reponame>lighttpd/evcon
#include "evcon-echo.h"
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#define UNUSED(x) ((void)(x))
static void echo_server_con_cb(evcon_loop *loop, evcon_fd_watcher *watcher, evcon_fd fd, int revents, void*... |
lighttpd/evcon | src/backend-event/evcon-event.h | #ifndef __EVCON_EVCON_EVENT_H
#define __EVCON_EVCON_EVENT_H __EVCON_EVCON_EVENT_H
#include <evcon.h>
#include <event2/event.h>
evcon_loop* evcon_loop_from_event(struct event_base *base, evcon_allocator* allocator);
#endif
|
lighttpd/evcon | src/tests/evcon-test-glib.c | <filename>src/tests/evcon-test-glib.c
#include "evcon-echo.h"
#include <evcon-glib.h>
#define UNUSED(x) ((void)(x))
static void test_glib_client_finished_cb(EchoClient* client, void *user_data) {
GMainLoop *loop = (GMainLoop*) user_data;
UNUSED(client);
g_main_loop_quit(loop);
}
static void test_glib(void) {
... |
lighttpd/evcon | src/backend-ev/evcon-ev.h | #ifndef __EVCON_EVCON_EV_H
#define __EVCON_EVCON_EV_H __EVCON_EVCON_EV_H
#include <evcon.h>
#include <ev.h>
evcon_loop* evcon_loop_from_ev(struct ev_loop *loop, evcon_allocator* allocator);
#endif
|
lighttpd/evcon | src/tests/evcon-test-event.c | <reponame>lighttpd/evcon
#include "evcon-echo.h"
#include <evcon-event.h>
#define UNUSED(x) ((void)(x))
static void test_event_client_finished_cb(EchoClient* client, void *user_data) {
struct event_base *base = (struct event_base*) user_data;
UNUSED(client);
event_base_loopbreak(base);
}
static void test_even... |
lighttpd/evcon | src/core/evcon.h | #ifndef __EVCON_EVCON_H
#define __EVCON_EVCON_H __EVCON_EVCON_H
#include <evcon-config.h>
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
/* (positive) time interval in milliseconds; negative values have sp... |
lighttpd/evcon | src/backend-event/event-backend.c | <filename>src/backend-event/event-backend.c
#include <evcon-event.h>
#include <evcon-allocator.h>
#include <evcon-backend.h>
#include <evcon-config-private.h>
#include <glib.h>
#define UNUSED(x) ((void)(x))
/* event loop wrapper */
static void evcon_event_free_loop(evcon_loop *loop, void *loop_data, void *backen... |
lighttpd/evcon | src/core/evcon.c |
#include <evcon.h>
#include <evcon-backend.h>
#include <evcon-allocator.h>
#include <evcon-config-private.h>
#include <assert.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#define EVCON_STR_LEN(s) (s), (sizeof(s)-1)
struct evcon_allocator {
void* user_data;
... |
lighttpd/evcon | src/tests/evcon-echo.h | <gh_stars>1-10
#ifndef __EVCON_ECHO_H
#define __EVCON_ECHO_H __EVCON_ECHO_H
#include <evcon.h>
#include <glib.h>
#include <time.h>
typedef struct EchoServerConnection EchoServerConnection;
typedef struct EchoServer EchoServer;
struct EchoServerConnection {
EchoServer *srv;
evcon_fd_watcher *conn_watcher;
GList c... |
lighttpd/evcon | src/backend-ev/ev-backend.c |
#include <evcon-ev.h>
#include <evcon-allocator.h>
#include <evcon-backend.h>
#include <evcon-config-private.h>
#include <glib.h>
#define UNUSED(x) ((void)(x))
/* ev loop wrapper */
static void evcon_ev_free_loop(evcon_loop *loop, void *loop_data, void *backend_data) {
UNUSED(loop);
UNUSED(backend_data);
UNUS... |
lighttpd/evcon | src/tests/evcon-test-ev.c | <filename>src/tests/evcon-test-ev.c
#include "evcon-echo.h"
#include <evcon-ev.h>
#include <evcon-glib.h>
#define UNUSED(x) ((void)(x))
static void test_ev_client_finished_cb(EchoClient* client, void *user_data) {
struct ev_loop *loop = (struct ev_loop*) user_data;
UNUSED(client);
ev_break(loop, EVBREAK_ONE);
}
... |
lighttpd/evcon | src/core/evcon-allocator.h | <gh_stars>1-10
#ifndef __EVCON_EVCON_ALLOCATOR_H
#define __EVCON_EVCON_ALLOCATOR_H __EVCON_EVCON_ALLOCATOR_H
#include <evcon.h>
/* Slab allocator */
/*
* public interface
*/
void* evcon_alloc(evcon_allocator* allocator, size_t size);
void* evcon_alloc0(evcon_allocator* allocator, size_t size);
void evcon_free(evc... |
lighttpd/evcon | src/backend-glib/glib-allocator.c |
#include <evcon-glib.h>
#include <evcon-allocator.h>
#include <evcon-config-private.h>
#define UNUSED(x) ((void)(x))
/* GLib slice wrapper */
static void* evcon_glib_alloc_cb(size_t size, void* user_data) {
UNUSED(user_data);
return g_slice_alloc(size);
}
static void evcon_glib_free_cb(void *ptr, size_t size, ... |
duf1991/TestLib | Example/TestLib/TSViewController.h | <reponame>duf1991/TestLib
//
// TSViewController.h
// TestLib
//
// Created by <NAME> on 11/16/2017.
// Copyright (c) 2017 <NAME>. All rights reserved.
//
@import UIKit;
@interface TSViewController : UIViewController
@end
|
duf1991/TestLib | Example/TestLib/TSAppDelegate.h | <reponame>duf1991/TestLib
//
// TSAppDelegate.h
// TestLib
//
// Created by <NAME> on 11/16/2017.
// Copyright (c) 2017 <NAME>. All rights reserved.
//
@import UIKit;
@interface TSAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
ayourtch/netsnmp-sys | inc.h | #include <net-snmp/net-snmp-config.h>
#include <net-snmp/session_api.h>
#include <net-snmp/config_api.h>
#include <net-snmp/library/snmp_api.h>
#include <net-snmp/mib_api.h>
#include <net-snmp/output_api.h>
#include <net-snmp/pdu_api.h>
#include <net-snmp/session_api.h>
#include <net-snmp/snmpv3_api.h>
#include <net-s... |
ayourtch/netsnmp-sys | inc_agent.h | <reponame>ayourtch/netsnmp-sys
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/library/container.h>
#include <net-snmp/agent/net-snmp-agent-includes.h> |
cztomsik/graff | libgraffiti/examples/hello.c | // clang -I ../include hello.c -L ../target/debug -lgraffiti -o hello && ./hello
#include <stdio.h>
#include <graffiti.h>
int main() {
Ref_App app = gft_App_init();
Ref_Window win = gft_Window_new("Hello", 400, 300);
Ref_Document doc = gft_Document_new();
Ref_Element div = gft_Document_create_element(doc, "d... |
cztomsik/graff | libgraffiti/include/graffiti.h | <gh_stars>100-1000
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
enum NodeType {
Element = 1,
Text = 3,
Comment = 8,
Document = 9,
};
typedef uint32_t NodeType;
typedef uint32_t Ref_Value;
typedef uint32_t Ref_Vec_Value;
typedef uint32_t Ref_String;
typedef uint32_t Ref_A... |
rzhao271/endstream | include/endstream/endistringstream.h | #ifndef RAYZZ_END_STREAM_END_ISTRINGSTREAM_H_
#define RAYZZ_END_STREAM_END_ISTRINGSTREAM_H_
#include <sstream>
#include <memory>
#include "endianness.h"
#include "endistream.h"
namespace rayzz {
namespace endstream {
class endistringstream : public std::istringstream, public endistream {
stru... |
rzhao271/endstream | include/endstream/endostringstream.h | #ifndef RAYZZ_END_STREAM_END_OSTRINGSTREAM_H_
#define RAYZZ_END_STREAM_END_OSTRINGSTREAM_H_
#include <sstream>
#include <memory>
#include "endianness.h"
#include "endostream.h"
namespace rayzz {
namespace endstream {
class endostringstream : public std::ostringstream, public endostream {
stru... |
rzhao271/endstream | include/endstream/endstream.h | #ifndef RAYZZ_END_STREAM_END_STREAM_H_
#define RAYZZ_END_STREAM_END_STREAM_H_
#include "endianness.h"
namespace rayzz {
namespace endstream {
class endstream {
public:
virtual endianness get_endianness() const = 0;
virtual void set_endianness(endianness endianness) = 0;
... |
rzhao271/endstream | include/endstream/endistream.h | #ifndef RAYZZ_END_STREAM_END_ISTREAM_H_
#define RAYZZ_END_STREAM_END_ISTREAM_H_
#include <istream>
#include "endstream.h"
namespace rayzz {
namespace endstream {
class endistream : public endstream {
public:
virtual std::istream& read(int8_t& val) = 0;
virtual std::istream... |
rzhao271/endstream | include/endstream/endostream.h | <filename>include/endstream/endostream.h
#ifndef RAYZZ_END_STREAM_END_OSTREAM_H_
#define RAYZZ_END_STREAM_END_OSTREAM_H_
#include <ostream>
#include "endstream.h"
namespace rayzz {
namespace endstream {
class endostream : public endstream {
public:
virtual std::ostream& write(int8_t v... |
rzhao271/endstream | include/endstream/endianness.h | #ifndef RAYZZ_END_STREAM_ENDIANNESS_H_
#define RAYZZ_END_STREAM_ENDIANNESS_H_
namespace rayzz {
namespace endstream {
typedef enum class _endianness {
ES_LITTLE_ENDIAN,
ES_BIG_ENDIAN
} endianness;
}
}
#endif
|
rzhao271/endstream | include/endstream/endofstream.h | #ifndef RAYZZ_END_STREAM_END_OFSTREAM_H_
#define RAYZZ_END_STREAM_END_OFSTREAM_H_
#include <fstream>
#include <memory>
#include "endianness.h"
#include "endostream.h"
namespace rayzz {
namespace endstream {
class endofstream : public std::ofstream, public endostream {
struct impl;
... |
rzhao271/endstream | include/endstream/system_endianness.h | <gh_stars>0
#ifndef RAYZZ_END_STREAM_SYSTEM_ENDIANNESS_H_
#define RAYZZ_END_STREAM_SYSTEM_ENDIANNESS_H_
#include "endianness.h"
namespace rayzz {
namespace endstream {
class system_endianness {
public:
static endianness get_system_endianness();
static bool is_system_endiann... |
rzhao271/endstream | include/endstream/endifstream.h | #ifndef RAYZZ_END_STREAM_END_IFSTREAM_H_
#define RAYZZ_END_STREAM_END_IFSTREAM_H_
#include <fstream>
#include <memory>
#include "endianness.h"
#include "endistream.h"
namespace rayzz {
namespace endstream {
class endifstream : public std::ifstream, public endistream {
struct impl;
... |
rzhao271/endstream | include/endstream/buffer_util.h | <reponame>rzhao271/endstream
#ifndef RAYZZ_END_STREAM_BUFFER_UTIL_H_
#define RAYZZ_END_STREAM_BUFFER_UTIL_H_
#include <string.h>
namespace rayzz {
namespace endstream {
class buffer_util {
public:
static void flip_buffer(char* buffer, size_t buffer_size);
};
}
}
#endif
|
vexcode-2015/Team-1575H | NBNv5.5.c | #pragma config(I2C_Usage, I2C1, i2cSensors)
#pragma config(Sensor, in1, battery, sensorAnalog)
#pragma config(Sensor, in2, intake, sensorLineFollower)
#pragma config(Sensor, in3, gyro, sensorGyro)
#pragma config(Sensor, dgtl1, limit1, sensorTouch)
#pragma config(Sensor, dgtl2,... |
makebot-lab/Pengbot-lib | Pengbot/Pengbot.h | /* makebot pengbot library
* makebot homepage : https://makebot.ml
* lib-files : https://github.com/makebot-lab/pengbot-lib
* developed by WONDAEHAN.
*/
#ifndef Pengbot_h
#define Pengbot_h
#include <Servo.h>
#include <Oscillator.h>
#include <US.h>
#include "Arduino.h"
class Pengbot {
public:
void ready();
... |
AniruthA/BrainF-Interpreter-V1 | src/lexer/Lexer.h | <filename>src/lexer/Lexer.h
#include <iostream>
#include <string>
#include <regex>
#include <algorithm>
#include "Token.h"
using namespace std;
class Lexer {
private :
// Code source
string src;
protected:
// Helper functions
// checkRegex
// Checks if the string matches a certain regex
int checkReg... |
AniruthA/BrainF-Interpreter-V1 | src/parser/Errors.h | #include <stdlib.h>
class Error{
protected:
string name = "Error";
string cause = "";
public:
Error(){}
Error(string errorname, string reason="", int exitcode=1){
name = errorname;
cause = reason;
cout << errorname << ": " << reason << "\n";
exit(exitcode);
}
}; |
AniruthA/BrainF-Interpreter-V1 | src/lexer/Token.h | #include <iostream>
#include <string>
#include <vector>
#include <regex>
using namespace std;
int LEFT = 1;
int RIGHT = 2;
int PLUS = 3;
int MINUS = 4;
int OPEN = 5;
int CLOSE = 6;
int COMMA = 7;
int PERIOD = 8;
vector<int> TokenType = {
LEFT,
RIGHT,
PLUS,
MINUS,
OPEN,
CLOSE,
COMMA,
PERIOD
};
vector... |
AniruthA/BrainF-Interpreter-V1 | src/parser/Ast.h | #include "./Errors.h"
#include <map>
int ptr = 1;
vector<int> memory = {0,0,0,0,0,0,0,0,0,0};
class Left {
public:
Left(){}
void execute(){
ptr -= 1;
if (ptr<0){
Error("PointerError","invalid position for pointer",3);
}
}
};
class Right {
public:
Right(){}
void execute(){
ptr += ... |
AniruthA/BrainF-Interpreter-V1 | src/parser/Parser.h | #include "./Ast.h"
#include <variant>
using namespace std;
class Parser {
private:
bool get(vector<Token>& stream, int token_type, int& i_p){
if (stream[i_p].type==token_type){
i_p+=1;
return true;
}
return false;
}
protected:
vector<Token> stream;
public:
int i_p = 0;
Parser... |
polestar/audio_utils | src/downsample_x3_coeffs.c | /**
This file was autogenerated by ResampleCodeGen.m
Author: <NAME>
Command: ResampleCodeGen(3, 6, 60, 0, 68, 'ownsampleX3Coeffs')
*/
// Include files
#include "aud_resampler.h"
// The FIR coefficients for this filter
static const ar_coef firCoeffs[] = {
(ar_coef)-0.00019696876001500322000,
(ar_coef)0.000000... |
polestar/audio_utils | src/audutils_defines.h | <gh_stars>0
/******************************************************************************
Copyright 2014 <NAME>, Applaud Apps (Applicaudia)
This source code may under NO circumstances be distributed without the
express written permission of the author.
@author: <EMAIL>
*************************************... |
polestar/audio_utils | src/fft_c.c | <reponame>polestar/audio_utils
/******************************************************************************
Copyright 2014 <NAME>, Applaud Apps (Applicaudia)
This source code may under NO circumstances be distributed without the
express written permission of the author.
@author: <EMAIL>
******************... |
polestar/audio_utils | src/downsample_x7_coeffs.c | <gh_stars>0
/**
This file was autogenerated by ResampleCodeGen.m
Author: <NAME>
Command: ResampleCodeGen(7, 14, 60, 0, 68, 'ownsampleX7Coeffs')
*/
// Include files
#include "aud_resampler.h"
// The FIR coefficients for this filter
static const ar_coef firCoeffs[] = {
(ar_coef)-0.00002966537805227449500,
(ar_... |
polestar/audio_utils | src/pcm_q.h | <reponame>polestar/audio_utils<filename>src/pcm_q.h
#ifndef __PcmQ
#define __PcmQ
/******************************************************************************
Copyright 2014 <NAME>, Applaud Apps (Applicaudia)
This source code may under NO circumstances be distributed without the
express written permission o... |
polestar/audio_utils | src/downsample_x10_coeffs.c | <reponame>polestar/audio_utils
/**
This file was autogenerated by ResampleCodeGen.m
Author: <NAME>
Command: ResampleCodeGen(10, 20, 60, 0, 68, 'ownsampleX10Coeffs')
*/
// Include files
#include "aud_resampler.h"
// The FIR coefficients for this filter
static const ar_coef firCoeffs[] = {
(ar_coef)0.0001188402... |
polestar/audio_utils | src/aud_resampler.h | #ifndef AUDRESAMPLER_H__
#define AUDRESAMPLER_H__
/******************************************************************************
Copyright 2014 <NAME>, Applaud Apps (Applicaudia)
This source code may under NO circumstances be distributed without the
express written permission of the author.
@author: <EMAIL... |
polestar/audio_utils | src/downsample_x4_coeffs.c | /**
This file was autogenerated by ResampleCodeGen.m
Author: <NAME>
Command: ResampleCodeGen(4, 8, 60, 0, 68, 'ownsampleX4Coeffs')
*/
// Include files
#include "aud_resampler.h"
// The FIR coefficients for this filter
static const ar_coef firCoeffs[] = {
(ar_coef)0.00005270271781855073200,
(ar_coef)0.0001790... |
polestar/audio_utils | src/downsample_x5_coeffs.c | <filename>src/downsample_x5_coeffs.c<gh_stars>0
/**
This file was autogenerated by ResampleCodeGen.m
Author: <NAME>
Command: ResampleCodeGen(5, 10, 60, 0, 68, 'ownsampleX5Coeffs')
*/
// Include files
#include "aud_resampler.h"
// The FIR coefficients for this filter
static const ar_coef firCoeffs[] = {
(ar_co... |
polestar/audio_utils | src/audutils_debug.h | <filename>src/audutils_debug.h
#ifndef AUDUTILS_DEBUG
#define AUDUTILS_DEBUG
#define ASSERT(x)
#define ASSERT_FN(x) if(x) do{;}while(0)
#define TRACE_VERBOSE(x)
#define TRACE_WARNING(x)
#endif |
polestar/audio_utils | src/downsample_x8_coeffs.c | <gh_stars>0
/**
This file was autogenerated by ResampleCodeGen.m
Author: <NAME>
Command: ResampleCodeGen(8, 16, 60, 0, 68, 'ownsampleX8Coeffs')
*/
// Include files
#include "aud_resampler.h"
// The FIR coefficients for this filter
static const ar_coef firCoeffs[] = {
(ar_coef)-0.00022999389760071782000,
(ar_... |
polestar/audio_utils | src/downsample_x9_coeffs.c | <reponame>polestar/audio_utils
/**
This file was autogenerated by ResampleCodeGen.m
Author: <NAME>
Command: ResampleCodeGen(9, 18, 60, 0, 68, 'ownsampleX9Coeffs')
*/
// Include files
#include "aud_resampler.h"
// The FIR coefficients for this filter
static const ar_coef firCoeffs[] = {
(ar_coef)-0.00007064289... |
polestar/audio_utils | src/downsample_x2_coeffs.c | <reponame>polestar/audio_utils
/**
This file was autogenerated by ResampleCodeGen.m
Author: <NAME>
Command: ResampleCodeGen(2, 4, 60, 0, 68, 'ownsampleX2Coeffs')
*/
// Include files
#include "aud_resampler.h"
// The FIR coefficients for this filter
static const ar_coef firCoeffs[] = {
(ar_coef)0.0000230913682... |
polestar/audio_utils | src/downsample_x6_coeffs.c | /**
This file was autogenerated by ResampleCodeGen.m
Author: <NAME>
Command: ResampleCodeGen(6, 12, 60, 0, 68, 'ownsampleX6Coeffs')
*/
// Include files
#include "aud_resampler.h"
// The FIR coefficients for this filter
static const ar_coef firCoeffs[] = {
(ar_coef)0.00020939502711154662000,
(ar_coef)0.000216... |
polestar/audio_utils | src/fft_c.h | /******************************************************************************
Copyright 2014 <NAME>, Applaud Apps (Applicaudia)
This source code may under NO circumstances be distributed without the
express written permission of the author.
@author: <EMAIL>
*************************************************... |
polestar/audio_utils | src/pcm_q.c | <gh_stars>0
/******************************************************************************
Copyright 2014 <NAME>, Applaud Apps (Applicaudia)
This source code may under NO circumstances be distributed without the
express written permission of the author.
@author: <EMAIL>
*************************************... |
polestar/audio_utils | src/downsample_x1_coeffs.c | /**
This file was autogenerated by ResampleCodeGen.m
Author: <NAME>
Command: ResampleCodeGen(2, 3480, 8000, 1, 0, DownsampleX1Coeffs)
*/
// Include files
#include "aud_resampler.h"
// The FIR coefficients for this filter
static const ar_coef firCoeffs[] = {
(ar_coef)1.0,
0
};
// The resampler configuration... |
polestar/audio_utils | src/audiolib_types.h | <filename>src/audiolib_types.h
#ifndef AUDIOLIB_TYPES_H__
#define AUDIOLIB_TYPES_H__
/******************************************************************************
Copyright 2014 <NAME>, Applaud Apps (Applicaudia)
This source code may under NO circumstances be distributed without the
express written permission... |
petersn/btreetests | interface.h | <reponame>petersn/btreetests<gh_stars>0
#include <stdint.h>
extern const char* implementation_name;
typedef uint64_t Key;
typedef uint64_t Value;
typedef struct KVPair {
Key key;
Value value;
} KVPair;
extern size_t map_size;
void map_alloc(void* m);
void map_free(void* m);
void map_assign(void* m, Key key, Val... |
petersn/btreetests | judy.c | <filename>judy.c<gh_stars>0
#include "stdlib.h"
#include "interface.h"
#include <Judy.h>
const char *implementation_name = "JudyL";
typedef void *Map;
size_t map_size = sizeof (Map);
void map_alloc(void *m) {
Map *map = (Map *) m;
*map = 0;
}
void map_free(void *m) {
Map *map = (Map *) m;
int rc;
JLFA(rc... |
vsidorow/media-driver | media_driver/agnostic/common/vp/hal/vphal_common.c | /*
* Copyright (c) 2009-2019, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, p... |
vsidorow/media-driver | media_driver/linux/common/cp/shared/cplib_utils.h | <filename>media_driver/linux/common/cp/shared/cplib_utils.h<gh_stars>1-10
/*
* Copyright (c) 2009-2017, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction... |
vsidorow/media-driver | media_driver/agnostic/common/vp/kernel/vpkrnheader.h | <gh_stars>0
/*
// Copyright (c) 2017 Intel Corporation
//
// Permission is hereby granted, free of cha... |
vsidorow/media-driver | media_driver/agnostic/common/vp/kdll/hal_kerneldll.h | /*
* Copyright (c) 2008-2017, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, p... |
vsidorow/media-driver | media_driver/agnostic/common/hw/mhw_utilities.c | /*
* Copyright (c) 2014-2018, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, p... |
vsidorow/media-driver | media_driver/agnostic/common/hw/vdbox/mhw_vdbox_vdenc_interface.h | <gh_stars>0
/*
* Copyright (c) 2017-2018, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modi... |
vsidorow/media-driver | media_driver/agnostic/common/renderhal/renderhal.h | /*
* Copyright (c) 2009-2018, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, p... |
vsidorow/media-driver | media_driver/agnostic/common/codec/hal/codechal_encode_hevc_base.h | /*
* Copyright (c) 2017, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publis... |
deviantfero/sfclient | src/menu.c | <reponame>deviantfero/sfclient
#include "menu.h"
void print_menu(struct options *copt) {
char *encryption_entry = copt->encrypt ? "[on]" : "[off]";
char *compression_entry = copt->compress ? "[on]" : "[off]";
char *debug_entry = copt->debug ? "[on]" : "[off]";
printf("[1] See server content\n");
prin... |
deviantfero/sfclient | src/menu.h | #ifndef MENU_H
#define MENU_H
#define PROMPT "Enter a number: "
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdbool.h>
#include "status.h"
enum menu_opt {
NOT_VALID,
SERVER_LS,
SERVER_STATE,
UPLD_FILE,
DWNLD_FILE,
TOGGLE_ENCRYPTION,
TOGGLE_COMPRESSION,
CLIEN... |
deviantfero/sfclient | src/utils.c | <gh_stars>0
#include "utils.h"
/* https://stackoverflow.com/questions/3919995/determining-sprintf-buffer-size-whats-the-standard
* original by: <NAME> */
int buffer_size(const char* format, ...) {
va_list args;
va_start(args, format);
int result = vsnprintf(NULL, 0, format, args);
va_end(args);
... |
deviantfero/sfclient | src/status.h | <reponame>deviantfero/sfclient
#ifndef STATUS_H
#define STATUS_H
#define DEFAULT_DIR "./"
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <dirent.h>
#include <string.h>
#include "comms.h"
#include "utils.h"
struct directory {
char **files;
int file_count;
};
struct client_status {
const ... |
deviantfero/sfclient | src/status.c | #include "status.h"
void fprint_dir_status(FILE *file, struct client_status *s) {
for(int i = 0; i < s->current_dir->file_count; i ++) {
fprintf(file, "[%d]%30.30s\n", i + 1, s->current_dir->files[i]);
}
}
char *sprint_dir_status(struct client_status *s) {
size_t file_str_len = 0;
char *file_str;
char *str = m... |
deviantfero/sfclient | src/sfclient.c | <reponame>deviantfero/sfclient
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <limits.h>
#include <unistd.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include "comms.h"
#include "menu.h"
#include "status.h"
#include "transfer.h"
s... |
deviantfero/sfclient | src/comms.h | #ifndef COMMS_H
#define COMMS_H
#include <string.h>
#include <stropts.h>
#include <fcntl.h>
#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdbool.h>
#include "utils.h"
#define SIGNAL 0
#define SENDER 1
#def... |
deviantfero/sfclient | src/transfer.c | <gh_stars>0
#include "transfer.h"
ssize_t upload_file(const char *pipe_name, char *src, struct options *opt) {
int status;
int src_fd;
off_t filesize;
char fs[MAX_BUFFER];
char sn[MAX_BUFFER];
char qn[MAX_BUFFER];
/* enum method method_value = PIPES; */
if(opt->compress) src = deflate_file(src);
src_fd = o... |
deviantfero/sfclient | src/comms.c | <gh_stars>0
#include "comms.h"
/* opens pipe in Write only mode,
* this should freeze the program
* until message has been read */
void send_message(const char *pipe_name, char *msg, bool do_unlink) {
mkfifo(pipe_name, 0666);
int fifod = open(pipe_name, O_WRONLY);
int pm_size = buffer_size("%0*d%s", 7, getpid... |
tcoulange/CudaDepthMapIntegration | Reconstruction/vtkCudaReconstructionFilter.h | <reponame>tcoulange/CudaDepthMapIntegration
// Copyright(c) 2016, Kitware SAS
// www.kitware.fr
// 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 re... |
tcoulange/CudaDepthMapIntegration | Sources/Helper.h | #include <algorithm>
#include <vector>
#include <sstream>
#include <string>
// VTK includes
#include <vtksys/SystemTools.hxx>
#include "vtkMatrix3x3.h"
#include "vtkMatrix4x4.h"
#include "vtkNew.h"
#include "vtkTransform.h"
namespace help
{
//-------------------------------------------------------------------------... |
tcoulange/CudaDepthMapIntegration | Sources/ReconstructionData.h | // Copyright(c) 2016, Kitware SAS
// www.kitware.fr
// 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 copyright notice,
// this lis... |
PHSI-supplements/textbook-code | chap09/signal_handler_demo.c | <reponame>PHSI-supplements/textbook-code
/*
* signal_handler_demo.c (c) 2018-20 <NAME>
*/
// Need to expose Single UNIX Specification definitions, including sigset
#define _XOPEN_SOURCE 700
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/time.h>
struct itimerval timer;
void count_loop_iter... |
PHSI-supplements/textbook-code | chap12/inlining.c | <reponame>PHSI-supplements/textbook-code<filename>chap12/inlining.c
/*
* inlining.c (c) 2018-20 <NAME>
*/
int compute_triangle_number(int base) {
int base_incremented = base + 1;
int numerator = base * base_incremented;
return numerator / 2;
}
int bonus_threshold() {
int triangle_number = compute_tr... |
PHSI-supplements/textbook-code | chap09/segfaultmaker.c | #pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma ide diagnostic ignored "UnusedLocalVariable"
/*
* segfaultmaker.c (c) 2018-20 <NAME>
*/
// Need to expose Single UNIX Speccification definitions, including sigset
#define _XOPEN_SOURCE 700
#include <stdio.h>
#include <stdlib.h... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.