repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
stardot/ncc
cppthumb/options.h
/* * options.h -- compiler configuration options set at compile time * Copyright (C) Acorn Computers Ltd. 1988 * Copyright (C) Codemist Ltd., 1994 * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #ifndef _options_LOADED #define _options_LOADED /* * The fo...
stardot/ncc
cpparm/options.h
/* * options.h -- compiler configuration options set at compile time * Copyright (C) Acorn Computers Ltd. 1988 * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #ifndef _options_LOADED #define _options_LOADED /* * The following conditional settings allow th...
stardot/ncc
tests/bitfield.c
/* * ARM C compiler regression test $RCSfile$ * Copyright (C) 1995 Advanced Risc Machines Ltd. All rights reserved. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #include "testutil.h" typedef unsigned long uint32; typedef unsigned short uint16; typedef u...
stardot/ncc
tests/1923.c
/* ARM C library test */ /* Copyright (C) Advanced RISC Machines, 1997. All Rights Reserved */ /* SPDX-Licence-Identifier: Apache-2.0 */ /* THIS TEST HAS BEEN SUPERCEDED BY 2581.c */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #include <stdlib.h> #include <limits.h> #include "testutil.h" double ...
stardot/ncc
tests/2382.c
<filename>tests/2382.c<gh_stars>0 /* * ARM C compiler regression test $RCSfile$ * Copyright (C) 1995 Advanced Risc Machines Ltd. All rights reserved. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #include <stdio.h> #include "testutil.h" #ifdef __cpluspl...
stardot/ncc
mip/dump.h
/* * dump.h: compiler state save and restore * Copyright (C) 1996 Advanced RISC Machines Limited. All rights reserved. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ Codemist 0 * Checkin $Date$ * Revising $Author$ */ #define DS_Version 1 #define DS_Dump 1 #define DS_Load 2 extern unsigned dump...
stardot/ncc
thumb/target.h
<filename>thumb/target.h /* * C compiler file thumb/target.h, version 1 * Copyright (C) Codemist Ltd., 1988-94. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #ifndef _target_LOADED #define _target_LOADED 1 #define TARGET_IS_THUMB 1 #include "toolenv.h"...
stardot/ncc
tests/inlnthumb.c
/* * Thumb C compiler inline assembler test $RCSfile$ * Copyright (C) 1997 Advanced Risc Machines Ltd. All rights reserved. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #include "testutil.h" #ifdef __thumb int t0(int a, int b, int c) { /* Quoted asse...
stardot/ncc
interp/target.h
<filename>interp/target.h /* * C compiler file arm/target.h, version 13a * Copyright (C) Codemist Ltd., 1988. * Copyright (C) Acorn Computers Ltd., 1988 * Copyright (C) Advanced Risc Machines Ltd., 1991 * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #ifn...
stardot/ncc
clbcomp/clbcomp.h
/* * C compiler file ccomp/ccomp.h * Copyright (C) Advanced Risc Machines Ltd., 1996 * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #ifndef _ccomp_LOADED #define _ccomp_LOADED 1 extern char *expr_string; extern void clb_init(void); extern Expr *clb_parse_...
stardot/ncc
mip/csescan.c
/* * mip/csescan.c: CSE available expression analysis * Copyright (C) Acorn Computers Ltd., 1988. * Copyright 1991-1997 Advanced Risc Machines Limited, All rights reserved * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ Codemist 125 * Checkin $Date$ * Revising $Author$ */ #ifdef __STDC__ # incl...
stardot/ncc
cfe/simplify.c
<reponame>stardot/ncc<filename>cfe/simplify.c /* * simplify.c: tree optimisation phase of C compiler * Copyright (C) Codemist Ltd, 1988-1992. * Copyright (C) Acorn Computers Ltd., 1988-1990. * Copyright 1991-1997 Advanced Risc Machines Limited. All rights reserved * SPDX-Licence-Identifier: Apache-2.0 */ /* * R...
stardot/ncc
mip/optproto.h
/* * mip/optproto.h -- compiler configuration options set at compile time. * Copyright (C) Acorn Computers Ltd., 1988 * Copyright (C) Codemist Ltd., 1989 * SPDX-Licence-Identifier: Apache-2.0 * Version 1. */ /* * This is a prototype file documenting (some of) the available * things which might go in target.h o...
stardot/ncc
arm/mcdpriv.h
/* * C compiler file mcdpriv.h * (Private interfaces within machine-dependent back end). * Copyright (C) Acorn Computers Ltd., 1988 * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #ifndef __mcdpriv_h #define __mcdpriv_h 1 #include "mcdep.h" #ifndef JOPCOD...
stardot/ncc
tests/2256.c
/* * ARM C compiler regression test $RCSfile$ * Copyright (C) 1997 Advanced Risc Machines Ltd. All rights reserved. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #include "testutil.h" /********************* 2256 ***********************/ /* must be comp...
stardot/ncc
mip/globals.h
<gh_stars>0 /* * mip/globals.h - ubiquitously required definitions * Copyright (C) Acorn Computers Ltd., 1988. * Copyright (C) Codemist Ltd., 1988. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #ifndef _globals_LOADED #define _globals_LOADED #ifdef __S...
stardot/ncc
util/genhdrs.c
<reponame>stardot/ncc /* * C compiler support file genhdrs.c * Copyright (C) Codemist Limited, 1987, 1989. * Copyright (C) Acorn Computers Limited., 1988 * Copyright (C) Advanced RISC Machines Limited 1992-93. * SPDX-Licence-Identifier: Apache-2.0 * All rights reserved. */ /* * RCS $Revision$ * Checkin $Date$...
stardot/ncc
cfe/lex.h
/* * C compiler file cfe/lex.h: * Copyright (C) Acorn Computers Ltd., 1988-1990. * Copyright (C) Codemist Ltd., 1988-1992. * Copyright (C) Advanced RISC Machines Limited, 1990-1992. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #ifndef _lex_h #define _l...
stardot/ncc
armthumb/tooledit.c
/* ARM and Thumb C compilers: file tooledit.c * Copyright (C) 1996 Advanced RISC Machines Limited. All rights reserved. * Common tooledit code for arm and thumb. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #include <string.h> #include <ctype.h> #includ...
stardot/ncc
mip/defaults.h
<gh_stars>0 /* * mip/defaults.h - default sizes of things, debugging options etc... * Copyright (C) Codemist Ltd., 1989-1992. * Copyright (C) Advanced RISC Machines Limited, 1992. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ Codemist 9 * Checkin $Date$ * Revising $Author$ */ /* This file is i...
stardot/ncc
cfe/lex.c
<filename>cfe/lex.c /* * C compiler file lex.c * Copyright (C) Codemist Ltd., 1988-1992 * Copyright (C) Acorn Computers Ltd., 1988-1990 * Copyright (C) Advanced RISC Machines Ltd., 1990-1992 * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ Codemist 61 * Checkin $Date$ * Revising $Author$ */ /* ...
stardot/ncc
tests/795.c
<reponame>stardot/ncc /* * ARM C compiler regression test $RCSfile$ * Copyright (C) 1997 Advanced Risc Machines Ltd. All rights reserved. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #include "testutil.h" /********************* 795 *******************...
stardot/ncc
ccapple/options.h
<reponame>stardot/ncc<filename>ccapple/options.h /* * options.h -- compiler configuration options set at compile time * Copyright (C) Acorn Computers Ltd. 1988 * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ /* * This is a prototype file documenting (some ...
stardot/ncc
mip/cseguts.h
/* * mip/cseguts.h: CSE: internal interfaces * Copyright (C) Acorn Computers Ltd., 1988. * Copyright 1991-1997 Advanced Risc Machines Limited. All rights reserved * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #ifndef _cseguts_h #define _cseguts_h 1 #inc...
stardot/ncc
tests/2099.c
/* * ARM C compiler regression test $RCSfile$ * Copyright (C) 1997 Advanced Risc Machines Ltd. All rights reserved. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #include "testutil.h" /********************* 2099 ***********************/ void GLPen_TPto...
stardot/ncc
mip/dwarf.c
/* * C compiler file mip/dwarf.c * Copyright: (C) 1995, Advanced RISC Machines Limited. All rights reserved. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ /* The debug table formatter for DWARF debug tables, for embedding in ELF or other object files...
stardot/ncc
mip/coffobj.c
/* C compiler file coffobj.c : Copyright (C) Codemist Ltd, 1988. */ /* SPDX-Licence-Identifier: Apache-2.0 */ /* 'COFF' (system V unix) output routines */ /* version 13j */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ /* AM: Feb 90: add AUX items for sections. Fix bug in common refs */...
stardot/ncc
mip/jopcode.h
/* * file mip/jopcode.h * Copyright (C) Codemist Ltd., 1989. * Copyright 1991-1997 Advanced Risc Machines Limited. All rights reserved * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ Codemist 37 * Checkin $Date$ * Revising $Author$ */ /* * Some bits of information now live in the joptable[] arr...
stardot/ncc
mip/misc.c
/* * misc.c: Misc features for the Norcroft C compiler * Copyright (C) Codemist Ltd, 1988-1992. * Copyright (C) Acorn Computers Ltd., 1988-1990. * Copyright (C) Advanced RISC Machines Limited, 1990-1992. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ Codemist 70 * Checkin $Date$ * Revising $Aut...
stardot/ncc
tests/2162.c
<reponame>stardot/ncc /* * ARM C compiler regression test $RCSfile$ * Copyright (C) 1995 Advanced Risc Machines Ltd. All rights reserved. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #include <string.h> #include "testutil.h" /********************* 2162...
stardot/ncc
mip/dump.c
/* * dump.c: compiler state save and restore * Copyright (C) 1996 Advanced RISC Machines Limited. All rights reserved. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ Codemist 0 * Checkin $Date$ * Revising $Author$ */ #include <string.h> #include <stdio.h> #include "globals.h" #include "defs.h"...
stardot/ncc
mip/bind.h
/* * mip/bind.h: * Copyright (C) Acorn Computers Ltd., 1988-1990. * Copyright (C) Codemist Ltd., 1987-1992. * Copyright (C) Advanced RISC Machines Limited, 1991-1992. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #ifndef _bind_h #define _bind_h #ifndef...
stardot/ncc
mip/dw_int.h
/* * C compiler file mip/dw_int.h * Copyright: (C) 1995, Advanced RISC Machines Limited. All rights reserved. * Interface between main DWARF debug formatter and table writers. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ /* Private tag values used to ...
stardot/ncc
tests/mathtest.h
/* Library routines for testing math functions with odd values */ /* Copyright (C) Advanced RISC Machines, 1997. All Rights Reserved */ /* SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #ifndef mathtest_h #define mathtest_h typedef union double_ints { struct ...
stardot/ncc
armthumb/arminst.c
/* * armthumb/arminst.c * Copyright (C) Codemist Ltd., 1987-1993 * Copyright (C) Advanced RISC Machines Limited., 1990-1997 * SPDX-Licence-Identifier: Apache-2.0 * * Functions to generate sequences of ARM instructions required by * both ARM and Thumb backends */ /* * RCS $Revision$ * Checkin $Date$ * Revisi...
stardot/ncc
util/datenow.c
<filename>util/datenow.c<gh_stars>0 /* * Copyright (C) Advanced Risc Machines Ltd., 1991 * SPDX-Licence-Identifier: Apache-2.0 */ #include <stdio.h> #include <time.h> int main(argc, argv) int argc; char *argv[]; { char buf[32]; time_t now; char *ct; time(&now); ct = ctime(&now); sprintf(buf, "%.3s %.2s...
stardot/ncc
thumb/thmbpriv.h
/* * C compiler file mcdpriv.h, version 1 * (Private interfaces within machine-dependent back end). * Copyright (C) Acorn Computers Ltd., 1988, Codemist Ltd 1994 * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #ifndef __mcdpriv_h #define __mcdpriv_h 1 #i...
stardot/ncc
cfe/pp.h
/* * C pre-processor, cfe/pp.h: * Copyright (C) Acorn Computers Ltd., 1988-1990. * Copyright (C) Codemist Ltd., 1988-1992. * Copyright (C) Advanced RISC Machines Limited, 1990-1992. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #ifndef _pp_h #define _pp...
stardot/ncc
cppfe/overload.c
<filename>cppfe/overload.c /* * overload.c: semantic analysis phase of C++ compiler * Copyright (C) Codemist Ltd, 1991 * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ Codemist 11 * Checkin $Date$ * Revising $Author$ */ /* The file is logically part of sem.c, and imported by it and syn.c */ /* ...
stardot/ncc
clbcomp/options.h
/* * options.h -- compiler configuration options set at compile time * Copyright (C) Acorn Computers Ltd. 1988 * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #ifndef _options_LOADED #define _options_LOADED /* * The following conditional settings allow th...
stardot/ncc
cppfe/xbind.c
/* * xbind.c: various binding and lexing routines for C++ compiler * Copyright (C) Codemist Ltd., 1987-1992. * Copyright (C) Acorn Computers Ltd., 1988-1990. * Copyright (C) Advanced RISC Machines Limited, 1991-1992, 1994 * SPDX-Licence-Identifier: Apache-2.0 * All rights reserved */ /* * RCS $Revision$ * Che...
stardot/ncc
mip/aout.h
<reponame>stardot/ncc<filename>mip/aout.h<gh_stars>0 /* * Modified a.out.h for use with ARM. In fact the mod is to * a comment only and concerns the value of r_length in a * relocation record when the relocated object is an ARM branch. * LJA. */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ /...
stardot/ncc
mip/store.h
/* * mip/store.h, version 6 * Copyright (C) Codemist Ltd., 1988. * Copyright (C) Acorn Computers Ltd., 1988. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ /* There are four classes or storage: PermAlloc: permanent (for cmd-line arguments, etc) ...
stardot/ncc
mip/aetree.c
<reponame>stardot/ncc<filename>mip/aetree.c /* * C compiler file aetree.c, version 42 * Copyright (C) Codemist Ltd., 1987. * Copyright (C) Acorn Computers Ltd., 1988 * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #ifdef __STDC__ # include <stdarg.h> #els...
stardot/ncc
mip/xrefs.h
/* * xrefs.h, version 2q * Copyright (C) Codemist Ltd, 1988. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #ifndef _xrefs_LOADED #define _xrefs_LOADED 1 typedef struct CodeXref CodeXref; struct CodeXref { CodeXref *codexrcdr; int32 codexroff; /*...
stardot/ncc
mip/sr.c
<reponame>stardot/ncc<filename>mip/sr.c<gh_stars>0 /* * sr.c: Live range splitting * Copyright 1993-1997 Advanced Risc Machines Limited. All rights reserved * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ Codemist 2 * Checkin $Date$ * Revising $Author$ */ #include <stdio.h> #ifdef __STDC__ # inc...
stardot/ncc
mip/codebuf.c
<reponame>stardot/ncc /* * C compiler file codebuf.c. * Copyright (C) Codemist Ltd, 1988-1992. * Copyright (C) Acorn Computers Ltd., 1988-1990. * Copyright (C) Advanced RISC Machines Limited, 1990-1992. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ Codemist 30 * Checkin $Date$ * Revising $Autho...
stardot/ncc
cfe/feerrs.h
<filename>cfe/feerrs.h /* * cfe/feerrs.h - prototype for front-end error messages file * Copyright (C) Acorn Computers Ltd., 1988-1990. * Copyright (C) Codemist Ltd., 1987-1992. * Copyright (C) Advanced RISC Machines Limited, 1991-1992. * SPDX-Licence-Identifier: Apache-2.0 * version 3b. */ /* * RCS $Revision$...
stardot/ncc
mip/store.c
<filename>mip/store.c /* * mip/store.c: Storage allocation for the Codemist C compiler * Copyright (C) Codemist Ltd., 1987-1992. * Copyright (C) Acorn Computers Ltd., 1988-1990. * Copyright (C) Advanced RISC Machines Limited, 1990-1992. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Da...
stardot/ncc
mip/version.h
/* * version.h * Copyright (C) Acorn Computers Ltd., 1988. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ /* * Defines the compiler banner. The functional interface is preferable * to a #define of the string (which in any case isn't possible for a non-A...
stardot/ncc
cppfe/doe.c
<reponame>stardot/ncc /* * C++ compiler file doe.c * Copyright (C) Advanced RISC Machines Ltd., 1995 * SPDX-Licence-Identifier: Apache-2.0 * All rights reserved. */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ /* Parser functions for the declaration sub-grammar. * Parsing is tuned towards res...
stardot/ncc
arm/ampops.h
<gh_stars>0 /* * C compiler file arm/ampops.h * Copyright (C) Advanced Risc Machines Ltd., 1997. All rights reserved. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #ifndef _ampops_LOADED #define _ampops_LOADED 1 #define AMP_FADD 0x50 #define AMP_FSUB 0x5...
fusor-io/fusor-node-connector
src/LocalTimeHandler/LocalTimeHandler.h
<gh_stars>0 #ifndef localtimehandler_h #define localtimehandler_h #include <Arduino.h> // lets update time only if it differs by 2 or more seconds #define MIN_DIFFERENCE 2 class LocalTimeHandler { public: void update(String); private: bool _initialized = false; unsigned long _lastSyncTime; uint8_t ...
fusor-io/fusor-node-connector
src/NodeConnector.h
/* Wifi Configurator - web client based configuration for you IOT project Copyright <NAME> 2020 MIT License */ #ifndef nodeconnector_h #define nodeconnector_h #ifdef ESP8266 #include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> #else #include <WiFi.h> #include <HTTPClient.h> #endif #include <TimeLib.h> #in...
fusor-io/fusor-node-connector
src/PersistentStorage/PersistentStorage.h
#ifndef PersistentStorage_h #define PersistentStorage_h #include <map> #include <ArduinoJson.h> #include <StateMachine.h> #include <Arduino.h> #include "../FileSystem/FileSystem.h" #include "RecordStruct.h" /* * Persistent storage is used to save choosen variables to ERPROM and load them * as default values after ...
fusor-io/fusor-node-connector
src/Utils/Utils.h
<gh_stars>0 #ifndef ncutils_h #define ncutils_h #include <Arduino.h> unsigned long diff(unsigned long, unsigned long); unsigned long getTimeout(unsigned long); #endif
fusor-io/fusor-node-connector
src/HubClient/HubClient.h
<reponame>fusor-io/fusor-node-connector #ifndef hubclient_h #define hubclient_h #include <ArduinoJson.h> #ifdef ESP8266 #include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> #else #include <WiFi.h> #include <HTTPClient.h> #endif #include "../LocalTimeHandler/LocalTimeHandler.h" #define MAX_CONNECT_RETRY 20 #defin...
fusor-io/fusor-node-connector
src/SyncInOptions/SyncInOptions.h
<gh_stars>0 #ifndef syncinoptions_h #define syncinoptions_h #include <ArduinoJson.h> /** * SyncIn options: * { * "f": string[] * "d": number * } * * "f" - array of field names to read from the hub and write to StateMachine store. Field - node-id.field-name * "d" - ms to delay between updates */ #define...
fusor-io/fusor-node-connector
src/PersistentStorage/RecordStruct.h
#ifndef recordstruct_h #define recordstruct_h #include <Arduino.h> #include <StateMachine.h> typedef struct RecordStruct { RecordStruct(VarStruct *value) : var(value), updatedAt(millis()) {} VarStruct var; unsigned long updatedAt; } RecordStruct; #endif
fusor-io/fusor-node-connector
src/SMHooks/SMHooks.h
#ifndef smhooks_h #define smhooks_h #include <map> #include <ArduinoJson.h> #include <StateMachine.h> #include "../SyncOutElementConfig/SyncOutElementConfig.h" #include "../Utils/Utils.h" #include "../HubClient/HubClient.h" #include "../PersistentStorage/PersistentStorage.h" class SMHooks : public Hooks { public: ...
fusor-io/fusor-node-connector
src/PrintWrapper/PrintWrapper.h
<reponame>fusor-io/fusor-node-connector<gh_stars>0 #ifndef ncprintwrapper_h #define ncprintwrapper_h #include <Arduino.h> extern bool __nc_serial_enabled; template <class T> inline Print &operator<<(Print &stream, T arg) { if (__nc_serial_enabled) stream.print(arg); return stream; } #endif
fusor-io/fusor-node-connector
src/FileSystem/FileSystem.h
#ifndef filesystem_h #define filesystem_h #include <Arduino.h> #ifdef ESP32 #include <SPIFFS.h> #else #include <FS.h> #endif // https://github.com/espressif/arduino-esp32/blob/master/libraries/SPIFFS/src/SPIFFS.cpp class FileSystem { public: bool begin(bool formatOnFail = false); void end(); bool exists(c...
fusor-io/fusor-node-connector
src/SyncOutElementConfig/SyncOutElementConfig.h
<reponame>fusor-io/fusor-node-connector #ifndef SyncOutElementConfig_h #define SyncOutElementConfig_h #include <ArduinoJson.h> #include <StateMachine.h> /* * Sync out options (defines how variable from state machine is emitted to the hub) * { * SYNC_TYPE: "i" | "p" | "c", // i - instant (on update), p - with p...
KornnerStudios/tinycpp
tokenizer.h
#ifndef TOKENIZER_H #define TOKENIZER_H #define MAX_TOK_LEN 4096 #define MAX_UNGETC 8 #include <stdint.h> #include <stddef.h> #include <stdio.h> struct tokenizer_getc_buf { int buf[MAX_UNGETC]; size_t cnt, buffered; }; enum markertype { MT_SINGLELINE_COMMENT_START = 0, MT_MULTILINE_COMMENT_START = 1, MT_MULTIL...
wungad/libnetconf2
src/libnetconf.h
<gh_stars>100-1000 /** * @file libnetconf.h * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> * @brief libnetconf2 main internal header. * * Copyright (c) 2015 - 2021 CESNET, z.s.p.o. * * This source code is licensed under BSD 3-Clause License (the "License"). * You may not use this file except in complian...
wungad/libnetconf2
src/messages_server.c
/** * \file messages_server.c * \author <NAME> <<EMAIL>> * \brief libnetconf2 - server NETCONF messages functions * * Copyright (c) 2015 CESNET, z.s.p.o. * * This source code is licensed under BSD 3-Clause License (the "License"). * You may not use this file except in compliance with the License. * You may obt...
wungad/libnetconf2
tests/client/test_client.c
#include <errno.h> #include <setjmp.h> #include <stdio.h> #include <stdlib.h> #include <sys/socket.h> #include <sys/types.h> #include <cmocka.h> #include <libyang/libyang.h> #include <log.h> #include <session_client.h> #include "tests/config.h" static int setup_f(void **state) { (void)state; nc_verbosity(NC_...
wungad/libnetconf2
src/log_p.h
<reponame>wungad/libnetconf2 /** * @file log.h * @author <NAME> <<EMAIL>> * @brief libnetconf2 logger * * Copyright (c) 2015 - 2021 CESNET, z.s.p.o. * * This source code is licensed under BSD 3-Clause License (the "License"). * You may not use this file except in compliance with the License. * You may obtain a...
wungad/libnetconf2
modules/ietf_netconf_monitoring@2010-10-04_yang.h
char ietf_netconf_monitoring_2010_10_04_yang[] = { 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x20, 0x69, 0x65, 0x74, 0x66, 0x2d, 0x6e, 0x65, 0x74, 0x63, 0x6f, 0x6e, 0x66, 0x2d, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x7b, 0x0a, 0x0a, 0x20, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x6...
wungad/libnetconf2
tests/test_thread_messages.c
/** * \file test_thread_messages * \author <NAME> <<EMAIL>> * \brief libnetconf2 tests - thread-safety for receiving messages * * Copyright 2021 Deutsche Telekom AG. * Copyright 2021 CESNET, z.s.p.o. * * This source code is licensed under BSD 3-Clause License (the "License"). * You may not use this file except...
wungad/libnetconf2
tests/test_server_thread.c
/** * \file test_server_thread.c * \author <NAME> <<EMAIL>> * \brief libnetconf2 tests - thread-safety of all server functions * * Copyright (c) 2017 CESNET, z.s.p.o. * * This source code is licensed under BSD 3-Clause License (the "License"). * You may not use this file except in compliance with the License. ...
wungad/libnetconf2
tests/client/test_client_tls.c
<reponame>wungad/libnetconf2<filename>tests/client/test_client_tls.c #include <errno.h> #include <setjmp.h> #include <stdio.h> #include <stdlib.h> #include <sys/socket.h> #include <sys/types.h> #include <cmocka.h> #include <config.h> #include <libyang/libyang.h> #include <log.h> #include <session_client.h> #include "t...
SoundMetrics/aris-file-sdk
type-definitions/C/FileHeader.h
// FileHeader.h // THIS IS GENERATED WITH GenerateHeader, DO NOT MODIFY #ifndef ARIS_ARISFILEHEADER_H #define ARIS_ARISFILEHEADER_H #include <stdint.h> #define ARIS_FILE_SIGNATURE 0x05464444 #define ARIS_FRAME_SIGNATURE 0x05464444 #pragma pack(push, 1) // Defines the metadata at the start of an ARIS recording. s...
SoundMetrics/aris-file-sdk
beam-width-metrics/BeamWidths_ARIS3000_128.h
<reponame>SoundMetrics/aris-file-sdk<filename>beam-width-metrics/BeamWidths_ARIS3000_128.h // Copyright 2010-2018 Sound Metrics corporation // // Approximate Beam Angles for ARIS3000 (128 channels) // // beam, center, left, right DEFINE_BEAMWIDTH3(0, -15.0068, -15.1218, -14.8918) DEFINE_BEAMWIDT...
SoundMetrics/aris-file-sdk
beam-width-metrics/BeamWidths_ARIS_Telephoto_96.h
<reponame>SoundMetrics/aris-file-sdk // Copyright 2010-2018 Sound Metrics corporation // // Updated Beam Angles for ARIS 1800 Telephoto (96 channels) // // beam, center, left, right DEFINE_BEAMWIDTH3(0, -7.419, -7.493, -7.345) DEFINE_BEAMWIDTH3(1, -7.271, -7.345, -7.197) DEFINE_BEAMWIDTH3(2, -7...
SoundMetrics/aris-file-sdk
sample-code/extract-readings/extract.c
<reponame>SoundMetrics/aris-file-sdk<gh_stars>1-10 // extract #include "stdio.h" #include "FileHeader.h" #include "FrameHeader.h" #include "FrameFuncs.h" #include <math.h> #include <string.h> #define INVALID_INPUTS -1 #define CANT_OPEN_INPUT -2 #define CANT_OPEN_OUTPUT -3 #define NOT_ARIS_FILE -4 #d...
SoundMetrics/aris-file-sdk
type-definitions/C/FrameHeaderFieldsOnly.h
// Frame number in file uint32_t FrameIndex; // PC time stamp when recorded; microseconds since epoch (Jan 1st 1970) uint64_t FrameTime; // ARIS file format version = 0x05464444 uint32_t Version; uint32_t Status; // On-sonar microseconds since epoch (Jan 1st 1970) uint64_t sonarT...
SoundMetrics/aris-file-sdk
common-code/FrameFuncs.c
<gh_stars>1-10 // FrameFuncs.c #include "FrameFuncs.h" size_t get_beams_from_pingmode(uint32_t pingmode) { switch (pingmode) { case 1: case 2: return 48; case 3: case 4: case 5: return 96; case 6: case 7: case 8: return 64; case 9: case ...
SoundMetrics/aris-file-sdk
beam-width-metrics/BeamWidths_ARIS3000_64.h
// Copyright 2010-2018 Sound Metrics corporation // // Updated Beam Angles for ARIS3000 (64 channels) // // beam, center, left, right DEFINE_BEAMWIDTH3(0, -14.8872, -15.1175, -14.6569) DEFINE_BEAMWIDTH3(1, -14.4266, -14.6569, -14.1952) DEFINE_BEAMWIDTH3(2, -13.9637, -14.1952, -13.7314) DEFI...
SoundMetrics/aris-file-sdk
type-definitions/C/FrameHeader.h
// FrameHeader.h // THIS IS GENERATED WITH GenerateHeader, DO NOT MODIFY #ifndef ARIS_ARISFRAMEHEADER_H #define ARIS_ARISFRAMEHEADER_H #include <stdint.h> #define ARIS_FILE_SIGNATURE 0x05464444 #define ARIS_FRAME_SIGNATURE 0x05464444 #pragma pack(push, 1) // Defines the metadata at the start of an ARIS frame. st...
SoundMetrics/aris-file-sdk
beam-width-metrics/BeamWidths_ARIS1800_1200_48.h
<gh_stars>1-10 // Copyright 2010-2018 Sound Metrics corporation // // Updated Beam Angles for ARIS1800/1200 (48 channels) // // beam, center, left, right DEFINE_BEAMWIDTH3(0, -13.5735, -13.7893, -13.3577) DEFINE_BEAMWIDTH3(1, -13.1419, -13.3577, -12.9211) DEFINE_BEAMWIDTH3(2, -12.7003, -12.9211...
SoundMetrics/aris-file-sdk
type-definitions/C/FileHeaderFieldsOnly.h
<filename>type-definitions/C/FileHeaderFieldsOnly.h<gh_stars>1-10 // File format version DDF_05 = 0x05464444 uint32_t Version; // Total frames in file // Note: Writers should populate; readers should calculate the number of frames from file size & beams*samples. uint32_t FrameCount; // Initial...
SoundMetrics/aris-file-sdk
beam-width-metrics/BeamWidths_ARIS1800_96.h
// Copyright 2010-2018 Sound Metrics corporation // // Approximate Beam Angles for ARIS3000 (128 channels) // // beam, center, left, right DEFINE_BEAMWIDTH3(0, -13.749, -13.8562, -13.6419) DEFINE_BEAMWIDTH3(1, -13.5347, -13.6419, -13.4261) DEFINE_BEAMWIDTH3(2, -13.3174, -13.4261, -13.2075) DEF...
SoundMetrics/aris-file-sdk
common-code/FrameFuncs.h
// FrameFuncs.h #include <stdint.h> #ifndef FRAMEFUNCS_H #define FRAMEFUNCS_H // Returns the number of beams used for the specified pingmode. size_t get_beams_from_pingmode(uint32_t pingmode); #endif // !FRAMEFUNCS_H
SoundMetrics/aris-file-sdk
beam-width-metrics/BeamWidths_ARIS_Telephoto_48.h
<reponame>SoundMetrics/aris-file-sdk<filename>beam-width-metrics/BeamWidths_ARIS_Telephoto_48.h // Copyright 2010-2018 Sound Metrics corporation // // Updated Beam Angles for ARIS 1800/1200 Telephoto (48 channels) // // beam, center, left, right DEFINE_BEAMWIDTH3(0, -7.339, -7.487, -7.345) DEFIN...
tailhook/paperjam
src/pjutil.c
<filename>src/pjutil.c #include <stdlib.h> #include <getopt.h> #include <string.h> #include <stdio.h> #include <config.h> #include <time.h> #include <assert.h> #include "pjutil.h" #ifdef HAVE_XS #include <xs.h> #include "xs_cli.h" #endif #ifdef HAVE_ZMQ #include <zmq.h> #include "zmq_cli.h" #endif struct cli_options_...
tailhook/paperjam
src/pjutil.h
<reponame>tailhook/paperjam<gh_stars>1-10 #ifndef _H_PJUTIL #define _H_PJUTIL #include <getopt.h> #include "print.h" struct cli_options_s { int defaultlib; int arg0_lib; int arg0_sock; int lib; int sock; double timeout; double finishtime; int argc; char **argv; char **messages...
tailhook/paperjam
src/main.c
#include <malloc.h> #include <stdlib.h> #include <stdio.h> #include <assert.h> #include <sys/time.h> #include <time.h> #include <poll.h> #include "config.h" #include "handle_zmq.h" #include "handle_xs.h" #include "paperjam.h" #define ASSERTERR(val) if((val) == -1) { \ fprintf(stderr, "Assertion error at %s:%d: %s...
tailhook/paperjam
src/handle_zmq.c
#include <stdio.h> #include <errno.h> #include <assert.h> #include <stdlib.h> #include <stdint.h> #include "handle_zmq.h" #ifndef HAVE_ZMQ int open_zmq_socket(context *ctx, config_socket_t *sock) { fprintf(stderr, "Paperjam was compiled without libzmq support\n"); errno = ENOTSUP; return -1; } #else #...
tailhook/paperjam
src/handle_xs.h
#ifndef _H_HANDLE_XS_ #define _H_HANDLE_XS_ #include "common.h" #define FLAG_LIBXS 0x200 #define IS_XS(sock) (((sock)->kind & LIB_MASK) == FLAG_LIBXS) #if HAVE_XS #include <xs.h> #define XS_ASSERTERR(val) if((val) == -1) { \ fprintf(stderr, "Assertion error" #val ": %s\n", xs_strerror(errno)); \ abort(); \...
tailhook/paperjam
src/handle_zmq.h
#ifndef _H_HANDLE_ZMQ_ #define _H_HANDLE_ZMQ_ #include "common.h" #define FLAG_LIBZMQ 0x100 #define IS_ZMQ(sock) (((sock)->kind & LIB_MASK) == FLAG_LIBZMQ) #if HAVE_ZMQ #include <zmq.h> #define ZMQ_SOCKETERR(sock, val) if((val) == -1) { \ fprintf(stderr, "Error on ``%s.%s'' at %s:%d: %s\n", \ (sock)->_n...
tailhook/paperjam
src/zmq_cli.c
<gh_stars>1-10 #include <assert.h> #include <stdint.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <zmq.h> #include "pjutil.h" static void *open_context() { return zmq_init(1); } static void configure_socket(void *sock) { int opt; int rc; optind = 1; while((opt = getopt_l...
tailhook/paperjam
src/pjmonitor.c
<filename>src/pjmonitor.c #include <malloc.h> #include <stdlib.h> #include <stdio.h> #include <assert.h> #include <poll.h> #include <getopt.h> #include "config.h" #include "handle_zmq.h" #include "handle_xs.h" #include "pjmon.h" #include "print.h" #define ASSERTERR(val) if((val) == -1) { \ fprintf(stderr, "Assert...
tailhook/paperjam
src/print.c
#include <stdio.h> #include <ctype.h> void print_message(char *data, size_t len, int more) { FILE *stream = stdout; fputc('"', stream); for(char *c = data, *end = data + len; c < end; ++c) { if(isprint(*c)) { if(*c == '\\') { fprintf(stream, "\\\\"); } else i...
tailhook/paperjam
src/xs_cli.c
#include <assert.h> #include <stdint.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <xs.h> #include "config.h" #include "pjutil.h" static void *open_context() { return xs_init(); } static void configure_socket(void *sock) { int opt; int rc; optind = 1; while((opt = getopt...
tailhook/paperjam
src/zmq_cli.h
<filename>src/zmq_cli.h #ifndef _H_ZMQ_CLI #define _H_ZMQ_CLI void run_zmq_pull(); void run_zmq_push(); void run_zmq_sub(); void run_zmq_pub(); void run_zmq_req(); void run_zmq_rep(); #endif // _H_ZMQ_CLI
tailhook/paperjam
src/handle_xs.c
#include <stdio.h> #include <errno.h> #include <assert.h> #include <stdlib.h> #include <stdint.h> #include "handle_xs.h" #ifndef HAVE_XS int open_xs_socket(context *ctx, config_socket_t *sock) { fprintf(stderr, "Paperjam was compiled without libxs support\n"); errno = ENOTSUP; return -1; } #else // H...
tailhook/paperjam
src/common.h
#ifndef _H_COMMON_ #define _H_COMMON_ #include "config.h" #include CONFIG_HEADER #ifdef HAVE_XS #include <xs.h> #endif #ifdef HAVE_ZMQ #include <zmq.h> #endif #define LIB_MASK 0xf00 #define IS_READONLY(sock) ((sock)->kind == CONFIG_zmq_Pull \ || (sock)->kind == CONFIG_zmq_Sub \ ...
tailhook/paperjam
src/support.h
#ifndef _H_SUPPORT_ #define _H_SUPPORT_ struct config_socket_s; struct message; struct context; typedef struct socket_impl { int (*close)(struct config_socket_s *sock); int (*get_fd)(struct config_socket_s *sock); int (*check_state)(struct config_socket_s *sock); int (*write_string)(struct config_sock...
tailhook/paperjam
src/xs_cli.h
#ifndef _H_XS_CLI #define _H_XS_CLI void run_xs_pull(); void run_xs_push(); void run_xs_sub(); void run_xs_pub(); void run_xs_req(); void run_xs_rep(); void run_xs_surveyor(); void run_xs_respondent(); #endif // _H_XS_CLI