From 37a7654eaf1279a706df7ad16e6ef6a5990d7f32 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 18 Apr 2013 10:05:04 +0200 Subject: [PATCH] hide isl_token internals Signed-off-by: Sven Verdoolaege --- include/isl/stream.h | 16 +--------------- isl_stream_private.h | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/include/isl/stream.h b/include/isl/stream.h index 9ad2374b..42734996 100644 --- a/include/isl/stream.h +++ b/include/isl/stream.h @@ -39,21 +39,7 @@ enum isl_token_type { ISL_TOKEN_ERROR = -1, ISL_TOKEN_IMPLIES, ISL_TOKEN_LAST }; -struct isl_token { - int type; - - unsigned int on_new_line : 1; - unsigned is_keyword : 1; - int line; - int col; - - union { - isl_int v; - char *s; - isl_map *map; - isl_pw_aff *pwaff; - } u; -}; +struct isl_token; __isl_give isl_val *isl_token_get_val(isl_ctx *ctx, struct isl_token *tok); __isl_give char *isl_token_get_str(isl_ctx *ctx, struct isl_token *tok); diff --git a/isl_stream_private.h b/isl_stream_private.h index 56232510..958035cf 100644 --- a/isl_stream_private.h +++ b/isl_stream_private.h @@ -1,4 +1,20 @@ #include +struct isl_token { + int type; + + unsigned int on_new_line : 1; + unsigned is_keyword : 1; + int line; + int col; + + union { + isl_int v; + char *s; + isl_map *map; + isl_pw_aff *pwaff; + } u; +}; + struct isl_token *isl_token_new(isl_ctx *ctx, int line, int col, unsigned on_new_line); -- 2.11.4.GIT