Start working on Version 2 of Rem2PS protocol.

This commit is contained in:
Dianne Skoll
2020-01-03 16:51:47 -05:00
parent a7ab9b8bf8
commit f53aa4f656
4 changed files with 18 additions and 3 deletions

View File

@@ -220,6 +220,9 @@
#define PSBEGIN "# rem2ps begin"
#define PSEND "# rem2ps end"
#define PSBEGIN2 "# rem2ps2 begin"
#define PSEND2 "# rem2ps2 end"
#ifdef BROKEN_PUTC
#define Putc SafePutc
#define PutChar SafePutChar

View File

@@ -220,6 +220,9 @@
#define PSBEGIN "# rem2ps begin"
#define PSEND "# rem2ps end"
#define PSBEGIN2 "# rem2ps2 begin"
#define PSEND2 "# rem2ps2 end"
#ifdef BROKEN_PUTC
#define Putc SafePutc
#define PutChar SafePutChar

View File

@@ -400,9 +400,14 @@ void InitRemind(int argc, char const *argv[])
case 'p':
case 'P':
DoSimpleCalendar = 1;
PsCal = 1;
if (*arg == 'a' || *arg == 'A') {
DoSimpleCalDelta = 1;
PsCal = PSCAL_LEVEL1;
while (*arg == 'a' || *arg == 'A' ||
*arg == 'p' || *arg == 'P') {
if (*arg == 'a' || *arg == 'A') {
DoSimpleCalDelta = 1;
} else if (*arg == 'p' || *arg == 'P') {
PsCal = PSCAL_LEVEL2;
}
arg++;
}
PARSENUM(CalMonths, arg);

View File

@@ -216,3 +216,7 @@ typedef struct {
/* Flags for FROM / SCANFROM */
#define SCANFROM_TYPE 0
#define FROM_TYPE 1
/* PS Calendar levels */
#define PSCAL_LEVEL1 1
#define PSCAL_LEVEL2 2