File ml_short.c


Included Files


Preprocessor definitions

#define SH_PROPOSE 1

#define SH_ACCEPT 2

#define SH_REJECT 3

#define SH_INFORM 4

#define SH_DRAW 5

#define SH_PEACE 6

#define SH_ALLY 7

#define SH_TARGET 8

#define SH_DMZ 9

#define SH_NOT 10

#define SH_PROVINCE 11

#define SH_ORDER 15

#define SH_BLANK 12

#define SH_PHASE 13

#define SH_POWER 14

#define SH_PROV_LIST 16

#define SH_ERROR 17

#define SH_NOPOWERS 18

#define SH_NOPROV 19

#define SH_SEPARATOR 20

#define SH_MASTER 21

#define SH_OBSERVER 22

#define NO_POWERS 0

#define CANBE_POWERS 1

#define MUSTBE_POWERS 2

#define NO_PROVINCE 0

#define CANBE_PROVINCE 0

#define MUSTBE_PROVINCE 2

#define NOIFS 0


Global Variable predict

int predict
Visible in:  assign.c
   common.c
   dip.h
   diplog.c
   functions.h
   global.c
   jm.c
   ma_build.c
   ma_build_basic.c
   ma_expenses.c
   ma_famplag.c
   ma_movement.c
   ma_porder.c
   ma_retreat.c
   ma_stats.c
   machlib.c
   mfprintf.c
   ml_press.c
   ml_short.c
   ml_signon.h
   params.c
   po_condition.c
   po_errmsg.c
   po_get.c
   po_mastrpt.c
   st_bid.c
   st_build.c
   st_movement.c
   st_porder.c
   st_retreat.c
   st_setup.c
   st_status.c
   tm_xpress.c
   variant.c
Used in: bidout()st_bid.c
  buildout()st_build.c
  expout()ma_expenses.c
  ma_buildout()ma_build.c
  ma_moveout()ma_movement.c
  ma_retreatout()ma_retreat.c
  moveout()st_movement.c
  retreatout()st_retreat.c

Global Variable signedon

int signedon
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: params()params.c

Global Variable i_am_really_master

int i_am_really_master
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable i_am_really_jk

int i_am_really_jk
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable starting

int starting
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable player

int player
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: delete_entry()tm_xpress.c
  list_entries()tm_xpress.c
  mail_press()ml_press.c
  new_diary_entry()tm_xpress.c
  params()params.c
  process_diary()tm_xpress.c
  process_ppress()tm_xpress.c
  read_entry()tm_xpress.c

Global Variable listflg

int listflg
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable broadcast

int broadcast
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: mail_press()ml_press.c
  ownership()st_porder.c
  victory()ma_porder.c

Global Variable broadcast_master_only

int broadcast_master_only
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: process_diary()tm_xpress.c
  process_ppress()tm_xpress.c

Global Variable broad_part

int broad_part
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: mail_press()ml_press.c

Global Variable broadcast_absence_adjust

int broadcast_absence_adjust
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable broad_list

char broad_list[36+1]
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: mail_press()ml_press.c

Global Variable broad_allbut

int broad_allbut
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: mail_press()ml_press.c

Global Variable broad_read

int broad_read
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: mail_press()ml_press.c

Global Variable broad_skip

int broad_skip
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: mail_press()ml_press.c

Global Variable broad_signon

int broad_signon
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable broad_params

int broad_params
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: params()params.c

Global Variable read_phase

int read_phase
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable moreaddr

int moreaddr
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable create

int create
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable msg_header_done

int msg_header_done
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable baddr

char baddr[80]
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable raddr

char raddr[80]
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: mail_press()ml_press.c
  process_ppress()tm_xpress.c

Global Variable xaddr

char* xaddr
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable someone

char* someone
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable somepower

char* somepower
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable name

char name[20]
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable master_press

int master_press
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: mail_press()ml_press.c

Global Variable master_only_press

int master_only_press
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: mail_press()ml_press.c

Global Variable ppress_read

int ppress_read
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: process_ppress()tm_xpress.c

Global Variable ppress_skip

int ppress_skip
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: process_ppress()tm_xpress.c

Global Variable ppress_done

int ppress_done
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable diary_read

int diary_read
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: new_diary_entry()tm_xpress.c

Global Variable diary_skip

int diary_skip
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: new_diary_entry()tm_xpress.c
  process_diary()tm_xpress.c

Global Variable diary_done

int diary_done
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable Mfile

char Mfile[40]
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable Tfile

char Tfile[40]
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable mail_bfp

FILE* mail_bfp
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: mail_press()ml_press.c
  victory()ma_porder.c

Global Variable mail_mbfp

FILE* mail_mbfp
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: mail_press()ml_press.c
  mfprintf()mfprintf.c
  process_ppress()tm_xpress.c

Global Variable mail_mfp

FILE* mail_mfp
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable mail_nfp

FILE* mail_nfp
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable mail_ofp

FILE* mail_ofp
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable mail_qfp

FILE* mail_qfp
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable mail_ifp

FILE* mail_ifp
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable mail_pfp

FILE* mail_pfp
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable mail_tfp

FILE* mail_tfp
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable mail_ppfp

FILE* mail_ppfp
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: process_ppress()tm_xpress.c

Global Variable diaryfp

FILE* diaryfp
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c
Used in: new_diary_entry()tm_xpress.c

Global Variable mail_bfile

char mail_bfile[20]
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable mail_mbfile

char mail_mbfile[20]
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Global Variable mail_rfile

char* mail_rfile
Included from mail.h
Visible in:  ma_famplag.c
   ma_porder.c
   ma_stats.c
   mfprintf.c
   ml_press.c
   ml_short.c
   params.c
   st_porder.c
   tm_xpress.c

Local Variables

sh_prelim
static char* sh_prelim[]
Used in: ProcessShSegment()

sh_pvalue
static int sh_pvalue[]
Used in: ProcessShSegment()


Global Function CheckShSegmentPhase()

int CheckShSegmentPhase ( char* s, char* rret_text )
Calls: GetOneWord(), strlen(), strncpy(), toupper()
Called by: mail_shorthand()ml_short.c

Global Function ProcessShSegment()

int ProcessShSegment ( char** s, char* rrret_text, int power_list, int prov_list )
Prototyped in: ml_short.c
Calls: parse_powers()ml_press.c
  GetOneWord(), get_prov(), lookfor(), sprintf(), strcat(), strchr(), strcpy(), toupper()
Called by: mail_shorthand()ml_short.c
References Variables: dipentglobal.c
  prglobal.c
  sh_prelimml_short.c
  sh_pvalueml_short.c

Global Function mail_shorthand()

int mail_shorthand ( char* text )
Prototyped in: functions.h
Calls: CheckShSegmentPhase()ml_short.c
  ProcessShSegment()ml_short.c
  build_syntaxcheck()st_build.c
  move_syntaxcheck()st_movement.c
  retreat_syntaxcheck()st_retreat.c
  despace(), gamein(), po_init(), strcat(), strcpy(), strlen()
References Variables: dipentglobal.c