~ubuntu-branches/ubuntu/intrepid/m4/intrepid

« back to all changes in this revision

Viewing changes to examples/wraplifo2.m4

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2008-04-03 09:49:04 UTC
  • mfrom: (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080403094904-nzbg2ojnfh38cog0
Tags: 1.4.11-1
* New upstream release.
* Changed copyright file to refer to the GFDL in common-licenses.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl Redefine m4wrap to have LIFO semantics, improved example.
 
2
include(`join.m4')dnl
 
3
define(`_m4wrap', defn(`m4wrap'))dnl
 
4
define(`_arg1', `$1')dnl
 
5
define(`m4wrap',
 
6
`ifdef(`_$0_text',
 
7
       `define(`_$0_text', joinall(` ', $@)defn(`_$0_text'))',
 
8
       `_$0(`_arg1(defn(`_$0_text')undefine(`_$0_text'))')dnl
 
9
define(`_$0_text', joinall(` ', $@))')')dnl