repo_name string | path string | text string |
|---|---|---|
skylib/SnapSnapshotBase | SnapFBSnapshotBaseExample/Pods/Target Support Files/Pods-Snapshot_tests/Pods-Snapshot_tests-umbrella.h | #ifdef __OBJC__
#import <UIKit/UIKit.h>
#endif
FOUNDATION_EXPORT double Pods_Snapshot_testsVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_Snapshot_testsVersionString[];
|
skylib/SnapSnapshotBase | SnapFBSnapshotBaseExample/Pods/Target Support Files/SnapFBSnapshotBase/SnapFBSnapshotBase-umbrella.h | <gh_stars>1-10
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#endif
#import "SnapFBSnapshotBase.h"
#import "SnapFBSnapshotSwiftTestCase.h"
FOUNDATION_EXPORT double SnapFBSnapshotBaseVersionNumber;
FOUNDATION_EXPORT const unsigned char SnapFBSnapshotBaseVersionString[];
|
skylib/SnapSnapshotBase | SnapFBSnapshotBaseExample/Pods/Target Support Files/Pods-SnapFBSnapshotBaseExample/Pods-SnapFBSnapshotBaseExample-umbrella.h | <filename>SnapFBSnapshotBaseExample/Pods/Target Support Files/Pods-SnapFBSnapshotBaseExample/Pods-SnapFBSnapshotBaseExample-umbrella.h
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#endif
FOUNDATION_EXPORT double Pods_SnapFBSnapshotBaseExampleVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_SnapFBSnapshotBaseExamp... |
skylib/SnapSnapshotBase | SnapFBSnapshotBase/SnapFBSnapshotSwiftTestCase.h | #import <FBSnapshotTestCase/FBSnapshotTestCase-umbrella.h>
@interface SnapFBSnapshotSwiftTestCase : FBSnapshotTestCase
- (void)verifyView:(UIView *)view;
@end
|
skylib/SnapSnapshotBase | SnapFBSnapshotBase/SnapFBSnapshotBase.h | #define kIphone4PortraitRect CGRectMake(0, 0, 320, 480)
#define kIphone4PortraitSizeClasses @[@(UIUserInterfaceSizeClassCompact), @(UIUserInterfaceSizeClassRegular)]
#define kIphone5PortraitRect CGRectMake(0, 0, 320, 568)
#define kIphone5PortraitSizeClasses @[@(UIUserInterfaceSizeClassCompact), @(UIUserInterfaceSizeCl... |
graphitemaster/pds2tc | s2tc.c | #include <string.h> /* memcpy */
#include <assert.h>
#include "s2tc.h"
/* Min and max macros */
#define S2TC_MIN(A, B) (((A) < (B)) ? (A) : (B))
#define S2TC_MAX(A, B) (((A) > (B)) ? (A) : (B))
/* Right shift and round */
#define RSHIFT(A, N) (((A) + (1 << ((N) - 1))) >> (N))
/* Color subtraction */
#define CSUB(A, B... |
graphitemaster/pds2tc | s2tc.h | #ifndef S2TC_HDR
#define S2TC_HDR
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif /*!__cplusplus*/
/**
* Type: s2tc_dxt_mode_t
* The DXT mode to use for a context
*/
typedef enum {
S2TC_DXT1,
S2TC_DXT3,
S2TC_DXT5
} s2tc_dxt_mode_t;
/**
* Type: s2tc_dist_mode_t
* The color distance mode ... |
dariosanfilippo/bitstream_ANN_DSP | dsm.h | <gh_stars>1-10
/*
* *****************************************************************************
*
* Delta-sigma modulators.
*
* *****************************************************************************
*/
#ifndef DSM
#define DSM
void dsm1(Sig* in, Sig* out, size_t in_vec_id, size_t out_vec_id);
voi... |
dariosanfilippo/bitstream_ANN_DSP | osc.h | <filename>osc.h
/*
* *****************************************************************************
*
* Oscillators
*
* *****************************************************************************
*/
#ifndef OSC
#define OSC
#define TWOPI 2.0 * M_PI
void sine(size_t sr, audio amp, audio freq, audio phase,... |
dariosanfilippo/bitstream_ANN_DSP | random.c | /* Unit-bounded floatng-point random numbers. */
#include "random.h"
audio frand(void) {
return rand() / (audio) RAND_MAX;
}
|
dariosanfilippo/bitstream_ANN_DSP | tests/fulladder_test.c | <reponame>dariosanfilippo/bitstream_ANN_DSP
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdbool.h>
#include <assert.h>
#include "signals.c"
#include "osc.c"
#include "dsm.c"
#include "bitmath.c"
int main(void) {
FILE *fptr;
fptr = fopen("fa.csv", "w+");
size_t l... |
dariosanfilippo/bitstream_ANN_DSP | osc.c | /*******************************************************************************
*
* Sinusoidal oscillator.
*
* Copyright (c) <NAME> 2021.
*
*******************************************************************************/
#include "osc.h"
void sine(size_t sr, audio amp, audio freq, audio phase, Sig* ou... |
dariosanfilippo/bitstream_ANN_DSP | freq_est_uni.c | /*******************************************************************************
*
* This file is used to train and test unipolar networks for the estimation
* of the frequency in DSM sinusoids with different frequency, amplitude,
* and phase values. These networks, in particular, are used with the ... |
dariosanfilippo/bitstream_ANN_DSP | data.h | /*******************************************************************************
*
* This module contains functions for the generation of training and
* test data for frequency and amplitude estimation, and sum and
* multiplication operations.
*
* Copyright (c) <NAME> 2021.
*
****************... |
dariosanfilippo/bitstream_ANN_DSP | bitmath.h | <reponame>dariosanfilippo/bitstream_ANN_DSP<gh_stars>1-10
/*******************************************************************************
*
* This module contains delta-sigma arithmetic operators.
*
* Reference:
* <NAME> (2009) -- Bit-stream signal processing on FPGA.
* http://hub.hku... |
dariosanfilippo/bitstream_ANN_DSP | bitmath.c | /*******************************************************************************
*
* This module contains delta-sigma arithmetic operators.
*
* Reference:
* Ch<NAME> (2009) -- Bit-stream signal processing on FPGA.
* http://hub.hku.hk/handle/10722/54513
*
* Copyright (c) <NAME> 2... |
dariosanfilippo/bitstream_ANN_DSP | random.h | /* Unit-bounded floatng-point random numbers. */
audio frand(void);
|
dariosanfilippo/bitstream_ANN_DSP | signals.h | /*******************************************************************************
*
* This module implements an infrastructure to operate with signals
* based on a vector space representation.
*
* Copyright (c) <NAME> 2021.
*
*************************************************************************... |
dariosanfilippo/bitstream_ANN_DSP | signals.c | <reponame>dariosanfilippo/bitstream_ANN_DSP
/*******************************************************************************
*
* This module implements an infrastructure to operate with signals
* based on a vector space representation.
*
* Copyright (c) <NAME> 2021.
*
*****************************... |
dariosanfilippo/bitstream_ANN_DSP | dsm.c | /*******************************************************************************
*
* This file contains first, second, and third-order delta-sigma
* modulators for multi-bit to one-bit conversion.
*
* While the first-order modulator is stable for any signal in the
* full-scale digital amplitu... |
dariosanfilippo/bitstream_ANN_DSP | tests/data_test.c | <filename>tests/data_test.c
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdbool.h>
#include <assert.h>
#include "signals.c"
#include "osc.c"
#include "dsm.c"
#include "bitmath.c"
#include "data.c"
int main(void) {
size_t sr = 192000;
size_t in_len = 64;
size_... |
dariosanfilippo/bitstream_ANN_DSP | data.c | /*******************************************************************************
*
* This module contains functions for the generation of training and
* test data for frequency and amplitude estimation, and sum and
* multiplication operations.
*
* Copyright (c) <NAME> 2021.
*
****************... |
dariosanfilippo/bitstream_ANN_DSP | tests/binaryadder_test.c | <reponame>dariosanfilippo/bitstream_ANN_DSP<filename>tests/binaryadder_test.c
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdbool.h>
#include <assert.h>
#include "signals.c"
#include "osc.c"
#include "dsm.c"
#include "bitmath.c"
int main(void) {
FILE* fptr;
fptr = fo... |
GlitterIsMe/gogeardb | gogeardb.c | #include "gogeardb.h"
#include "_cgo_export.h"
leveldb_comparator_t* go_geardb_create_comparator() {
return leveldb_comparator_create(
NULL,
go_geardb_destructor,
(int (*)(void*, const char* a, size_t alen, const char* b, size_t blen))(go_geardb_compare),
(const char* (*)(void*))(go_geardb_name));
} |
GlitterIsMe/gogeardb | gogeardb.h | #include <stdlib.h>
#include "leveldb/c.h"
extern leveldb_comparator_t* go_geardb_create_comparator();
|
Kai-Wolf-SW-Consulting/Paramount | src/base/integral_types.h | // Copyright (c) 2017, <NAME>. All rights reserved.
// Use of this source code is governed by a personal license that can be
// found in the LICENSE file in the top directory.
#ifndef PARAMOUNT_INTEGRAL_TYPES_H
#define PARAMOUNT_INTEGRAL_TYPES_H
#include "base/macros.h"
namespace pmt {
// Following are basic intege... |
Kai-Wolf-SW-Consulting/Paramount | src/base/callback_impl.h | // Copyright (c) 2017, <NAME>. All rights reserved.
// Use of this source code is governed by a personal license that can be
// found in the LICENSE file in the topdirectory.
#ifndef PARAMOUNT_CALLBACK_IMPL_H
#define PARAMOUNT_CALLBACK_IMPL_H
#include "base/callback_types.h"
#include <type_traits>
namespace pmt {
na... |
Kai-Wolf-SW-Consulting/Paramount | include/pmt/for_each_argument.h | // Copyright (c) 2017, <NAME>. All rights reserved.
// Use of this source code is governed by a personal license that can be
// found in the LICENSE file in the top directory.
#ifndef PARAMOUNT_FOR_EACH_ARGUMENT_H
#define PARAMOUNT_FOR_EACH_ARGUMENT_H
#include <iostream>
#include <utility>
namespace pmt {
template ... |
Kai-Wolf-SW-Consulting/Paramount | src/base/scope_guard.h | // Copyright (c) 2017, <NAME>. All rights reserved.
// Use of this source code is governed by a personal license that can be
// found in the LICENSE file in the top directory.
#ifndef PARAMOUNT_SCOPE_GUARD_H
#define PARAMOUNT_SCOPE_GUARD_H
#include "base/macros.h"
#include <utility>
namespace pmt {
namespace base {
... |
Kai-Wolf-SW-Consulting/Paramount | include/pmt/string_util.h | <filename>include/pmt/string_util.h
// Copyright (c) 2017, <NAME>. All rights reserved.
// Use of this source code is governed by a personal license that can be
// found in the LICENSE file in the top directory.
#ifndef PARAMOUNT_STRING_UTIL_H
#define PARAMOUNT_STRING_UTIL_H
#include <sstream>
#include <string>
#incl... |
Kai-Wolf-SW-Consulting/Paramount | src/base/callback.h | // Copyright (c) 2017, <NAME>. All rights reserved.
// Use of this source code is governed by a personal license that can be
// found in the LICENSE file in the top directory.
#ifndef PARAMOUNT_CALLBACK_H
#define PARAMOUNT_CALLBACK_H
/// @page Callback Generic callback implementation
/// The following callback implem... |
Kai-Wolf-SW-Consulting/Paramount | src/base/callback_types.h | <reponame>Kai-Wolf-SW-Consulting/Paramount
// Copyright (c) 2017, <NAME>. All rights reserved.
// Use of this source code is governed by a personal license that can be
// found in the LICENSE file in the topdirectory.
#ifndef PARAMOUNT_CALLBACK_TYPES_H
#define PARAMOUNT_CALLBACK_TYPES_H
namespace pmt {
class Callbac... |
Kai-Wolf-SW-Consulting/Paramount | include/pmt/array_copy.h | // Copyright (c) 2017, <NAME>. All rights reserved.
// Use of this source code is governed by a personal license that can be
// found in the LICENSE file in the top directory.
#ifndef PARAMOUNT_ARRAY_COPY_H
#define PARAMOUNT_ARRAY_COPY_H
#include <cstddef>
#include <cstring>
#include <iostream>
#include <type_traits>... |
Kai-Wolf-SW-Consulting/Paramount | src/base/rw_protected.h | <filename>src/base/rw_protected.h<gh_stars>1-10
// Copyright (c) 2017, <NAME>. All rights reserved.
// Use of this source code is governed by a personal license that can be
// found in the LICENSE file in the top directory.
// Constrain read/write access for (memory-mapped) hw registers
//
// HW vendors often define r... |
Kai-Wolf-SW-Consulting/Paramount | src/base/status.h | // Copyright (c) 2017, <NAME>. All rights reserved.
// Use of this source code is governed by a personal license that can be
// found in the LICENSE file in the top directory.
#ifndef PARAMOUNT_STATUS_H
#define PARAMOUNT_STATUS_H
#include <string>
#include <utility>
namespace pmt {
namespace base {
namespace error {... |
Kai-Wolf-SW-Consulting/Paramount | src/base/array_size.h | <gh_stars>1-10
// Copyright (c) 2017, <NAME>. All rights reserved.
// Use of this source code is governed by a personal license that can be
// found in the LICENSE file in the top directory.
#ifndef PARAMOUNT_ARRAY_SIZE_H
#define PARAMOUNT_ARRAY_SIZE_H
#include <cstddef>
namespace pmt {
namespace base {
namespace in... |
Kai-Wolf-SW-Consulting/Paramount | src/base/macros.h | // Copyright (c) 2017, <NAME>. All rights reserved.
// Use of this source code is governed by a personal license that can be
// found in the LICENSE file in the top directory.
#ifndef PARAMOUNT_MACROS_H
#define PARAMOUNT_MACROS_H
#include <memory>
/// Inside the declaration of a class will make it unassignable
#defi... |
Kai-Wolf-SW-Consulting/Paramount | src/base/environment.h | // Copyright (c) 2017, <NAME>. All rights reserved.
// Use of this source code is governed by a personal license that can be
// found in the LICENSE file in the top directory.
#ifndef PARAMOUNT_ENVIRONMENT_H
#define PARAMOUNT_ENVIRONMENT_H
#include <string>
namespace pmt {
namespace base {
/// Gets an environment v... |
mjolk/libdill | tcp.c | <reponame>mjolk/libdill
/**
* File : tcp.c
* License: MIT/X11
* Author : <NAME> <<EMAIL>>
* Date : ma 11 mrt 2019 07:37
*/
/*
Copyright (c) 2017 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"),
to... |
TeddyEngel/trie-cpp | Trie.h | <filename>Trie.h
//
// Trie.h
// Scratchpad
//
// Created by <NAME> on 13/11/2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#include <unordered_map>
class TrieNode
{
public:
TrieNode();
bool addString(const std::string& newString);
void listStrings(const std::string prefix) const;
void... |
jakebolewski/Clang.jl | deps/src/wrapclang.h | void wci_getFileName(char* a1,char* a2) {
CXString rx = clang_getFileName(a1);
wci_save_CXString(rx,a2);
}
void wci_getNullLocation(char* a1) {
CXSourceLocation rx = clang_getNullLocation();
wci_save_CXSourceLocation(rx,a1);
}
unsigned int wci_equalLocations(char* a1,char* a2) {
CXSourceLocation l1 = wci_ge... |
jakebolewski/Clang.jl | test/cxx/cbasic.h | #define CONST 1
#define CONSTADD CONST + 2
#define CONSTSFT (1<<2)
typedef enum {
Juneau = 0x0,
Seattle = 0x1,
Portland = 0x3
} WtoECapitals;
int func1(int a, double b, double* c, void* d);
|
jakebolewski/Clang.jl | test/cxx/c_struct_typedef.h | <reponame>jakebolewski/Clang.jl<filename>test/cxx/c_struct_typedef.h
struct Str
{
int x;
};
typedef struct Str Str;
/* If this remains unparseable, char2 should be omitted from the file */
struct __attribute__((aligned(2))) char2
{
signed char x,y;
};
typedef struct char2 char2;
|
shakfu/scheme-for-pd | s4pd.h | <gh_stars>0
#include <stdlib.h>
#include "m_pd.h"
#include "s7.h"
#include "string.h"
#include "time.h"
#define MAX_OUTLETS 32
#define MAX_ATOMS_PER_MESSAGE 1024
#define MAX_ATOMS_PER_OUTPUT_LIST 1024
// for silencing unused param warnings
#define UNUSED(x) (void)(x)
static t_class *s4pd_class;
// struct used (as ... |
apodlosky/PoC_CurveBall | curveball.c | /*
* CVE-2020-0601 - CurveBall PoC
* <NAME> <<EMAIL>>
*/
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <openssl/bio.h>
#include <openssl/bn.h>
#include <openssl/err.h>
#include <openssl/ec.h>
#include <openssl/evp.h>
#include <opens... |
alex-scott/php-src | ext/pdo_sqlite/sqlite_driver.c | <reponame>alex-scott/php-src
/*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) The PHP Group ... |
Soulghost/SGPhotoBrowser | SGPhotoBrowserDemo/SGPhotoBrowserDemo/MyBrowserViewController.h | <filename>SGPhotoBrowserDemo/SGPhotoBrowserDemo/MyBrowserViewController.h<gh_stars>10-100
//
// MyBrowserViewController.h
// SGPhotoBrowserDemo
//
// Created by soulghost on 28/7/2016.
// Copyright © 2016 soulghost. All rights reserved.
//
#import "SGPhotoBrowser.h"
@interface MyBrowserViewController : SGPhotoBro... |
Soulghost/SGPhotoBrowser | SGPhotoBrowser/SGZoomingImageView.h | //
// SGImageView.h
// SGSecurityAlbum
//
// Created by soulghost on 10/7/2016.
// Copyright © 2016 soulghost. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef NS_OPTIONS(NSInteger, SGImageViewState) {
SGImageViewStateNone = 0,
SGImageViewStateFit,
SGImageViewStateOrigin
};
typedef void(^SGZoo... |
LockDownPT/MIEIC_rcom | Trabalho_1/src/alarm.h | <filename>Trabalho_1/src/alarm.h
#pragma once
#include <unistd.h>
#include <signal.h>
#include <stdio.h>
#include <stdbool.h>
#include "data_link.h"
#include "macros.h"
#include "app.h"
#include "aux.h"
int finish, num_retr;
bool resendFrame;
/**
* Handles the alarm signal
* @param signal Signal that is received
... |
LockDownPT/MIEIC_rcom | Trabalho_2/src/functions.c | <filename>Trabalho_2/src/functions.c
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdbool.h>
#include "functions.h"
/**
* Function that parses the command line arguments, retrieving a struct with all the individual fields
*
* @param args Pointer to th... |
LockDownPT/MIEIC_rcom | Trabalho_1/src/data_link.h | #pragma once
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include "macros.h"
struct linkLayer {
char port[20]; /*Dispositivo /dev/ttySx, x = 0, 1*/
int baudRate; /*Velo... |
LockDownPT/MIEIC_rcom | Trabalho_1/src/statemachine.h | #pragma once
typedef enum state {
START = 0,
FLAG_RCV,
A_RCV,
C_RCV,
BCC_OK,
STOP
} state_st;
typedef struct state_machine {
state_st state;
unsigned char* wantedBytes;
int wantedBytesLength;
unsigned char addressByte;
int foundIndex;
int dataLength;
} state_machine_st;... |
LockDownPT/MIEIC_rcom | Trabalho_1/src/aux.h | <filename>Trabalho_1/src/aux.h
#pragma once
#include <termios.h>
#include <unistd.h>
/**
* Function to create the Block Check Character relative to the Address and Control fields
* @param a Address Character of the frame
* @param c Control Character of the frame
* @return Expected value for the Block Check Chara... |
LockDownPT/MIEIC_rcom | Trabalho_1/src/files.h |
#pragma once
#include <stdio.h>
/**
* Auxiliary function to obtain the size of a file, from its file pointer
* @param fp File pointer to the file
* @return size of the file in question
*/
int getFileSize(FILE *fp);
/**
* Function that opens a file, from its name
* @param fileName Name of the file to be opened... |
LockDownPT/MIEIC_rcom | Trabalho_1/src/statemachine.c | #include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include "aux.h"
#include "statemachine.h"
#include "macros.h"
/**
* Function to check if a byte is contained in the state machine's... |
LockDownPT/MIEIC_rcom | Trabalho_2/src/main.c | #include <stdio.h>
#include <string.h>
#include "macros.h"
#include "functions.h"
int main(int argc, char *argv[]) {
if (argc != 2) {
printf("Usage: %s %s\n", argv[0], "ftp://[<user>:<password>@]<host>/<url-path>");
return -1;
}
// parse command line arguments
struct arguments args;
... |
LockDownPT/MIEIC_rcom | Trabalho_1/src/app.h | #pragma once
#include <stdio.h>
struct applicationLayer {
int fileDescriptor; /*Descritor correspondente à porta série*/
int status; /*TRANSMITTER | RECEIVER*/
};
struct applicationLayer al;
/**
* Function that builds an application data packet, receiving a sequence number, and a data buffer
* containing ... |
LockDownPT/MIEIC_rcom | Trabalho_1/src/files.c | <gh_stars>0
#include <stdio.h>
#include <stdlib.h>
#include "files.h"
#include "macros.h"
/**
* Auxiliary function to obtain the size of a file, from its file pointer
* @param fp File pointer to the file
* @return size of the file in question
*/
int getFileSize(FILE *fp){
int lsize;
fseek(fp, 0, SEE... |
LockDownPT/MIEIC_rcom | Trabalho_2/src/macros.h | <filename>Trabalho_2/src/macros.h
#pragma once
#define MAX_LENGTH 200
#define FTP_PORT_NUMBER 21
|
LockDownPT/MIEIC_rcom | Trabalho_1/src/aux.c | <reponame>LockDownPT/MIEIC_rcom
#include <termios.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include <fcntl.h>
#include "app.h"
#include "macros.h"
#include "statemachine.h"
#include "data_link.h"
#include "alarm.h"
/**
* Function to create the Block Check... |
LockDownPT/MIEIC_rcom | Trabalho_1/src/macros.h | #ifndef _MACROS_H_
#define _MACROS_H_
// ---- macros for data link layer ----
#define MAX_DATA_SIZE 1024 // max size of a data packet
#define MAX_PACK_SIZE (MAX_DATA_SIZE + 4) // max size of a data packet + 4 bytes for packet head
#define MAX_SIZE (MAX_PACK_SIZE + 6) // max size of data in a frame, + 4 byte... |
LockDownPT/MIEIC_rcom | Trabalho_1/src/app.c | <reponame>LockDownPT/MIEIC_rcom
#include <sys/times.h>
#include <sys/time.h>
#include <unistd.h>
#include <stdio.h>
#include "app.h"
#include "macros.h"
#include "aux.h"
#include "data_link.h"
#include "files.h"
/**
* Function that builds an application data packet, receiving a sequence number, and a data buffer
* ... |
LockDownPT/MIEIC_rcom | Trabalho_1/src/alarm.c | <reponame>LockDownPT/MIEIC_rcom<filename>Trabalho_1/src/alarm.c
#include "alarm.h"
/**
* Handles the alarm signal
* @param signal Signal that is received
*/
void alarmHandler(int signal) {
if(num_retr < ll.numTransmissions){
resendFrame = true;
printf("Timeout/invalid value: Sent frame again (numretries ... |
LockDownPT/MIEIC_rcom | Trabalho_2/src/functions.h | #pragma once
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <netdb.h>
#include <strings.h>
#include <stdbool.h>
#include "macros.h"
/**
* Struct that contains the... |
LockDownPT/MIEIC_rcom | Trabalho_1/src/data_link.c | <gh_stars>0
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include <signal.h>
#include "data_link.h"
#include "statemachine.h"
#include "aux.h"
#include "app.h"... |
LockDownPT/MIEIC_rcom | Trabalho_1/src/noncanonical.c | <gh_stars>0
/*Non-Canonical Input Processing*/
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include "macros.h"
#include "aux.h"
#include "data_link.h"
#include "app.h... |
Soptq/phala-blockchain | ring/crypto/curve25519/internal.h | <gh_stars>100-1000
/* Copyright (c) 2020, Google Inc.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND T... |
Soptq/phala-blockchain | ring/crypto/limbs/limbs.h | /* Copyright 2016 <NAME>.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARR... |
imdinesh58/Slide-Out-Menu-with-PULL-Animations-Drag-close-menu-options-... | Build/Intermediates/InteractiveSlideoutMenu.build/Debug-iphonesimulator/InteractiveSlideoutMenu.build/Objects-normal/x86_64/InteractiveSlideoutMenu-Swift.h | <reponame>imdinesh58/Slide-Out-Menu-with-PULL-Animations-Drag-close-menu-options-...<filename>Build/Intermediates/InteractiveSlideoutMenu.build/Debug-iphonesimulator/InteractiveSlideoutMenu.build/Objects-normal/x86_64/InteractiveSlideoutMenu-Swift.h
// Generated by Apple Swift version 4.0.3 effective-3.2.3 (swiftlang-9... |
laonayt/flutter_localip_plugin | ios/Classes/LocalIpPlugin.h | #import <Flutter/Flutter.h>
@interface LocalIpPlugin : NSObject<FlutterPlugin>
@end
|
ilariom/wildcat | src/core/managers/ECSContext.h | #ifndef _WKT_MANAGERS_COLLECTOR_H
#define _WKT_MANAGERS_COLLECTOR_H
#include "EntityManager.h"
#include "SystemsManager.h"
#include "ecs/Entity.h"
namespace wkt {
namespace managers
{
class ECSContext
{
public:
EntityManager& entityManager() { return this->em; }
SystemsManager& systemsManager() { return this... |
ilariom/wildcat | src/core/input/ActionBroadcaster.h | #ifndef WKT_ACTION_BROADCASTER_H
#define WKT_ACTION_BROADCASTER_H
#include "components/ActionReceiver.h"
#include <vector>
namespace wkt {
namespace events
{
class ActionBroadcaster
{
using Action = wkt::components::Action;
public:
void postAction(Action action) { this->actions.push_back(std::move(action)); ... |
ilariom/wildcat | src/core/components/KeyboardEventReceiver.h | <filename>src/core/components/KeyboardEventReceiver.h<gh_stars>10-100
#ifndef _WKT_KEYBOARD_EVENT_RECEIVER_H
#define _WKT_KEYBOARD_EVENT_RECEIVER_H
#include "ecs/Component.h"
#include "input/KeyboardProxy.h"
namespace wkt {
namespace components
{
class KeyboardEventReceiver : public wkt::ecs::Component
{
public:
... |
ilariom/wildcat | src/core/utils/search_path.h | <filename>src/core/utils/search_path.h
#ifndef WKT_SEARCH_PATH_H
#define WKT_SEARCH_PATH_H
#include <string>
namespace wkt {
namespace path
{
void add(const std::string& path);
std::string locate(const std::string& filename);
}}
#endif |
ilariom/wildcat | src/core/graphics/Atlas.h | #ifndef WKT_ATLAS_H
#define WKT_ATLAS_H
#include "graphics/Flipbook.h"
#include <string>
namespace wkt {
namespace gph
{
class Atlas : public Flipbook
{
public:
using atlas_iterator = flipbook_iterator;
public:
Atlas() = default;
Atlas(const std::string& name)
: name(name)
{ }
public:
... |
ilariom/wildcat | src/core/input/InputManager.h | #ifndef _WKT_INPUT_MANAGER
#define _WKT_INPUT_MANAGER
#include "KeyboardProxy.h"
#include "MouseProxy.h"
#include "ActionBroadcaster.h"
namespace wkt {
namespace events
{
class InputManager
{
public:
InputManager(const InputManager&) = delete;
InputManager(InputManager&&) = delete;
~InputManager() = defa... |
ilariom/wildcat | src/core/systems/BoundingBoxUpdateSystem.h | #ifndef WKT_BOUNDING_BOX_UPDATE_SYSTEM_H
#define WKT_BOUNDING_BOX_UPDATE_SYSTEM_H
#include "ecs/System.h"
#include "components/BoundingBox.h"
namespace wkt {
namespace systems
{
class BoundingBoxUpdateSystem : public wkt::ecs::SequentialSystem<wkt::components::BoundingBox>
{
public:
BoundingBoxUpdateSystem();
p... |
ilariom/wildcat | src/core/globals/SceneGraph.h | <reponame>ilariom/wildcat<gh_stars>10-100
#ifndef _WKT_SCENE_GRAPH_H
#define _WKT_SCENE_GRAPH_H
#include "managers/ECSContext.h"
#include "components/Node.h"
#include "graphics/SurfaceCache.h"
#include "graphics/Camera.h"
#include "graphics/Director.h"
#include "systems/RenderSystem.h"
#include "systems/TransformUpdat... |
ilariom/wildcat | src/core/audio/AudioStudio.h | <reponame>ilariom/wildcat
#ifndef WKT_AUDIO_STUDIO_H
#define WKT_AUDIO_STUDIO_H
#include "audio_engine_types.h"
#include "SoundEngineer.h"
#include <unordered_map>
#include <string>
#include <cassert>
namespace wkt {
namespace audio
{
class AudioStudio final
{
public:
constexpr static int mixer_channels = 32;
p... |
ilariom/wildcat | src/core/ecs/System.h | <gh_stars>10-100
#ifndef _SKR_SYSTEM_H
#define _SKR_SYSTEM_H
#include "Entity.h"
#include "Component.h"
#include "components/Node.h"
#include "managers/EntityManager.h"
#include "utils/recursors.h"
#include <unordered_map>
#include <memory>
namespace wkt {
namespace ecs
{
class System : public wkt::utils::AbstractRe... |
ilariom/wildcat | src/core/audio/audio_engine_types.h | <filename>src/core/audio/audio_engine_types.h
#ifndef WKT_AUDIO_ENGINE_TYPES_H
#define WKT_AUDIO_ENGINE_TYPES_H
#include "s2x/mixer.h"
#include <string>
#include <functional>
namespace wkt {
namespace audio
{
using Mixer = s2x::Mixer;
class AudioStudio;
class SoundEngineer;
struct SoundEvent
{
std::string name;... |
ilariom/wildcat | src/core/components/KeyboardReceiver.h | <filename>src/core/components/KeyboardReceiver.h
#ifndef _WKT_KEYBOARD_EVENT_H
#define _WKT_KEYBOARD_EVENT_H
#include "ecs/Component.h"
#include "input/KeyboardProxy.h"
#include <vector>
namespace wkt {
namespace components
{
class KeyboardReceiver : public wkt::ecs::Component
{
public:
std::vector<wkt::events::... |
ilariom/wildcat | src/core/systems/TransformUpdateSystem.h | #ifndef _WKT_TRANSFORM_UPDATE_SYSTEM_H
#define _WKT_TRANSFORM_UPDATE_SYSTEM_H
#include "ecs/System.h"
#include "components/Node.h"
namespace wkt {
namespace systems
{
class TransformUpdateSystem : public wkt::ecs::HierarchicalSystem
{
public:
TransformUpdateSystem();
public:
bool operator()(wkt::components:... |
ilariom/wildcat | src/core/systems/MouseReceiverSystem.h | <reponame>ilariom/wildcat<gh_stars>10-100
#ifndef _WKT_MOUSE_RECEIVER_SYSTEM_H
#define _WKT_MOUSE_RECEIVER_SYSTEM_H
#include "ecs/System.h"
#include "components/MouseReceiver.h"
namespace wkt {
namespace systems
{
class MouseReceiverSystem : public wkt::ecs::SequentialSystem<wkt::components::MouseReceiver>
{
public:... |
ilariom/wildcat | src/core/input/KeyboardProxy.h | #ifndef _WKT_KEYBOARD_LISTENER_H
#define _WKT_KEYBOARD_LISTENER_H
#include "s2x/events.h"
#include <list>
namespace wkt {
namespace events
{
struct KeyboardEventType
{
Uint32 eventType;
SDL_Keycode code;
SDL_Scancode scancode;
Uint16 modifier;
Uint8 state;
bool repeat;
};
struct KeyboardEven... |
ilariom/wildcat | src/core/systems/ActionReceiverSystem.h | <filename>src/core/systems/ActionReceiverSystem.h<gh_stars>10-100
#ifndef _WKT_ACTION_RECEIVER_SYSTEM_H
#define _WKT_ACTION_RECEIVER_SYSTEM_H
#include "ecs/System.h"
#include "components/ActionReceiver.h"
#include <vector>
namespace wkt {
namespace systems
{
class ActionReceiverSystem : public wkt::ecs::SequentialSy... |
ilariom/wildcat | src/core/ecs/Drawable.h | #ifndef _WKT_DRAWABLE_H
#define _WKT_DRAWABLE_H
#include "ecs/Component.h"
#include "components/Transform.h"
#include "graphics/Director.h"
namespace wkt {
namespace ecs
{
class Drawable : public Component
{
public:
virtual void draw(const wkt::gph::Director&, const wkt::components::Transform&) = 0;
void set... |
ilariom/wildcat | src/core/math/numerical.h | #ifndef WKT_NUMERICAL_H
#define WKT_NUMERICAL_H
#include "math/wktmath.h"
#include <math.h>
namespace wkt {
namespace math
{
inline float clamp(float val, float m, float M)
{
return std::max(m, std::min(val, M));
}
inline float clampNorm(float val)
{
return clamp(val, .0f, 1.f);
}
constexpr inline float to... |
ilariom/wildcat | src/core/graphics/TextureCache.h | #ifndef _WKT_TEXTURE_CACHE_H
#define _WKT_TEXTURE_CACHE_H
#include "s2x/video.h"
#include <string>
#include <memory>
#include <unordered_map>
namespace wkt {
namespace gph
{
class TextureCache final
{
public:
TextureCache(const TextureCache&) = delete;
TextureCache(TextureCache&&) = delete;
~TextureCache... |
ilariom/wildcat | src/core/scripts/Animator.h | <gh_stars>10-100
#ifndef WKT_ANIMATOR_H
#define WKT_ANIMATOR_H
#include "components/Script.h"
#include "components/Transform.h"
#include "components/Crowd.h"
#include "graphics/Flipbook.h"
#include "utils/interpolation.h"
#include <string>
#include <array>
#include <vector>
#include <utility>
#include <functional>
na... |
ilariom/wildcat | src/core/graphics/Color.h | #ifndef _WKT_COLOR_H
#define _WKT_COLOR_H
#include "s2x/video.h"
#include "math/numerical.h"
#include <ostream>
namespace wkt {
namespace gph
{
class Color
{
public:
Color(float r, float g, float b, float a)
: r(r), g(g), b(b), a(a)
{ }
inline Color(const s2x::Color& sdlCol);
Color() = defau... |
ilariom/wildcat | src/core/components/ActionReceiver.h | <filename>src/core/components/ActionReceiver.h
#ifndef WKT_ACTION_RECEIVER_H
#define WKT_ACTION_RECEIVER_H
#include "s2x/basics.h"
#include "ecs/Component.h"
#include <functional>
#include <string>
#include <vector>
namespace wkt {
namespace components
{
struct Action
{
using Payload = s2x::UserData;
std::s... |
ilariom/wildcat | src/core/graphics/SurfaceCache.h | #ifndef WKT_SURFACE_CACHE_H
#define WKT_SURFACE_CACHE_H
#include "s2x/video.h"
#include "utils/CacheBase.h"
#include <string>
#include <memory>
#include <unordered_map>
namespace wkt {
namespace gph
{
using SurfaceCache = wkt::utils::CacheBase<s2x::Surface>;
// class SurfaceCache final
// {
// public:
// Surfac... |
ilariom/wildcat | src/core/MainActivity.h | <filename>src/core/MainActivity.h<gh_stars>10-100
#ifndef _WKT_MAIN_ACTIVITY_H
#define _WKT_MAIN_ACTIVITY_H
#include "config.h"
namespace wkt
{
class MainActivity
{
public:
MainActivity() = default;
MainActivity(const MainActivity&) = delete;
MainActivity(MainActivity&&) = delete;
~MainActivity() = d... |
ilariom/wildcat | src/core/utils/CacheBase.h | #ifndef WKT_CACHE_BASE_H
#define WKT_CACHE_BASE_H
#include <string>
#include <memory>
#include <unordered_map>
namespace wkt {
namespace utils
{
template<typename T>
class CacheBase final
{
public:
CacheBase(const CacheBase&) = delete;
CacheBase(CacheBase&&) = delete;
~CacheBase() = default;
CacheBa... |
ilariom/wildcat | src/core/s2x/s2x_types.h | #ifndef S2X_TYPES_H
#define S2X_TYPES_H
#include <SDL.h>
#include <memory>
namespace s2x
{
using Point = SDL_Point;
using Rect = SDL_Rect;
struct Size
{
int width, height;
};
inline SDL_Rect toSDLRect(const Point& origin, const Size& size)
{
return { origin.x, origin.y, size.width, size.height };
}
inline... |
ilariom/wildcat | src/core/components/Crowd.h | <gh_stars>10-100
#ifndef WKT_CROWD_H
#define WKT_CROWD_H
#include "ecs/Drawable.h"
#include "components/Sprite.h"
#include "components/Transform.h"
#include "graphics/Director.h"
#include <string>
#include <vector>
namespace wkt {
namespace components
{
using Spectator = std::pair<Sprite, Transform>;
Spectator make... |
ilariom/wildcat | src/core/graphics/ShadedDrawable.h | <reponame>ilariom/wildcat
#ifndef WKT_SHADED_DRAWABLE
#define WKT_SHADED_DRAWABLE
#include "ecs/Drawable.h"
#include "graphics/Color.h"
#include "graphics/Pixel.h"
#include "graphics/SmartSurface.h"
namespace wkt {
namespace gph
{
class ShadedDrawable : public wkt::ecs::Drawable
{
public:
using pixel_manipulator... |
ilariom/wildcat | src/core/s2x/video.h | <filename>src/core/s2x/video.h
#ifndef _S2X_VIDEO_H
#define _S2X_VIDEO_H
#include "s2x_types.h"
#include <SDL.h>
#include <SDL_image.h>
#include <string>
#include <ostream>
#include <algorithm>
namespace s2x
{
class Window
{
public:
Window(const std::string& title, int x, int y, int width, int height)
: ... |
ilariom/wildcat | src/core/audio/SoundEngineer.h | #ifndef WKT_SOUND_ENGINEER_H
#define WKT_SOUND_ENGINEER_H
#include "audio_engine_types.h"
#include <functional>
#include <string>
#include <unordered_map>
namespace wkt {
namespace audio
{
class SoundEngineer
{
public:
explicit SoundEngineer(const std::string& name) : name(name) { }
SoundEngineer() = default... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.