2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
9 /*********************************************************************************************/
16 /*********************************************************************************************/
20 {NM_TITLE
, (STRPTR
)MSG_MEN_PROJECT
},
21 {NM_ITEM
, (STRPTR
)MSG_MEN_PROJECT_QUIT
},
22 {NM_TITLE
, (STRPTR
)MSG_MEN_EDIT
},
23 {NM_ITEM
, (STRPTR
)MSG_MEN_EDIT_RESTORE
},
27 /*********************************************************************************************/
31 struct NewMenu
*actnm
= nm
;
33 for(actnm
= nm
; actnm
->nm_Type
!= NM_END
; actnm
++)
35 if (actnm
->nm_Label
!= NM_BARLABEL
)
37 ULONG id
= (ULONG
)actnm
->nm_Label
;
40 if (actnm
->nm_Type
== NM_TITLE
)
42 actnm
->nm_Label
= str
;
44 actnm
->nm_Label
= str
+ 2;
45 if (str
[0] != ' ') actnm
->nm_CommKey
= str
;
47 actnm
->nm_UserData
= (APTR
)id
;
49 } /* if (actnm->nm_Label != NM_BARLABEL) */
51 } /* for(actnm = nm; nm->nm_Type != NM_END; nm++) */
55 /*********************************************************************************************/
57 LONG
NumMonthDays(struct ClockData
*cd
)
69 secs
= Date2Amiga(&cd2
);
70 secs
+= 24 * 60 * 60; /* day++ */
72 Amiga2Date(secs
, &cd2
);
74 if (cd2
.month
!= cd
->month
) break;
82 /*********************************************************************************************/