-#include <AXE/date.h>
+#include "date.h"
class activity
{
libAXE_a_SOURCES = xappl.cpp xwindow.cpp font.cpp menu.cpp frame.cpp \
filedialog.cpp \
- parsedate.c datelex.c dateyacc.y \
button.cpp edit.cpp scroll.cpp table.cpp geometry.cpp icon.cpp \
+ parsedate.c datelex.c dateyacc.y \
string.cpp regex.cpp integer.cpp date.cpp hour.cpp utc.cpp \
amount.cpp out.cpp \
configuration.cpp
public:
String& operator=(const String &);
- String& operator=(char *s)
+ String& operator=(const char *s)
{
*this = String(s);
return *str;
public:
- button(window &par, int x, int y,char *label) : frame(par, x, y, label)
+ button(window &par, int x, int y, const char label[]) : frame(par, x, y, label)
{
SelectInput(ButtonReleaseMask|ButtonPressMask, 1);
}
public:
- touch_button(window &par, int x, int y, char *label)
+ touch_button(window &par, int x, int y, const char label[])
: button(par, x, y, label)
{
}
public:
- toggle_button(window &par, int x, int y, char *label)
+ toggle_button(window &par, int x, int y, const char label[])
: touch_button(par, x, y, label)
{
state = State_Off;
public:
- command_button(window &par, int x, int y, char *label, int cc = 0)
+ command_button(window &par, int x, int y, const char label[], int cc = 0)
: button(par, x, y, label)
{
command_code = cc;
XAllocColor(stddpy, stddpy.ColMap(), &xcol);
}
- color(char *colorname)
+ color(const char colorname[])
{
XColor exact;
fs = 0;
}
- font(char *name)
+ font(const char name[])
{
fs = XLoadQueryFont(stddpy.Dpy(), name);
if (fs == NULL)
return fs != 0;
}
- void Load(char *name)
+ void Load(const char name[])
{
if (fs)
XFreeFont(stddpy.Dpy(), fs);
class frame : public window
{
- char *text;
+ const char *text;
hor_alignment halign;
ver_alignment valign;
SelectInput(ExposureMask, 1);
}
- frame(window &par, int x, int y, char *t) : window(par, x, y, 80, 30)
+ frame(window &par, int x, int y, const char t[]) : window(par, x, y, 80, 30)
{
Background(inside_3D);
strength = 5;
*/
#include <stdio.h>
+#include <string.h>
#include "parsedate.h"
static char *RCSID = "$Id: parsedate.c,v 1.2 2002-09-28 06:58:45 arjen Exp $";
extern int yyparse();
-compute_unixtime (register struct parseddate *pd);
+void compute_unixtime (register struct parseddate *pd);
/* Number of seconds in various time intervals. */
#define SEC_PER_MIN 60
* far future may turn out to be incorrect if any changes are made
* to the calendar between now and then.
*/
-compute_unixtime (register struct parseddate *pd)
+void compute_unixtime (register struct parseddate *pd)
{
register int weekday, n, l, a;
* ute", "second", and "weekday" fields. The "dst" and "error"
* fields of the structure are not used or modified.
*/
-break_down_unixtime (pd)
+void break_down_unixtime (pd)
register struct parseddate *pd;
{ register unsigned long timevalue;
register int m, n;
static char dim_bits[] =
{
- 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA
+ '\x55', '\xAA', '\x55', '\xAA', '\x55', '\xAA', '\x55', '\xAA'
};
+extern "C"
+{
#include "nopicture.xpm"
+}
xapplication *XApp;
display stddpy;
confused with event masks above. They start from 2 because 0 and 1
are reserved in the protocol for errors and replies. */
-static char * event_names[] =
+static const char *event_names[] =
{
" Undefined(0)",
" Undefined(1)",
}
- managed_window(char *name)
+ managed_window(const char name[])
{
WM_Delete_Command = 0;
Atom wm_delete;