Skip to content

Commit

Permalink
docs: new repo url (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinganix committed Dec 29, 2023
1 parent a19871d commit 912a3f0
Show file tree
Hide file tree
Showing 23 changed files with 16 additions and 76 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
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
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
erlang 26.2.1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![CI](https://github.com/jg513/enif_protobuf/actions/workflows/ci.yml/badge.svg)](https://github.com/jg513/enif_protobuf/actions/workflows/ci.yml)
[![CI](https://github.com/jinganix/enif_protobuf/actions/workflows/ci.yml/badge.svg)](https://github.com/jinganix/enif_protobuf/actions/workflows/ci.yml)

# enif_protobuf
A Google Protobuf implementation with enif (Erlang nif).
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/rebar.config
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"}}}
]}.
4 changes: 0 additions & 4 deletions c_src/enif_protobuf.c
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
Expand Down
4 changes: 0 additions & 4 deletions c_src/enif_protobuf.h
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>
Expand Down
4 changes: 0 additions & 4 deletions c_src/ep_cache.c
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
Expand Down
4 changes: 0 additions & 4 deletions c_src/ep_cache.h
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__

Expand Down
4 changes: 0 additions & 4 deletions c_src/ep_codec.h
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__

Expand Down
4 changes: 0 additions & 4 deletions c_src/ep_decoder.c
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
Expand Down
4 changes: 0 additions & 4 deletions c_src/ep_encoder.c
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
Expand Down
4 changes: 0 additions & 4 deletions c_src/ep_node.c
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"
Expand Down
4 changes: 0 additions & 4 deletions c_src/ep_node.h
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__

Expand Down
3 changes: 0 additions & 3 deletions src/enif_protobuf.erl
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([
Expand Down
10 changes: 1 addition & 9 deletions test/ep_issue_11_tests.erl
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 = []},
Expand Down
5 changes: 1 addition & 4 deletions test/ep_issue_19_tests.erl
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).
Expand 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}, [
Expand Down
5 changes: 1 addition & 4 deletions test/ep_issue_27_tests.erl
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).
Expand 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"},
Expand Down
5 changes: 1 addition & 4 deletions test/ep_issue_29_tests.erl
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).
Expand 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}, [
Expand Down
5 changes: 1 addition & 4 deletions test/ep_issue_31_tests.erl
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, [])}
Expand Down
1 change: 0 additions & 1 deletion test/ep_issue_enum_decoding_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
-include_lib("eunit/include/eunit.hrl").
-include_lib("gpb/include/gpb.hrl").


issue_enum_decoding_test() ->
PAtom = pre_existing_atom,
Defs = [{syntax, "proto3"},
Expand Down
3 changes: 0 additions & 3 deletions test/ep_proper_decode_tests.erl
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).
Expand Down
3 changes: 0 additions & 3 deletions test/ep_proper_encode_tests.erl
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).
Expand Down
3 changes: 0 additions & 3 deletions test/ep_tests.erl
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).
Expand Down

0 comments on commit 912a3f0

Please sign in to comment.