repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
TheHunterDog/WindesheimESA
cpp/Tentamen/Siamees.h
#ifndef SIAMEES___H #define SIAMEES___H #include "Kat.h" class Siamees : public Kat { using Kat::Kat; }; #endif
TheHunterDog/WindesheimESA
MIC/USARTlib/src/usart.c
/* * USART C library * Only 8 data bits, 1 stop bit supported */ #include <avr/io.h> #include <avr/interrupt.h> #define BAUD 9600 #include <util/setbaud.h> // for UBBRL_VALUE etc. #include "usart.h" void USART_Init(void) { /* * UBBR = (F_CPU/(8ul * BAUD)) - 1 * UBRRL_VALUE = (UBBR & 0xFF) * UBBRH_VAL...
TheHunterDog/WindesheimESA
cpp/Tentamen/tentamen.h
<reponame>TheHunterDog/WindesheimESA #ifndef TENTAMEN___H #define TENTAMEN___H void opdracht1(); void opdracht2(); void opdracht3(); unsigned char docent_check(unsigned char input); void print_as_HEX(const unsigned char input); void opdracht4(); void opdracht5(); #endif
TheHunterDog/WindesheimESA
cpp/Tentamen/Kat.h
<reponame>TheHunterDog/WindesheimESA #ifndef KAT___H #define KAT___H const int MAX_NAAM_LENGTE = 80; class Kat { public: Kat(const char naam[]); void praat(); ~Kat(); private: char* naam; }; #endif
TheHunterDog/WindesheimESA
cpp/oefententamen/A_Capella.h
#ifndef MUZIEKSTUK___H #include "Muziekstuk.h" #endif #ifndef A_Capella___H #define A_Capella___H class A_Capella : public Muziekstuk { public: A_Capella(const char titel[], const char componist[]); void uitvoeren(); // using Muziekstuk::GetComponist; // using Muziekstuk::GetTitel; }; #endif
TheHunterDog/WindesheimESA
MIC/USARTlib/src/usart.h
/* * USART C library */ #ifndef USART_H #define USART_H #ifdef __cplusplus extern "C" { #endif /* prototypes */ void USART_Init(); void USART_Init_RXinterupt(); void USART_Transmit(uint8_t b); uint8_t USART_Receive(void); #ifdef __cplusplus } #endif #endif
TheHunterDog/WindesheimESA
cpp/oefententamen/Muziekstuk.h
#ifndef MUZIEKSTUK___H #define MUZIEKSTUK___H const int MAX_NAAM_LENGTE = 80; class Muziekstuk { public: Muziekstuk(const char titel[], const char componist[]); void uitvoeren(); ~Muziekstuk(); char* GetTitel(); char* GetComponist(); private: ...
SZSilence06/THCheater
Core/src/Exports.h
#pragma once #define THAPI _declspec(dllexport) extern "C" { THAPI bool FindGameProcess(); THAPI bool ReadValues(); THAPI int GetLife(); THAPI int GetBomb(); THAPI int GetPower(); THAPI long long GetScore(); THAPI void SetLife(int life); THAPI void SetBomb(int bomb); THAPI void SetPower(int power); THAPI vo...
SZSilence06/THCheater
Core/src/THCheater.h
<reponame>SZSilence06/THCheater #pragma once #include "stdafx.h" #include <vector> class THCheater { public: static THCheater& GetInstance(); ~THCheater(); bool FindProcess(); bool ReadValues(); bool WriteValues(); int GetLife() const { return _life; } int GetBomb() const { return _bomb; } int GetPower() c...
diego-gt/cpp-unicode
src/Unicode.h
#pragma once #ifdef WIN32 #include <fcntl.h> #include <io.h> #endif namespace dgt { void UnicodePrintTest(); }
simple555a/opc-daae-server-sdk-dll
include/Classic/inc64/OpcCmd.h
<reponame>simple555a/opc-daae-server-sdk-dll<gh_stars>1-10 /* this ALWAYS GENERATED file contains the definitions for the interfaces */ /* File created by MIDL compiler version 7.00.0500 */ /* at Mon Jan 17 19:13:42 2011 */ /* Compiler settings for .\OpcCmd.idl: Oicf, W1, Zp8, env=Win64 (32b run) protocol...
simple555a/opc-daae-server-sdk-dll
include/Classic/inc64/opcaedef.h
//============================================================================== // TITLE: opcaedef.h // // CONTENTS: // // Defines constants for the OPC Alarms & Events specification. // // (c) Copyright 1997-2003 The OPC Foundation // ALL RIGHTS RESERVED. // // DISCLAIMER: // This code is provided by the OPC Founda...
simple555a/opc-daae-server-sdk-dll
examples/dll/DaSampleServer/IClassicBaseNodeManager.h
/* * Copyright (c) 2011-2019 Technosoftware GmbH. All rights reserved * Web: https://technosoftware.com * * Purpose: * * 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 restrict...
simple555a/opc-daae-server-sdk-dll
include/Classic/inc64/opccomn.h
/* this ALWAYS GENERATED file contains the definitions for the interfaces */ /* File created by MIDL compiler version 7.00.0500 */ /* at Mon Jan 17 19:13:34 2011 */ /* Compiler settings for .\opccomn.idl: Oicf, W1, Zp8, env=Win64 (32b run) protocol : dce , ms_ext, c_ext, robust error checks: allocatio...
simple555a/opc-daae-server-sdk-dll
include/Classic/inc64/OpcSec.h
/* this ALWAYS GENERATED file contains the definitions for the interfaces */ /* File created by MIDL compiler version 7.00.0500 */ /* at Mon Jan 17 19:13:34 2011 */ /* Compiler settings for .\OpcSec.idl: Oicf, W1, Zp8, env=Win64 (32b run) protocol : dce , ms_ext, c_ext, robust error checks: allocation...
simple555a/opc-daae-server-sdk-dll
include/Classic/inc64/OpcDx.h
<gh_stars>1-10 /* this ALWAYS GENERATED file contains the definitions for the interfaces */ /* File created by MIDL compiler version 7.00.0500 */ /* at Mon Jan 17 19:13:42 2011 */ /* Compiler settings for .\OpcDx.idl: Oicf, W1, Zp8, env=Win64 (32b run) protocol : dce , ms_ext, c_ext, robust error chec...
simple555a/opc-daae-server-sdk-dll
include/Classic/inc32/opc_ae.h
/* this ALWAYS GENERATED file contains the definitions for the interfaces */ /* File created by MIDL compiler version 7.00.0500 */ /* at Mon Jan 17 19:41:22 2011 */ /* Compiler settings for .\opc_ae.idl: Oicf, W1, Zp8, env=Win32 (32b run) protocol : dce , ms_ext, c_ext error checks: allocation ref bou...
mrbooshehri/dwm
patch/include.c
<gh_stars>0 /* Bar functionality */ #include "bar_indicators.c" #include "bar_tagicons.c" #include "bar_alternativetags.c" #include "bar_anybar.c" #include "bar_dwmblocks.c" #include "bar_ewmhtags.c" #include "combo.c" #include "bar_ltsymbol.c" #include "bar_status.c" #include "bar_statusbutton.c" #include "bar_status...
mrbooshehri/dwm
patch/include.h
<gh_stars>0 /* Bar functionality */ #include "bar_indicators.h" #include "bar_tagicons.h" #include "bar_alternativetags.h" #include "bar_anybar.h" #include "bar_dwmblocks.h" #include "bar_ewmhtags.h" #include "combo.h" #include "bar_ltsymbol.h" #include "bar_status.h" #include "bar_statusbutton.h" #include "bar_status...
mrbooshehri/dwm
patch/xrdb.c
void loadxrdb() { Display *display; char * resm; XrmDatabase xrdb; char *type; XrmValue value; display = XOpenDisplay(NULL); if (display != NULL) { resm = XResourceManagerString(display); if (resm != NULL) { xrdb = XrmGetStringDatabase(resm); if (xrdb != NULL) { XRDB_LOAD_COLOR("dwm.color7", n...
mrbooshehri/dwm
patch/bar_anybar.c
<filename>patch/bar_anybar.c<gh_stars>0 void managealtbar(Window win, XWindowAttributes *wa) { Monitor *m; Bar *bar; int i = 0; if (!(m = recttomon(wa->x, wa->y, wa->width, wa->height))) return; for (bar = m->bar; bar && bar->win && bar->next; bar = bar->next); // find last bar if (!bar) { bar = m->bar = ecal...
mrbooshehri/dwm
patch/ipc.c
static int epoll_fd; static int dpy_fd; static Monitor *lastselmon; int handlexevent(struct epoll_event *ev) { if (ev->events & EPOLLIN) { XEvent ev; while (running && XPending(dpy)) { XNextEvent(dpy, &ev); /* Unfortunately the xkbEventType is not constant hence it can't be part of the * normal event ha...
guyjeangilles/raspswitch-mirror
src/bluetooth_gamepad_atmega32u4.c
/* Bluetooth Gamepad Firmware The Circuit Push Button (x14) -5V to push button -10k resistor from GND to pushbutton -SN74HC165N data input to 10K resistor Thumb Joystick (x2) -VCC to 5V -VERT to arduino analog pin -HORZ to arduino analog pin -SEL to arduino digital pin, 10k resistor to ard...
zraskmenot/simple_json
src/lite_json.h
<gh_stars>0 #pragma once #include <iostream> #include <fstream> #include <vector> #include <map> #include <regex> class json { public: json(); json(std::string _path); std::map<std::string, std::string>& get(); private: void loadJson(std::string _path); void cutJson(std::string aimed_str, std::map<std::string, s...
NickBow/CartTest
CarthageFrameworkTest/CarthageFrameworkTest/CarthageFrameworkTest.h
// // CarthageFrameworkTest.h // CarthageFrameworkTest // // Created by <NAME> on 4/10/17. // Copyright © 2017 Small Planet Digital. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for CarthageFrameworkTest. FOUNDATION_EXPORT double CarthageFrameworkTestVersionNumber; //! Project versi...
Darktega/3D-Projectile
game_loop.h
#ifndef GAMELOOP_H_INCLUDED #define GAMELOOP_H_INCLUDED #include <SDL2/SDL.h> #include <exception> #include <string> #include <vector> #include <cmath> #include "sdl_graphics.h" #include "simulation_state.h" class GameLoopException : public std::exception { private: std::string msg; public: ...
Darktega/3D-Projectile
background.h
<filename>background.h #ifndef _BACKGROUND_H #define _BACKGROUND_H #include "graphics_component.h" #include "point3d.h" #include "camera.h" #include "transform.h" class Background { private: GraphicsComponent gc; std::vector<Point3d> pointsX1; std::vector<Point3d> pointsZ1; std::vector<Point3d> pointsX2; s...
Darktega/3D-Projectile
transform.h
<gh_stars>0 #ifndef _TRANSFORM_H #define _TRANSFORM_H #include <cmath> #include <vector> #include <iostream> #include "camera.h" #include "point2d.h" #include "point3d.h" class Camera; class Transform { private: public: Transform(); ~Transform(); // Traslación static Point3d translatePoint( Point3d, int ...
Darktega/3D-Projectile
graphics_component.h
#ifndef _GRAPHICS_COMPONENT_H #define _GRAPHICS_COMPONENT_H #include <SDL2/SDL.h> #include <SDL2/SDL_ttf.h> #include <string> class GraphicsComponent { private: SDL_Texture* texture; int mWidth; int mHeight; void freeTexture(); public: // Constructors GraphicsComponent(); ~GraphicsComponent(); /...
Darktega/3D-Projectile
simulation_state.h
#ifndef _SIMULATION_STATE_H #define _SIMULATION_STATE_H #include <algorithm> #include <cmath> #include <iostream> #include <vector> #include "camera.h" #include "projectile.h" #include "transform.h" #include "sdl_graphics.h" #include "background.h" class SimulationState { private: // Simulación Camera cam; ...
Darktega/3D-Projectile
camera.h
<filename>camera.h<gh_stars>0 #ifndef _CAMERA_H #define _CAMERA_H #include <vector> #include <cmath> #include "point3d.h" #include "orientation.h" #include "transform.h" class Camera { private: Point3d position; Orientation angle; int circleStep; std::vector<Point3d> route; public: static const int DI...
Darktega/3D-Projectile
point3d.h
<gh_stars>0 #ifndef _POINT3D_H #define _POINT3D_H class Point3d { protected: int x; int y; int z; public: Point3d( int = 0, int = 0, int = 0 ); ~Point3d(); void X( int ); void Y( int ); void Z( int ); int X(); int Y(); int Z(); Point3d& operator= (Point3d); }; #endif //_POINT3D_H
Darktega/3D-Projectile
point2d.h
<gh_stars>0 #ifndef _POINT2D_H #define _POINT2D_H class Point2d { private: int x; int y; public: Point2d( int = 0, int = 0 ); ~Point2d(); void X( int ); void Y( int ); int X(); int Y(); Point2d& operator= ( Point2d ); }; #endif //_POINT2D_H
Darktega/3D-Projectile
projectile.h
#ifndef _PROJECTILE_H #define _PROJECTILE_H #include <iostream> #include <vector> #include <algorithm> #include "point3d.h" #include "point2d.h" #include "orientation.h" #include "transform.h" #include "graphics_component.h" class Projectile { private: // Physics Point3d initPos; Point3d center; Orienta...
Darktega/3D-Projectile
orientation.h
#ifndef _ORIENTATION_H #define _ORIENTATION_H class Orientation { private: double angleX; double angleY; double angleZ; public: Orientation( double = 0.0, double = 0.0, double = 0.0 ); ~Orientation(); // Setters void AngleX( double ); void AngleY( double ); void AngleZ( double ); // Getters ...
dZ8Lx9OwX/cnKiTTY
blocnote/notepad.c
<reponame>dZ8Lx9OwX/cnKiTTY #include <stdio.h> #include <stdbool.h> #include "notepad.h" LRESULT CALLBACK Notepad_WndProc(HWND, UINT, WPARAM, LPARAM); int Notepad_open( HWND hwnd, HWND hEdit ) ; int Notepad_saveas( HWND hwnd, HWND hEdit ) ; int Notepad_load( char * szFile, HWND hEdit ) ; int Notepad_save( char * szFil...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/minibidi.c
/************************************************************************ * * ------------ * Description: * ------------ * This is an implementation of Unicode's Bidirectional Algorithm * (known as UAX #9). * * http://www.unicode.org/reports/tr9/ * * Author: <NAME> * * (www.arabeyes.org - unde...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/licence.h
/* * licence.h - macro definitions for the PuTTY licence. * * Generated by cmake/licence.cmake from ./LICENCE. * You should edit those files rather than editing this one. */ #define LICENCE_TEXT(parsep) \ "PuTTY is copyright 1997-2022 <NAME>." \ parsep \ "部分版权属于:<NAME>, <NAME>, <NAME>, <NAME>, <NAME>,...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/windows/winsftp.c
/* * winsftp.c: the Windows-specific parts of PSFTP and PSCP. */ #include <winsock2.h> /* need to put this first, for winelib builds */ #include <assert.h> #define NEED_DECLARATION_OF_SELECT #include "putty.h" #include "psftp.h" #include "ssh.h" #include "winsecur.h" #ifdef MOD_PERSO #include <wine...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/ssh2bpp.c
<gh_stars>0 /* * Binary packet protocol for SSH-2. */ #include <assert.h> #include "putty.h" #include "ssh.h" #include "sshbpp.h" #include "sshcr.h" struct ssh2_bpp_direction { unsigned long sequence; ssh_cipher *cipher; ssh2_mac *mac; bool etm_mode; const ssh_compression_alg *p...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/windows/wincons.c
<reponame>dZ8Lx9OwX/cnKiTTY /* * wincons.c - various interactive-prompt routines shared between * the Windows console PuTTY tools */ #include <stdio.h> #include <stdlib.h> #include "putty.h" #include "storage.h" #include "ssh.h" #ifdef MOD_PERSO int GetAutoStoreSSHKeyFlag(void) ; #endif #include "console.h" voi...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/ssh2bpp-bare.c
/* * Trivial binary packet protocol for the 'bare' ssh-connection * protocol used in PuTTY's SSH-2 connection sharing system. */ #include <assert.h> #include "putty.h" #include "ssh.h" #include "sshbpp.h" #include "sshcr.h" struct ssh2_bare_bpp_state { int crState; long packetlen, maxlen; ...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/sshchan.h
/* * Abstraction of the various ways to handle the local end of an SSH * connection-layer channel. */ #ifndef PUTTY_SSHCHAN_H #define PUTTY_SSHCHAN_H typedef struct ChannelVtable ChannelVtable; struct ChannelVtable { void (*free)(Channel *); /* Called for channel types that were created at t...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/be_none.c
/* * Linking module for programs that do not support selection of backend * (such as pterm). */ #include <stdio.h> #include "putty.h" const int be_default_protocol = -1; const struct BackendVtable *const backends[] = { NULL }; const size_t n_ui_backends = 0;
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/windows/winselgui.c
/* * Implementation of do_select() for winnet.c to use, that uses * WSAAsyncSelect to convert network activity into window messages, * for integration into a GUI event loop. */ #include "putty.h" static HWND winsel_hwnd = NULL; void winselgui_set_hwnd(HWND hwnd) { winsel_hwnd = hwnd; } void w...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/pockle.c
<filename>0.76_My_PuTTY/pockle.c<gh_stars>1000+ #include <assert.h> #include "ssh.h" #include "sshkeygen.h" #include "mpint.h" #include "mpunsafe.h" #include "tree234.h" typedef struct PocklePrimeRecord PocklePrimeRecord; struct Pockle { tree234 *tree; PocklePrimeRecord **list; size_t nlist,...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/scpserver.c
<reponame>dZ8Lx9OwX/cnKiTTY<filename>0.76_My_PuTTY/scpserver.c /* * Server side of the old-school SCP protocol. */ #include <assert.h> #include <stdio.h> #include <stdlib.h> #include "putty.h" #include "ssh.h" #include "sshcr.h" #include "sshchan.h" #include "sftp.h" /* * I think it's worth actuall...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/windows/wincfg.c
/* * wincfg.c - the Windows-specific parts of the PuTTY configuration * box. */ #include <assert.h> #include <stdlib.h> #include "putty.h" #include "dialog.h" #include "storage.h" static void about_handler(union control *ctrl, dlgparam *dlg, void *data, int event) { HWND *hwndp = (HWND *)ctrl->generic.co...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/sshblake2.c
/* * BLAKE2 (RFC 7693) implementation for PuTTY. * * The BLAKE2 hash family includes BLAKE2s, in which the hash state is * operated on as a collection of 32-bit integers, and BLAKE2b, based * on 64-bit integers. At present this code implements BLAKE2b only. */ #include <assert.h> #include "ssh.h" sta...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/testzlib.c
/* * Main program to compile sshzlib.c into a zlib decoding tool. * * This is potentially a handy tool in its own right for picking apart * Zip files or PDFs or PNGs, because it accepts the bare Deflate * format and the zlib wrapper format, unlike 'zcat' which accepts * only the gzip wrapper format. * *...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/smallprimes.c
/* * smallprimes.c: implementation of the array of small primes defined * in sshkeygen.h. */ #include <assert.h> #include "ssh.h" #include "sshkeygen.h" /* The real array that stores the primes. It has to be writable in * this module, but outside this module, we only expose the * const-qualified point...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/marshal.c
#include <assert.h> #include <stddef.h> #include <string.h> #include "marshal.h" #include "misc.h" void BinarySink_put_data(BinarySink *bs, const void *data, size_t len) { bs->write(bs, data, len); } void BinarySink_put_datapl(BinarySink *bs, ptrlen pl) { BinarySink_put_data(bs, pl.ptr, pl.len)...
dZ8Lx9OwX/cnKiTTY
kitty_image.h
<gh_stars>1-10 #ifdef MOD_BACKGROUNDIMAGE #include <stdbool.h> extern HDC textdc; extern HBITMAP textbm; extern HBITMAP backgroundbm; extern HDC backgroundblenddc; extern HBITMAP backgroundblendbm; extern COLORREF colorinpixel; extern HDC colorinpixeldc; extern HBITMAP colorinpixelbm; extern HDC backgrounddc; extern...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/windows/winselcli.c
<filename>0.76_My_PuTTY/windows/winselcli.c /* * Implementation of do_select() for winnet.c to use, suitable for use * when there's no GUI window to have network activity reported to. * * It uses WSAEventSelect, where available, to convert network * activity into activity on an event object, for integration i...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/sshkeygen.h
/* * sshkeygen.h: routines used internally to key generation. */ /* ---------------------------------------------------------------------- * A table of all the primes that fit in a 16-bit integer. Call * init_primes_array to make sure it's been initialised. */ #define NSMALLPRIMES 6542 /* number of prim...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/windows/pageant-rc.h
/* * Constant definitions for the Pageant resource file. */ #ifndef MOD_INTEGRATED_AGENT #define IDI_MAINICON 200 #define IDI_TRAYICON 201 #else #define IDI_MAINICON_AGENT 900 #define IDI_TRAYICON 901 #endif #define IDD_KEYLIST 211 #define IDD_LOAD_PASSPHRASE 210 #define IDD_ONDEMAND_PASSPHRASE 212 #...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/sshrsag.c
<gh_stars>1000+ /* * RSA key generation. */ #include <assert.h> #include "ssh.h" #include "sshkeygen.h" #include "mpint.h" #define RSA_EXPONENT 65537 #define NFIRSTBITS 13 static void invent_firstbits(unsigned *one, unsigned *two, unsigned min_separation); typedef str...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/sftp.c
/* * sftp.c: SFTP generic client code. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <limits.h> #include "misc.h" #include "tree234.h" #include "sftp.h" static const char *fxp_error_message; static int fxp_errtype; static void fxp_internal_error(const char *msg); /* -...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/clicons.c
/* * clicons.c: definitions limited to tools that link against both * console.c and cmdline.c. */ #include "putty.h" static const LogPolicyVtable console_cli_logpolicy_vt = { .eventlog = console_eventlog, .askappend = console_askappend, .logging_error = console_logging_error, .verbose = ...
dZ8Lx9OwX/cnKiTTY
kitty_puttytray.c
<filename>kitty_puttytray.c // Saved sessions enumeration. struct enumsettings { HKEY key; int i; int fromFile; HANDLE hFile; }; // Random seed functions enumeration enum { DEL, OPEN_R, OPEN_W }; // PUTTY Tray / PuTTY File - global storage type static int storagetype = 0; // 0 = registry, 1 = file // PUTTY...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/sesschan.c
<filename>0.76_My_PuTTY/sesschan.c /* * Implement the "session" channel type for the SSH server. */ #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include "putty.h" #include "ssh.h" #include "sshchan.h" #include "sshserver.h" #include "sftp.h" struct agentfwd { C...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/noproxy.c
<gh_stars>1000+ /* * noproxy.c: an alternative to proxy.c, for use by auxiliary programs * that need to make network connections but don't want to include all * the full-on support for endless network proxies (and its * configuration requirements). Implements the primary APIs of * proxy.c, but maps them strai...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/cgtest.c
<reponame>dZ8Lx9OwX/cnKiTTY /* * cgtest.c: stub file to compile cmdgen.c in self-test mode */ /* * Before we #include cmdgen.c, we override some function names for * test purposes. We do this via #define, so that when we link against * modules containing the original versions, we don't get a link-time * ...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/psocks.c
/* * Platform-independent parts of a standalone SOCKS server program * based on the PuTTY SOCKS code. */ #include <string.h> #include <errno.h> #include "putty.h" #include "misc.h" #include "ssh.h" #include "sshchan.h" #include "psocks.h" /* * Possible later TODOs: * * - verbosity setting for...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/ecc.h
#ifndef PUTTY_ECC_H #define PUTTY_ECC_H /* * Arithmetic functions for the various kinds of elliptic curves used * by PuTTY's public-key cryptography. * * All of these elliptic curves are over the finite field whose order * is a large prime p. (Elliptic curves over a field of order 2^n are * also known, ...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/sshbpp.h
<gh_stars>1000+ /* * Abstraction of the binary packet protocols used in SSH. */ #ifndef PUTTY_SSHBPP_H #define PUTTY_SSHBPP_H typedef struct BinaryPacketProtocolVtable BinaryPacketProtocolVtable; struct BinaryPacketProtocolVtable { void (*free)(BinaryPacketProtocol *); void (*handle_input)(Binar...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/sshpubk.c
/* * Generic SSH public-key handling operations. In particular, * reading of SSH public-key files, and also the generic `sign' * operation for SSH-2 (which checks the type of the key and * dispatches to the appropriate key-type specific function). */ #include <stdio.h> #include <string.h> #include <errno...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/windows/puttygen-rc.h
#define IDC_PPKVER_STATIC 100 #define IDC_PPKVER_2 101 #define IDC_PPKVER_3 102 #define IDC_KDF_STATIC 103 #define IDC_KDF_ARGON2ID 104 #define IDC_KDF_ARGON2I 105 #define IDC_KDF_ARGON2D 106 #defi...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/sshmd5.c
/* * MD5 implementation for PuTTY. Written directly from the spec by * <NAME>. */ #include <assert.h> #include "ssh.h" static const uint32_t md5_initial_state[] = { 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, }; static const struct md5_round_constant { uint32_t addition, rotation, msg_ind...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/sshdssg.c
/* * DSS key generation. */ #include "misc.h" #include "ssh.h" #include "sshkeygen.h" #include "mpint.h" int dsa_generate(struct dss_key *key, int bits, PrimeGenerationContext *pgc, ProgressReceiver *prog) { /* * Progress-reporting setup. * * DSA generation involve...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/sshsignals.h
<filename>0.76_My_PuTTY/sshsignals.h /* * List of signal names known to SSH, indicating whether PuTTY's UI * for special session commands likes to put them in the main specials * menu or in a submenu (and if the former, what title they have). * * This is a separate header file rather than my usual style of a * pa...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/mpint_i.h
<filename>0.76_My_PuTTY/mpint_i.h /* * mpint_i.h: definitions used internally by the bignum code, and * also a few other vaguely-bignum-like places. */ /* ---------------------------------------------------------------------- * The assorted conditional definitions of BignumInt and multiply * macros used th...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/windows/winmiscs.c
<filename>0.76_My_PuTTY/windows/winmiscs.c /* * winmiscs.c: Windows-specific standalone functions. Has the same * relationship to winmisc.c that utils.c does to misc.c, but the * corresponding name 'winutils.c' was already taken. */ #include "putty.h" #ifndef NO_SECUREZEROMEMORY /* * Windows implementation of sm...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/sshutils.c
<gh_stars>1000+ /* * Supporting routines used in common by all the various components of * the SSH system. */ #include <assert.h> #include <stdlib.h> #include "putty.h" #include "ssh.h" #include "sshchan.h" /* ---------------------------------------------------------------------- * Centralised stand...
dZ8Lx9OwX/cnKiTTY
kitty_commun.c
/* * Fichier contenant les procedures communes à tous les programmes putty, pscp, psftp, plink, pageant */ #include "kitty_commun.h" #include "kitty_tools.h" // Flag permettant d'activer l'acces a du code particulier permettant d'avoir plus d'info dans le kitty.dmp int debug_flag = 0 ; #ifdef MOD_PERSO #ifndef SA...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/psocks.h
typedef struct psocks_state psocks_state; typedef struct PsocksPlatform PsocksPlatform; typedef struct PsocksDataSink PsocksDataSink; /* indices into PsocksDataSink arrays */ typedef enum PsocksDirection { UP, DN } PsocksDirection; typedef struct PsocksDataSink { void (*free)(PsocksDataSink *); Bin...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/norand.c
<reponame>dZ8Lx9OwX/cnKiTTY<gh_stars>1000+ /* * Stub implementations of RNG functions for applications without an RNG. */ #include "putty.h" void random_read(void *out, size_t size) { unreachable("Random numbers are not available in this application"); } void random_save_seed(void) { } void ra...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/pageant.h
<filename>0.76_My_PuTTY/pageant.h<gh_stars>1000+ /* * pageant.h: header for pageant.c. */ #include <stdarg.h> #ifdef MOD_PERSO NOTIFYICONDATA trayIcone ; int GetAskConfirmationFlag(void) ; int GetShowBalloonOnKeyUsage( void ) ; int ShowBalloonTip( NOTIFYICONDATA tnid, TCHAR title[], TCHAR msg[] ) ; #end...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/console.h
<filename>0.76_My_PuTTY/console.h /* * Common pieces between the platform console frontend modules. */ extern const char hk_absentmsg_common_fmt[]; extern const char hk_absentmsg_interactive_intro[]; extern const char hk_absentmsg_interactive_prompt[]; extern const char hk_wrongmsg_common_fmt[]; extern const...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/be_nos_s.c
/* * Linking module for PuTTYtel: list the available backends not * including ssh. */ #include <stdio.h> #include "putty.h" const int be_default_protocol = PROT_TELNET; const char *const appname = "PuTTYtel"; const struct BackendVtable *const backends[] = { &telnet_backend, &serial_backend, &rlogin_b...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/ssh2userauth.c
<filename>0.76_My_PuTTY/ssh2userauth.c /* * Packet protocol layer for the client side of the SSH-2 userauth * protocol (RFC 4252). */ #include <assert.h> #include "putty.h" #include "ssh.h" #include "sshbpp.h" #include "sshppl.h" #include "sshcr.h" #ifndef NO_GSSAPI #include "sshgssc.h" #include "sshgss.h" #endif...
dZ8Lx9OwX/cnKiTTY
kitty.c
/************************************************* ** DEFINITION DES INCLUDES *************************************************/ // Includes classiques #include <dirent.h> #include <io.h> #include <process.h> #include <stdio.h> #include <stdlib.h> #include <sys/locking.h> #include <sys/stat.h> #include <sys/types.h> /...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/sshcr.h
<filename>0.76_My_PuTTY/sshcr.h /* * Coroutine mechanics used in PuTTY's SSH code. */ #ifndef PUTTY_SSHCR_H #define PUTTY_SSHCR_H /* * If these macros look impenetrable to you, you might find it helpful * to read * * https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html * * which explain...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/sshargon2.c
/* * Implementation of the Argon2 password hash function. * * My sources for the algorithm description and test vectors (the latter in * test/cryptsuite.py) were the reference implementation on Github, and also * the Internet-Draft description: * * https://github.com/P-H-C/phc-winner-argon2 * https:...
dZ8Lx9OwX/cnKiTTY
0.76_My_PuTTY/windows/winplink.c
/* * PLink - a Windows command-line (stdin/stdout) variant of PuTTY. */ #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <stdarg.h> #include "putty.h" #include "storage.h" #include "tree234.h" #include "winsecur.h" #ifdef MOD_PERSO // Flag pour le fonctionnement en mode "portable" (gestion par f...
Cai-Zi/STM32_PWMtoPPM
BaseDrive/Nvic.c
#include "stm32f10x.h" #include <stdio.h> #include "Nvic.h" void NVIC_Configuration(void) { NVIC_InitTypeDef NVIC_InitStructure; #ifdef VECT_TAB_RAM /* Set the Vector Table base location at 0x20000000 */ NVIC_SetVectorTable(NVIC_VectTab_RAM, 0x0); #else /* VECT_TAB_FLASH */ /* Set the Vector Table ...
Cai-Zi/STM32_PWMtoPPM
BaseDrive/Nvic.h
<filename>BaseDrive/Nvic.h #ifndef _NVIC_H_ #define _NVIC_H_ void NVIC_Configuration(void); #endif
Cai-Zi/STM32_PWMtoPPM
BaseDrive/uart.h
#ifndef _UART_H_ #define _UART_H_ #include "stm32f10x.h" void uart_init(void); void USART_SendString(USART_TypeDef* USARTx, uint8_t *str); #endif /* _UART_H_ */ /******************* (C) COPYRIGHT 2012 WangBao *****END OF FILE****/
Cai-Zi/STM32_PWMtoPPM
User/ppm.c
<filename>User/ppm.c #include "stm32f10x.h" #include <stdio.h> #include "ppm.h" #include "systick.h" enum { RC_CH1 = 0, RC_CH2, RC_CH3, RC_CH4, RC_CH5, RC_CH6, RC_CH7, RC_CH8, RC_CH_NUM }; // {36000, 2} ~ 1000us // {36000, 1} ~ 500us #define TIM_COUNTER 36000 #define TIM_PSC 2 st...
Cai-Zi/STM32_PWMtoPPM
User/systick.c
<reponame>Cai-Zi/STM32_PWMtoPPM #include "stm32f10x.h" #include "systick.h" #include "ppm.h" #define MS 20 #define MS_TICK 72000 #define PERIOD MS*MS_TICK void systick_init(unsigned int cnt) { SysTick_Config(cnt); /* select clk source for systick */ SysTick_CLKSourceConfig(SysTick_CLKSource_HCL...
Cai-Zi/STM32_PWMtoPPM
User/ppm.h
#ifndef _PPM_H_ #define _PPM_H_ #include "stm32f10x.h" /* __ __ * s_p | |d_p | | * ____| |___________| |__ */ void LedInit(void); void Timer2Init(void); void Timer2_IRQ(void); void Timer4Init(void); void Timer4_IRQ(void); void ppm_output(void); #endif // _PPM_H_
Cai-Zi/STM32_PWMtoPPM
BaseDrive/SystemClock.h
<gh_stars>1-10 #ifndef _SYSTEM_CLOCK_H_ #define _SYSTEM_CLOCK_H_ void RCC_Configuration(void); #endif
Cai-Zi/STM32_PWMtoPPM
BaseDrive/uart.c
#include "uart.h" #include "stdio.h" void uart_init(void) { USART_InitTypeDef USART_InitStructure; GPIO_InitTypeDef GPIO_InitStructure; RCC_APB2PeriphClockCmd(RCC_APB2Periph_USART1, ENABLE); RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA , ENABLE); // TX GPIO_InitStructure.GPIO_Pin = GPIO_Pi...
Cai-Zi/STM32_PWMtoPPM
User/systick.h
<filename>User/systick.h #ifndef _SYSTICK_H_ #define _SYSTICK_H_ #define SYSTICK_VAL() ((uint32_t)SysTick->VAL) void systick_init(unsigned int); void Systick_IRQ(void); #endif //_SYSTICK_H_
tmytokai/template_12f683
template.X/main.c
<gh_stars>0 #include "config.h" #include "setting.h" void main(void){ init(); while(1){ GP5 = 1; __delay_ms(1000); GP5 = 0; __delay_ms(1000); } return; }
tmytokai/template_12f683
template.X/setting.h
<reponame>tmytokai/template_12f683 #ifndef _SETTING_H #define _SETTING_H // オシレータ(発振回路)の設定です(今回は 4 Mhz) // 詳しくはデータシート 22p を参照してください #define _OSCCON 0b01100000 // __delay_ms 関数を使う場合に define する必要がある設定です // 上のオシレータの設定と周波数を合わせてください(今回は 4 Mhz) #define _XTAL_FREQ 4000000 // デジタル入力を使う場合はコメントアウトを解除してください //#define USE_INPUT...
tmytokai/template_12f683
template.X/ccp_pwm.c
// // PWM // #include "setting.h" #ifdef USE_CCP1_PWM // CCP1 を PWM モードで初期化 void init_ccp1_pwm(void) { // CCP1 の動作モードを設定します // 0b1100 をセットすると PWM 出力モードになります // 詳しくはデータシート 77 p を参照してください CCP1CONbits.CCP1M = 0b1100 ; // CCP1 には Timer2 が接続されます // Timer2 の動作クロックは FOSC/4 で固定です // Timer2 の...
tmytokai/template_12f683
template.X/adc.c
// // A/D変換 // #include "setting.h" #ifdef USE_ADC // ADC 初期化 void init_adc(void) { // ポートの入出力設定を上書きします // 0 にすると出力モード、1 にすると入力モードになります // 詳しくはデータシート 34 p を参照してください TRISIO = TRISIO | ? ; // ポートのアナログ入力を上書きします // 0 にするとデジタル入出力モード、1 にするとアナログ入力モードになります // アナログ入力モードにする場合は対応する TRISIO も入力モードにし...
tmytokai/template_12f683
template.X/config.h
#ifndef _CONFIG_H #define _CONFIG_H // Configuration Word, 詳しくはデータシート 86p 参照 #pragma config FOSC = INTOSCIO // Oscillator Selection bits (INTOSCIO oscillator: I/O function on RA4/OSC2/CLKOUT pin, I/O function on RA5/OSC1/CLKIN) #pragma config WDTE = OFF // Watchdog Timer Enable bit (WDT disabled) #pragma config...
tmytokai/template_12f683
template.X/init.c
<filename>template.X/init.c //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // このファイルの内容は書き換えないでください //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! #include "setting.h" // 全体初期化 void init(void) { OSCCON = _OSCCON; GPIO = 0x0; TRISIO = 0x0; ANSEL = 0x0; #ifdef USE_INPUT init_input(); #endif #if...