From: SourceForge.net <no...@so...> - 2004-06-23 00:16:42
|
Patches item #977897, was opened at 2004-06-23 00:16 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373087&aid=977897&group_id=22049 Category: NSIS Group: None Status: Open Resolution: None Priority: 5 Submitted By: Anders (anders_k) Assigned to: Amir Szekely (kichik) Summary: IntOp shr & shl Initial Comment: I was not sure what symbol to use for the op but i went with << not sure if you are ok with this kichik or if you want to use something like shl , lshift or shiftl The code for this is real simple but i included it anyway :) script.cpp line 4383 (2 lines after "case TOK_INTOP:") --- //change line from ent.offsets[3]=line.gettoken_enum(3,"+\0-\0*\0/ \0|\0&\0^\0!\0||\0&&\0%\0~\0"); //to ---CODE BEGIN-- ent.offsets[3]=line.gettoken_enum(3,"+\0-\0*\0/ \0|\0&\0^\0!\0||\0&&\0%\0~\0<<\0>>\0"); ---CODE END-- exec.c line 647 (after "case 10:") --- //add lines ---CODE BEGIN-- case 12: v=v<<v2; case 13: v=v>>v2; ---CODE END-- tokens.cpp line 108 --- //change line from {TOK_INTOP,"IntOp",3,1,"$(user_var: result) val1 OP [val2]\n OP=(+ - * / % | & ^ ~ ! || && )",TP_CODE}, //to ---CODE BEGIN-- {TOK_INTOP,"IntOp",3,1,"$(user_var: result) val1 OP [val2]\n OP=(+ - * / % | & ^ ~ ! || && << >> )",TP_CODE}, ---CODE END-- ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373087&aid=977897&group_id=22049 |