diff options
author | Björn Gustavsson <[email protected]> | 2010-11-22 12:26:40 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-11-22 12:26:40 +0100 |
commit | 8404e1da17e0dfb8d14a21171803f757fac79883 (patch) | |
tree | 62e93f979523ec5fe4e39cc9675e8352deaa3685 /lib/edoc/src/edoc_macros.erl | |
parent | 8e18176bd4c02ffca4b0c5cba1f4b5425a588458 (diff) | |
parent | e1f67dda7a9c2736f7b8d5d30fe84f2a2f39a8c1 (diff) | |
download | otp-8404e1da17e0dfb8d14a21171803f757fac79883.tar.gz otp-8404e1da17e0dfb8d14a21171803f757fac79883.tar.bz2 otp-8404e1da17e0dfb8d14a21171803f757fac79883.zip |
Merge branch 'ks/edoc-dialyzer-fixes' into dev
* ks/edoc-dialyzer-fixes:
Fix various dialyzer warnings
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) -> |