repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
anapupa/ReebHanTun
src/psbmReebGraphElements.h
/* (c) 2012 <NAME> */ #ifndef MY_psbmReebGraphElements_HEADER_H #define MY_psbmReebGraphElements_HEADER_H #include <iostream> #include <list> #include <vector> #include <map> #include <set> #include <algorithm> #include <iterator> #include <queue> #include "SimpleMesh.h" #include <RenderVector3.h> class psbmReebArc;...
anapupa/ReebHanTun
src/FilesOutputForOptimalCycles.h
/* (c) 2012 <NAME> */ #ifndef _MY_FilesOutputForOptimalCycles_H_ #define _MY_FilesOutputForOptimalCycles_H_ #include <vector> #include <list> #include <set> #include <map> #include "SimpleMesh.h" class FilesOutputForOptimalCycles { public: // constructor and assign operator FilesOutputForOpti...
anapupa/ReebHanTun
src/RenderVector3.h
/* (c) 2012 <NAME> */ #ifndef GFXMATH_VEC3_INCLUDED // -*- C++ -*- #define GFXMATH_VEC3_INCLUDED // // Define the RealTypeForVector3 (ie. default floating point) type // //#ifdef GFX_REAL_FLOAT //typedef float RealTypeForVector3; //#else //#define GFX_REAL_DOUBLE //typedef double RealTypeForVector3; //#endif typedef d...
mininode/miniloop
src/event.c
/* miniloop - Micro event loop library * * Copyright (c) 2012 <NAME> <flemming!madsen()madsensoft!dk> * Copyright (c) 2013-2019 <NAME> <troglobit()gmail!com> * Copyright (c) 2020 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and ...
mininode/miniloop
src/miniloop.h
/* libuEv - Micro event loop library * * Copyright (c) 2012 <NAME> <flemming!madsen()madsensoft!dk> * Copyright (c) 2013-2019 <NAME> <troglobit()gmail!com> * Copyright (c) 2020 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and as...
mininode/miniloop
test/api.c
#include "check.h" uev_t timer, file; int counter = 10; static void cb(uev_t *w, void *arg, int events) { if (UEV_ERROR == events) fprintf(stderr, "timer watcher failed, ignoring ...\n"); if (counter--) return; uev_exit(w->ctx); } int main(void) { uev_ctx_t ctx; FILE *fp; uev_init(&ctx); uev_timer_in...
mininode/miniloop
src/miniloop.c
<filename>src/miniloop.c /* miniloop - Micro event loop library * * Copyright (c) 2012 <NAME> <flemming!madsen()madsensoft!dk> * Copyright (c) 2013-2019 <NAME> <troglobit()gmail!com> * Copyright (c) 2020 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy...
mininode/miniloop
src/timer.c
/* libuEv - Micro event loop library * * Copyright (c) 2012 <NAME> <flemming!madsen()madsensoft!dk> * Copyright (c) 2013-2019 <NAME> <troglobit()gmail!com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software")...
mininode/miniloop
test/event.c
<gh_stars>1-10 /* Verifies eventfd support * * Copyright (c) 2018-2019 <NAME> <<EMAIL>> * * 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 limitat...
mininode/miniloop
src/private.h
<gh_stars>0 /* libuEv - Private methods and data types, do not use directly! * * Copyright (c) 2012 <NAME> <flemming!madsen()madsensoft!dk> * Copyright (c) 2013-2019 <NAME> <troglobit()gmail!com> * Copyright (c) 2020 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obt...
mininode/miniloop
test/complete.c
<reponame>mininode/miniloop /* Test libuEv event library * * Copyright (c) 2012 <NAME> <flemming!madsen()madsensoft!dk> * Copyright (c) 2013-2019 <NAME> <troglobit()gmail!com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation fi...
BrunoCA-xD/iOSEssentialLead-BCAEssentialFeed
BCAEssentialFeed/BCAEssentialFeed.h
<gh_stars>0 // // BCAEssentialFeed.h // BCAEssentialFeed // // Created by <NAME> on 10/12/21. // #import <Foundation/Foundation.h> //! Project version number for BCAEssentialFeed. FOUNDATION_EXPORT double BCAEssentialFeedVersionNumber; //! Project version string for BCAEssentialFeed. FOUNDATION_EXPORT const unsig...
EnriqM/music-8051
src/music.c
//#include <reg51.h> #include "c8051F340.h" #include "Configuracion.c" sbit P1_0=P1^0; unsigned int semillas_notas[2][7] = {{0xFC4D, 0xFCB6, 0xFD0A, 0xFD39, 0xFD88, 0xFDC7, 0xFE06} ,{0xFE26, 0xFE5B, 0xFE85, 0xFE9C, 0xFEC4, 0xFEE3, 0xFF03}}; unsigned char semillaH,semillaL; unsigned int semilla; enum notas {DO=0,RE=1...
EnriqM/music-8051
include/FicheroCabeceraSFR.h
//----------------------------------------------------------------------------- // c8051F340.h //----------------------------------------------------------------------------- // Copyright 2005 Silicon Laboratories, Inc. // http://www.silabs.com // // Program Description: // // Register/bit definitions for the C...
EnriqM/music-8051
include/c8051F340.h
<gh_stars>0 /*----------------------------------------------------------------------------- */ /* c8051F340.h */ /*----------------------------------------------------------------------------- */ /* Copyright 2005 Silicon Laboratories, Inc. */ /* http://www.silabs.com */ /* */ /* Program Description: */ /* */ /* Regist...
EnriqM/music-8051
src/escala.c
<reponame>EnriqM/music-8051 //#include <reg51.h> #include "C8051F340.h" sbit P1_0=P1^0; unsigned int semillas_notas[2][7] = {{0xFC4D, 0xFCB6, 0xFD0A, 0xFD39, 0xFD88, 0xFDC7, 0xFE06} ,{0xFE26, 0xFE5B, 0xFE85, 0xFE9C, 0xFEC4, 0xFEE3, 0xFF03}}; unsigned char semillaH,semillaL; unsigned int semilla; void Init_Device(void...
EnriqM/music-8051
include/Configuracion.c
///////////////////////////////////// // Generated Initialization File // ///////////////////////////////////// #include "C8051F340.h" // Peripheral specific initialization functions, // Called from the Init_Device() function void PCA_Init() { PCA0MD &= ~0x40; PCA0MD = 0x00; } void Timer_Init() { ...
bayramovza/tripcoin
src/noui.h
<reponame>bayramovza/tripcoin // Copyright (c) 2013 The Tripcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef TRIPCOIN_NOUI_H #define TRIPCOIN_NOUI_H extern void noui_connect(); #endif // TRIPCOIN_NO...
bayramovza/tripcoin
src/qt/tripcoinaddressvalidator.h
<reponame>bayramovza/tripcoin // Copyright (c) 2011-2014 The Tripcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef TRIPCOIN_QT_TRIPCOINADDRESSVALIDATOR_H #define TRIPCOIN_QT_TRIPCOINADDRESSVALIDATOR_H ...
Ciip1996/OsxJugueteria
Jugueteria_OSX/InventarioVC.h
<gh_stars>0 // // InventarioVC.h // Jugueteria_OSX // // Created by <NAME> on 08/06/17. // Copyright © 2017 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> #import <sqlite3.h> #import "AppDelegate.h" @interface InventarioVC : NSViewController<NSTableViewDataSource> { AppDelegate *appdelegate; NS...
Ciip1996/OsxJugueteria
iToy/Jugueteria_OSX/ReportesVC.h
// // ReportesVC.h // Jugueteria_OSX // // Created by <NAME> on 08/06/17. // Copyright © 2017 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> #import "ManejadorSQLite.h" @interface ReportesVC : NSViewController<NSTableViewDataSource> { ManejadorSQLite *msqlite; NSMutableArray *listaTabla; } @pro...
Ciip1996/OsxJugueteria
iToy/Jugueteria_OSX/VentaVC.h
<gh_stars>0 // // VentaVC.h // Jugueteria_OSX // // Created by <NAME> on 11/06/17. // Copyright © 2017 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> #import <sqlite3.h> #import "AppDelegate.h" #import "InventarioVC.h" #import "ManejadorSQLite.h" @interface VentaVC : NSViewController<NSTableViewDataSourc...
Ciip1996/OsxJugueteria
Jugueteria_OSX/ManejadorSQLite.h
// // ManejadorSQLite.h // Jugueteria_OSX // // Created by <NAME> on 10/06/17. // Copyright © 2017 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import <Cocoa/Cocoa.h> #import <sqlite3.h> #import "AppDelegate.h" #import "Producto.h" #import "Empleado.h" #import "Response.h" #import "Reporte.h"...
Ciip1996/OsxJugueteria
iToy/Jugueteria_OSX/Response.h
<reponame>Ciip1996/OsxJugueteria // // Response.h // Jugueteria_OSX // // Created by <NAME> on 12/06/17. // Copyright © 2017 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "Empleado.h" @interface Response : NSObject @property Empleado *Empleado; @property NSString *stringResponseMessa...
Ciip1996/OsxJugueteria
iToy/Jugueteria_OSX/Persona.h
// // Persona.h // Jugueteria_OSX // // Created by <NAME> on 12/06/17. // Copyright © 2017 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface Persona : NSObject @property int IdPersona; @property NSString *Nombre; @property NSString *ApellidoPaterno; @property NSString *ApellidoMaterno;...
Ciip1996/OsxJugueteria
Jugueteria_OSX/Reporte.h
// // Reporte.h // Jugueteria_OSX // // Created by <NAME> on 12/06/17. // Copyright © 2017 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface Reporte : NSObject @property NSString *IdBitacora; @property NSString *FechaAbastecimiento; @property NSString *Empleado; @property NSString *To...
Ciip1996/OsxJugueteria
Jugueteria_OSX/AdministradorVC.h
<reponame>Ciip1996/OsxJugueteria // // AdministradorVC.h // Jugueteria_OSX // // Created by <NAME> on 14/06/17. // Copyright © 2017 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> #import "ManejadorSQLite.h" @interface AdministradorVC : NSViewController{ ManejadorSQLite *msqlite; AppDelegate *appd...
Ciip1996/OsxJugueteria
Jugueteria_OSX/AlimentadorInventarioVC.h
<reponame>Ciip1996/OsxJugueteria<gh_stars>0 // // AlimentadorInventarioVC.h // Jugueteria_OSX // // Created by <NAME> on 06/04/17. // Copyright © 2017 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> #import <sqlite3.h> #import "AppDelegate.h" #import "InventarioVC.h" #import "ManejadorSQLite.h" @interface...
Ciip1996/OsxJugueteria
Jugueteria_OSX/AppDelegate.h
<gh_stars>0 // // AppDelegate.h // Jugueteria_OSX // // Created by <NAME> on 04/04/17. // Copyright © 2017 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> #import "Empleado.h" @interface AppDelegate : NSObject <NSApplicationDelegate>{ NSWindow *ventana; Empleado *EmpleadoSesionActivo; } @property(...
Ciip1996/OsxJugueteria
iToy/Jugueteria_OSX/LoginVC.h
// // LoginVC.h // Jugueteria_OSX // // Created by <NAME> on 06/06/17. // Copyright © 2017 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> #import <sqlite3.h> #import "AppDelegate.h" #import "ManejadorSQLite.h" @interface LoginVC : NSViewController{ AppDelegate *appdelegate; ManejadorSQLite *msql...
Ciip1996/OsxJugueteria
iToy/Jugueteria_OSX/Producto.h
<reponame>Ciip1996/OsxJugueteria<filename>iToy/Jugueteria_OSX/Producto.h // // Producto.h // Jugueteria_OSX // // Created by <NAME> on 04/04/17. // Copyright © 2017 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface Producto : NSObject //propiedades genericas @property int IdProducto; @...
Ciip1996/OsxJugueteria
iToy/Jugueteria_OSX/Empleado.h
// // Empleado.h // Jugueteria_OSX // // Created by <NAME> on 12/06/17. // Copyright © 2017 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface Empleado : NSObject //propiedades de tabla Empleado: @property int IdEmpleado; @property int IdPersona; @property double Salario; @property NSS...
Ciip1996/OsxJugueteria
iToy/Jugueteria_OSX/Venta.h
<filename>iToy/Jugueteria_OSX/Venta.h // // Venta.h // Jugueteria_OSX // // Created by <NAME> on 12/06/17. // Copyright © 2017 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "Empleado.h" @interface Venta : NSObject @property int IdVenta; @property NSString *FechaVenta; @property NSStri...
Ciip1996/OsxJugueteria
iToy/Jugueteria_OSX/TabViewController.h
// // TabViewController.h // Jugueteria_OSX // // Created by <NAME> on 06/06/17. // Copyright © 2017 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> @interface TabViewController : NSTabViewController -(void)viewWillAppear; -(IBAction)ShowLogin:(id)sender; @end
Ciip1996/OsxJugueteria
iToy/Jugueteria_OSX/Window.h
// // Window.h // Jugueteria_OSX // // Created by <NAME> on 09/06/17. // Copyright © 2017 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> @interface Window : NSWindowController - (IBAction)clickReportes:(id)sender; - (IBAction)clickAdmin:(id)sender; @property (weak) IBOutlet NSToolbarItem *ToolBarReport...
wemanzoz/Osiris
Osiris/Texture.h
#pragma once #include <cstdint> using ImTextureID = void*; class Texture { ImTextureID texture = nullptr; public: Texture() = default; ~Texture() { clear(); } Texture(const Texture&) = delete; Texture& operator=(const Texture&) = delete; Texture(Texture&& other) noexcept : texture{ other.text...
wemanzoz/Osiris
Osiris/SDK/PlantedC4.h
<reponame>wemanzoz/Osiris #pragma once #include "Entity.h" #include "Inconstructible.h" class PlantedC4 : public Entity { public: INCONSTRUCTIBLE(PlantedC4) NETVAR(c4BlowTime, "CPlantedC4", "m_flC4Blow", float) NETVAR(c4TimerLength, "CPlantedC4", "m_flTimerLength", float) NETVAR(c4BombSite, "CPlanted...
wemanzoz/Osiris
Osiris/Hooks/VmtHook.h
<filename>Osiris/Hooks/VmtHook.h #pragma once #include <cstddef> #include <cstdint> #include <memory> #include "../SDK/Platform.h" class VmtHook { public: void init(void* base) noexcept; void restore() const noexcept; void hookAt(std::size_t index, void* fun) const noexcept; template<typename T, std...
wemanzoz/Osiris
Osiris/Interfaces.h
<filename>Osiris/Interfaces.h #pragma once #include <memory> #include <string> #include <type_traits> #ifdef _WIN32 #include <Windows.h> #else #include <dlfcn.h> #endif #include "SDK/Platform.h" class BaseFileSystem; class Client; class Cvar; class Engine; class EngineSound; class EngineTrace; class EntityList; cla...
wemanzoz/Osiris
Osiris/InventoryChanger/Inventory.h
<filename>Osiris/InventoryChanger/Inventory.h #pragma once #include <array> #include <cassert> #include <string> #include <vector> #include "../SDK/ItemSchema.h" #include "StaticData.h" enum class Team; struct StickerConfig { int stickerID = 0; float wear = 0.0f; }; enum TournamentTeam : std::uint8_t; enum...
wemanzoz/Osiris
Osiris/SDK/PlayerResource.h
#pragma once #include "Inconstructible.h" #include "../Netvars.h" #include "VirtualMethod.h" struct Vector; class IPlayerResource { public: INCONSTRUCTIBLE(IPlayerResource) VIRTUAL_METHOD_V(bool, isAlive, 5, (int index), (this, index)) VIRTUAL_METHOD_V(const char*, getPlayerName, 8, (int index), (this, ...
wemanzoz/Osiris
Osiris/EventListener.h
<reponame>wemanzoz/Osiris<gh_stars>1000+ #pragma once namespace EventListener { void init() noexcept; void remove() noexcept; }
undextrois/helpmatedosmanager
helpmate.c
<reponame>undextrois/helpmatedosmanager /* * Helpmate DOS Manager Version: 1.0 * DOS file manager for all your file managing needs * * * * helpmate.c * * Created on: Mar 22, 1998 * Author: aqs */ # include "stdio.h" # include "process.h" # include "string.h" # include "stdlib.h" # include "ctype.h" #...
AitorSimona/UniversityExercises
AdvancedGraphicsProgramming/EngineTemplate/Engine/Code/engine.h
<gh_stars>0 // // engine.h: This file contains the types and functions relative to the engine. // #pragma once #include "platform.h" #include "Geometry.h" #include "Mesh.h" #include "assimp_model_loading.h" #include <glad/glad.h> #define BINDING(b) b typedef glm::vec2 vec2; typedef glm::vec3 vec3; typedef glm::ve...
AitorSimona/UniversityExercises
AdvancedGraphicsProgramming/EngineTemplate/Engine/Code/Geometry.h
#pragma once struct VertexV3V2 { glm::vec3 pos; glm::vec2 uv; }; const VertexV3V2 vertices[] = { { glm::vec3(-0.5, -0.5, 0.0), glm::vec2(0.0, 0.0)}, // bottom-left vertex { glm::vec3(0.5, -0.5, 0.0), glm::vec2(1.0, 0.0)}, // bottom-right vertex { glm::vec3(0.5, 0.5, 0.0), glm::vec2(1.0, 1.0)}, // top-right verte...
brunoos/alua
unix/alua.c
#include <sys/types.h> #include <sys/wait.h> #include <signal.h> #include <stdlib.h> #include <unistd.h> #include <lua.h> #include <lualib.h> #include <lauxlib.h> static int al_sleep(lua_State* L) { unsigned int v = (unsigned int)luaL_checkint(L, 1); sleep(v); return 0; } static int al_platform(lua_State* L) {...
brunoos/alua
windows/src/alua.c
<reponame>brunoos/alua #include <windows.h> #include <process.h> #include <errno.h> #include <tchar.h> #include <lua.h> #include <lualib.h> #include <lauxlib.h> #define DllExport __declspec(dllexport) static int al_sleep(lua_State* L) { DWORD v = (DWORD)(luaL_checkint(L, 1) * 1000); Sleep(v); ...
bdellegrazie/aeron
aeron-archive/src/main/cpp/client/AeronArchive.h
<reponame>bdellegrazie/aeron /* * Copyright 2014-2019 Real Logic Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
paroga/pg-cbor
src/cbor.h
<reponame>paroga/pg-cbor<filename>src/cbor.h #ifndef __CBOR_H__ #define __CBOR_H__ #include "postgres.h" typedef uint32 CborEntry; #define CBORENTRY_POSMASK 0x1FFFFFFF #define CBORENTRY_TYPEMASK 0xE0000000 #define CBORENTRY_TYPE_UNSIGNEDINTEGER 0x00000000 #define CBORENTRY_TYPE_NEGATIVEINTEGER 0x20000000 #define CB...
paroga/pg-cbor
src/cbor_op.c
#include "cbor.h" #include "access/hash.h" static int compareCbor(Cbor * a, Cbor * b); static int lengthCompareCborText(const struct varlena * a, const struct varlena * b); static int cbor_cmp_recursive(CborEntry * a, CborEntry * b, int32 nr, int32 cnt); static uint32 cbor_hash_recursive(uint32 hash, CborEntry * cbor,...
paroga/pg-cbor
src/cbor_io.c
#include "cbor.h" #include <inttypes.h> #include "libpq/pqformat.h" #include "utils/builtins.h" PG_MODULE_MAGIC; extern int cbor_yyparse(Cbor ** result); extern void cbor_yyerror(Cbor ** result, const char *message); extern void cbor_scanner_init(const char *str); extern void cbor_scanner_finish(void); static dou...
retired-guy/Spectrum
input/fifo.h
// header files for fifo, part of spectrum #pragma once void *input_fifo(void *data);
retired-guy/Spectrum
input/alsa.h
<reponame>retired-guy/Spectrum // header file for alsa, part of spectrum. #pragma once void *input_alsa(void *data);
retired-guy/Spectrum
output/framebuffer.c
// A framebuffer plotter // ===================== // // framebuffer documentation: // https://www.kernel.org/doc/Documentation/fb/api.txt // // example fb writer at: // https://www.i-programmer.info/programming/cc/12839-applying-c-framebuffer-graphics.html // // <NAME> 2020 //#define _POSIX_C_SOURCE 199309L #includ...
retired-guy/Spectrum
output/fbplot.h
/* * todo: * map xy to screenx, screeny * axis tick labels (log, lin) * text labels */ // <NAME> 2020 #pragma once #include <inttypes.h> #include "framebuffer.h" #define FRAMEBUFFER_WIDTH 800 #define FRAMEBUFFER_HEIGHT 480 #define DPI 231 #define TICK_SIZE 3 typedef uint32_t rgb666; // a scre...
retired-guy/Spectrum
config.h
<filename>config.h #pragma once #include <limits.h> #include <stdbool.h> #include <stdio.h> #include <string.h> #define MAX_ERROR_LEN 1024 #ifdef ALSA #define HAS_ALSA true #else #define HAS_ALSA false #endif #ifdef PULSE #define HAS_PULSE true #else #define HAS_PULSE false #endif #ifdef SNDIO #define HAS_SNDIO tr...
retired-guy/Spectrum
input/common.c
#include "input/common.h" #include <string.h> void reset_output_buffers(struct audio_data *audio) { memset(audio->in_r, 0, sizeof(double) * 2 * (audio->FFTbufferSize / 2 + 1)); memset(audio->in_l, 0, sizeof(double) * 2 * (audio->FFTbufferSize / 2 + 1)); } int write_to_fftw_input_buffers(int16_t buf[], int16_...
retired-guy/Spectrum
input/sndio.h
<gh_stars>0 // header file for sndio, part of spectrum. #pragma once void *input_sndio(void *data);
retired-guy/Spectrum
output/framebuffer.h
<gh_stars>1-10 #pragma once #include <linux/fb.h> #include <inttypes.h> #define CSI "\e[" typedef uint32_t pixel; typedef struct { uint32_t r; uint32_t g; uint32_t b; uint32_t a; } rgba; typedef struct { uint32_t h; uint32_t w; int *pixels; // fix this } image; void fb_setup(); int ...
retired-guy/Spectrum
sigproc.h
#pragma once #define LEFT_CHANNEL 1 #define RIGHT_CHANNEL 2 #define LOWER_CUTOFF_FREQ 20 #define UPPER_CUTOFF_FREQ 20000 #define RECT 0 #define HANN 1 #define BLAC 2 #include "input/common.h" void window(struct audio_data *audio, int type); int *make_bins(struct audio_data *audio, int number_of_bins, ...
retired-guy/Spectrum
input/shmem.c
#include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include "input/shmem.h" #include "input/common.h" #include "debug.h" typedef unsigned int u32_t; typedef short s16_t; //int rc; // See cava issue #375 // Hard-coded in squeezelite's output_vis.c, but // this should be the same as mmap_area->buf_size...
retired-guy/Spectrum
sigproc.c
<reponame>retired-guy/Spectrum<filename>sigproc.c #ifdef HAVE_ALLOCA_H #include <alloca.h> #else #include <stdlib.h> #endif #include <math.h> #include <stdbool.h> #include <stddef.h> #include <stdlib.h> #include <fftw3.h> #include <sys/types.h> #include "input/common.h" #include "sigproc.h" #include "debug.h" #incl...
retired-guy/Spectrum
spectrum.c
#include <locale.h> #ifdef HAVE_ALLOCA_H #include <alloca.h> #else #include <stdlib.h> #endif //#include <fcntl.h> #include <math.h> #include <stdbool.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> //#include <ctype.h> #include <dirent.h> #include <fftw3.h> #include <getopt.h> #include <pthread.h> #in...
retired-guy/Spectrum
input/common.h
#pragma once #include <assert.h> #include <errno.h> #include <fcntl.h> #include <inttypes.h> #include <pthread.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <fftw3.h> struct audio_data { int FFTbufferSize; int index; double *in_r, *in_l, *w...
retired-guy/Spectrum
input/pulse.h
<reponame>retired-guy/Spectrum // header file for pulse, part of spectrum. #pragma once void *input_pulse(void *data); void getPulseDefaultSink();
retired-guy/Spectrum
input/shmem.h
// header file for shmem, part of spectrum. #pragma once void *input_shmem(void *data);
retired-guy/Spectrum
output/fbplot.c
<filename>output/fbplot.c #include <stdlib.h> #include <string.h> #include <math.h> #include <ft2build.h> #include <stdbool.h> #include FT_FREETYPE_H #include "debug.h" #include "framebuffer.h" #include "fbplot.h" #include "util.h" FT_Library library; FT_Face text_face; FT_Face audio_face; void freetype_init(cha...
dzervas/zephyr
soc/xtensa/intel_adsp/cavs_v25/include/soc/memory.h
<filename>soc/xtensa/intel_adsp/cavs_v25/include/soc/memory.h /* * Copyright (c) 2019 Intel Corporation * SPDX-License-Identifier: Apache-2.0 */ #ifndef __INC_MEMORY_H #define __INC_MEMORY_H #include <cavs/cpu.h> /* L2 HP SRAM */ #define HP_RAM_RESERVE_HEADER_SPACE 0x00010000 #define L2_SRAM_BASE (DT_REG_ADDR(...
vvhh2002/mongoose
src/arch.h
#pragma once #define MG_ARCH_CUSTOM 0 #define MG_ARCH_UNIX 1 #define MG_ARCH_WIN32 2 #define MG_ARCH_ESP32 3 #define MG_ARCH_ESP8266 4 #define MG_ARCH_CC3100 5 #define MG_ARCH_CC3200 6 #define MG_ARCH_CC3220 7 #define MG_ARCH_MSP432 8 #define MG_ARCH_TM4C129 9 #define MG_ARCH_MBED 10 #define MG_ARCH_WINCE 11 #define M...
vvhh2002/mongoose
src/util.h
<gh_stars>0 #pragma once #include "arch.h" #include "str.h" char *mg_file_read(const char *path, size_t *size); int64_t mg_file_size(const char *path); bool mg_file_write(const char *path, const void *buf, size_t len); bool mg_file_printf(const char *path, const char *fmt, ...); void mg_random(void *buf, size_t len);...
vvhh2002/mongoose
src/sock.c
#include "dns.h" #include "event.h" #include "log.h" #include "net.h" #include "private.h" #include "str.h" #include "timer.h" #include "tls.h" #include "url.h" #include "util.h" #if MG_ENABLE_SOCKET #if defined(_WIN32) && MG_ENABLE_WINSOCK #define MG_SOCK_ERRNO WSAGetLastError() #ifndef SO_EXCLUSIVEADDRUSE #define SO...
hankai17/trafficserver
include/tscore/Extendible.h
<filename>include/tscore/Extendible.h /** @file Extendible @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF license...
hankai17/trafficserver
plugins/experimental/cookie_remap/strip.c
<reponame>hankai17/trafficserver<gh_stars>1-10 /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lic...
hankai17/trafficserver
include/tscore/ink_uuid.h
/** @file * * Basic implementation of RFC 4122, see * https://www.ietf.org/rfc/rfc4122.txt * * @section license License * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information...
hankai17/trafficserver
tests/gold_tests/tls/ssl-post.c
/** @file SSL post test client @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under t...
hankai17/trafficserver
proxy/http/remap/RemapPluginInfo.h
/** @file Information about remap plugins. @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to...
hankai17/trafficserver
include/tscore/MemArena.h
<filename>include/tscore/MemArena.h /** @file Memory arena for allocations @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright...
hankai17/trafficserver
src/traffic_ctl/traffic_ctl.h
/** @file traffic_ctl @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache...
hankai17/trafficserver
proxy/logging/Log.h
/** @file Logging @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lic...
hankai17/trafficserver
plugins/s3_auth/aws_auth_v4.h
<reponame>hankai17/trafficserver<filename>plugins/s3_auth/aws_auth_v4.h /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to...
hankai17/trafficserver
plugins/experimental/access_control/access_control.h
<filename>plugins/experimental/access_control/access_control.h /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you unde...
hankai17/trafficserver
plugins/experimental/cookie_remap/strip.h
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may no...
hankai17/trafficserver
plugins/experimental/prefetch/fetch.h
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may no...
hankai17/trafficserver
lib/records/P_RecMessage.h
/** @file Private RecMessage declarations @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to ...
hankai17/trafficserver
mgmt/api/NetworkUtilsRemote.h
<filename>mgmt/api/NetworkUtilsRemote.h<gh_stars>1-10 /** @file A brief file description @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyrig...
hankai17/trafficserver
proxy/CacheControl.h
<gh_stars>1-10 /** @file A brief file description @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this fi...
hankai17/trafficserver
iocore/net/P_SSLNetVConnection.h
<reponame>hankai17/trafficserver /** @file A brief file description @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The AS...
samrushing/irken-compiler
vm/irkvm.h
<filename>vm/irkvm.h // generated by vm/genopcodes - do not edit typedef struct { char * name; int nargs; int varargs; int target; } opcode_info_t; opcode_info_t irk_opcodes[95] = { {"lit", 2, 0, 1}, {"litc", 2, 0, 1}, {"ret", 1, 0, 0}, {"add", 3, 0, 1}, {"sub", ...
Badlazzor/NimbleRxTest
NimbleRxTest/NimbleRxTest.h
// // NimbleRxTest.h // NimbleRxTest // // Created by <NAME> on 2019. 04. 18.. // Copyright © 2019. <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for NimbleRxTest. FOUNDATION_EXPORT double NimbleRxTestVersionNumber; //! Project version string for NimbleRxTest. FOUNDATION_EXPO...
pxiaofei/xpDropDownMenu
TestView/XPDropDownMenu/XPDropDown.h
// // XPDropDown.h // TestView // // Created by 清欢有味 on 15/11/28. // Copyright © 2015年 清欢有味. All rights reserved. // #import <UIKit/UIKit.h> @class XPDropDown; @protocol XPDropDownDelegate <NSObject> - (void) xpDropDownDelegateMethod:(NSIndexPath *)indexPath; @end @interface XPDropDown : UIView <UITableViewDeleg...
CGeorgiades/ttylm
ttylm.c
#include <stdio.h> #include <string.h> #include <unistd.h> #include <stdlib.h> #include <getopt.h> #include <fcntl.h> #include <errno.h> #include <pwd.h> #include <termio.h> #include <sys/wait.h> #include <sys/stat.h> // Terminal-related functions void clear() { printf("\033[r\033[H\033[J"); fflush(stdout); } stati...
PerezEnric/Hydro-Engine
Hydro-Engine/ResourceTexture.h
<filename>Hydro-Engine/ResourceTexture.h #pragma once #include "Resource.h" #include "Globals.h" class Component_Texture; class ResourceTexture : public Resource { public: ResourceTexture(uint uuid, RESOURCE_TYPE type); ~ResourceTexture(); bool LoadToMemory(); void NotReference(); bool UnLoadFromMemory(); void ...
PerezEnric/Hydro-Engine
Hydro-Engine/Component_Camera.h
<reponame>PerezEnric/Hydro-Engine #pragma once #include "Component.h" #include "MathGeoLib/include/MathBuildConfig.h" #include "MathGeoLib/include/MathGeoLib.h" class GameObject; class Component_Transform; enum Intersection_Type { OUTSIDE, INSIDE }; class Component_Camera : public Component { public: Component_...
PerezEnric/Hydro-Engine
Hydro-Engine/ModuleImporter.h
<reponame>PerezEnric/Hydro-Engine #pragma once #include "Module.h" #include "Assimp/include/cimport.h" #include "Assimp/include/Importer.hpp" #include "Assimp/include/scene.h" #include "Assimp/include/postprocess.h" #include "Assimp/include/cfileio.h" #include "Assimp/include/material.h" #pragma comment (lib, "Assimp...
PerezEnric/Hydro-Engine
Hydro-Engine/ModuleWindow.h
#ifndef __ModuleWindow_H__ #define __ModuleWindow_H__ #include "Module.h" #include "SDL/include/SDL.h" #include "Json/json.hpp" #include <fstream> class Application; class ModuleWindow : public Module { public: ModuleWindow(Application* app, bool start_enabled = true); // Destructor virtual ~ModuleWindow(); b...
PerezEnric/Hydro-Engine
Hydro-Engine/ModulePhysics.h
<gh_stars>1-10 #pragma once #include "Module.h" #include "Globals.h" #include <list> #include "btPrimitive.h" #include "Bullet/include/btBulletDynamicsCommon.h" // Recommended scale is 1.0f == 1 meter, no less than 0.2 objects #define GRAVITY btVector3(0.0f, -10.0f, 0.0f) class DebugDrawer; struct PhysBody; struc...
PerezEnric/Hydro-Engine
Hydro-Engine/PanelConsole.h
<filename>Hydro-Engine/PanelConsole.h #pragma once #include "Panel.h" #include "Imgui/imgui.h" class PanelConsole : public Panel { public: PanelConsole(); virtual ~PanelConsole(); bool Update() override; void ClearLog(); void AddLog(const char* entry, ...) IM_FMTARGS(2); static char* m_Strdup(const char* str)...
PerezEnric/Hydro-Engine
Hydro-Engine/PanelConstraints.h
#pragma once #include "Panel.h" #include "PhysBody.h" #include "btPrimitive.h" class btCube; class PanelConstraints : public Panel { public: PanelConstraints(); ~PanelConstraints(); bool Update() override; void CreateConstraint(float3 anchora, float3 anchorb); public: //bool is_active = true; bool show_pane...
PerezEnric/Hydro-Engine
Hydro-Engine/PanelShapes.h
<filename>Hydro-Engine/PanelShapes.h #pragma once #include "Panel.h" #include "Primitive.h" class PanelShapes:public Panel { public: PanelShapes(); ~PanelShapes(); bool Update() override; private: Primitive prim; par_shapes_mesh* p_mesh; bool is_created = false; int current_cube = 0; int current_sphere = 0...
PerezEnric/Hydro-Engine
Hydro-Engine/Panel.h
#pragma once #include <string> class Panel { public: Panel(); virtual ~Panel(); virtual bool Update() { return true; }; bool IsActive() const; void ChangeActive(); public: bool is_active = false; std::string name; };