Hello Steve, * On Tue, Apr 27, 2010 at 02:34:08PM -0700 Steve Davison wrote: > Apr 27 at 11:54 AM, Spiro Trikaliotis <ml-cc65@trikaliotis.net> wrote: > Now THAT is very interesting. However I have a number of > suggestions that could make it _far_ more legible and > usable: Note that it was just a hack to get it working. We would prefer if cc65 would be able to do it itself. ;) > - Instead of _CMT(str) macro consuming str, how about a _CMT() > mac that turns the just inserts a ';' or a '//' ? Because neither ca65 nor cc65 would allow this. (cc65 targets C90, thus, no "//" comment; ca65 does not recognize it, either). Just test it out yourself! > - In order to be more than a parlor trick, I think you would > have to have a full, standard set of macros, a la OCTETDECL, > that are predefined in a library. Lets everyone speak the > same language, and avoids a lot of reinvention. Of course. Remember, this was just a quick hack to get any solution. It was not meant as a generic one. > - (..continued..) The language-specific macro defines should > not be duplicated in every file that needs an .idh include, > they should be in the .idh file itself. More encapsulated, > less clutter, less prone to errors. There could even be a seperate .h or .inc (or whatever) file, yes. > - Further, they wouldn't actually be defined in the .idh files > themselves; the .idh would simply include the standard macro > library as described above. The really neat part is that > getting the definitions for the appropriate language could > be accomplished using Christian's method. Yes, possibly. > - What is an octet array anyway? A name for something WoMo just came up with. ;) > > (Ok, ok, he invaded the namespace of the C compiler... ;)) > Could you clue me in a bit on this one? C identifiers starting with an underscore are reserved for the compiler itself. You should not define identifiers or macros with these names. (The rule is simplified, the rules are much more complicated. However, completely avoiding names starting with an underscore, you are on the safe side.) If you want to generate it as a general usage tool, feel free to implement most of your suggestions. Regards, Spiro. -- Spiro R. Trikaliotis http://opencbm.sf.net/ http://www.trikaliotis.net/ http://www.viceteam.org/ ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Sat May 1 17:57:50 2010
This archive was generated by hypermail 2.1.8 : 2010-05-01 17:57:53 CEST