File: 055.pushdef

package info (click to toggle)
m4 1.4.16-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 10,204 kB
  • sloc: ansic: 69,401; sh: 7,576; cpp: 1,030; lisp: 243; makefile: 161
file content (33 lines) | stat: -rw-r--r-- 809 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
dnl @ ../doc/m4.texinfo:2396: Origin of test
dnl @ expected status: 0
dnl @ extra options: 
dnl @ Copyright (C) 2006, 2007, 2008, 2009 Free Software
dnl @ Foundation, Inc.
dnl @ This file is free software; the Free Software Foundation
dnl @ gives unlimited permission to copy and/or distribute it
dnl @ with or without modifications, as long as this notice
dnl @ is preserved.
define(`foo', `Expansion one.')
dnl @result{}
foo
dnl @result{}Expansion one.
pushdef(`foo', `Expansion two.')
dnl @result{}
foo
dnl @result{}Expansion two.
pushdef(`foo', `Expansion three.')
dnl @result{}
pushdef(`foo', `Expansion four.')
dnl @result{}
popdef(`foo')
dnl @result{}
foo
dnl @result{}Expansion three.
popdef(`foo', `foo')
dnl @result{}
foo
dnl @result{}Expansion one.
popdef(`foo')
dnl @result{}
foo
dnl @result{}foo