-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
16 additions
and
76 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
erlang 26.2.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{deps, [ | ||
{enif_protobuf, ".*", {git, "https://github.com/jg513/enif_protobuf.git", {branch, "master"}}}, | ||
{enif_protobuf, ".*", {git, "https://github.com/jinganix/enif_protobuf.git", {branch, "master"}}}, | ||
{gpb, ".*", {git, "https://github.com/tomas-abrahamsson/gpb.git", {branch, "master"}}} | ||
]}. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
/* | ||
* Copyright (c) [email protected], https://github.com/jg513 | ||
*/ | ||
|
||
#include "enif_protobuf.h" | ||
|
||
#if DEBUG_MEM | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
/* | ||
* Copyright (c) [email protected], https://github.com/jg513 | ||
*/ | ||
|
||
#ifndef __EPB_H__ | ||
#define __EPB_H__ | ||
#include <stdio.h> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
/* | ||
* Copyright (c) [email protected], https://github.com/jg513 | ||
*/ | ||
|
||
#include "enif_protobuf.h" | ||
|
||
int | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
/* | ||
* Copyright (c) [email protected], https://github.com/jg513 | ||
*/ | ||
|
||
#ifndef __EP_CACHE_H__ | ||
#define __EP_CACHE_H__ | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
/* | ||
* Copyright (c) [email protected], https://github.com/jg513 | ||
*/ | ||
|
||
#ifndef __EP_CODEC_H__ | ||
#define __EP_CODEC_H__ | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
/* | ||
* Copyright (c) [email protected], https://github.com/jg513 | ||
*/ | ||
|
||
#include "enif_protobuf.h" | ||
|
||
static inline ERL_NIF_TERM | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
/* | ||
* Copyright (c) [email protected], https://github.com/jg513 | ||
*/ | ||
|
||
#include "enif_protobuf.h" | ||
|
||
#if 0 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
/* | ||
* Copyright (c) [email protected], https://github.com/jg513 | ||
*/ | ||
|
||
#include "enif_protobuf.h" | ||
|
||
#define A_ALLOW_ALIAS "allow_alias" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
/* | ||
* Copyright (c) [email protected], https://github.com/jg513 | ||
*/ | ||
|
||
#ifndef __EP_NODE_H__ | ||
#define __EP_NODE_H__ | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
|
||
%% Copyright (c) [email protected], https://github.com/jg513 | ||
|
||
-module(enif_protobuf). | ||
|
||
-export([ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,13 @@ | ||
|
||
%% Copyright (c) [email protected], https://github.com/jg513 | ||
|
||
-module(ep_issue_11_tests). | ||
|
||
-compile(export_all). | ||
|
||
-include_lib("eunit/include/eunit.hrl"). | ||
-include_lib("gpb/include/gpb.hrl"). | ||
|
||
% https://github.com/jg513/enif_protobuf/issues/11 | ||
% https://github.com/jinganix/enif_protobuf/issues/11 | ||
issue_11_test() -> | ||
Defs = [ | ||
%% {proto_defs_version, 2}, | ||
%% {file, {"proto3_180", "proto3_180.proto"}}, | ||
%% {{msg_containment, "proto3_180"}, [pro_180_all_prop, pro_180_items_list]}, | ||
%% {{enum_containment, "proto3_180"}, []}, | ||
%% {syntax, "proto3"}, | ||
{{msg, pro_180_items_list}, [ | ||
#field{name = id, fnum = 1, rnum = 2, type = uint32, occurrence = defaulty, opts = []}, | ||
#field{name = num, fnum = 2, rnum = 3, type = uint32, occurrence = defaulty, opts = []}, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
|
||
%% Copyright (c) [email protected], https://github.com/jg513 | ||
|
||
-module(ep_issue_19_tests). | ||
|
||
-compile(export_all). | ||
|
@@ -10,7 +7,7 @@ | |
|
||
-record(m1, {a}). | ||
|
||
% https://github.com/jg513/enif_protobuf/issues/19 | ||
% https://github.com/jinganix/enif_protobuf/issues/19 | ||
issue_19_test() -> | ||
Defs = [ | ||
{{msg, m1}, [ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
|
||
%% Copyright (c) [email protected], https://github.com/jg513 | ||
|
||
-module(ep_issue_27_tests). | ||
|
||
-compile(export_all). | ||
|
@@ -22,7 +19,7 @@ | |
gnum = 0 :: non_neg_integer() | undefined % = 7, optional, 32 bits | ||
}). | ||
|
||
% https://github.com/jg513/enif_protobuf/issues/27 | ||
% https://github.com/jinganix/enif_protobuf/issues/27 | ||
get_proto_defs() -> | ||
[ | ||
{syntax, "proto3"}, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
|
||
%% Copyright (c) [email protected], https://github.com/jg513 | ||
|
||
-module(ep_issue_29_tests). | ||
|
||
-compile(export_all). | ||
|
@@ -10,7 +7,7 @@ | |
|
||
-record(m1, {a}). | ||
|
||
% https://github.com/jg513/enif_protobuf/issues/29 | ||
% https://github.com/jinganix/enif_protobuf/issues/29 | ||
issue_29_test() -> | ||
Defs = [ | ||
{{msg, a_message}, [ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
%% Copyright (c) [email protected], https://github.com/jg513 | ||
|
||
-module(ep_issue_31_tests). | ||
|
||
-compile(export_all). | ||
|
||
-include_lib("eunit/include/eunit.hrl"). | ||
-include_lib("gpb/include/gpb.hrl"). | ||
|
||
|
||
% https://github.com/jg513/enif_protobuf/issues/31 | ||
% https://github.com/jinganix/enif_protobuf/issues/31 | ||
issue_31_test() -> | ||
Defs = [ | ||
{{enum, very_long}, defs_enum_gen(100000, [])} | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
|
||
%% Copyright (c) [email protected], https://github.com/jg513 | ||
|
||
-module(ep_proper_decode_tests). | ||
|
||
-ifdef(PROPER). | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
|
||
%% Copyright (c) [email protected], https://github.com/jg513 | ||
|
||
-module(ep_proper_encode_tests). | ||
|
||
-ifdef(PROPER). | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
|
||
%% Copyright (c) [email protected], https://github.com/jg513 | ||
|
||
-module(ep_tests). | ||
|
||
-compile(export_all). | ||
|