Skip to content
Permalink
Browse files
Merge pull request #204 from nickva/fix-erlang-21-compatibility
Fix Erlang 21 compatibility
  • Loading branch information
etrepum committed Sep 26, 2018
2 parents c06e08e + 93ab04d commit f783581fe7d3fe5871123b189d774c8582193879
Showing 16 changed files with 33 additions and 1 deletion.
@@ -5,6 +5,8 @@

-author("Hypernumbers Ltd <gordon@hypernumbers.com>").

-compile(tuple_calls).

%%% this library supports the hmac_sha api on both the client-side
%%% AND the server-side
%%%
@@ -34,6 +34,8 @@

-module(https_store).

-compile(tuple_calls).

-export([start/0,
stop/0,
dispatch/1,
@@ -1,5 +1,7 @@
-module(keepalive).

-compile(tuple_calls).

%% your web app can push data to clients using a technique called comet long
%% polling. browsers make a request and your server waits to send a
%% response until data is available. see wikipedia for a better explanation:
@@ -1,6 +1,5 @@
% -*- mode: erlang -*-
{erl_opts, [debug_info,
tuple_calls,
{platform_define, "^R15", 'gen_tcp_r15b_workaround'},
{platform_define, "^(R14|R15|R16B-)", 'crypto_compatibility'},
{platform_define, "^(R14|R15|R16B|17)", 'rand_mod_unavailable'},
@@ -24,6 +24,9 @@
%%
-module(mochifmt).
-author('bob@mochimedia.com').

-compile(tuple_calls).

-export([format/2, format_field/2, convert_field/2, get_value/2, get_field/2]).
-export([tokenize/1, format/3, get_field/3, format_field/3]).
-export([bformat/2, bformat/3]).
@@ -24,6 +24,8 @@
-module(mochiweb_acceptor).
-author('bob@mochimedia.com').

-compile(tuple_calls).

-include("internal.hrl").

-export([start_link/3, start_link/4, init/4]).
@@ -28,6 +28,8 @@
-export([after_response/2, reentry/1]).
-export([parse_range_request/1, range_skip_length/2]).

-compile(tuple_calls).

-define(REQUEST_RECV_TIMEOUT, 300000). %% timeout waiting for request line
-define(HEADERS_RECV_TIMEOUT, 30000). %% timeout waiting for headers

@@ -41,6 +43,8 @@ r15b_workaround() -> true.
r15b_workaround() -> false.
-endif.



parse_options(Options) ->
{loop, HttpLoop} = proplists:lookup(loop, Options),
Loop = {?MODULE, loop, [HttpLoop]},
@@ -24,6 +24,8 @@
-module(mochiweb_multipart).
-author('bob@mochimedia.com').

-compile(tuple_calls).

-export([parse_form/1, parse_form/2]).
-export([parse_multipart_request/2]).
-export([parts_to_body/3, parts_to_multipart_body/4]).
@@ -24,6 +24,8 @@
-module(mochiweb_request).
-author('bob@mochimedia.com').

-compile(tuple_calls).

-include_lib("kernel/include/file.hrl").
-include("internal.hrl").

@@ -24,6 +24,8 @@
-module(mochiweb_response).
-author('bob@mochimedia.com').

-compile(tuple_calls).

-define(QUIP, "Any of you quaids got a smint?").

-export([new/3, get_header_value/2, get/2, dump/1]).
@@ -25,6 +25,8 @@

%% @doc Websockets module for Mochiweb. Based on Misultin websockets module.

-compile(tuple_calls).

-export([loop/5, upgrade_connection/2, request/5]).
-export([send/3]).
-ifdef(TEST).
@@ -6,6 +6,8 @@
-module({{appid}}_web).
-author("{{author}}").

-compile(tuple_calls).

-export([start/1, stop/0, loop/2]).

%% External API
@@ -7,6 +7,8 @@
-define(SHOULD_HAVE_BUG, false).
-endif.

-compile(tuple_calls).

has_acceptor_bug_test_() ->
{setup,
fun start_server/0,
@@ -1,5 +1,7 @@
-module(mochiweb_request_tests).

-compile(tuple_calls).

-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").

@@ -2,6 +2,8 @@
-include_lib("eunit/include/eunit.hrl").
-include("mochiweb_test_util.hrl").

-compile(tuple_calls).

with_server(Transport, ServerFun, ClientFun) ->
mochiweb_test_util:with_server(Transport, ServerFun, ClientFun).

@@ -23,6 +23,8 @@
%% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
%% THE SOFTWARE.

-compile(tuple_calls).

-include_lib("eunit/include/eunit.hrl").

make_handshake_for_correct_client_test() ->

0 comments on commit f783581

Please sign in to comment.