ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/menubar.C
(Generate patch)

Comparing rxvt-unicode/src/menubar.C (file contents):
Revision 1.11 by pcg, Mon Mar 1 01:06:46 2004 UTC vs.
Revision 1.13 by pcg, Sat Mar 6 00:05:01 2004 UTC

22 * summary that appears at the end of this file was taken from there. 22 * summary that appears at the end of this file was taken from there.
23 *----------------------------------------------------------------------*/ 23 *----------------------------------------------------------------------*/
24 24
25#include "../config.h" /* NECESSARY */ 25#include "../config.h" /* NECESSARY */
26 26
27#include <stdlib.h> 27#include <cstdlib>
28#include <wchar.h>
29 28
30#include "rxvt.h" /* NECESSARY */ 29#include "rxvt.h" /* NECESSARY */
31#ifdef MENUBAR 30#ifdef MENUBAR
32#include "version.h" 31#include "version.h"
33#include "menubar.h" 32#include "menubar.h"
1408 if (bar == NULL || fp == NULL) 1407 if (bar == NULL || fp == NULL)
1409 return; 1408 return;
1410 time (&t); 1409 time (&t);
1411 1410
1412 fprintf (fp, 1411 fprintf (fp,
1413 "# " APL_SUBCLASS " (%s) Pid: %u\n# Date: %s\n\n", 1412 "# " RESCLASS " (%s) Pid: %u\n# Date: %s\n\n",
1414 rs[Rs_name], (unsigned int)getpid (), ctime (&t)); 1413 rs[Rs_name], (unsigned int)getpid (), ctime (&t));
1415 1414
1416 /* dump in reverse order */ 1415 /* dump in reverse order */
1417 bar = CurrentBar->prev; 1416 bar = CurrentBar->prev;
1418 do 1417 do
1755 FILE *fp; 1754 FILE *fp;
1756 1755
1757 /* enough space to hold the results */ 1756 /* enough space to hold the results */
1758 char buffer[32]; 1757 char buffer[32];
1759 1758
1760 sprintf (buffer, "/tmp/" APL_SUBCLASS "-%u", 1759 sprintf (buffer, "/tmp/" RESCLASS "-%u",
1761 (unsigned int)getpid ()); 1760 (unsigned int)getpid ());
1762 1761
1763 if ((fp = fopen (buffer, "wb")) != NULL) 1762 if ((fp = fopen (buffer, "wb")) != NULL)
1764 { 1763 {
1765 xterm_seq (XTerm_title, buffer, CHAR_ST); 1764 xterm_seq (XTerm_title, buffer, CHAR_ST);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines