This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"uri": "/a/light", | |
"anchor": "ocf://da75711d-c683-f084-617e-4fdf709e26ef", | |
"types": [ | |
"core.light" | |
], | |
"interfaces": [ | |
"oic.if.baseline" | |
], | |
"bitmap": 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IOTIVITY_PREFIX = /home/nix/iot/iotivity-node/iotivity-native | |
BIN_PATH = out/linux/x86_64/debug | |
INCLUDES = \ | |
-I$(IOTIVITY_PREFIX)/resource/csdk/stack/include \ | |
-I$(IOTIVITY_PREFIX)/resource/csdk/include \ | |
-I$(IOTIVITY_PREFIX)/resource/c_common | |
all: client server server.oic_svr_db.dat client.oic_svr_db.dat | |
.PHONY: all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scons: Reading SConscript files ... | |
Checking for POSIX Thread Support...yes | |
HEAD is now at acf202a Fix stack corruption due to calling convention mismatch | |
Checking for C++ header file arpa/inet.h... yes | |
Checking for C++ header file fcntl.h... yes | |
Checking for C++ header file grp.h... yes | |
Checking for C++ header file in6addr.h... no | |
Checking for C++ header file linux/limits.h... no | |
Checking for C++ header file memory.h... yes | |
Checking for C++ header file net/if.h... yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cl /Foout\windows\win32\amd64\release\resource\csdk\resource-directory\src\RDClient.obj /c resource\csdk\resource-direc | |
tory\src\RDClient.cpp /TP /nologo /we4133 /wd4127 /wd4200 /wd4201 /wd4204 /wd4214 /wd4221 /wd4232 /wd4706 /EHsc /MD /O2 | |
/GF /D__WITH_DTLS__ /DROUTING_EP /DWITH_BWT /DIP_ADAPTER /DNO_EDR_ADAPTER /DNO_LE_ADAPTER /DRD_CLIENT /DRD_SERVER /DND | |
EBUG /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_WARNINGS /Iextlibs\tinycbor\tinycbor\src /Iresource\c_common /Iout\win | |
dows\win32\amd64\release\resource\c_common\oic_malloc\include /Iresource\c_common\oic_malloc\include /Iout\windows\win3 | |
2\amd64\release\resource\c_common\oic_string\include /Iresource\c_common\oic_string\include /Iout\windows\win32\amd64\r | |
elease\resource\c_common\oic_time\include /Iresource\c_common\oic_time\include /Iout\windows\win32\amd64\release\resour | |
ce\c_common\ocatomic\include /Iresource\c_common\ocatomic\include /Iout\windows\win32\amd64\release\resource\c_common\o | |
crandom\include /Iresource\c_common\ocrandom\i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
typedef struct { | |
int x; | |
int y; | |
} something_t; | |
static something_t a __attribute((used, section("foo_data"), aligned(sizeof (void *)))) = { .x = 5, .y = 6 }; | |
static something_t b __attribute((used, section("foo_data"), aligned(sizeof (void *)))) = { .x = 7, .y = 8 }; | |
static something_t c __attribute((used, section("bar_data"), aligned(sizeof (void *)))) = { .x = 1, .y = 2 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdint.h> | |
#include <stdio.h> | |
#define OUTPUT_SOMEWHERE(...) \ | |
printf(__VA_ARGS__); | |
typedef struct | |
{ | |
size_t something; | |
size_t something_else; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( process.argv.length < 3 ) { | |
console.error( "Need an argument" ); | |
process.exit( 1 ); | |
} | |
var the_string = process.argv[ 2 ]; | |
var index; | |
console.log( | |
"set $the_string = (char *)jmem_heap_alloc_block(" + ( the_string.length + 1 ) + ")" ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Users\nix\hello\build>"C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" /t:Rebuild /p:Configuration=Release /p:Platform=x64 hello.vcxproj | |
Microsoft (R) Build Engine version 14.0.25420.1 | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
Build started 18.4.2017 22.29.28. | |
Project "C:\Users\nix\hello\build\hello.vcxproj" on node 1 (Rebuild target(s)). | |
_PrepareForClean: | |
Deleting file "Release\obj\hello\hello.tlog\hello.lastbuildstate". | |
Project "C:\Users\nix\hello\build\hello.vcxproj" (1) is building "C:\Users\nix\hello\node_module | |
s\node-api\src\node-api.vcxproj" (2) on node 1 (Clean target(s)). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"targets": [ { | |
"target_name": "hello", | |
"sources": [ "hello.cc" ], | |
"conditions": [ | |
[ "'<!(node -p \"require('node-api').isNodeApiBuiltin\")'=='false'", { | |
"include_dirs+": ["<!(node -p \"require('node-api').include\")"], | |
"conditions": [ | |
[ "OS=='win'", { | |
"libraries+": [ "<(PRODUCT_DIR)/node-api.lib" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COMMON_FLAGS = \ | |
-flto \ | |
-fno-fat-lto-objects \ | |
-fno-builtin \ | |
-fno-stack-protector \ | |
-Wall \ | |
-Werror=all \ | |
-Wextra \ | |
-Werror=extra \ | |
-Wformat-nonliteral \ |