m4-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tips for features


From: David Sterba
Subject: Tips for features
Date: Wed, 3 Oct 2001 11:00:23 +0200 (CEST)

Hi,

some ideas.
Dave


Macros
------
* macro aliasing
* variable support in eval; setvar(x,10)eval(x+1)
* macro: set maximum level of inclusion
* macro: set parameter evaluation: yes/no
* macro: set type of param eval: before/after parsing
* macro: repeat string; repstr(20,*)
* macro: insert char from table; chtab(ascii,10), chtab(utf-8,0x333)
* macro: date/time through strftime
* macro: read/write environment
* macro: eval - implicit multiplication before `(', variable, unary +/-,
         not necessary to write right closing `)' (if well quoted)
* macro: label/goto to simplify loops
* macro: split string by given delimiter and return nth field (internal
         implementation of array)


Other
-----

Strings:
* add to every string sizeof(int) header which will contain the data length
  write macros for handling this strings
* 32bit length + optional width of char cell: char, wchar_t, ...
* multibyte support (internally in wchar_t)

Speedup obstacks:
* check obstack room and grow with obstack_*_fast
* disadvantage: cannot use obstack_1grow due to multibyte buffers


Guile support for extending




reply via email to

[Prev in Thread] Current Thread [Next in Thread]