diff options
author | Kostis Sagonas <[email protected]> | 2010-11-15 15:44:54 +0200 |
---|---|---|
committer | Kostis Sagonas <[email protected]> | 2010-11-15 15:44:54 +0200 |
commit | e1f67dda7a9c2736f7b8d5d30fe84f2a2f39a8c1 (patch) | |
tree | 1e87864a13b04b776abc15b28ba66f19eff27b36 /lib/edoc/src/edoc_macros.erl | |
parent | 76378bb4a1a89d08b41d6f3df0edc6c26160bef7 (diff) | |
download | otp-e1f67dda7a9c2736f7b8d5d30fe84f2a2f39a8c1.tar.gz otp-e1f67dda7a9c2736f7b8d5d30fe84f2a2f39a8c1.tar.bz2 otp-e1f67dda7a9c2736f7b8d5d30fe84f2a2f39a8c1.zip |
Fix various dialyzer warnings
Add appropriate specs to shut off dialyzer's no_return warnings and
also fix an erroneous use of lists:concat/1 instead of lists:append/1.
Diffstat (limited to 'lib/edoc/src/edoc_macros.erl')
-rw-r--r-- | lib/edoc/src/edoc_macros.erl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/edoc/src/edoc_macros.erl b/lib/edoc/src/edoc_macros.erl index 2874e2940c..5b512cb53a 100644 --- a/lib/edoc/src/edoc_macros.erl +++ b/lib/edoc/src/edoc_macros.erl @@ -14,8 +14,6 @@ %% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 %% USA %% -%% $Id$ -%% %% @private %% @copyright 2001-2005 Richard Carlsson %% @author Richard Carlsson <[email protected]> @@ -317,6 +315,14 @@ macro_content([C | Cs], As, L, N) -> macro_content([], _As, _L, _N) -> throw('end'). +-type line() :: erl_scan:line(). +-type err() :: 'unterminated_macro' + | 'macro_name' + | {'macro_name', string()} + | {string(), [string()]}. + +-spec throw_error(line(), err()) -> no_return(). + throw_error(L, unterminated_macro) -> throw_error(L, {"unexpected end of macro.", []}); throw_error(L, macro_name) -> |