edoc bug ?

Richard Carlsson <>
Tue Oct 5 22:08:58 CEST 2004


Torbjorn Tornkvist wrote:
> I'm trying to test edoc, using the version in jungerl.
> 
> However, I get a syntax error in a file that compiles fine with erlc.
> 
> 5> edoc:file("/home/tobbe/junk/test.erl").
> edoc: 27: syntax error before: '('
> ** exited: error **

It's not a bug, its the usual problem with funny uses of macros.
Try passing the options [preprocess] or [preprocess,{includes,[...]}].

In any case, R10 will be out any moment now, with a much improved
edoc included!

	/Richard


> ------------------------------------------------------------------------
> 
> -module(test).
> %%% ------------------------------------------------------------------
> %%% @doc
> %%%
> %%%   Implementation of RPC/DCE stuff to be used over SMB.
> %%%   See also: "DCE 1.1: RPC", Spec.C706 from opengroup.org
> %%%   "DCE/RPC over SMB", ISBN-1-57870-150-3
> %%%
> %%% @end
> %%% ------------------------------------------------------------------
> -export([e_samr_connect2/3]).
> 
> -define(BYTE, integer-unit:8).    % Nice syntactic sugar...
> 
> %%%
> %%% --- Type declarations ---
> %%%
> %%% @type rpcResponse(). The #rpc_response{} record
> %%% @type ctxHandle() = {ok, CtxHandle} | {error, returnCode}
> %%%              CtxHandle  = binary()
> %%%              returnCode = integer().
> %%%
> 
> 
> e_samr_connect2(B0, AccessMask, Pad) ->
>     <<B0/binary,
>       0:Pad/?BYTE,
>       AccessMask:32/little>>.
>     
> 	




More information about the erlang-questions mailing list