[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RP] poundbang
From: |
Joshua Neuheisel |
Subject: |
[RP] poundbang |
Date: |
Tue Mar 2 05:38:05 2004 |
By popular request:
http://neuheisel.us/ratpoison/patches/bang.patch.gz.
This small patch (against current CVS) allows RP to be used as an
interpreter, i.e. "ratpoison <filename>" will run "ratpoison -c" on each
line in <filename>. In particular, one can now put "#!/path/to/ratpoison"
as the first line in an RP script and executing it will now Do The Right
Thing.
As an aside, this patch also fixed two gcc compile warnings regarding
type-punned variables. A ChangeLog-compatible list of changes follow:
*src/actions.c (cmd_source): Rename read_rc_file and change prototype
*src/main.c (read_rc_file): Rename and change prototype. Also, prune
leading whitespace.
(main): Added logic to handle script argument.
*src/ratpoison.h: Rename read_rc_file and change prototype
*src/events.c (receive_command): Changed prop_return type to avoid warnings
*src/manage.c (get_state): Changed data type to avoid warnings
Joshua
- [RP] poundbang,
Joshua Neuheisel <=
- Re: [RP] poundbang, Shawn Betts, 2004/03/04
- Re: [RP] poundbang, Joshua Neuheisel, 2004/03/04
- Re: [RP] Re: poundbang, twb, 2004/03/04
- [RP] Re: poundbang, Björn Lindström, 2004/03/04
- Re: [RP] Re: poundbang, John Meacham, 2004/03/04
- Re: [RP] Re: poundbang, Shawn Betts, 2004/03/04
- Re: [RP] Re: poundbang, Ryan Yeske, 2004/03/05