diff options
| author | Mengchi Zhang <[email protected]> | 2019-05-24 11:02:45 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-05-24 11:02:45 -0400 |
| commit | 112e85e32c08e9fa0a34bb0ec262d8e95df61e6b (patch) | |
| tree | d989c1dc4f701171e92d45bda507d953c311554f /src/cuda-sim/ptxinfo.y | |
| parent | ab1221c14fa548404d4012f30399cb23a892f30c (diff) | |
| parent | dc835911d5320008b2c227722a90240a8f6b0f3a (diff) | |
Merge pull request #4 from echoedit/dev
Fix linebuf for ptxinfo
Diffstat (limited to 'src/cuda-sim/ptxinfo.y')
| -rw-r--r-- | src/cuda-sim/ptxinfo.y | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cuda-sim/ptxinfo.y b/src/cuda-sim/ptxinfo.y index eed304c..00c81e0 100644 --- a/src/cuda-sim/ptxinfo.y +++ b/src/cuda-sim/ptxinfo.y @@ -29,18 +29,18 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. %{ typedef void * yyscan_t; +class ptxinfo_data; %} %define api.pure full %parse-param {yyscan_t scanner} +%parse-param {ptxinfo_data* ptxinfo} %lex-param {yyscan_t scanner} +%lex-param {ptxinfo_data* ptxinfo} %union { -#define LINEBUF_SIZE 1024 int int_value; char * string_value; - char linebuf[LINEBUF_SIZE]; - unsigned col; } %token <int_value> INT_OPERAND @@ -77,8 +77,8 @@ typedef void * yyscan_t; static unsigned g_declared; static unsigned g_system; - int ptxinfo_lex(YYSTYPE * yylval_param, yyscan_t yyscanner); - void yyerror(yyscan_t yyscanner, const char* msg); + int ptxinfo_lex(YYSTYPE * yylval_param, yyscan_t yyscanner, ptxinfo_data* ptxinfo); + void yyerror(yyscan_t yyscanner, ptxinfo_data* ptxinfo, const char* msg); void ptxinfo_addinfo(); void ptxinfo_function(const char *fname ); void ptxinfo_regs( unsigned nregs ); |
