repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
riff-lang/riff | src/val.c | #include "types.h"
#include "table.h"
rf_val *v_newnull(void) {
rf_val *v = malloc(sizeof(rf_val));
*v = (rf_val) {TYPE_NULL, .u.s = NULL};
return v;
}
rf_val *v_newint(rf_int i) {
rf_val *v = malloc(sizeof(rf_val));
*v = (rf_val) {TYPE_INT, .u.i = i};
return v;
}
rf_val *v_newflt(rf_flt f) ... |
riff-lang/riff | src/conf.h | <filename>src/conf.h
#ifndef CONF_H
#define CONF_H
// Default precision for floating point numbers in fmt()
#define DEFAULT_FLT_PREC 6
// Output format for floats (implicit/explicit print)
#define FLT_PRINT_FMT "%.14g"
// Size of buffer used in l_char() and l_fmt()
#define STR_BUF_SZ 0x1000
// Size of VM stack
// C... |
riff-lang/riff | src/table.h | <gh_stars>10-100
#ifndef TABLE_H
#define TABLE_H
#include "hash.h"
#include "types.h"
struct rf_tab {
rf_val **v;
rf_htab *h;
rf_val *nullv; // Special slot for the "null" index in an array
uint32_t n; // Number of elements (excluding null values)
uint32_t an; // Number ... |
riff-lang/riff | src/labels.h | // VM labels for computed goto
#define z_case(l) L_##l:
#define z_break dispatch()
#define dispatch() goto *dispatch_labels[*ip]
static void *dispatch_labels[] = {
&&L_JMP8,
&&L_JMP16,
&&L_JNZ8,
&&L_JNZ16,
&&L_JZ8,
&&L_JZ16,
&&L_XJNZ8,
&&L_XJNZ16,
&&L_XJZ8,
&&L_XJZ16,
... |
riff-lang/riff | src/hash.h | <filename>src/hash.h
#ifndef HASH_H
#define HASH_H
#include "types.h"
typedef struct {
rf_str *key;
rf_val *val;
} ht_node;
typedef struct {
ht_node **nodes;
uint32_t n;
uint32_t an;
uint32_t cap;
int lx: 1;
} rf_htab;
void h_init(rf_htab *);
uint32_t h_length(rf_htab... |
riff-lang/riff | src/parse.h | <gh_stars>10-100
#ifndef PARSE_H
#define PARSE_H
#include "code.h"
#include "env.h"
#include "lex.h"
#include "types.h"
// Local vars
typedef struct {
rf_str *id;
int d;
} local;
// Patch lists used for break/continue statements in loops
typedef struct {
int n;
int cap;
int *l;
} p_list;
t... |
riff-lang/riff | src/util.h | <filename>src/util.h
#ifndef UTIL_H
#define UTIL_H
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
#define u_int2str(i,b) snprintf(b, sizeof b, "%"PRId64, i)
#define u_flt2str(f,b) snprintf(b, sizeof b, "%g", f)
char *u_file2str(const char *);
uint32_t u_strhash(const char *);
int u_decval(in... |
riff-lang/riff | src/fmt.h | #ifndef FMT_H
#define FMT_H
#include "types.h"
int fmt_snprintf(char *, size_t, const char *, rf_val *, int);
#endif
|
riff-lang/riff | src/riff.c | #include "code.h"
#include "disas.h"
#include "env.h"
#include "parse.h"
#include "types.h"
#include "util.h"
#include "vm.h"
#include <getopt.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// Entry point for the Emscripten-compiled WASM/JS module
#ifdef __EMSCRIPTEN__
int wasm_mai... |
riff-lang/riff | src/vm.c | <gh_stars>10-100
#include "vm.h"
#include "conf.h"
#include "lib.h"
#include "mem.h"
#include "table.h"
#include <inttypes.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static void err(const char *msg) {
fprintf(stderr, "riff: [vm] %s\n", msg);
exit(1);
}... |
tcpie/WinCore | WinCore/NotifyHook.h | <reponame>tcpie/WinCore
/*
Copyright (c) 2013 Stijn "tcpie" Hinterding (contact: contact at tcpie dot eu)
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 lim... |
tcpie/WinCore | WinCore/assembly.h | /*
Copyright (c) 2013 Stijn "tcpie" Hinterding (contact: contact at tcpie dot eu)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to us... |
tcpie/WinCore | WinCore/Process.h | <reponame>tcpie/WinCore<gh_stars>0
/*
Copyright (c) 2013 Stijn "tcpie" Hinterding (contact: contact at tcpie dot eu)
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 ... |
tcpie/WinCore | WinCore/Hook.h | <gh_stars>0
/*
Copyright (c) 2013 Stijn "tcpie" Hinterding (contact: contact at tcpie dot eu)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the ... |
tcpie/WinCore | WinCore/Thread.h | /*
Copyright (c) 2013 Stijn "tcpie" Hinterding (contact: contact at tcpie dot eu)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to us... |
tcpie/WinCore | WinCore/D3D9Hook.h | /*
Copyright (c) 2013 Stijn "tcpie" Hinterding (contact: contact at tcpie dot eu)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to us... |
tcpie/WinCore | WinCore/Function.h | /*
Copyright (c) 2013 Stijn "tcpie" Hinterding (contact: contact at tcpie dot eu)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to us... |
tcpie/WinCore | WinCore/File.h | <filename>WinCore/File.h
/*
Copyright (c) 2013 Stijn "tcpie" Hinterding (contact: contact at tcpie dot eu)
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 li... |
tcpie/WinCore | WinCore/Module.h | /*
Copyright (c) 2013 Stijn "tcpie" Hinterding (contact: contact at tcpie dot eu)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to us... |
tcpie/WinCore | WinCore/MemoryRegion.h | <gh_stars>0
/*
Copyright (c) 2013 Stijn "tcpie" Hinterding (contact: contact at tcpie dot eu)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the ... |
KrzBan/Bit-Works | consumer.c | <gh_stars>0
#define _POSIX_C_SOURCE 200809L
#define _GNU_SOURCE
//stolen from <sys/time.h>
#define timespecsub(a, b, result) \
do \
{ \
(result)->tv_sec = (a)->tv_sec - (b)->tv_se... |
KrzBan/Bit-Works | producer.c | #define _POSIX_C_SOURCE 200809L
#define _GNU_SOURCE
//#define KB_DEBUG //KB, as <NAME>, like my own namespace
#ifdef KB_DEBUG
#define Debug(x) printf(x)
#else
#define Debug(x)
#endif
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/poll.h>
#include <sys/epoll.h>
#include <sys/ioctl.h>
#inclu... |
KingHual/QBinder | src/CLocale.h | #pragma once
#include <vector>
#include "util/limits.h"
#define LANG_PARAM_COUNT 0x48
class CLocale
{
public:
CLocale();
bool load(const char* name);
void createDefault();
char(&getMouseStrings())[MOUSE_BUTTONS_SIZE][MOUSE_STRING_SIZE] { return m_mouseStrings; }
char(&getMediaStrings())[MEDIA_KEYS_SIZE][MEDIA_... |
Greentwip/python27-uwp | Renpy/Renpy/PyShell.xaml.h | <reponame>Greentwip/python27-uwp<filename>Renpy/Renpy/PyShell.xaml.h
//
// PyShell.xaml.h
// Declaration of the PyShell.xaml class.
//
#pragma once
#include "pch.h"
#include "PyShell.g.h"
#include "Python.h"
using namespace Platform;
using namespace Windows::UI::Xaml::Controls;
using namespace Windows::UI::Xaml::Doc... |
Greentwip/python27-uwp | Renpy/Renpy/Settings.xaml.h | <gh_stars>1-10
//
// Settings.xaml.h
// Deklaration der Settings-Klasse
//
#pragma once
#include "Settings.g.h"
#include "PyShell.xaml.h"
namespace python27
{
[Windows::Foundation::Metadata::WebHostHidden]
public ref class Settings sealed
{
PyShell ^shell;
public:
Settings(PyShell ^shell);
... |
7ulipa/JSONType | Example/Pods/Target Support Files/JSONType/JSONType-umbrella.h | <reponame>7ulipa/JSONType<filename>Example/Pods/Target Support Files/JSONType/JSONType-umbrella.h
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#endif
FOUNDATION_EXPORT double JSONTypeVersionNumber;
FOUNDATION_EXPORT const unsigned char JSONTypeVersionString[];
|
rahul-sachdev/DNPSimulator | opendnp3/DNP3/MasterConfig.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/APL/TrackingTaskGroup.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/VtoRouterManager.h | <reponame>rahul-sachdev/DNPSimulator
/*
* Licensed to Green Energy Corp (www.greenenergycorp.com) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. Green Enery
* Corp licenses this file to you under the Apa... |
rahul-sachdev/DNPSimulator | opendnp3/APL/TimeBoost.h | <reponame>rahul-sachdev/DNPSimulator
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the ... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/LinkLayer.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/LinkReceiverStates.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/DNPExceptions.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/UnsolicitedChannel.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/LinkLayerReceiver.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/EnhancedVtoRouter.h | /*
* Licensed to Green Energy Corp (www.greenenergycorp.com) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. Green Enery
* Corp licenses this file to you under the Apache License, Version 2.0 (the
* "Lic... |
rahul-sachdev/DNPSimulator | APLTestTools/WrappedTcpPipe.h | <gh_stars>1-10
#ifndef __WRAPPED_TCP_PIPE_H_
#define __WRAPPED_TCP_PIPE_H_
#include <opendnp3/APL/PhysicalLayerAsyncTCPv4Client.h>
#include <opendnp3/APL/PhysicalLayerAsyncTCPv4Server.h>
#include "PhysicalLayerWrapper.h"
namespace boost {
namespace asio {
class io_service;
}
}
namespace apl
{
class WrappedTcpP... |
rahul-sachdev/DNPSimulator | opendnp3/APL/ITimerSource.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/SlaveEventBuffer.h | <filename>opendnp3/DNP3/SlaveEventBuffer.h
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one or more
// contributor license agreements. See the NOTICE file distributed with this
// work for additional information regarding copyright ownership. Green Enery
// Corp licenses this file to you under t... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/AsyncStackManager.h | <reponame>rahul-sachdev/DNPSimulator<filename>opendnp3/DNP3/AsyncStackManager.h
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery C... |
rahul-sachdev/DNPSimulator | opendnp3/APL/PhysicalLayerAsyncASIO.h | <reponame>rahul-sachdev/DNPSimulator
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the ... |
rahul-sachdev/DNPSimulator | opendnp3/APL/PhysicalLayerAsyncTCPClient.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/APL/QualityConverter.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | DNP3Test/LinkReceiverTest.h | <filename>DNP3Test/LinkReceiverTest.h
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/AppLayer.h | <gh_stars>1-10
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Versio... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/Stack.h | <reponame>rahul-sachdev/DNPSimulator
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the ... |
rahul-sachdev/DNPSimulator | opendnp3/APL/PackingTemplates.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/APL/TimeBase.h | <reponame>rahul-sachdev/DNPSimulator<gh_stars>1-10
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to ... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/VtoRouter.h | <gh_stars>1-10
/*
* Licensed to Green Energy Corp (www.greenenergycorp.com) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. Green Enery
* Corp licenses this file to you under the Apache License, Version 2... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/SlaveStack.h | <filename>opendnp3/DNP3/SlaveStack.h
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the ... |
rahul-sachdev/DNPSimulator | opendnp3/APL/Logger.h | <reponame>rahul-sachdev/DNPSimulator
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the ... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/Database.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/TransportRx.h | <reponame>rahul-sachdev/DNPSimulator
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the ... |
rahul-sachdev/DNPSimulator | opendnp3/APL/PhysicalLayerAsyncBaseTCP.h | <gh_stars>1-10
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Versio... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/VtoDataInterface.h | /*
* Licensed to Green Energy Corp (www.greenenergycorp.com) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. Green Enery
* Corp licenses this file to you under the Apache License, Version 2.0 (the
* "Lic... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/IndexedWriteIterator.h | <gh_stars>1-10
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Versio... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/MasterStack.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/APL/TimerSourceASIO.h | <reponame>rahul-sachdev/DNPSimulator
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the ... |
rahul-sachdev/DNPSimulator | opendnp3/APL/IOServiceThread.h | <gh_stars>1-10
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Versio... |
rahul-sachdev/DNPSimulator | TestSet/StackHelpers.h | <gh_stars>1-10
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Versio... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/SecLinkLayerStates.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | DotNet/DotNetAdapter/StackManager.h |
#ifndef __DOT_NET_STACK_MANAGER_H_
#define __DOT_NET_STACK_MANAGER_H_
using namespace System;
using namespace DNP3::Interface;
namespace apl { namespace dnp {
class StackManager;
}}
namespace DNP3
{
namespace Adapter
{
public ref class StackManager
{
public:
StackManager();
void AddTCPv4Client(System::S... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/VtoReader.h | <gh_stars>1-10
/*
* Licensed to Green Energy Corp (www.greenenergycorp.com) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. Green Enery
* Corp licenses this file to you under the Apache License, Version 2... |
rahul-sachdev/DNPSimulator | opendnp3/APL/DataTypes.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/APL/DataInterfaces.h | <reponame>rahul-sachdev/DNPSimulator<gh_stars>1-10
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to ... |
rahul-sachdev/DNPSimulator | opendnp3/APL/MultiplexingDataObserver.h | <gh_stars>1-10
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Versio... |
rahul-sachdev/DNPSimulator | DNP3Test/TransportStackPair.h | <reponame>rahul-sachdev/DNPSimulator
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the ... |
rahul-sachdev/DNPSimulator | opendnp3/APL/CommandManager.h | <gh_stars>1-10
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Versio... |
rahul-sachdev/DNPSimulator | opendnp3/APL/PhysicalLayerMonitor.h | <filename>opendnp3/APL/PhysicalLayerMonitor.h
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you u... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/AppHeader.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/SlaveConfig.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/APL/BaseDataTypes.h | <reponame>rahul-sachdev/DNPSimulator<filename>opendnp3/APL/BaseDataTypes.h<gh_stars>1-10
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Gree... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/IFrameSink.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/APL/PackingUnpacking.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/TransportStates.h | <reponame>rahul-sachdev/DNPSimulator
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the ... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/DNPCommandMaster.h | <reponame>rahul-sachdev/DNPSimulator
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the ... |
rahul-sachdev/DNPSimulator | opendnp3/APL/AsyncTaskContinuous.h | <filename>opendnp3/APL/AsyncTaskContinuous.h
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you un... |
rahul-sachdev/DNPSimulator | APLXML/tinybinding.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/APL/LogToFile.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/APL/Log.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/APL/TimingTools.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/APL/ChangeBuffer.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/LinkChannel.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/APL/Timeout.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
rahul-sachdev/DNPSimulator | opendnp3/DNP3/StackManager.h | //
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one or
// more contributor license agreements. See the NOTICE file distributed
// with this work for additional information regarding copyright
// ownership. Green Enery Corp licenses this file to you under the
// Apache License, Version 2.0 (the "Lic... |
rahul-sachdev/DNPSimulator | opendnp3/APL/Parsing.h | <gh_stars>1-10
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Versio... |
lk-eternal/mbed-aws-sigv4-c | aws_sigv4.c | <gh_stars>0
#include <string.h>
#include "mbedtls/sha256.h"
#include "mbedtls/md_internal.h"
#include "aws_sigv4.h"
#define SHA256_DIGEST_LENGTH 32
#define AWS_SIGV4_AUTH_HEADER_NAME "Authorization"
#define AWS_SIGV4_SIGNING_ALGORITHM "AWS4-HMAC-SHA256"
#define AWS_SIGV4_AUTH_HEADER_MAX_LEN ... |
lk-eternal/mbed-aws-sigv4-c | aws_sigv4.h | #ifndef __AWS_SIGV4_H
#define __AWS_SIGV4_H
#define AWS_SIGV4_MEMORY_ALLOCATION_ERROR -2
#define AWS_SIGV4_INVALID_INPUT_ERROR -1
#define AWS_SIGV4_OK 0
#include "aws_sigv4_common.h"
typedef aws_sigv4_kv_t aws_sigv4_header_t;
typedef struct aws_sigv4_params_s {
/* AWS credential param... |
lk-eternal/mbed-aws-sigv4-c | aws_sigv4_common.c | #include <string.h>
#include <stdarg.h>
#include "aws_sigv4_common.h"
int aws_sigv4_empty_str(aws_sigv4_str_t* str)
{
return (str == NULL || str->data == NULL || str->len == 0) ? 1 : 0;
}
aws_sigv4_str_t aws_sigv4_string(const unsigned char* cstr)
{
aws_sigv4_str_t ret = { .data = NULL };
if (cstr)
{
ret.... |
lk-eternal/mbed-aws-sigv4-c | aws_sigv4_common.h | #ifndef __AWS_SIGV4_COMMON_H
#define __AWS_SIGV4_COMMON_H
typedef struct aws_sigv4_str_s {
unsigned char* data;
unsigned int len;
} aws_sigv4_str_t;
typedef struct aws_sigv4_kv_s {
aws_sigv4_str_t key;
aws_sigv4_str_t value;
} aws_sigv4_kv_t;
aws_sigv4_str_t aws_sigv4_string(const unsigned char* cstr);
... |
dsarlis/Algorithms | Lab3/testcases.c | #include <stdio.h>
#include <stdlib.h>
struct Node {
int value;
int size;
};
typedef struct Node NodeStruct;
void swapLong(unsigned long long int *x, unsigned long long int *y) {
unsigned long long int temp = 0;
temp = *x;
*x = *y;
*y = temp;
}
unsigned long long int partition(unsigned long ... |
dsarlis/Algorithms | Lab2/boats.c | <reponame>dsarlis/Algorithms<filename>Lab2/boats.c
#include <stdio.h>
#include <stdlib.h>
void merge(int *A, int *B, int *X, int *Y, int low, int mid, int up, int N) {
int i = low, j = mid+1, k = low, q = 0;
for (q = low; q <= up; q++) {
X[q] = A[q];
Y[q] = B[q];
}
while ((i <= mid) && (j <... |
dsarlis/Algorithms | Lab1/vacation.c | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
void swap(long int *x, long int *y) {
long int temp = 0;
temp = *x;
*x = *y;
*y = temp;
}
long int partition(long int *a, long int *b, long int left,long int right) {
long int pivotSum = 0, *firstSum = NULL, *lastSum = NULL;
... |
dsarlis/Algorithms | Lab3/headquart.c | #include <stdio.h>
#include <stdlib.h>
void mulArray(long long int *A, long long int *B, long long int *C, int dim) {
int i = 0, j = 0, k = 0;
long long int temp[dim][dim];
for (i = 0; i < dim; i++)
for (j = 0; j < dim; j++) {
temp[i][j] = 0;
for (k = 0; k < dim; k++) {
temp[i][j] = temp[i][j] + ((*(... |
dsarlis/Algorithms | Lab1/test.c | <filename>Lab1/test.c
#include <stdio.h>
int main(){
double a = 0.0;
scanf("%lf", &a);
printf("%lf", a);
return 0;
}
|
dsarlis/Algorithms | Lab2/boats2.c | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
void swap(int *x, int *y) {
int temp = 0;
temp = *x;
*x = *y;
*y = temp;
}
int partition(int *a, int *b, int left, int right) {
int pivotMan = 0, *firstMan = NULL, *lastMan = NULL;
int pivotPos = 0, pivotWoman = 0, *firstWoman = NU... |
dsarlis/Algorithms | Lab1/vacationLinear.c | <filename>Lab1/vacationLinear.c
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
long int i = 0, N = 0, C = 0, flag = 0, element = 0, diff = 0, start = 0, end = 0, max_diff = 0, min = 0, minPos = 0, checkSum = 0;
long int sum = 0, maxLen = 0;
long int *sums = NULL, *ptr = NULL;
... |
dsarlis/Algorithms | Lab2/game.c | #include <stdio.h>
#include <stdlib.h>
int main() {
int N = 0, *p = NULL, i = 0 , *sums = NULL, current = 0, range = 0;
int *benefit = NULL, j = 0, k = 0, cur1 = 0, cur2 = 0, test = 0;
if (scanf("%d\n", &N) != 1)
fprintf(stderr,"Wrong input format\n");
p = (int* )malloc(N*sizeof(int));
sums = (int* )... |
dsarlis/Algorithms | Lab1/kiosk.c | <gh_stars>0
#include <stdio.h>
#include <stdlib.h>
struct kiosk{
double pos;
int requests;
};
typedef struct kiosk kioskType;
double absolute(double x){
if (x > 0.0)
return x;
else
return -x;
}
int check(kioskType *kiosks, double shift, int coordinates, int distance){
kioskType... |
datnguyen-personal/Twister | Pods/Target Support Files/Pods-Twister/Pods-Twister-umbrella.h | <gh_stars>0
#import <UIKit/UIKit.h>
FOUNDATION_EXPORT double Pods_TwisterVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_TwisterVersionString[];
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.