xshogi-1.4.2/0000755000175000017500000000000012274274137010031 500000000000000xshogi-1.4.2/xshogifn.h0000644000175000017500000002062712274270516011753 00000000000000/* * FILE: xshogifn.h * * Function declarations for xshogi. * * ------------------------------------------------------------------------ * xshogi is based on XBoard -- an Xt/Athena user interface for GNU Chess. * * Original authors: Dan Sears, Chris Sears * Enhancements (Version 2.0 and following): Tim Mann * Modifications to XShogi (Version 1.0): Matthias Mutz * Enhancements to XShogi (Version 1.1): Matthias Mutz * Modified implementation of ISS mode for XShogi: Matthias Mutz * Current maintainer: Michael C. Vanier * * XShogi borrows some of its piece bitmaps from CRANES Shogi. * * Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts. * Enhancements Copyright 1992 Free Software Foundation, Inc. * Enhancements for XShogi Copyright 1993, 1994, 1995 Matthias Mutz * Copyright (c) 1999 Michael Vanier and the Free Software Foundation * * The following terms apply to Digital Equipment Corporation's copyright * interest in XBoard: * ------------------------------------------------------------------------ * All Rights Reserved * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, * provided that the above copyright notice appear in all copies and that * both that copyright notice and this permission notice appear in * supporting documentation, and that the name of Digital not be * used in advertising or publicity pertaining to distribution of the * software without specific, written prior permission. * * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS * SOFTWARE. * ------------------------------------------------------------------------ * * This file is part of GNU shogi. * * GNU shogi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation. * * GNU shogi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GNU shogi; see the file COPYING. If not, write to * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. * * ------------------------------------------------------------------------ * */ #ifndef _XSHOGIFN_H_ #define _XSHOGIFN_H_ int main(int argc, char **argv); void CreateGCs(void); void CreatePieces(void); void CreatePieceMenus(void); char *FindFont(char *pattern, int targetPxlSize); void PieceMenuPopup(Widget w, XEvent *event, String *params, Cardinal *num_params); static void PieceMenuSelect(Widget w, ShogiSquare piece, char *junk); static void SetBlackToPlay(void); static void SetWhiteToPlay(void); void ReadBitmap(String name, Pixmap *pm, Pixmap *qm, unsigned char small_bits[], unsigned char medium_bits[], unsigned char large_bits[]); void CreateGrid(void); int EventToSquare(int x); int EventToXSquare(int x); ShogiSquare CharToPiece(int c, int p); void DrawSquare(int row, int column, ShogiSquare piece); void BlinkSquare(int row, int column, ShogiSquare piece); void EventProc(Widget widget, XtPointer client_data, XEvent *event); void DrawPosition(Widget w, XEvent *event, String *prms, Cardinal *nprms); void InitPosition(int redraw); void CopyBoard(Board to, Board from); void CopyCatches(Catched to, Catched from); void ClearCatches(Catched to); void UpdateCatched(int c, int f, int d, int a, int cm); void SendCurrentBoard(FILE *fp); void SendBoard(FILE *fp, Board board, Catched catches); void HandleUserMove(Widget w, XEvent *event); void FinishUserMove(ShogiMove move_type, int to_x, int to_y); void HandleMachineMove(char *message, FILE *fp); void ReadGameFile(void); int ReadGameFileProc(void); void ApplyMove(ShogiMove *move_type, int from_x, int from_y, int to_x, int to_y, int currentMove); void MakeMove(ShogiMove *move_type, int from_x, int from_y, int to_x, int to_y); void InitShogiProgram(char *host_name, char *program_name, int *pid, FILE **to, FILE **from, XtIntervalId *xid, int *sendTime); void ShutdownShogiPrograms(char *message); void CommentPopUp(char *label); void FileNamePopUp(char *label, Boolean (*proc)(char *name)); void FileNameCallback(Widget w, XtPointer client_data, XtPointer call_data); void FileNameAction(Widget w, XEvent *event, String *prms, Cardinal *nprms); void PromotionPopUp(ShogiSquare piece, int to_x, int to_y, int frp); void PromotionCallback(Widget w, XtPointer client_data, XtPointer call_data); void FileModePopUp(char *name); void FileModeCallback(Widget w, XtPointer client_data, XtPointer call_data); void SelectCommand(Widget w, XtPointer client_data, XtPointer call_data); void ModeHighlight(void); void QuitProc(Widget w, XEvent *event, String *prms, Cardinal *nprms); void QuitRemotePlayerProc(void); Boolean LoadGame(char *name); void LoadGameProc(Widget w, XEvent *event, String *prms, Cardinal *nprms); Boolean LoadPosition(char *name); void LoadPositionProc(Widget w, XEvent *event, String *prms, Cardinal *nprms); void MachineBlackProc(Widget w, XEvent *event, String *prms, Cardinal *nprms); void MachineWhiteProc(Widget w, XEvent *event, String *prms, Cardinal *nprms); void ForwardProc(Widget w, XEvent *event, String *prms, Cardinal *nprms); void MoveNowProc(Widget w, XEvent *event, String *prms, Cardinal *nprms); void ResetFileProc(void); void ResetChallenge(void); void ResetProc(Widget w, XEvent *event, String *prms, Cardinal *nprms); void Reset(int /* Boolean */ redraw); Boolean Challenge(char *name); void ChallengeProc(Widget w, XEvent *event, String *prms, Cardinal *nprms); Boolean SelectLevel(char *command); void SelectLevelProc(Widget w, XEvent *event, String *prms, Cardinal *nprms); void BackwardProc(Widget w, XEvent *event, String *prms, Cardinal *nprms); void FlipViewProc(Widget w, XEvent *event, String *prms, Cardinal *nprms); void ForceProc(Widget w, XEvent *event, String *prms, Cardinal *nprms); void SaveGameProc(Widget w, XEvent *event, String *prms, Cardinal *nprms); Boolean SaveGame(char *name); void SavePositionProc(Widget w, XEvent *event, String *prms, Cardinal *nprms); Boolean SavePosition(char *name); void SwitchProc(Widget w, XEvent *event, String *prms, Cardinal *nprms); void HintProc(Widget w, XEvent *event, String *prms, Cardinal *nprms); void EditPositionProc(Widget w, XEvent *event, String *prms, Cardinal *nprms); void EditPositionDone(void); void TwoMachinesProc(Widget w, XEvent *event, String *prms, Cardinal *nprms); void PauseProc(Widget w, XEvent *event, String *prms, Cardinal *nprms); void Iconify(Widget w, XEvent *event, String *prms, Cardinal *nprms); void PrintOpponents(FILE *fp); void PrintPosition(FILE *fp, int move); void SendToProgram(char *message, FILE *fp); void ReceiveFromProgram(FILE *fp, int *source, XtInputId *id); void SendSearchDepth(FILE *fp); void SendTimeRemaining(FILE *fp); void DisplayMessage(char *message, int toRemotePlayer); void DisplayName(char *name); void DisplayMove(int moveNumber); void DisplayTitle(char *title); void Attention(int pid); void DisplayClocks(int clock_mode); void DisplayTimerLabel(Widget w, char *color, long timer); char *TimeString(long tm); void Usage(void); extern void parseGameFile(void); Boolean ParseBoard(char *string); void ParseMachineMove(char *machine_move, ShogiMove *move_type, int *from_x, int *from_y, int *to_x, int *to_y); void CatchPipeSignal(int dummy); #endif /* _XSHOGIFN_H_ */ xshogi-1.4.2/xshogi.60000644000175000017500000005045512274271364011351 00000000000000.TH xshogi 6 "Jan 29, 1993" "X Version 11" .SH NAME xshogi \- Xt/Athena user interface for gnushogi .SH SYNOPSIS .B xshogi [ options ] .SH DESCRIPTION .IR xshogi provides an X11/Xt/Athena Widgets user interface for gnushogi. With .IR xshogi you can play gnushogi, set up arbitrary positions, force variations, or watch .IR xshogi manage a game between two shogi programs. Furthermore, it can be used as an interface between two players on different displays. .LP .IR xshogi can also be used as a shogi board to play out games. It will read through a game file or allow a player to play through a variation manually (force mode). This is useful for keeping track of email postal games or browsing games off the net. .LP After starting .IR xshogi , you can make moves by pressing mouse button 1 while the cursor is over a square with your piece on it and dragging the mouse to another square. If the move is illegal, gnushogi will not allow it. .IR xshogi will then retract the move. .SH RULES Shogi is a Japanese board game played by two players. The object of the game is to capture the opponent's King. Shogi is played on a nine-by-nine board. The vertical rows are called files, the horizontal ones ranks or just rows. Each player has twenty pieces: one King, two Gold Generals, two Silver Generals, two kNights, two Lances, one Rook, one Bishop and nine Pawns. The player moving up the board and making the first move is referred to as black and his opponent white, although in Shogi sets all pieces have the same colour. They are differentiated only in direction: pieces pointing away from a player are his. The pieces lie flat on the board and have their Japanese name written on them. .SS Moves .TP 8 .B King one step in any direction per move .TP 8 .B "Gold General" one step per move any way except diagonally backward (as a king but not diagonally backward) .TP 8 .B "Silver General" one step per move forwards or diagonally (as a king but not sideways or vertically backward) .TP 8 .B Knight one step to left or right, and two steps forward (the only piece which may jump over other pieces) .TP 8 .B Rook moves vertically or horizontally any distance .TP 8 .B Bishop moves diagonally any distance .TP 8 .B Lance moves forward any distance .TP 8 .B Pawn one step forward .SS Promotion The three rows furthest away from a player are called the promotion zone. Apart from the King and the Gold, any piece can be promoted to a more powerful piece when it makes a move completely or partly in the promotion zone. So, when a piece moves into, out of or fully inside the promotion zone it may be promoted upon completion of its move. Promotion is optional, provided that the piece still can make a legal move in case it is not promoted: if a Pawn or a Lance move to the last row, or a Knight moves to either of the last two rows, it must be promoted. In Shogi sets promoting a piece is done by turning this piece upside down. Its promoted name is written on its other side. Apart from the King and the Gold General all pieces can promote. After promotion their moves are as follows: .TP 8 .B + Promoted Silver, promoted kNight, promoted Lance and promoted Pawn all move as a Gold. .TP 8 .B + The promoted Rook in addition to the moves of the unpromoted Rook can move one step in the diagonal directions. It either moves like a Rook or like a King. .TP 8 .B + The promoted Bishop in addition to the moves of the unpromoted Bishop can move one step horizontally or vertically. It either moves like a Bishop or like a King. .SS Capturing and dropping pieces When one piece moves onto the same square as an opponent's piece, the opponent's piece is captured. All pieces capture in the same way that they move. Captured pieces become part of the capturer's force. In a later move, instead of moving a piece on the board, a player may put a piece that he has captured from his opponent back onto the board, in an empty square. This is called dropping a piece. Pieces are always dropped unpromoted: if a promoted piece is captured, it reverts to its unpromoted rank. Pieces may be dropped on any empty square on the board with only three restrictions: .TP 8 .B 1) After dropping a piece it must be able to make a legal move. This applies to Pawns, Knights or Lances. They may not be dropped onto a square from which they will never be able to move. .TP 8 .B 2) Attacking the King by dropping a Pawn on the square in front of him is not allowed if the King cannot prevent being captured on the following move. To use the Chess expression: checkmating the King with a Pawn drop is prohibited. .TP 8 .B 3) A pawn may only be dropped on a file (vertical row) if there is no other unpromoted pawn of the same player on that file. .SS Draws The game of Shogi has very few draws (roughly 1 percent), mainly because of the possibility to drop pieces. Draws cannot be offered and can arise from two situations: .TP 8 .B 1) A position (including the pieces in hand) occurs 4 times with the same player to move ("Sennichite"). However, if this is caused by consecutive checks (direct attacks on the King, threatening to capture it on the next move) by one side, the player giving these checks loses the game. .TP 8 .B 2) Both players have moved their King into the the promotion zone (or they cannot be prevented to do so) and the Kings cannot be checkmated. In that case the players may decide to count their pieces where the King does not count, the Rook and Bishop count as 5 points, and all other pieces as one point. Promotion is disregarded. If both players have at least 24 points the game is a draw ("Jishogi"). If a player has less, he loses the game. .PP Of course, a player can refuse to count pieces when he still has mating chances or chances to gain material which would affect the outcome of the counting. There is no strict rule about what to do if this is not the case, but nonetheless a player refuses to count up (e.g. because he does not have enough points for a draw). It has been generally accepted that in such a case the game ends and the pieces are counted after one player has managed to get all his pieces protected in the promotion zone. .SH OPTIONS The following command line options also correspond to X resources that you can set in your .IR \&.Xdefaults or .IR \&.Xresources file. .TP 8 .B standard Xt options .IR xshogi accepts standard Xt options like -display, -geometry, -iconic, -bg etc. .TP 8 .B -tc or -timeControl minutes[:seconds] Amount of time for a set of moves determined by .IR movesPerSession . If this number of moves is played within the time control period, .IR xshogi resets the time clocks. Default: 5 minutes. .TP 8 .B -mps or -movesPerSession moves Number of moves in a time control period. Default: 40 moves. .TP 8 .B -st or -searchTime minutes[:seconds] Tell gnushogi to spend at most the given amount of time searching for each of its moves. Without this option, gnushogi chooses its search time based on the number of moves and amount of time remaining until the next time control. Setting this option also sets -clockMode to False. .TP 8 .B -sd or -searchDepth number Tell gnushogi to look ahead at most the given number of moves when searching for a move to make. Without this option, gnushogi chooses its search depth based on the number of moves and amount of time remaining until the next time control. Setting this option also sets -clockMode to False. .TP 8 .B -clock or -clockMode "(True | False)" Determines whether or not to use the clock. If clockMode is False, the clock does not run, but the side that is to play next is still highlighted. .TP 8 .B -td or -timeDelay seconds Time delay between moves during "Load Game". This doesn't have to be round numbers. Try -td 0.4. Default: 1 second. .TP 8 .B -nsp or -noShogiProgram "(True | False)" If this option is True, .IR xshogi acts as a passive shogiboard; it does not try to start a shogi program, not even to check whether moves made in Force mode are legal. It also sets -clockMode to False. Default: False. .TP 8 .B -fsp or -firstShogiProgram program Name of first shogi program. In matches between two machines, this program plays white. Default: "gnushogi". .TP 8 .B -ssp or -secondShogiProgram program Name of second shogi program, if needed. In matches between two machines, this program plays black; otherwise it is not started. Default: "gnushogi". .TP 8 .B -fh or -firstHost host Name of host the first shogi program plays on. Default: "localhost". .TP 8 .B -sh or -secondHost host Name of host the second shogi program plays on. Default: "localhost". .TP 8 .B -rsh or -remoteShell shell_name Some systems do not use rsh as the remote shell. This option allows a user to name the remote shell command. This should be done in the resource file. .TP 8 .B -mm or -matchMode "(False | Init | Position | Opening)" Automatically run a game between .IR firstShogiProgram and .IR secondShogiProgram . If .IR matchMode is set to .IR Init , .IR xshogi will start the game with the initial shogi position. If .IR matchMode is set to .IR Position , .IR xshogi will start the game with the position specified by the .IR loadPositionFile resource. If .IR matchMode is set to .IR Opening , .IR xshogi will play out the opening moves specified by the .IR -loadGameFile resource. If the .IR -saveGameFile resource is set, a move record for the match will be saved in the specified file. Default: "False". .TP 8 .B -lgf or -loadGameFile file Name of file to read a game record from. Game files are found in the directory named by the SHOGIDIR environment variable. If this variable is not set, the current directory is used unless the file name starts with a /. .TP 8 .B -lpf or -loadPositionFile file Name of file to read a game position from. Position files are found in the directory named by the SHOGIDIR environment variable. If this variable is not set, the current directory is used unless the file name starts with a /. .TP 8 .B -sgf or -saveGameFile file Name of file to save a game record to. Game files are saved in the directory named by the SHOGIDIR environment variable. If this variable is not set, the current directory is used unless the file name starts with a /. .TP 8 .B -spf or -savePositionFile file Name of file to save a game position to. Position files are saved in the directory named by the SHOGIDIR environment variable. If this variable is not set, the current directory is used unless the file name starts with a /. .TP 8 .B -coords or -showCoords "(True | False)" If this option is True, .IR xshogi displays algebraic coordinates along the board's left and bottom edges. The default is False. The .IR coordFont resource specifies what font to use. .TP 8 .B -mono or -monoMode "(True | False)" Monochrome mode. You shouldn't have to specify monochrome. .IR xshogi will determine if this is necessary. .TP 8 .B -pc or -pieceColor color Color specification for pieces suitable for .IR XParseColor(). Default: #FFFFD7. .TP 8 .B -sc or -squareColor color Same for squares. Default: #EBDFB0. .TP 8 .B -wps or -westernPieceSet (True | False) Choose the Western style piece set. .TP 8 .B -npb or -normalPawnBitmap file .PD 0 .TP 8 .B -nnb or -normalKnightBitmap file .TP 8 .B -nbb or -normalBishopBitmap file .TP 8 .B -nrb or -normalRookBitmap file .TP 8 .B -nkb or -normalKingBitmap file Names of the bitmap files for the bitmap piece icons. .PD .PD 0 .TP 8 .B -rpb or -reversePawnBitmap file .TP 8 .B -rnb or -reverseKnightBitmap file .TP 8 .B -rbb or -reverseBishopBitmap file .TP 8 .B -rrb or -reverseRookBitmap file .TP 8 .B -rkb or -reverseKingBitmap file Names of the bitmap files for the outline piece icons. .PD .TP 8 .B -debug or -debugMode "(True | False)" Turns on debugging printout. .SH RESOURCES .TP 8 .B initString The actual string that is sent to initialize the shogi program can be set from .Xdefaults. It can't be set from the command line because of syntax problems. The default value is "new\\nbeep\\nrandom\\neasy\\n". The "new" and "beep" commands are required. You can remove the "random" command if you like; including it causes gnushogi to randomize its move selection slightly so that it doesn't play the same moves in every game. Even without "random", gnushogi randomizes its choice of moves from its opening book. You can also remove "easy" if you like; including it toggles easy mode .IR off , causing gnushogi to think on your time. That is, if "easy" is included in the initString, gnushogi thinks on your time; if not, it does not. (Yes, this does seem backwards, doesn't it.) You can also try adding other commands to the initString; see the gnushogi documentation for details. .TP 8 .B blackString and whiteString These resources control what is sent when the Machine Black and Machine White buttons are selected. This is mostly for compatibility with obsolete versions of gnushogi. .LP Alternate bitmaps for piece icons can be specified either by choosing one of the built-in sets or with the file name resources described above. There are three built-in sets of piece bitmaps available, large (the default), medium, or small. It is easiest to select the set you prefer in the .Xdefaults file: .sp 1 .br XShogi*boardSize: Medium .LP The font used for button labels and comments can be changed in the .Xdefaults file. You may want to choose a smaller font if you are using the small pieces: .sp 1 .br XShogi*font: helvetica_oblique12 .LP The font used for coordinates (when the .IR showCoords option is True) can be set similarly: .sp 1 .br XShogi*coordFont: helvetica_10 .LP If you are using a grayscale monitor, try setting the colors to: .sp 1 .br XShogi*pieceColor: gray100 .br XShogi*squareColor: gray60 .br .SH COMMAND BUTTONS AND KEYS .TP 8 .B Quit Quits .IR xshogi . Q or q is a keyboard equivalent. .TP 8 .B Reset Resets .IR xshogi to the beginning of a shogi game. It also deselects any game or position files. .TP 8 .B Flip View inverts the view of the shogi board. .TP 8 .B Hint displays a move hint from gnushogi. .TP 8 .B Load Game plays a game from a record file. If no file is specified a popup dialog asks for a filename. Game files are found in the directory named by the SHOGIDIR environment variable. If this variable is not declared then the current directory is used unless the file name starts with a /. G or g is a keyboard equivalent. The game file parser will accept almost any file that contains moves in algebraic notation. If the first line begins with `#', it is assumed to be a title and is displayed. Text enclosed in parentheses or square brackets is assumed to be commentary and is displayed in a pop-up window. Any other text in the file is ignored. .TP 8 .B Load Position sets up a position from a position file. If no file is specified a popup dialog asks for a filename. Position files are found in the directory named by the SHOGIDIR environment variable. If this variable is not declared then the current directory is used unless the file name starts with a /. Position files must be in the format that the Save Position command writes. .TP 8 .B Save Game saves a game to a record file. If no file is specified a popup dialog asks for a filename. If the filename exists, the user is asked whether the current game record is be appended to this file or if the file should be replaced. Game files are saved in the directory named by the SHOGIDIR environment variable. If this variable is not declared then the current directory is used unless the file name starts with a /. Game files are human-readable, and can also be read back by the Load Game command. Furthermore, they are accepted as gnushogi text bookfiles. .TP 8 .B Save Position saves a position to a position file. If no file is specified a popup dialog asks for a filename. Position files are saved in the directory named by the SHOGIDIR environment variable. If this variable is not declared then the current directory is used unless the file name starts with a /. Position files are human-readable, and can also be read back by the Load Position command. .TP 8 .B Machine White forces gnushogi to play white. .TP 8 .B Machine Black forces gnushogi to play black. .TP 8 .B Force Moves forces a series of moves. That is, gnushogi stops playing and xshogi allows you to make moves for both white and black. .TP 8 .B Two Machines plays a game between two computer programs. .TP 8 .B Forward moves forward through a series of remembered moves. F or f is a keyboard equivalent. .TP 8 .B Backward moves backward through a series of remembered moves. As a side effect, puts xshogi into Force Moves mode. B or b is a keyboard equivalent. .TP 8 .B Pause pauses the clocks or (in Load Game mode) pauses the game being loaded. Press Pause again to continue. P or p is a keyboard equivalent. .TP 8 .B Edit Position lets you set up an arbitrary board position. Use mouse button 1 to drag pieces to new squares, or to delete a piece by dragging it off the board or dragging an empty square on top of it. To drop a new piece on a square, press mouse button 2 or 3 over the square. This brings up a menu of black pieces (button 2) or white pieces (button 3). Additional menu choices let you empty the square or clear the board. You can set the side to play next by clicking on the Black or White indicator at the top of the screen. .TP 8 .B Challenge allows you to make a two display game between two human players. Enter the display you want to connect to. If you are allowed to connect, a new board is displayed at the remote display. Challenge mode can only be stopped by pressing "quit". .TP 8 .B Select Level allows you to reset the clocks for both players. Enter the number of moves and the number of minutes in which the moves should be done. .TP 8 .B Move NOW force computer to stop thinking and to make the current best move. .TP 8 .B Iconify I, i, C or c iconifies .IR xshogi . .SH SEE ALSO .IR gnushogi (6) .SH LIMITATIONS If you press the Pause button during gnushogi's turn, .IR xshogi will stop the clocks, but gnushogi will still make a move. .LP After a mate or draw when playing against gnushogi, if you back up with the Backward button, the clocks are reset (because gnushogi has exited and must be restarted). .LP Some .IR xshogi functions may not work with versions of gnushogi earlier than 1.1, patchlevel 02. .LP The game parser recognizes only algebraic notation. .SH AUTHORS Original authors of XBoard: Chris Sears and Dan Sears. .LP Enhancements for XBoard (Version 2.0): Tim Mann. .LP Conversion to XShogi (Version 1.1): Matthias Mutz. .LP Current maintainer: Mike Vanier. .SH COPYRIGHT XShogi borrows some of its piece bitmaps from CRANES Shogi. .LP Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts. Enhancements Copyright 1992 Free Software Foundation, Inc. Enhancements Copyright 1993 Matthias Mutz .LP The following terms apply to Digital Equipment Corporation's copyright interest in XBoard: .LP .RS All Rights Reserved .LP Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. .LP DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .RE .LP The following terms apply to the enhanced version of XShogi distributed by the Free Software Foundation: .LP .RS This file is part of XSHOGI. .LP XSHOGI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. No author or distributor accepts responsibility to anyone for the consequences of using it or for whether it serves any particular purpose or works at all, unless he says so in writing. Refer to the XSHOGI General Public License for full details. .LP Everyone is granted permission to copy, modify and redistribute XSHOGI, but only under the conditions described in the XSHOGI General Public License. A copy of this license is supposed to have been given to you along with XSHOGI so you can know your rights and responsibilities. It should be in a file named COPYING. Among other things, the copyright notice and this notice must be preserved on all copies. .RE xshogi-1.4.2/INSTALL0000644000175000017500000003661012274272444011007 00000000000000Installation Instructions ************************* Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without warranty of any kind. Basic Installation ================== Briefly, the shell command `./configure && make && make install' should configure, build, and install this package. The following more-detailed instructions are generic; see the `README' file for instructions specific to this package. Some packages provide this `INSTALL' file but do not implement all of the features documented below. The lack of an optional feature in a given package is not necessarily a bug. More recommendations for GNU packages can be found in *note Makefile Conventions: (standards)Makefile Conventions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. Caching is disabled by default to prevent problems with accidental use of stale cache files. If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') is used to create `configure' by a program called `autoconf'. You need `configure.ac' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. Running `configure' might take a while. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package, generally using the just-built uninstalled binaries. 4. Type `make install' to install the programs and any data files and documentation. When installing into a prefix owned by root, it is recommended that the package be configured and built as a regular user, and only the `make install' phase executed with root privileges. 5. Optionally, type `make installcheck' to repeat any self-tests, but this time using the binaries in their final installed location. This target does not install anything. Running this target as a regular user, particularly if the prior `make install' required root privileges, verifies that the installation completed correctly. 6. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. 7. Often, you can also type `make uninstall' to remove the installed files again. In practice, not all packages have tested that uninstallation works correctly, even though it is required by the GNU Coding Standards. 8. Some packages, particularly those that use Automake, provide `make distcheck', which can by used by developers to test that all other targets like `make install' and `make uninstall' work correctly. This target is generally not run by end users. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. Run `./configure --help' for details on some of the pertinent environment variables. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c99 CFLAGS=-g LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you can use GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. This is known as a "VPATH" build. With a non-GNU `make', it is safer to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. On MacOS X 10.5 and later systems, you can create libraries and executables that work on multiple system types--known as "fat" or "universal" binaries--by specifying multiple `-arch' options to the compiler but only a single `-arch' option to the preprocessor. Like this: ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CPP="gcc -E" CXXCPP="g++ -E" This is not guaranteed to produce working output in all cases, you may have to build one architecture at a time and combine the results using the `lipo' tool if you have problems. Installation Names ================== By default, `make install' installs the package's commands under `/usr/local/bin', include files under `/usr/local/include', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PREFIX', where PREFIX must be an absolute file name. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you pass the option `--exec-prefix=PREFIX' to `configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=DIR' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. In general, the default for these options is expressed in terms of `${prefix}', so that specifying just `--prefix' will affect all of the other directory specifications that were not explicitly provided. The most portable way to affect installation locations is to pass the correct locations to `configure'; however, many packages provide one or both of the following shortcuts of passing variable assignments to the `make install' command line to change installation locations without having to reconfigure or recompile. The first method involves providing an override variable for each affected directory. For example, `make install prefix=/alternate/directory' will choose an alternate location for all directory configuration variables that were expressed in terms of `${prefix}'. Any directories that were specified during `configure', but not in terms of `${prefix}', must each be overridden at install time for the entire installation to be relocated. The approach of makefile variable overrides for each directory variable is required by the GNU Coding Standards, and ideally causes no recompilation. However, some platforms have known limitations with the semantics of shared libraries that end up requiring recompilation when using this method, particularly noticeable in packages that use GNU Libtool. The second method involves providing the `DESTDIR' variable. For example, `make install DESTDIR=/alternate/directory' will prepend `/alternate/directory' before all installation names. The approach of `DESTDIR' overrides is not required by the GNU Coding Standards, and does not work on platforms that have drive letters. On the other hand, it does better at avoiding recompilation issues, and works well even when some directory options were not specified in terms of `${prefix}' at `configure' time. Optional Features ================= If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Some packages offer the ability to configure how verbose the execution of `make' will be. For these packages, running `./configure --enable-silent-rules' sets the default to minimal output, which can be overridden with `make V=1'; while running `./configure --disable-silent-rules' sets the default to verbose, which can be overridden with `make V=0'. Particular systems ================== On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC is not installed, it is recommended to use the following options in order to use an ANSI C compiler: ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" and if that doesn't work, install pre-built binaries of GCC for HP-UX. HP-UX `make' updates targets which have the same time stamps as their prerequisites, which makes it generally unusable when shipped generated files such as `configure' are involved. Use GNU `make' instead. On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot parse its `' header file. The option `-nodtk' can be used as a workaround. If GNU CC is not installed, it is therefore recommended to try ./configure CC="cc" and if that doesn't work, try ./configure CC="cc -nodtk" On Solaris, don't put `/usr/ucb' early in your `PATH'. This directory contains several dysfunctional programs; working variants of these programs are available in `/usr/bin'. So, if you need `/usr/ucb' in your `PATH', put it _after_ `/usr/bin'. On Haiku, software installed for all users goes in `/boot/common', not `/usr/local'. It is recommended to use the following options: ./configure --prefix=/boot/common Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, `configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the option `--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Unfortunately, this technique does not work for `CONFIG_SHELL' due to an Autoconf limitation. Until the limitation is lifted, you can use this workaround: CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of all of the options to `configure', and exit. `--help=short' `--help=recursive' Print a summary of the options unique to this package's `configure', and exit. The `short' variant lists options used only in the top level, while the `recursive' variant lists options also present in any nested packages. `--version' `-V' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--prefix=DIR' Use DIR as the installation prefix. *note Installation Names:: for more details, including other options available for fine-tuning the installation locations. `--no-create' `-n' Run the configure checks, but stop before creating any output files. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. xshogi-1.4.2/README0000644000175000017500000000453412274273702010634 00000000000000This is XShogi version 1.4.2 ---------------------------- This program is obsolescent and unmaintainted. It used to be the official GUI for GNU Shogi; GNU Shogi 1.5 will support XBoard 4.7 as a better alternative. XShogi was for some time, untill the 1.4.1 release, distributed in the GNU Shogi package. It is now available as a standalone source package again for convenience, with no plan for further update. Yann Dirson This program provides an XWindows interface to the Japanese Chess (Shogi) playing program GNU Shogi. You have to create "gnushogi" from GNU Shogi (version 1.3). Xshogi has been created by modifying XBoard 2.0 and XBoard 2.1 by Tim Mann. Xshogi was originally written by Matthias Mutz (mutz@fmi.uni-passau.de) but is now being maintained by me, Mike Vanier (mvanier@bbb.caltech.edu). I would like to thank Matthias for passing the maintenance of this program over to me. For changes since the last version please read the file NEWS. The most significant change is that xshogi has been merged into the gnushogi source tree, and it is now very easy to configure and build both programs at the same time. In addition, support for the Internet Shogi Server has been dropped. There are now much better ways to play Shogi over the internet (such as JavaShogi), and the ISS support seemed to be only partial, so I decided (as the new maintainer) to keep things simple and just remove ISS support altogether. For creating xshogi read the file INSTALL in the top-level gnushogi directory. If you determine bugs, please save the game, and rerun xshogi with the -debug True option. Report the bug to me. By the way, gnushogi (the shogi playing program used by xshogi) can produce a record of the game if you #define LIST_ON_EXIT in the file `gnushogi/opts.h'. In order to determine the options, try "xshogi -help". A man page is also included. You can give GNU Shogi more searching time by using the -tc option. For example, "xshogi -tc 15" allows GNU Shogi to think 15 minutes for 40 moves. You can choose a western style piece set by invoking xshogi with -wps True. This can also be set in your .Xdefaults file or .Xresources file. See the xshogi man page for more about X resources. In case of trouble, comments or suggestions for improvements you may contact me. Otherwise, enjoy the program :-) Mike Vanier (mvanier@bbb.caltech.edu) xshogi-1.4.2/compile0000755000175000017500000001624512274272444011336 00000000000000#! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2012-10-14.11; # UTC # Copyright (C) 1999-2013 Free Software Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' # We need space, tab and new line, in precisely that order. Quoting is # there to prevent tools from complaining about whitespace usage. IFS=" "" $nl" file_conv= # func_file_conv build_file lazy # Convert a $build file to $host form and store it in $file # Currently only supports Windows hosts. If the determined conversion # type is listed in (the comma separated) LAZY, no conversion will # take place. func_file_conv () { file=$1 case $file in / | /[!/]*) # absolute file, and not a UNC file if test -z "$file_conv"; then # lazily determine how to convert abs files case `uname -s` in MINGW*) file_conv=mingw ;; CYGWIN*) file_conv=cygwin ;; *) file_conv=wine ;; esac fi case $file_conv/,$2, in *,$file_conv,*) ;; mingw/*) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin/*) file=`cygpath -m "$file" || echo "$file"` ;; wine/*) file=`winepath -w "$file" || echo "$file"` ;; esac ;; esac } # func_cl_dashL linkdir # Make cl look for libraries in LINKDIR func_cl_dashL () { func_file_conv "$1" if test -z "$lib_path"; then lib_path=$file else lib_path="$lib_path;$file" fi linker_opts="$linker_opts -LIBPATH:$file" } # func_cl_dashl library # Do a library search-path lookup for cl func_cl_dashl () { lib=$1 found=no save_IFS=$IFS IFS=';' for dir in $lib_path $LIB do IFS=$save_IFS if $shared && test -f "$dir/$lib.dll.lib"; then found=yes lib=$dir/$lib.dll.lib break fi if test -f "$dir/$lib.lib"; then found=yes lib=$dir/$lib.lib break fi if test -f "$dir/lib$lib.a"; then found=yes lib=$dir/lib$lib.a break fi done IFS=$save_IFS if test "$found" != yes; then lib=$lib.lib fi } # func_cl_wrapper cl arg... # Adjust compile command to suit cl func_cl_wrapper () { # Assume a capable shell lib_path= shared=: linker_opts= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. eat=1 case $2 in *.o | *.[oO][bB][jJ]) func_file_conv "$2" set x "$@" -Fo"$file" shift ;; *) func_file_conv "$2" set x "$@" -Fe"$file" shift ;; esac ;; -I) eat=1 func_file_conv "$2" mingw set x "$@" -I"$file" shift ;; -I*) func_file_conv "${1#-I}" mingw set x "$@" -I"$file" shift ;; -l) eat=1 func_cl_dashl "$2" set x "$@" "$lib" shift ;; -l*) func_cl_dashl "${1#-l}" set x "$@" "$lib" shift ;; -L) eat=1 func_cl_dashL "$2" ;; -L*) func_cl_dashL "${1#-L}" ;; -static) shared=false ;; -Wl,*) arg=${1#-Wl,} save_ifs="$IFS"; IFS=',' for flag in $arg; do IFS="$save_ifs" linker_opts="$linker_opts $flag" done IFS="$save_ifs" ;; -Xlinker) eat=1 linker_opts="$linker_opts $2" ;; -*) set x "$@" "$1" shift ;; *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) func_file_conv "$1" set x "$@" -Tp"$file" shift ;; *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) func_file_conv "$1" mingw set x "$@" "$file" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -n "$linker_opts"; then linker_opts="-link$linker_opts" fi exec "$@" $linker_opts exit 1 } eat= case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand '-c -o'. Remove '-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file 'INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) func_cl_wrapper "$@" # Doesn't return... ;; esac ofile= cfile= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. # So we strip '-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no '-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # '.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` # Create the lock directory. # Note: use '[/\\:.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then test "$cofile" = "$ofile" || mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: xshogi-1.4.2/new_eastern_bitmaps/0000755000175000017500000000000012274274137014062 500000000000000xshogi-1.4.2/new_eastern_bitmaps/silverP_l.xbm0000644000175000017500000000627212274270516016455 00000000000000#define silverP_l_width 64 #define silverP_l_height 64 static unsigned char silverP_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x81, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x01, 0x3c, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xc0, 0x01, 0xc0, 0x03, 0x00, 0x00, 0x1c, 0x00, 0x3c, 0x1e, 0x00, 0x1c, 0x00, 0x00, 0x04, 0xc0, 0x03, 0xe0, 0x01, 0x10, 0x00, 0x00, 0x06, 0x38, 0x00, 0x00, 0x0e, 0x60, 0x00, 0x00, 0x8a, 0x07, 0x00, 0x00, 0xf0, 0x40, 0x00, 0x00, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x4f, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x80, 0x03, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x80, 0x03, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0x80, 0x03, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0xc0, 0x03, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xe0, 0x07, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xe0, 0x06, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x70, 0x0c, 0x00, 0x00, 0x02, 0x40, 0x04, 0x00, 0x38, 0x18, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x1c, 0x70, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x06, 0xe0, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x03, 0xc0, 0x03, 0x00, 0x02, 0x40, 0x02, 0xc0, 0x01, 0x9c, 0x0f, 0x00, 0x02, 0x40, 0x02, 0xe0, 0xf0, 0x0f, 0x3f, 0x00, 0x04, 0x20, 0x02, 0x30, 0xfe, 0x01, 0x7c, 0x00, 0x04, 0x20, 0x02, 0x1e, 0x80, 0x01, 0xf8, 0x00, 0x04, 0x20, 0x01, 0x00, 0x00, 0x39, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0xfe, 0x1f, 0x00, 0x00, 0x04, 0x20, 0x01, 0x80, 0x7f, 0x01, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x08, 0x20, 0x01, 0x00, 0x80, 0xfd, 0x00, 0x00, 0x08, 0x10, 0x01, 0x00, 0xfe, 0xff, 0x01, 0x00, 0x08, 0x10, 0x01, 0x80, 0xff, 0x01, 0x00, 0x00, 0x08, 0x90, 0x00, 0x80, 0x03, 0x01, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0xc0, 0xc1, 0x1f, 0x00, 0x10, 0x90, 0x00, 0x80, 0xff, 0xff, 0x3f, 0x00, 0x10, 0x88, 0x00, 0xf0, 0xff, 0xff, 0x3f, 0x00, 0x10, 0x48, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/lance_l.xbm0000644000175000017500000000523112274270516016105 00000000000000#define lance_l_width 64 #define lance_l_height 64 static char lance_l_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x0e,0x00,0x00,0x00,0x00,0x00,0xf0,0x80, 0x70,0x00,0x00,0x00,0x00,0x00,0x0f,0xc0,0x81,0x03,0x00,0x00,0x00,0xf0,0x00, 0x38,0x0e,0x1c,0x00,0x00,0x00,0x08,0x00,0x07,0x70,0x60,0x00,0x00,0x00,0x0c, 0xe0,0x00,0x80,0x83,0x00,0x00,0x00,0x14,0x1c,0x00,0x00,0x1c,0x01,0x00,0x00, 0x94,0x03,0x00,0x03,0xe0,0x01,0x00,0x00,0x64,0x00,0x80,0x03,0x00,0x03,0x00, 0x00,0x22,0x00,0xc0,0x01,0x00,0x02,0x00,0x00,0x22,0x00,0x60,0x00,0x00,0x02, 0x00,0x00,0x22,0x00,0x80,0x00,0x00,0x02,0x00,0x00,0x22,0x00,0x9c,0x0c,0x00, 0x02,0x00,0x00,0x12,0x00,0xf8,0x0f,0x00,0x04,0x00,0x00,0x12,0x00,0x80,0x01, 0x00,0x04,0x00,0x00,0x11,0x00,0xb8,0x1d,0x00,0x04,0x00,0x00,0x11,0x00,0x98, 0x38,0x00,0x04,0x00,0x00,0x11,0x00,0xcc,0x30,0x00,0x04,0x00,0x00,0x11,0x00, 0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00,0xf8,0x0f,0x00,0x04,0x00,0x00,0x09, 0x00,0x18,0x18,0x00,0x08,0x00,0x80,0x08,0x00,0xf8,0x1f,0x00,0x08,0x00,0x80, 0x08,0x00,0x10,0x0f,0x00,0x08,0x00,0x80,0x08,0x00,0x30,0x04,0x00,0x08,0x00, 0x80,0x08,0x00,0xe0,0x07,0x00,0x08,0x00,0x80,0x08,0x00,0x00,0x00,0x00,0x08, 0x00,0x80,0x08,0x00,0x80,0x00,0x00,0x08,0x00,0x40,0x04,0x00,0xfc,0x00,0x00, 0x10,0x00,0x40,0x04,0x00,0xf8,0x1f,0x00,0x10,0x00,0x40,0x04,0x00,0xc0,0x00, 0x00,0x10,0x00,0x40,0x04,0x80,0xfe,0xff,0x00,0x10,0x00,0x40,0x04,0x80,0x83, 0xe0,0x00,0x10,0x00,0x40,0x04,0x80,0x83,0xc0,0x00,0x10,0x00,0x20,0x02,0x00, 0xff,0xff,0x00,0x20,0x00,0x20,0x02,0x00,0x87,0x60,0x00,0x20,0x00,0x20,0x02, 0x00,0x86,0x3c,0x00,0x20,0x00,0x20,0x02,0x00,0xfe,0x3f,0x00,0x20,0x00,0x20, 0x02,0x20,0x80,0x00,0x00,0x20,0x00,0x20,0x02,0xe0,0xfc,0xff,0x01,0x20,0x00, 0x10,0x02,0xc0,0xff,0xff,0x03,0x20,0x00,0x10,0x01,0x00,0x80,0x00,0x00,0x40, 0x00,0x10,0x01,0x00,0x80,0x00,0x00,0x40,0x00,0x10,0x01,0x00,0x80,0x00,0x00, 0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00, 0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00, 0x00,0x00,0x40,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00, 0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0xc0,0x00,0x80,0xff, 0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_eastern_bitmaps/bigsolidR_l.xbm0000644000175000017500000000630012274270516016737 00000000000000#define bigsolidR_l_width 64 #define bigsolidR_l_height 64 static unsigned char bigsolidR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xf0, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0xff, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/pawn_l.xbm0000644000175000017500000000522612274270516015774 00000000000000#define pawn_l_width 64 #define pawn_l_height 64 static char pawn_l_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x0e,0x00,0x00,0x00,0x00,0x00,0xf0,0x80, 0x70,0x00,0x00,0x00,0x00,0x00,0x0f,0xc0,0x81,0x03,0x00,0x00,0x00,0xf0,0x00, 0x38,0x0e,0x1c,0x00,0x00,0x00,0x08,0x00,0x07,0x70,0x60,0x00,0x00,0x00,0x0c, 0xe0,0x00,0x80,0x83,0x00,0x00,0x00,0x14,0x1c,0x00,0x00,0x1c,0x01,0x00,0x00, 0x94,0x03,0x80,0x30,0xe0,0x01,0x00,0x00,0x64,0x00,0xc0,0x3c,0x00,0x03,0x00, 0x00,0x22,0x00,0xc4,0x1e,0x00,0x02,0x00,0x00,0x22,0x00,0x86,0x00,0x00,0x02, 0x00,0x00,0x22,0x00,0xc3,0xff,0x00,0x02,0x00,0x00,0x22,0x80,0xf9,0x7f,0x00, 0x02,0x00,0x00,0x12,0xc0,0xff,0x00,0x00,0x04,0x00,0x00,0x12,0xe0,0x83,0x00, 0x00,0x04,0x00,0x00,0x11,0x00,0xc4,0x3f,0x00,0x04,0x00,0x00,0x11,0x00,0xf6, 0x7f,0x00,0x04,0x00,0x00,0x11,0x00,0xff,0xe0,0x00,0x04,0x00,0x00,0x11,0x80, 0xcf,0xe0,0x00,0x04,0x00,0x00,0x11,0x80,0xc0,0x70,0x00,0x04,0x00,0x00,0x09, 0x00,0xc0,0x1c,0x00,0x08,0x00,0x80,0x08,0x00,0xc0,0x0f,0x00,0x08,0x00,0x80, 0x08,0x00,0xf8,0x33,0x00,0x08,0x00,0x80,0x08,0x00,0x7f,0x78,0x00,0x08,0x00, 0x80,0x08,0x80,0x07,0x1c,0x00,0x08,0x00,0x80,0x08,0x00,0x00,0x06,0x00,0x08, 0x00,0x80,0x08,0x00,0x00,0x01,0x00,0x08,0x00,0x40,0x04,0x00,0x18,0x00,0x00, 0x10,0x00,0x40,0x04,0x00,0x0c,0x00,0x00,0x10,0x00,0x40,0x04,0x00,0x0e,0x1f, 0x00,0x10,0x00,0x40,0x04,0x00,0xf7,0x0f,0x00,0x10,0x00,0x40,0x04,0x80,0xff, 0x07,0x00,0x10,0x00,0x40,0x04,0x00,0x06,0x06,0x00,0x10,0x00,0x20,0x02,0x00, 0x0c,0xfe,0x00,0x20,0x00,0x20,0x02,0x80,0xff,0xff,0x03,0x20,0x00,0x20,0x02, 0xe0,0xff,0x03,0x00,0x20,0x00,0x20,0x02,0xf0,0x00,0x04,0x00,0x20,0x00,0x20, 0x02,0x20,0x0e,0x0c,0x00,0x20,0x00,0x20,0x02,0x00,0x0f,0x1c,0x00,0x20,0x00, 0x10,0x02,0x00,0x03,0x78,0x00,0x20,0x00,0x10,0x01,0xc0,0x01,0x70,0x00,0x40, 0x00,0x10,0x01,0x00,0x00,0x60,0x00,0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x00, 0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00, 0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00, 0x00,0x00,0x40,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00, 0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0xc0,0x00,0x80,0xff, 0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_eastern_bitmaps/goldR_l.xbm0000644000175000017500000000626412274270516016101 00000000000000#define goldR_l_width 64 #define goldR_l_height 64 static unsigned char goldR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x0f, 0x80, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x0b, 0xc0, 0x01, 0x00, 0x20, 0x48, 0x00, 0x00, 0xc3, 0xe0, 0x01, 0x00, 0x20, 0x48, 0x00, 0x00, 0xe3, 0x60, 0x03, 0x00, 0x10, 0x48, 0x00, 0x00, 0x63, 0x60, 0x18, 0x00, 0x10, 0x88, 0x00, 0x00, 0x26, 0x60, 0x1c, 0x00, 0x10, 0x90, 0x00, 0xe0, 0xe7, 0x63, 0x0c, 0x00, 0x10, 0x90, 0x00, 0xf0, 0xff, 0x63, 0x0c, 0x00, 0x10, 0x90, 0x00, 0x00, 0x06, 0x60, 0x04, 0x00, 0x10, 0x90, 0x00, 0x00, 0x60, 0x20, 0x1f, 0x00, 0x08, 0x90, 0x00, 0x00, 0x7c, 0xa0, 0x0f, 0x00, 0x08, 0x10, 0x01, 0x00, 0x1c, 0x21, 0x00, 0x00, 0x08, 0x10, 0x01, 0x00, 0x06, 0x63, 0x0c, 0x00, 0x08, 0x20, 0x01, 0x00, 0x66, 0xe3, 0x1f, 0x00, 0x08, 0x20, 0x01, 0x00, 0x7e, 0xe0, 0x06, 0x00, 0x08, 0x20, 0x01, 0x00, 0x5c, 0x20, 0x03, 0x00, 0x04, 0x20, 0x01, 0x00, 0xc0, 0x61, 0x03, 0x00, 0x04, 0x20, 0x01, 0x00, 0xe0, 0x63, 0x01, 0x00, 0x04, 0x20, 0x02, 0x00, 0x78, 0x60, 0x01, 0x00, 0x04, 0x20, 0x02, 0x00, 0x18, 0x60, 0x00, 0x00, 0x04, 0x40, 0x02, 0x00, 0x08, 0x20, 0x00, 0x00, 0x04, 0x40, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0xfc, 0xff, 0x01, 0x00, 0x02, 0x40, 0x02, 0x00, 0xfe, 0xff, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x00, 0x03, 0x00, 0x00, 0x02, 0x40, 0x04, 0x00, 0x38, 0x3b, 0x00, 0x00, 0x02, 0x80, 0x04, 0x00, 0x1c, 0x73, 0x00, 0x00, 0x02, 0x80, 0x04, 0x00, 0x0c, 0x63, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xe0, 0x1f, 0x00, 0x00, 0x01, 0x80, 0x04, 0x80, 0xfb, 0x1f, 0x0e, 0x00, 0x01, 0x80, 0x04, 0x00, 0x07, 0x83, 0x07, 0x00, 0x01, 0x80, 0x08, 0x00, 0xdc, 0xcf, 0x03, 0x00, 0x01, 0x80, 0x08, 0x00, 0x98, 0xe7, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0x70, 0x70, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0x60, 0x38, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0xc0, 0x1c, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0xc0, 0x07, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x03, 0x00, 0x80, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x80, 0x07, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0xe0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/knight_l.xbm0000644000175000017500000000523412274270516016312 00000000000000#define knight_l_width 64 #define knight_l_height 64 static char knight_l_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x0e,0x00,0x00,0x00,0x00,0x00,0xf0,0x80, 0x70,0x00,0x00,0x00,0x00,0x00,0x0f,0xc0,0x81,0x03,0x00,0x00,0x00,0xf0,0x00, 0x38,0x0e,0x1c,0x00,0x00,0x00,0x08,0x00,0x07,0x70,0x60,0x00,0x00,0x00,0x0c, 0xe0,0x00,0x80,0x83,0x00,0x00,0x00,0x14,0x1c,0x00,0x00,0x1c,0x01,0x00,0x00, 0x94,0x03,0x00,0x10,0xe0,0x01,0x00,0x00,0x64,0x00,0x04,0x18,0x00,0x03,0x00, 0x00,0x22,0x00,0x06,0x18,0x00,0x02,0x00,0x00,0x22,0x00,0x06,0x18,0x00,0x02, 0x00,0x00,0x22,0xc0,0x0f,0xff,0x00,0x02,0x00,0x00,0x22,0xe0,0x1f,0x7f,0x00, 0x02,0x00,0x00,0x12,0x70,0x86,0x19,0x00,0x04,0x00,0x00,0x12,0x00,0x06,0xfc, 0x01,0x04,0x00,0x00,0x11,0x00,0x07,0xff,0x00,0x04,0x00,0x00,0x11,0x00,0x87, 0x1b,0x00,0x04,0x00,0x00,0x11,0x80,0x07,0xfc,0x01,0x04,0x00,0x00,0x11,0xc0, 0x07,0xff,0x00,0x04,0x00,0x00,0x11,0xe0,0x86,0x19,0x00,0x04,0x00,0x00,0x09, 0x60,0x06,0x38,0x02,0x08,0x00,0x80,0x08,0x20,0x87,0xff,0x07,0x08,0x00,0x80, 0x08,0x00,0xc7,0xff,0x07,0x08,0x00,0x80,0x08,0x00,0x46,0x00,0x00,0x08,0x00, 0x80,0x08,0x00,0x02,0x00,0x00,0x08,0x00,0x80,0x08,0x00,0x00,0x00,0x00,0x08, 0x00,0x80,0x08,0x00,0x00,0x00,0x00,0x08,0x00,0x40,0x04,0x00,0xfa,0x0f,0x00, 0x10,0x00,0x40,0x04,0x00,0xfe,0x07,0x00,0x10,0x00,0x40,0x04,0x00,0xc6,0x00, 0x00,0x10,0x00,0x40,0x04,0x00,0xfe,0x0f,0x00,0x10,0x00,0x40,0x04,0x00,0xc6, 0x00,0x00,0x10,0x00,0x40,0x04,0x00,0xfe,0x0f,0x00,0x10,0x00,0x20,0x02,0x00, 0xc6,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0xf6,0x3f,0x00,0x20,0x00,0x20,0x02, 0x00,0xfe,0xff,0x07,0x20,0x00,0x20,0x02,0x00,0x00,0xfe,0x0f,0x20,0x00,0x20, 0x02,0x00,0x00,0x00,0x0e,0x20,0x00,0x20,0x02,0x10,0x31,0x06,0x0c,0x20,0x00, 0x10,0x02,0x30,0x63,0x0e,0x0c,0x20,0x00,0x10,0x01,0x70,0xe7,0x1c,0x0e,0x40, 0x00,0x10,0x01,0x70,0xe7,0x1c,0x06,0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x03, 0x40,0x00,0x10,0x01,0x00,0x00,0x8c,0x03,0x40,0x00,0x20,0x01,0x00,0x00,0x8c, 0x01,0x40,0x00,0x20,0x01,0x00,0x00,0xf8,0x00,0x40,0x00,0x20,0x01,0x00,0x00, 0xf8,0x00,0x40,0x00,0xa0,0x00,0x00,0x00,0x78,0x00,0x80,0x00,0xc0,0x00,0x00, 0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0xc0,0x00,0x80,0xff, 0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_eastern_bitmaps/bishopPR_l.xbm0000644000175000017500000000627512274270516016562 00000000000000#define bishopPR_l_width 64 #define bishopPR_l_height 64 static unsigned char bishopPR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0xc0, 0x3f, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0xf0, 0xff, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0xf0, 0x83, 0x03, 0x00, 0x20, 0x44, 0x00, 0x00, 0x38, 0x18, 0x07, 0x00, 0x20, 0x48, 0x00, 0x00, 0x1c, 0x38, 0x07, 0x00, 0x20, 0x48, 0x00, 0x00, 0x0c, 0xf8, 0x03, 0x00, 0x20, 0x48, 0x00, 0x00, 0x0c, 0xf0, 0x03, 0x00, 0x20, 0x48, 0x00, 0x00, 0xf8, 0x0f, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0xf8, 0x06, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x10, 0x88, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0xc0, 0xe1, 0x03, 0x00, 0x10, 0x90, 0x00, 0x00, 0xfe, 0xff, 0x03, 0x00, 0x10, 0x90, 0x00, 0x00, 0xfc, 0xbf, 0x03, 0x00, 0x10, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x08, 0x10, 0x01, 0x80, 0x0f, 0x30, 0x00, 0x00, 0x08, 0x10, 0x01, 0xf0, 0x01, 0x78, 0x00, 0x00, 0x08, 0x20, 0x01, 0x78, 0x00, 0xd8, 0x81, 0x00, 0x08, 0x20, 0x01, 0x3c, 0x30, 0x98, 0xe1, 0x00, 0x08, 0x20, 0x01, 0x1c, 0x7e, 0x98, 0x71, 0x00, 0x04, 0x20, 0x01, 0xfc, 0x37, 0xf8, 0x31, 0x00, 0x04, 0x20, 0x01, 0xf8, 0x30, 0x3c, 0x38, 0x00, 0x04, 0x20, 0x02, 0x00, 0x16, 0x3f, 0x1c, 0x00, 0x04, 0x20, 0x02, 0x80, 0xf3, 0x1b, 0x0e, 0x00, 0x04, 0x40, 0x02, 0xe0, 0xe1, 0x19, 0x0f, 0x00, 0x04, 0x40, 0x02, 0xe0, 0xf0, 0xb0, 0x03, 0x00, 0x02, 0x40, 0x02, 0x00, 0x7c, 0xc0, 0x01, 0x00, 0x02, 0x40, 0x02, 0x00, 0x7e, 0xf0, 0x1f, 0x00, 0x02, 0x40, 0x02, 0x80, 0x6f, 0xf8, 0x7f, 0x00, 0x02, 0x40, 0x04, 0xc0, 0x63, 0xfc, 0x03, 0x00, 0x02, 0x80, 0x04, 0xe0, 0x61, 0x3e, 0x00, 0x00, 0x02, 0x80, 0x04, 0x70, 0x60, 0x80, 0x03, 0x00, 0x01, 0x80, 0x04, 0x00, 0x70, 0xf0, 0x03, 0x00, 0x01, 0x80, 0x04, 0x00, 0x70, 0x70, 0x03, 0x00, 0x01, 0x80, 0x04, 0x00, 0x70, 0x00, 0x03, 0x00, 0x01, 0x80, 0x08, 0x00, 0x70, 0xc0, 0x1f, 0x00, 0x01, 0x80, 0x08, 0x00, 0x70, 0xf0, 0x0f, 0x00, 0x01, 0x00, 0x09, 0x00, 0xf0, 0x30, 0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0xe0, 0x00, 0x03, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x06, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x80, 0x07, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0xe0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/rook_l.xbm0000644000175000017500000000626112274270516016001 00000000000000#define rook_l_width 64 #define rook_l_height 64 static unsigned char rook_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x81, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x01, 0x3c, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xc0, 0x01, 0xc0, 0x03, 0x00, 0x00, 0x1c, 0x00, 0x3c, 0x1e, 0x00, 0x1c, 0x00, 0x00, 0x04, 0xc0, 0x03, 0xe0, 0x01, 0x10, 0x00, 0x00, 0x06, 0x38, 0x00, 0x00, 0x0e, 0x60, 0x00, 0x00, 0x8a, 0x07, 0x00, 0x00, 0xf0, 0x40, 0x00, 0x00, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x4f, 0x00, 0x00, 0x12, 0x00, 0x00, 0x07, 0x00, 0x70, 0x00, 0x00, 0x12, 0x00, 0xf0, 0xc7, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0xfe, 0x77, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0x03, 0x3c, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x20, 0x6c, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x60, 0xcc, 0x05, 0x80, 0x00, 0x00, 0x09, 0xe0, 0x67, 0x88, 0x0d, 0x80, 0x00, 0x00, 0x09, 0xf0, 0x67, 0x18, 0x0c, 0x80, 0x00, 0x00, 0x09, 0x10, 0xe6, 0xfb, 0x0f, 0x00, 0x01, 0x80, 0x08, 0x00, 0xf6, 0xf7, 0x07, 0x00, 0x01, 0x80, 0x08, 0xb8, 0xff, 0x06, 0x00, 0x00, 0x01, 0x80, 0x04, 0xf0, 0x6f, 0x8c, 0x01, 0x00, 0x01, 0x80, 0x04, 0x00, 0x62, 0xcc, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x63, 0x7c, 0x08, 0x00, 0x01, 0x80, 0x04, 0x00, 0x63, 0xec, 0x0c, 0x00, 0x01, 0x80, 0x04, 0x80, 0x65, 0x8c, 0x09, 0x00, 0x02, 0x40, 0x04, 0xc0, 0x78, 0x18, 0x08, 0x00, 0x02, 0x40, 0x02, 0x70, 0x30, 0xf0, 0x0f, 0x00, 0x02, 0x40, 0x02, 0x00, 0x00, 0xe0, 0x07, 0x00, 0x02, 0x40, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x80, 0x00, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0xfc, 0x0f, 0x00, 0x00, 0x04, 0x20, 0x02, 0x00, 0xf8, 0x1f, 0x00, 0x00, 0x04, 0x20, 0x02, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x04, 0x20, 0x01, 0x80, 0xfe, 0xff, 0x00, 0x00, 0x04, 0x20, 0x01, 0x80, 0x83, 0xe0, 0x00, 0x00, 0x04, 0x20, 0x01, 0x80, 0x83, 0xc0, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0xff, 0x7f, 0x00, 0x00, 0x08, 0x20, 0x01, 0x00, 0xc7, 0x60, 0x00, 0x00, 0x08, 0x10, 0x01, 0x00, 0xc6, 0x3c, 0x00, 0x00, 0x08, 0x10, 0x01, 0x00, 0xfe, 0x3f, 0x00, 0x00, 0x08, 0x90, 0x00, 0x20, 0xc0, 0x00, 0x00, 0x00, 0x08, 0x90, 0x00, 0xe0, 0xfc, 0xff, 0x01, 0x00, 0x08, 0x90, 0x00, 0xc0, 0xff, 0xff, 0x03, 0x00, 0x10, 0x90, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x10, 0x88, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/smallsolid_l.xbm0000644000175000017500000000525012274270516017167 00000000000000#define smallsolid_l_width 64 #define smallsolid_l_height 64 static char smallsolid_l_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x0f,0x00,0x00,0x00,0x00,0x00,0xf0,0xff, 0x7f,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0xff,0x03,0x00,0x00,0x00,0xf0,0xff, 0xff,0xff,0x1f,0x00,0x00,0x00,0xf8,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0xfc, 0xff,0xff,0xff,0xff,0x00,0x00,0x00,0xfc,0xff,0xff,0xff,0xff,0x01,0x00,0x00, 0xfc,0xff,0xff,0xff,0xff,0x01,0x00,0x00,0xfc,0xff,0xff,0xff,0xff,0x03,0x00, 0x00,0xfe,0xff,0xff,0xff,0xff,0x03,0x00,0x00,0xfe,0xff,0xff,0xff,0xff,0x03, 0x00,0x00,0xfe,0xff,0xff,0xff,0xff,0x03,0x00,0x00,0xfe,0xff,0xff,0xff,0xff, 0x03,0x00,0x00,0xfe,0xff,0xff,0xff,0xff,0x07,0x00,0x00,0xfe,0xff,0xff,0xff, 0xff,0x07,0x00,0x00,0xff,0xff,0xff,0xff,0xff,0x07,0x00,0x00,0xff,0xff,0xff, 0xff,0xff,0x07,0x00,0x00,0xff,0xff,0xff,0xff,0xff,0x07,0x00,0x00,0xff,0xff, 0xff,0xff,0xff,0x07,0x00,0x00,0xff,0xff,0xff,0xff,0xff,0x07,0x00,0x00,0xff, 0xff,0xff,0xff,0xff,0x0f,0x00,0x80,0xff,0xff,0xff,0xff,0xff,0x0f,0x00,0x80, 0xff,0xff,0xff,0xff,0xff,0x0f,0x00,0x80,0xff,0xff,0xff,0xff,0xff,0x0f,0x00, 0x80,0xff,0xff,0xff,0xff,0xff,0x0f,0x00,0x80,0xff,0xff,0xff,0xff,0xff,0x0f, 0x00,0x80,0xff,0xff,0xff,0xff,0xff,0x0f,0x00,0xc0,0xff,0xff,0xff,0xff,0xff, 0x1f,0x00,0xc0,0xff,0xff,0xff,0xff,0xff,0x1f,0x00,0xc0,0xff,0xff,0xff,0xff, 0xff,0x1f,0x00,0xc0,0xff,0xff,0xff,0xff,0xff,0x1f,0x00,0xc0,0xff,0xff,0xff, 0xff,0xff,0x1f,0x00,0xc0,0xff,0xff,0xff,0xff,0xff,0x1f,0x00,0xe0,0xff,0xff, 0xff,0xff,0xff,0x3f,0x00,0xe0,0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0xe0,0xff, 0xff,0xff,0xff,0xff,0x3f,0x00,0xe0,0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0xe0, 0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0xe0,0xff,0xff,0xff,0xff,0xff,0x3f,0x00, 0xf0,0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0xf0,0xff,0xff,0xff,0xff,0xff,0x7f, 0x00,0xf0,0xff,0xff,0xff,0xff,0xff,0x7f,0x00,0xf0,0xff,0xff,0xff,0xff,0xff, 0x7f,0x00,0xf0,0xff,0xff,0xff,0xff,0xff,0x7f,0x00,0xe0,0xff,0xff,0xff,0xff, 0xff,0x7f,0x00,0xe0,0xff,0xff,0xff,0xff,0xff,0x7f,0x00,0xe0,0xff,0xff,0xff, 0xff,0xff,0x7f,0x00,0xe0,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0xc0,0xff,0xff, 0xff,0xff,0xff,0xff,0x00,0xc0,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0x80,0xff, 0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_eastern_bitmaps/pawnP_l.xbm0000644000175000017500000000523112274270516016110 00000000000000#define pawnP_l_width 64 #define pawnP_l_height 64 static char pawnP_l_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x0e,0x00,0x00,0x00,0x00,0x00,0xf0,0x80, 0x70,0x00,0x00,0x00,0x00,0x00,0x0f,0xc0,0x81,0x03,0x00,0x00,0x00,0xf0,0x00, 0x38,0x0e,0x1c,0x00,0x00,0x00,0x08,0x00,0x07,0x70,0x60,0x00,0x00,0x00,0x0c, 0xe0,0x00,0x80,0x83,0x00,0x00,0x00,0x14,0x1c,0x00,0x00,0x1c,0x01,0x00,0x00, 0x94,0x03,0x00,0x00,0xe0,0x01,0x00,0x00,0x64,0x00,0x00,0x00,0x00,0x03,0x00, 0x00,0x22,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x02, 0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x22,0x00,0x00,0x00,0x00, 0x02,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x12,0x00,0x00,0x00, 0x00,0x04,0x00,0x00,0x11,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00,0x00, 0x00,0x00,0x04,0x00,0x00,0x11,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00, 0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x09, 0x00,0x03,0x00,0x00,0x08,0x00,0x80,0x08,0x80,0x07,0x00,0x00,0x08,0x00,0x80, 0x08,0x80,0x07,0x18,0x00,0x08,0x00,0x80,0x08,0x00,0x07,0x1e,0x00,0x08,0x00, 0x80,0x08,0x00,0x87,0x0f,0x00,0x08,0x00,0x80,0x08,0x00,0xee,0x07,0x00,0x08, 0x00,0x80,0x08,0x00,0xfe,0x01,0x00,0x08,0x00,0x40,0x04,0x00,0x7c,0x00,0x00, 0x10,0x00,0x40,0x04,0x00,0x38,0x00,0x00,0x10,0x00,0x40,0x04,0x00,0x18,0x00, 0x00,0x10,0x00,0x40,0x04,0x00,0x0c,0x00,0x00,0x10,0x00,0x40,0x04,0x00,0x0c, 0x00,0x00,0x10,0x00,0x40,0x04,0x00,0x1c,0x06,0x00,0x10,0x00,0x20,0x02,0x00, 0xf8,0x0f,0x00,0x20,0x00,0x20,0x02,0x00,0xf8,0x0f,0x00,0x20,0x00,0x20,0x02, 0x00,0xf0,0x03,0x00,0x20,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x20,0x00,0x20, 0x02,0x00,0x00,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x20,0x00, 0x10,0x02,0x00,0x00,0x00,0x00,0x20,0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40, 0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x00, 0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00, 0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00, 0x00,0x00,0x40,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00, 0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0xc0,0x00,0x80,0xff, 0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_eastern_bitmaps/king_l.xbm0000644000175000017500000000626112274270516015757 00000000000000#define king_l_width 64 #define king_l_height 64 static unsigned char king_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x81, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x01, 0x3c, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xc0, 0x01, 0xc0, 0x03, 0x00, 0x00, 0x1c, 0x00, 0x3c, 0x1e, 0x00, 0x1c, 0x00, 0x00, 0x04, 0xc0, 0x03, 0xe0, 0x01, 0x10, 0x00, 0x00, 0x06, 0x38, 0x00, 0x00, 0x0e, 0x60, 0x00, 0x00, 0x8a, 0x07, 0x00, 0x00, 0xf0, 0x40, 0x00, 0x00, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x4f, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x12, 0x00, 0x00, 0x40, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0xf8, 0xff, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0xfe, 0x7f, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0xc7, 0x01, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x80, 0x01, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x80, 0x01, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x80, 0x39, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0xf0, 0x1f, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0xfc, 0x07, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0x80, 0x01, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x80, 0x01, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x80, 0x01, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xf8, 0x7f, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xff, 0xff, 0x01, 0x00, 0x01, 0x80, 0x04, 0x00, 0x03, 0x00, 0x00, 0x00, 0x02, 0x40, 0x04, 0x00, 0x04, 0x10, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x06, 0x18, 0x00, 0x00, 0x02, 0x40, 0x02, 0x80, 0x06, 0x1e, 0x00, 0x00, 0x02, 0x40, 0x02, 0x80, 0xc6, 0x07, 0x00, 0x00, 0x02, 0x40, 0x02, 0xc0, 0x86, 0x03, 0x00, 0x00, 0x02, 0x40, 0x02, 0xc0, 0x04, 0x3a, 0x00, 0x00, 0x04, 0x20, 0x02, 0x60, 0x07, 0x7e, 0x00, 0x00, 0x04, 0x20, 0x02, 0xf8, 0xc7, 0x66, 0x00, 0x00, 0x04, 0x20, 0x01, 0x30, 0xc4, 0x60, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0x84, 0x38, 0x00, 0x00, 0x04, 0x20, 0x01, 0xf0, 0x05, 0x3e, 0x00, 0x00, 0x04, 0x20, 0x01, 0xf8, 0x04, 0x06, 0x00, 0x00, 0x08, 0x20, 0x01, 0x20, 0x06, 0x60, 0x00, 0x00, 0x08, 0x10, 0x01, 0x30, 0xc6, 0xff, 0x0f, 0x00, 0x08, 0x10, 0x01, 0x30, 0xc6, 0xe7, 0x07, 0x00, 0x08, 0x90, 0x00, 0x38, 0x06, 0x64, 0x00, 0x00, 0x08, 0x90, 0x00, 0x18, 0x06, 0xc6, 0x00, 0x00, 0x08, 0x90, 0x00, 0xc0, 0x06, 0xc7, 0x00, 0x00, 0x10, 0x90, 0x00, 0x80, 0x07, 0xc3, 0x00, 0x00, 0x10, 0x90, 0x00, 0x80, 0x03, 0xd0, 0x00, 0x00, 0x10, 0x88, 0x00, 0x00, 0x01, 0xf0, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/smallsolidR_l.xbm0000644000175000017500000000630612274270516017314 00000000000000#define smallsolidR_l_width 64 #define smallsolidR_l_height 64 static unsigned char smallsolidR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0x07, 0x00, 0x00, 0xf0, 0xff, 0xff, 0xff, 0xff, 0x07, 0x00, 0x00, 0xf0, 0xff, 0xff, 0xff, 0xff, 0x07, 0x00, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0x07, 0x00, 0x00, 0xc0, 0xff, 0xff, 0xff, 0xff, 0x07, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/bigsolid_l.xbm0000644000175000017500000000627512274270516016630 00000000000000#define bigsolid_l_width 64 #define bigsolid_l_height 64 static unsigned char bigsolid_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xff, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0x03, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/knightP_l.xbm0000644000175000017500000000523712274270516016435 00000000000000#define knightP_l_width 64 #define knightP_l_height 64 static char knightP_l_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x0e,0x00,0x00,0x00,0x00,0x00,0xf0,0x80, 0x70,0x00,0x00,0x00,0x00,0x00,0x0f,0xc0,0x81,0x03,0x00,0x00,0x00,0xf0,0x00, 0x38,0x0e,0x1c,0x00,0x00,0x00,0x08,0x00,0x07,0x70,0x60,0x00,0x00,0x00,0x0c, 0xe0,0x00,0x80,0x83,0x00,0x00,0x00,0x14,0x1c,0x00,0x00,0x1c,0x01,0x00,0x00, 0x94,0x03,0x00,0x00,0xe0,0x01,0x00,0x00,0x64,0x00,0x00,0x00,0x00,0x03,0x00, 0x00,0x22,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x02, 0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x22,0x00,0x00,0x00,0x00, 0x02,0x00,0x00,0x12,0x00,0x80,0x03,0x00,0x04,0x00,0x00,0x12,0x00,0x80,0x03, 0x00,0x04,0x00,0x00,0x11,0x00,0x80,0x03,0x00,0x04,0x00,0x00,0x11,0x00,0xc0, 0x03,0x00,0x04,0x00,0x00,0x11,0x00,0xc0,0x01,0x00,0x04,0x00,0x00,0x11,0x00, 0xc0,0x01,0x00,0x04,0x00,0x00,0x11,0x00,0xe0,0x07,0x00,0x04,0x00,0x00,0x09, 0x00,0xe0,0x06,0x00,0x08,0x00,0x80,0x08,0x00,0x70,0x0c,0x00,0x08,0x00,0x80, 0x08,0x00,0x38,0x18,0x00,0x08,0x00,0x80,0x08,0x00,0x1c,0x70,0x00,0x08,0x00, 0x80,0x08,0x00,0x06,0xe0,0x00,0x08,0x00,0x80,0x08,0x00,0x03,0xc7,0x03,0x08, 0x00,0x80,0x08,0xc0,0xc1,0x87,0x0f,0x08,0x00,0x40,0x04,0xe0,0xe0,0x01,0x3f, 0x10,0x00,0x40,0x04,0x30,0x00,0x00,0x7c,0x10,0x00,0x40,0x04,0x1e,0x00,0x1f, 0xf8,0x10,0x00,0x40,0x04,0x00,0xf0,0x1f,0x00,0x10,0x00,0x40,0x04,0x00,0x3c, 0x18,0x00,0x10,0x00,0x40,0x04,0x00,0x00,0x0e,0x00,0x10,0x00,0x20,0x02,0x00, 0xe0,0x07,0x00,0x20,0x00,0x20,0x02,0x00,0xfe,0x07,0x00,0x20,0x00,0x20,0x02, 0x00,0x87,0x03,0x00,0x20,0x00,0x20,0x02,0x80,0xc3,0x01,0x00,0x20,0x00,0x20, 0x02,0x00,0xe7,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x7e,0x00,0x00,0x20,0x00, 0x10,0x02,0x00,0x78,0x00,0x00,0x20,0x00,0x10,0x01,0x00,0x30,0x00,0x00,0x40, 0x00,0x10,0x01,0x00,0x30,0x00,0x00,0x40,0x00,0x10,0x01,0x00,0xf0,0x1f,0x00, 0x40,0x00,0x10,0x01,0x00,0xc0,0x0f,0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00, 0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00, 0x00,0x00,0x40,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00, 0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0xc0,0x00,0x80,0xff, 0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_eastern_bitmaps/gold_l.xbm0000644000175000017500000000626112274270516015754 00000000000000#define gold_l_width 64 #define gold_l_height 64 static unsigned char gold_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x81, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x01, 0x3c, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xc0, 0x01, 0xc0, 0x03, 0x00, 0x00, 0x1c, 0x00, 0x3c, 0x1e, 0x00, 0x1c, 0x00, 0x00, 0x04, 0xc0, 0x03, 0xe0, 0x01, 0x10, 0x00, 0x00, 0x06, 0x38, 0x00, 0x00, 0x0e, 0x60, 0x00, 0x00, 0x8a, 0x07, 0x00, 0x00, 0xf0, 0x40, 0x00, 0x00, 0x7a, 0x00, 0xc0, 0x00, 0x00, 0x4f, 0x00, 0x00, 0x12, 0x00, 0xe0, 0x03, 0x00, 0x70, 0x00, 0x00, 0x12, 0x00, 0x38, 0x03, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0x1c, 0x06, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0x0e, 0x0e, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0xe7, 0x19, 0x00, 0x80, 0x00, 0x00, 0x09, 0xc0, 0xf3, 0x3b, 0x00, 0x80, 0x00, 0x00, 0x09, 0xe0, 0xc1, 0xe0, 0x00, 0x80, 0x00, 0x00, 0x09, 0x70, 0xf8, 0xdf, 0x01, 0x80, 0x00, 0x00, 0x09, 0x00, 0xf8, 0x07, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0xc6, 0x30, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0xce, 0x38, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xdc, 0x1c, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xff, 0x7f, 0x00, 0x00, 0x01, 0x80, 0x04, 0x80, 0xff, 0x3f, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x40, 0x04, 0x00, 0x04, 0x10, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x06, 0x18, 0x00, 0x00, 0x02, 0x40, 0x02, 0x80, 0x06, 0x1e, 0x00, 0x00, 0x02, 0x40, 0x02, 0x80, 0xc6, 0x07, 0x00, 0x00, 0x02, 0x40, 0x02, 0xc0, 0x86, 0x03, 0x00, 0x00, 0x02, 0x40, 0x02, 0xc0, 0x04, 0x3a, 0x00, 0x00, 0x04, 0x20, 0x02, 0x60, 0x07, 0x7e, 0x00, 0x00, 0x04, 0x20, 0x02, 0xf8, 0xc7, 0x66, 0x00, 0x00, 0x04, 0x20, 0x01, 0x30, 0xc6, 0x60, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0x84, 0x38, 0x00, 0x00, 0x04, 0x20, 0x01, 0xf0, 0x05, 0x3e, 0x00, 0x00, 0x04, 0x20, 0x01, 0xf8, 0x04, 0x06, 0x00, 0x00, 0x08, 0x20, 0x01, 0x20, 0x06, 0x60, 0x00, 0x00, 0x08, 0x10, 0x01, 0x30, 0xc6, 0xff, 0x0f, 0x00, 0x08, 0x10, 0x01, 0x30, 0xc6, 0xe7, 0x07, 0x00, 0x08, 0x90, 0x00, 0x38, 0x06, 0x64, 0x00, 0x00, 0x08, 0x90, 0x00, 0x18, 0x06, 0xc6, 0x00, 0x00, 0x08, 0x90, 0x00, 0xc0, 0x06, 0xc7, 0x00, 0x00, 0x10, 0x90, 0x00, 0x80, 0x07, 0xc3, 0x00, 0x00, 0x10, 0x90, 0x00, 0x80, 0x03, 0xd0, 0x00, 0x00, 0x10, 0x88, 0x00, 0x00, 0x01, 0xf0, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/pawnR_l.xbm0000644000175000017500000000626412274270516016121 00000000000000#define pawnR_l_width 64 #define pawnR_l_height 64 static unsigned char pawnR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x06, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x0e, 0x80, 0x03, 0x80, 0x00, 0x20, 0x04, 0x00, 0x1e, 0xc0, 0x00, 0x40, 0x00, 0x20, 0x04, 0x00, 0x38, 0xf0, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x30, 0x70, 0x04, 0x40, 0x00, 0x40, 0x04, 0x00, 0x20, 0x00, 0x0f, 0x40, 0x00, 0x40, 0x04, 0x00, 0xc0, 0xff, 0x07, 0x40, 0x00, 0x40, 0x04, 0xc0, 0xff, 0xff, 0x01, 0x40, 0x00, 0x40, 0x04, 0x00, 0x7f, 0x30, 0x00, 0x40, 0x00, 0x40, 0x08, 0x00, 0x60, 0x60, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0xe0, 0xff, 0x01, 0x20, 0x00, 0x80, 0x08, 0x00, 0xf0, 0xef, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0xf8, 0x70, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x30, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x18, 0x00, 0x20, 0x00, 0x80, 0x10, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x80, 0x10, 0x00, 0x60, 0x00, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x38, 0xe0, 0x01, 0x10, 0x00, 0x00, 0x11, 0x00, 0x1e, 0xfe, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0xcc, 0x1f, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0xf0, 0x03, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x38, 0x03, 0x00, 0x10, 0x00, 0x00, 0x21, 0x00, 0x0e, 0x03, 0x01, 0x08, 0x00, 0x00, 0x22, 0x00, 0x07, 0xf3, 0x01, 0x08, 0x00, 0x00, 0x22, 0x00, 0x07, 0xff, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0xfe, 0x6f, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0xfc, 0x23, 0x00, 0x08, 0x00, 0x00, 0x24, 0x00, 0x00, 0xc1, 0x07, 0x08, 0x00, 0x00, 0x28, 0x00, 0x00, 0xff, 0x03, 0x08, 0x00, 0x00, 0x48, 0x00, 0xfe, 0x9f, 0x01, 0x04, 0x00, 0x00, 0x50, 0x00, 0xff, 0xc3, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0x00, 0x61, 0x00, 0x04, 0x00, 0x00, 0x60, 0x00, 0x78, 0x23, 0x00, 0x04, 0x00, 0x00, 0xc0, 0x00, 0x3c, 0x03, 0x00, 0x06, 0x00, 0x00, 0x00, 0x07, 0x0c, 0x01, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/bishop_l.xbm0000644000175000017500000000626712274270516016321 00000000000000#define bishop_l_width 64 #define bishop_l_height 64 static unsigned char bishop_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x81, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x01, 0x3c, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xc0, 0x01, 0xc0, 0x03, 0x00, 0x00, 0x1c, 0x00, 0x3c, 0x1e, 0x00, 0x1c, 0x00, 0x00, 0x04, 0xc0, 0x03, 0xe0, 0x01, 0x10, 0x00, 0x00, 0x06, 0x38, 0x00, 0x00, 0x0e, 0x60, 0x00, 0x00, 0x8a, 0x07, 0x00, 0x00, 0xf0, 0x40, 0x00, 0x00, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x4f, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x12, 0x00, 0x10, 0x00, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0xd8, 0x03, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0xfc, 0x03, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x8e, 0x03, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0xc6, 0x01, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0xe0, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x20, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0xff, 0x1f, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0xff, 0x31, 0x00, 0x00, 0x01, 0x80, 0x04, 0x80, 0x63, 0x30, 0x00, 0x00, 0x01, 0x80, 0x04, 0x80, 0xe1, 0x3f, 0x00, 0x00, 0x01, 0x80, 0x04, 0x80, 0xff, 0x3b, 0x00, 0x00, 0x01, 0x80, 0x04, 0x80, 0x6f, 0x30, 0x00, 0x00, 0x01, 0x80, 0x04, 0x80, 0xe1, 0x3f, 0x00, 0x00, 0x02, 0x40, 0x04, 0x80, 0xfd, 0x3f, 0x00, 0x00, 0x02, 0x40, 0x02, 0x80, 0x1f, 0x30, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x00, 0x20, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x00, 0x30, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x20, 0x02, 0x80, 0x03, 0x00, 0x00, 0x00, 0x04, 0x20, 0x02, 0x80, 0x03, 0x00, 0x00, 0x00, 0x04, 0x20, 0x01, 0xc0, 0x05, 0xfe, 0x01, 0x00, 0x04, 0x20, 0x01, 0xe0, 0x1e, 0xff, 0x01, 0x00, 0x04, 0x20, 0x01, 0x30, 0x1e, 0x00, 0x00, 0x00, 0x04, 0x20, 0x01, 0x18, 0x07, 0xf8, 0x0f, 0x00, 0x08, 0x20, 0x01, 0x80, 0x83, 0xff, 0x07, 0x00, 0x08, 0x10, 0x01, 0xc0, 0x81, 0x0f, 0x02, 0x00, 0x08, 0x10, 0x01, 0xe0, 0x00, 0x00, 0x02, 0x00, 0x08, 0x90, 0x00, 0xf0, 0x01, 0x00, 0x06, 0x00, 0x08, 0x90, 0x00, 0x98, 0x01, 0x0c, 0x06, 0x00, 0x08, 0x90, 0x00, 0x80, 0x01, 0x18, 0x06, 0x00, 0x10, 0x90, 0x00, 0x80, 0x01, 0x70, 0x06, 0x00, 0x10, 0x90, 0x00, 0x80, 0x01, 0xe0, 0x06, 0x00, 0x10, 0x88, 0x00, 0x80, 0x01, 0xc0, 0x07, 0x00, 0x10, 0x48, 0x00, 0x00, 0x01, 0x00, 0x03, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/knightPR_l.xbm0000644000175000017500000000627512274270516016562 00000000000000#define knightPR_l_width 64 #define knightPR_l_height 64 static unsigned char knightPR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0xf0, 0x03, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0xf8, 0x0f, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x0c, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x0c, 0x00, 0x80, 0x00, 0x20, 0x04, 0x00, 0x00, 0x1e, 0x00, 0x40, 0x00, 0x20, 0x04, 0x00, 0x00, 0x7e, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0xe7, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x80, 0xc3, 0x01, 0x40, 0x00, 0x40, 0x04, 0x00, 0xc0, 0xe1, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0xe0, 0x7f, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0xe0, 0x07, 0x00, 0x40, 0x00, 0x40, 0x08, 0x00, 0x70, 0x00, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x18, 0x3c, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0xf8, 0x0f, 0x00, 0x20, 0x00, 0x80, 0x08, 0x1f, 0xf8, 0x00, 0x78, 0x20, 0x00, 0x80, 0x08, 0x3e, 0x00, 0x00, 0x0c, 0x20, 0x00, 0x80, 0x08, 0xfc, 0x80, 0x07, 0x07, 0x20, 0x00, 0x80, 0x10, 0xf0, 0xe1, 0x83, 0x03, 0x10, 0x00, 0x80, 0x10, 0xc0, 0xe3, 0xc0, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x07, 0x60, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x0e, 0x38, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x18, 0x1c, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x30, 0x0e, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x60, 0x07, 0x00, 0x10, 0x00, 0x00, 0x21, 0x00, 0xe0, 0x07, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x80, 0x03, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x80, 0x03, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0xc0, 0x03, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0xc0, 0x01, 0x00, 0x08, 0x00, 0x00, 0x24, 0x00, 0xc0, 0x01, 0x00, 0x08, 0x00, 0x00, 0x28, 0x00, 0xc0, 0x01, 0x00, 0x08, 0x00, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/lanceR_l.xbm0000644000175000017500000000626712274270516016241 00000000000000#define lanceR_l_width 64 #define lanceR_l_height 64 static unsigned char lanceR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x01, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x01, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x01, 0x00, 0x80, 0x00, 0x20, 0x04, 0xc0, 0xff, 0xff, 0x03, 0x40, 0x00, 0x20, 0x04, 0x80, 0xff, 0x3f, 0x07, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x04, 0x40, 0x00, 0x40, 0x04, 0x00, 0xfc, 0x7f, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x3c, 0x61, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x06, 0xe1, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0xff, 0xff, 0x00, 0x40, 0x00, 0x40, 0x08, 0x00, 0x03, 0xc1, 0x01, 0x20, 0x00, 0x80, 0x08, 0x00, 0x07, 0xc1, 0x01, 0x20, 0x00, 0x80, 0x08, 0x00, 0xff, 0x7f, 0x01, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x03, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0xf8, 0x1f, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x3f, 0x00, 0x20, 0x00, 0x80, 0x10, 0x00, 0x00, 0x01, 0x00, 0x10, 0x00, 0x80, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0xe0, 0x07, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x20, 0x0c, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0xf0, 0x08, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0xf8, 0x1f, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x18, 0x18, 0x00, 0x10, 0x00, 0x00, 0x21, 0x00, 0xf0, 0x1f, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x0c, 0x33, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x1c, 0x19, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0xb8, 0x1d, 0x00, 0x08, 0x00, 0x00, 0x24, 0x00, 0x80, 0x01, 0x00, 0x08, 0x00, 0x00, 0x28, 0x00, 0xf0, 0x1f, 0x00, 0x08, 0x00, 0x00, 0x48, 0x00, 0x30, 0x39, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0x00, 0x06, 0x00, 0x04, 0x00, 0x00, 0x60, 0x00, 0x80, 0x03, 0x00, 0x04, 0x00, 0x00, 0xc0, 0x00, 0xc0, 0x01, 0x00, 0x06, 0x00, 0x00, 0x00, 0x07, 0xc0, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/rookP_l.xbm0000644000175000017500000000626412274270516016124 00000000000000#define rookP_l_width 64 #define rookP_l_height 64 static unsigned char rookP_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x81, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x01, 0x3c, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xc0, 0x01, 0xc0, 0x03, 0x00, 0x00, 0x1c, 0x00, 0x3c, 0x1e, 0x00, 0x1c, 0x00, 0x00, 0x04, 0xc0, 0x03, 0xe0, 0x01, 0x10, 0x00, 0x00, 0x06, 0x38, 0x00, 0x00, 0x0e, 0x60, 0x00, 0x00, 0x8a, 0x07, 0x00, 0x00, 0xf0, 0x40, 0x00, 0x00, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x4f, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x11, 0x80, 0x03, 0x07, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0x03, 0x0f, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x03, 0x0e, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x02, 0x0e, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x3c, 0x0e, 0x00, 0x80, 0x00, 0x00, 0x09, 0xc0, 0x1f, 0x0e, 0x00, 0x80, 0x00, 0x00, 0x09, 0xf0, 0x03, 0x0e, 0x00, 0x00, 0x01, 0x80, 0x08, 0xc0, 0x0c, 0x06, 0x0e, 0x00, 0x01, 0x80, 0x08, 0xe0, 0x3c, 0x86, 0x07, 0x00, 0x01, 0x80, 0x04, 0x60, 0x3e, 0xc6, 0x03, 0x00, 0x01, 0x80, 0x04, 0x90, 0x1f, 0xf6, 0x01, 0x00, 0x01, 0x80, 0x04, 0xf8, 0x0f, 0x7e, 0x00, 0x00, 0x01, 0x80, 0x04, 0xf0, 0x03, 0x3e, 0x00, 0x00, 0x01, 0x80, 0x04, 0xc0, 0x01, 0x1f, 0x07, 0x00, 0x02, 0x40, 0x04, 0xf0, 0x88, 0x8f, 0x07, 0x00, 0x02, 0x40, 0x02, 0x70, 0xd8, 0xef, 0x01, 0x00, 0x02, 0x40, 0x02, 0x38, 0xfc, 0xec, 0x00, 0x00, 0x02, 0x40, 0x02, 0x1c, 0x3c, 0x0c, 0x10, 0x00, 0x02, 0x40, 0x02, 0x8c, 0x1f, 0x0c, 0x18, 0x00, 0x02, 0x40, 0x02, 0x8e, 0x19, 0x0c, 0x38, 0x00, 0x04, 0x20, 0x02, 0x87, 0x19, 0x0c, 0x38, 0x00, 0x04, 0x20, 0x02, 0x81, 0x1b, 0x18, 0x18, 0x00, 0x04, 0x20, 0x01, 0x00, 0x1e, 0xf0, 0x1f, 0x00, 0x04, 0x20, 0x01, 0x00, 0x0c, 0xe0, 0x0f, 0x00, 0x04, 0x20, 0x01, 0x00, 0x80, 0x03, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0xe0, 0x03, 0x00, 0x00, 0x08, 0x20, 0x01, 0x00, 0xf8, 0x03, 0x00, 0x00, 0x08, 0x10, 0x01, 0x00, 0x0e, 0x03, 0x00, 0x00, 0x08, 0x10, 0x01, 0x00, 0xf0, 0x1f, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0xf8, 0x17, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0x8c, 0x1f, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0x8c, 0x0f, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0xfc, 0x07, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0x9c, 0x03, 0x00, 0x00, 0x10, 0x88, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0xfc, 0xff, 0x07, 0x00, 0x10, 0x48, 0x00, 0xe0, 0xff, 0xff, 0x0f, 0x00, 0x10, 0x48, 0x00, 0xf8, 0xff, 0xff, 0x07, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/lanceP_l.xbm0000644000175000017500000000523412274270516016230 00000000000000#define lanceP_l_width 64 #define lanceP_l_height 64 static char lanceP_l_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x0e,0x00,0x00,0x00,0x00,0x00,0xf0,0x80, 0x70,0x00,0x00,0x00,0x00,0x00,0x0f,0xc0,0x81,0x03,0x00,0x00,0x00,0xf0,0x00, 0x38,0x0e,0x1c,0x00,0x00,0x00,0x08,0x00,0x07,0x70,0x60,0x00,0x00,0x00,0x0c, 0xe0,0x00,0x80,0x83,0x00,0x00,0x00,0x14,0x1c,0x00,0x00,0x1c,0x01,0x00,0x00, 0x94,0x03,0x00,0x00,0xe0,0x01,0x00,0x00,0x64,0x00,0x00,0x00,0x00,0x03,0x00, 0x00,0x22,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x02, 0x00,0x00,0x22,0x00,0x60,0x00,0x00,0x02,0x00,0x00,0x22,0x00,0xe0,0x01,0x00, 0x02,0x00,0x00,0x12,0x00,0x80,0x01,0x00,0x04,0x00,0x00,0x12,0x00,0xc0,0x01, 0x00,0x04,0x00,0x00,0x11,0x00,0xe0,0x01,0x00,0x04,0x00,0x00,0x11,0x00,0xe0, 0x01,0x00,0x04,0x00,0x00,0x11,0x00,0x70,0x00,0x00,0x04,0x00,0x00,0x11,0x00, 0xf8,0x0f,0x00,0x04,0x00,0x00,0x11,0x00,0xf8,0x07,0x00,0x04,0x00,0x00,0x09, 0xc0,0xdd,0x00,0x00,0x08,0x00,0x80,0x08,0xe0,0xc0,0xf8,0x00,0x08,0x00,0x80, 0x08,0xf0,0xfe,0xff,0x01,0x08,0x00,0x80,0x08,0xf8,0xfd,0xff,0x03,0x08,0x00, 0x80,0x08,0x78,0xc0,0xc0,0x03,0x08,0x00,0x80,0x08,0x38,0xc0,0xe0,0x03,0x08, 0x00,0x80,0x08,0x00,0xc3,0xf8,0x01,0x08,0x00,0x40,0x04,0x80,0xc7,0xfc,0x00, 0x10,0x00,0x40,0x04,0x80,0xc7,0x00,0x00,0x10,0x00,0x40,0x04,0x00,0xe7,0x00, 0x00,0x10,0x00,0x40,0x04,0x00,0xe7,0x07,0x00,0x10,0x00,0x40,0x04,0x00,0xff, 0x07,0x00,0x10,0x00,0x40,0x04,0x00,0xfe,0x01,0x00,0x10,0x00,0x20,0x02,0x00, 0x7c,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x38,0x00,0x00,0x20,0x00,0x20,0x02, 0x00,0x18,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x0c,0x00,0x00,0x20,0x00,0x20, 0x02,0x00,0x0c,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x1c,0x06,0x00,0x20,0x00, 0x10,0x02,0x00,0xf8,0x0f,0x00,0x20,0x00,0x10,0x01,0x00,0xf8,0x0f,0x00,0x40, 0x00,0x10,0x01,0x00,0xf0,0x03,0x00,0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x00, 0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00, 0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00, 0x00,0x00,0x40,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00, 0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0xc0,0x00,0x80,0xff, 0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_eastern_bitmaps/lancePR_l.xbm0000644000175000017500000000627212274270516016355 00000000000000#define lancePR_l_width 64 #define lancePR_l_height 64 static unsigned char lancePR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0xc0, 0x0f, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0xf0, 0x1f, 0x00, 0x80, 0x00, 0x20, 0x04, 0x00, 0xf0, 0x1f, 0x00, 0x40, 0x00, 0x20, 0x04, 0x00, 0x60, 0x38, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x30, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x30, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x18, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x1c, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x3e, 0x00, 0x40, 0x00, 0x40, 0x08, 0x00, 0x80, 0x7f, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0xe0, 0xff, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0xe0, 0xe7, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0xe7, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0xe3, 0x01, 0x20, 0x00, 0x80, 0x08, 0x00, 0x3f, 0xe3, 0x01, 0x20, 0x00, 0x80, 0x10, 0x80, 0x1f, 0xc3, 0x00, 0x10, 0x00, 0x80, 0x10, 0xc0, 0x07, 0x03, 0x1c, 0x10, 0x00, 0x00, 0x11, 0xc0, 0x03, 0x03, 0x1e, 0x10, 0x00, 0x00, 0x11, 0xc0, 0xff, 0xbf, 0x1f, 0x10, 0x00, 0x00, 0x11, 0x80, 0xff, 0x7f, 0x0f, 0x10, 0x00, 0x00, 0x11, 0x00, 0x1f, 0x03, 0x07, 0x10, 0x00, 0x00, 0x11, 0x00, 0x00, 0xbb, 0x03, 0x10, 0x00, 0x00, 0x21, 0x00, 0xe0, 0x1f, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0xf0, 0x1f, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x0e, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x80, 0x07, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x80, 0x07, 0x00, 0x08, 0x00, 0x00, 0x24, 0x00, 0x80, 0x03, 0x00, 0x08, 0x00, 0x00, 0x28, 0x00, 0x80, 0x01, 0x00, 0x08, 0x00, 0x00, 0x48, 0x00, 0x80, 0x07, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0x00, 0x06, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/silverR_l.xbm0000644000175000017500000000627212274270516016457 00000000000000#define silverR_l_width 64 #define silverR_l_height 64 static unsigned char silverR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x0f, 0x80, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x0b, 0xc0, 0x01, 0x00, 0x20, 0x48, 0x00, 0x00, 0xc3, 0xe0, 0x01, 0x00, 0x20, 0x48, 0x00, 0x00, 0xe3, 0x60, 0x03, 0x00, 0x10, 0x48, 0x00, 0x00, 0x63, 0x60, 0x18, 0x00, 0x10, 0x88, 0x00, 0x00, 0x26, 0x60, 0x1c, 0x00, 0x10, 0x90, 0x00, 0xe0, 0xe7, 0x63, 0x0c, 0x00, 0x10, 0x90, 0x00, 0xf0, 0xff, 0x63, 0x0c, 0x00, 0x10, 0x90, 0x00, 0x00, 0x06, 0x60, 0x04, 0x00, 0x10, 0x90, 0x00, 0x00, 0x60, 0x20, 0x1f, 0x00, 0x08, 0x90, 0x00, 0x00, 0x7c, 0xa0, 0x0f, 0x00, 0x08, 0x10, 0x01, 0x00, 0x1c, 0x29, 0x00, 0x00, 0x08, 0x10, 0x01, 0x00, 0x06, 0x7b, 0x04, 0x00, 0x08, 0x20, 0x01, 0x00, 0x66, 0xfb, 0x07, 0x00, 0x08, 0x20, 0x01, 0x00, 0x7e, 0xf0, 0x06, 0x00, 0x08, 0x20, 0x01, 0x00, 0x5c, 0x20, 0x03, 0x00, 0x04, 0x20, 0x01, 0x00, 0xc0, 0x61, 0x03, 0x00, 0x04, 0x20, 0x01, 0x00, 0xe0, 0x63, 0x01, 0x00, 0x04, 0x20, 0x02, 0x00, 0x78, 0x60, 0x01, 0x00, 0x04, 0x20, 0x02, 0x00, 0x18, 0x60, 0x00, 0x00, 0x04, 0x40, 0x02, 0x00, 0x08, 0x20, 0x00, 0x00, 0x04, 0x40, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x40, 0x02, 0xc0, 0x81, 0xf0, 0x0f, 0x00, 0x02, 0x40, 0x02, 0x80, 0xe3, 0xf8, 0x07, 0x00, 0x02, 0x40, 0x02, 0x00, 0xf3, 0x4c, 0x00, 0x00, 0x02, 0x40, 0x04, 0x00, 0xd7, 0xe0, 0x07, 0x00, 0x02, 0x80, 0x04, 0x00, 0x47, 0x58, 0x00, 0x00, 0x02, 0x80, 0x04, 0xc0, 0x4c, 0xe0, 0x03, 0x00, 0x01, 0x80, 0x04, 0x60, 0x78, 0x58, 0x00, 0x00, 0x01, 0x80, 0x04, 0x60, 0x7c, 0xc0, 0x03, 0x00, 0x01, 0x80, 0x04, 0x00, 0x46, 0xf0, 0x01, 0x00, 0x01, 0x80, 0x08, 0x00, 0xf2, 0x00, 0x0c, 0x00, 0x01, 0x80, 0x08, 0x00, 0xde, 0x18, 0x06, 0x00, 0x01, 0x00, 0x09, 0x00, 0xc2, 0x30, 0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0xfe, 0xe0, 0x01, 0x80, 0x00, 0x00, 0x09, 0x00, 0xdc, 0xc0, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x40, 0x40, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x80, 0x07, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0xe0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/rookPR_l.xbm0000644000175000017500000000626712274270516016251 00000000000000#define rookPR_l_width 64 #define rookPR_l_height 64 static unsigned char rookPR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0xe0, 0xff, 0xff, 0x1f, 0x00, 0x20, 0x44, 0x00, 0xf0, 0xff, 0xff, 0x07, 0x00, 0x20, 0x48, 0x00, 0xe0, 0xff, 0x3f, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0xc0, 0x39, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0xe0, 0x3f, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0xf0, 0x31, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0xf8, 0x31, 0x00, 0x00, 0x10, 0x88, 0x00, 0x00, 0xe8, 0x1f, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0xf8, 0x0f, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0xc0, 0x70, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0xc0, 0x1f, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0xc0, 0x07, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x08, 0x10, 0x01, 0xf0, 0x07, 0x30, 0x00, 0x00, 0x08, 0x10, 0x01, 0xf8, 0x0f, 0x78, 0x00, 0x00, 0x08, 0x20, 0x01, 0x18, 0x18, 0xd8, 0x81, 0x00, 0x08, 0x20, 0x01, 0x1c, 0x30, 0x98, 0xe1, 0x00, 0x08, 0x20, 0x01, 0x1c, 0x30, 0x98, 0x71, 0x00, 0x04, 0x20, 0x01, 0x18, 0x30, 0xf8, 0x31, 0x00, 0x04, 0x20, 0x01, 0x08, 0x30, 0x3c, 0x38, 0x00, 0x04, 0x20, 0x02, 0x00, 0x37, 0x3f, 0x1c, 0x00, 0x04, 0x20, 0x02, 0x80, 0xf7, 0x1b, 0x0e, 0x00, 0x04, 0x40, 0x02, 0xe0, 0xf1, 0x11, 0x0f, 0x00, 0x04, 0x40, 0x02, 0xe0, 0xf8, 0x80, 0x03, 0x00, 0x02, 0x40, 0x02, 0x00, 0x7c, 0xc0, 0x0f, 0x00, 0x02, 0x40, 0x02, 0x00, 0x7e, 0xf0, 0x1f, 0x00, 0x02, 0x40, 0x02, 0x80, 0x6f, 0xf8, 0x09, 0x00, 0x02, 0x40, 0x04, 0xc0, 0x63, 0x7c, 0x06, 0x00, 0x02, 0x80, 0x04, 0xe0, 0x61, 0x3c, 0x07, 0x00, 0x02, 0x80, 0x04, 0x70, 0x60, 0x30, 0x03, 0x00, 0x01, 0x80, 0x04, 0x00, 0x70, 0xc0, 0x0f, 0x00, 0x01, 0x80, 0x04, 0x00, 0x70, 0xf8, 0x03, 0x00, 0x01, 0x80, 0x04, 0x00, 0x70, 0x3c, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0x70, 0x40, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0x70, 0xc0, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0xf0, 0xc0, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0xe0, 0xc0, 0x01, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x80, 0x07, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0xe0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/bishopR_l.xbm0000644000175000017500000000627212274270516016437 00000000000000#define bishopR_l_width 64 #define bishopR_l_height 64 static unsigned char bishopR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0xc0, 0x00, 0x80, 0x00, 0x00, 0x20, 0x48, 0x00, 0xe0, 0x03, 0x80, 0x01, 0x00, 0x20, 0x48, 0x00, 0x60, 0x07, 0x80, 0x01, 0x00, 0x20, 0x48, 0x00, 0x60, 0x0e, 0x80, 0x01, 0x00, 0x20, 0x48, 0x00, 0x60, 0x18, 0x80, 0x01, 0x00, 0x10, 0x48, 0x00, 0x60, 0x30, 0x80, 0x19, 0x00, 0x10, 0x88, 0x00, 0x60, 0x00, 0x80, 0x0f, 0x00, 0x10, 0x90, 0x00, 0x40, 0x00, 0x00, 0x07, 0x00, 0x10, 0x90, 0x00, 0x40, 0xf0, 0x81, 0x03, 0x00, 0x10, 0x90, 0x00, 0xe0, 0xff, 0xc1, 0x01, 0x00, 0x10, 0x90, 0x00, 0xf0, 0x1f, 0xe0, 0x18, 0x00, 0x08, 0x90, 0x00, 0x00, 0x00, 0x78, 0x0c, 0x00, 0x08, 0x10, 0x01, 0x80, 0xff, 0x78, 0x07, 0x00, 0x08, 0x10, 0x01, 0x80, 0x7f, 0xa0, 0x03, 0x00, 0x08, 0x20, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x08, 0x20, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x08, 0x20, 0x01, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x04, 0x20, 0x02, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x20, 0x02, 0x00, 0x0c, 0xf8, 0x01, 0x00, 0x04, 0x40, 0x02, 0x00, 0xfc, 0xbf, 0x01, 0x00, 0x04, 0x40, 0x02, 0x00, 0xfc, 0x87, 0x01, 0x00, 0x02, 0x40, 0x02, 0x00, 0x0c, 0xf6, 0x01, 0x00, 0x02, 0x40, 0x02, 0x00, 0xdc, 0xff, 0x01, 0x00, 0x02, 0x40, 0x02, 0x00, 0xfc, 0x87, 0x01, 0x00, 0x02, 0x40, 0x04, 0x00, 0x0c, 0xc6, 0x01, 0x00, 0x02, 0x80, 0x04, 0x00, 0x8c, 0xff, 0x00, 0x00, 0x02, 0x80, 0x04, 0x00, 0xf8, 0xff, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x00, 0x04, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x00, 0x07, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0x80, 0x63, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0xc0, 0x71, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0xc0, 0x3f, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0xc0, 0x1b, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x08, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x80, 0x07, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0xe0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/silverPR_l.xbm0000644000175000017500000000627512274270516016602 00000000000000#define silverPR_l_width 64 #define silverPR_l_height 64 static unsigned char silverPR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x20, 0x48, 0x00, 0xfc, 0xff, 0xff, 0x0f, 0x00, 0x20, 0x48, 0x00, 0xfc, 0xff, 0xff, 0x01, 0x00, 0x20, 0x48, 0x00, 0xf8, 0x83, 0x03, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x10, 0x88, 0x00, 0x00, 0x80, 0xc0, 0x01, 0x00, 0x10, 0x90, 0x00, 0x00, 0x80, 0xff, 0x01, 0x00, 0x10, 0x90, 0x00, 0x80, 0xff, 0x7f, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0xbf, 0x01, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0x80, 0xfe, 0x01, 0x00, 0x08, 0x10, 0x01, 0x00, 0xf8, 0x7f, 0x00, 0x00, 0x08, 0x10, 0x01, 0x00, 0x9c, 0x00, 0x00, 0x00, 0x08, 0x20, 0x01, 0x1f, 0x80, 0x01, 0x78, 0x00, 0x08, 0x20, 0x01, 0x3e, 0x80, 0x7f, 0x0c, 0x00, 0x08, 0x20, 0x01, 0xfc, 0xf0, 0x0f, 0x07, 0x00, 0x04, 0x20, 0x01, 0xf0, 0x39, 0x80, 0x03, 0x00, 0x04, 0x20, 0x01, 0xc0, 0x03, 0xc0, 0x00, 0x00, 0x04, 0x20, 0x02, 0x00, 0x07, 0x60, 0x00, 0x00, 0x04, 0x20, 0x02, 0x00, 0x0e, 0x38, 0x00, 0x00, 0x04, 0x40, 0x02, 0x00, 0x18, 0x1c, 0x00, 0x00, 0x04, 0x40, 0x02, 0x00, 0x30, 0x0e, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x60, 0x07, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0xe0, 0x07, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x80, 0x03, 0x00, 0x00, 0x02, 0x40, 0x04, 0x00, 0x80, 0x03, 0x00, 0x00, 0x02, 0x80, 0x04, 0x00, 0xc0, 0x03, 0x00, 0x00, 0x02, 0x80, 0x04, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x80, 0x07, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0xe0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/rookR_l.xbm0000644000175000017500000000626412274270516016126 00000000000000#define rookR_l_width 64 #define rookR_l_height 64 static unsigned char rookR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x20, 0x48, 0x00, 0xc0, 0xff, 0xff, 0x03, 0x00, 0x10, 0x48, 0x00, 0x80, 0xff, 0x3f, 0x07, 0x00, 0x10, 0x88, 0x00, 0x00, 0x00, 0x03, 0x04, 0x00, 0x10, 0x90, 0x00, 0x00, 0xfc, 0x7f, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0x3c, 0x63, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0x06, 0xe3, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0xfe, 0xff, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0x03, 0xc1, 0x01, 0x00, 0x08, 0x10, 0x01, 0x00, 0x07, 0xc1, 0x01, 0x00, 0x08, 0x10, 0x01, 0x00, 0xff, 0x7f, 0x01, 0x00, 0x08, 0x20, 0x01, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08, 0x20, 0x01, 0x00, 0xf8, 0x1f, 0x00, 0x00, 0x08, 0x20, 0x01, 0x00, 0xf0, 0x3f, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x20, 0x02, 0xe0, 0x07, 0x00, 0x00, 0x00, 0x04, 0x20, 0x02, 0xf0, 0x0f, 0x0c, 0x0e, 0x00, 0x04, 0x40, 0x02, 0x10, 0x18, 0x1e, 0x03, 0x00, 0x04, 0x40, 0x02, 0x90, 0x31, 0xa6, 0x01, 0x00, 0x02, 0x40, 0x02, 0x30, 0x37, 0xc6, 0x00, 0x00, 0x02, 0x40, 0x02, 0x10, 0x3e, 0xc6, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x33, 0x46, 0x00, 0x00, 0x02, 0x40, 0x04, 0x80, 0x31, 0xf6, 0x0f, 0x00, 0x02, 0x80, 0x04, 0x00, 0x60, 0xff, 0x1d, 0x00, 0x02, 0x80, 0x04, 0xe0, 0xef, 0x6f, 0x00, 0x00, 0x01, 0x80, 0x04, 0xf0, 0xdf, 0x67, 0x08, 0x00, 0x01, 0x80, 0x04, 0x30, 0x18, 0xe6, 0x0f, 0x00, 0x01, 0x80, 0x04, 0xb0, 0x11, 0xe6, 0x07, 0x00, 0x01, 0x80, 0x08, 0xa0, 0x33, 0x06, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0x36, 0x04, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0x3c, 0xc0, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0xee, 0x7f, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0xe3, 0x0f, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0xe0, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x80, 0x07, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0xe0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/pawnPR_l.xbm0000644000175000017500000000626712274270516016244 00000000000000#define pawnPR_l_width 64 #define pawnPR_l_height 64 static unsigned char pawnPR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x04, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x20, 0x04, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0xc0, 0x0f, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0xf0, 0x1f, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0xf0, 0x1f, 0x00, 0x40, 0x00, 0x40, 0x08, 0x00, 0x60, 0x38, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x30, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x30, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x18, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x1c, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x3e, 0x00, 0x20, 0x00, 0x80, 0x10, 0x00, 0x80, 0x7f, 0x00, 0x10, 0x00, 0x80, 0x10, 0x00, 0xe0, 0x77, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0xf0, 0xe1, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x78, 0xe0, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x18, 0xe0, 0x01, 0x10, 0x00, 0x00, 0x11, 0x00, 0x00, 0xe0, 0x01, 0x10, 0x00, 0x00, 0x11, 0x00, 0x00, 0xc0, 0x00, 0x10, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/silver_l.xbm0000644000175000017500000000626712274270516016341 00000000000000#define silver_l_width 64 #define silver_l_height 64 static unsigned char silver_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x81, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x01, 0x3c, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xc0, 0x01, 0xc0, 0x03, 0x00, 0x00, 0x1c, 0x00, 0x3c, 0x1e, 0x00, 0x1c, 0x00, 0x00, 0x04, 0xc0, 0x03, 0xe0, 0x01, 0x10, 0x00, 0x00, 0x06, 0x38, 0x00, 0x00, 0x0e, 0x60, 0x00, 0x00, 0x8a, 0x07, 0x00, 0x00, 0xf0, 0x40, 0x00, 0x00, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x4f, 0x00, 0x00, 0x12, 0x00, 0x02, 0x02, 0x00, 0x70, 0x00, 0x00, 0x12, 0x00, 0x03, 0x3b, 0x00, 0x80, 0x00, 0x00, 0x11, 0x80, 0x07, 0x7f, 0x00, 0x80, 0x00, 0x00, 0x11, 0xc0, 0x0c, 0x43, 0x00, 0x80, 0x00, 0x00, 0x09, 0x60, 0x18, 0x7b, 0x00, 0x80, 0x00, 0x00, 0x09, 0x30, 0x00, 0x4f, 0x00, 0x80, 0x00, 0x00, 0x09, 0x80, 0x0f, 0x62, 0x00, 0x80, 0x00, 0x00, 0x09, 0xc0, 0x03, 0x3e, 0x06, 0x80, 0x00, 0x00, 0x09, 0x00, 0x1a, 0x1e, 0x06, 0x00, 0x01, 0x80, 0x08, 0xc0, 0x07, 0x32, 0x03, 0x00, 0x01, 0x80, 0x08, 0x00, 0x1a, 0xe2, 0x00, 0x00, 0x01, 0x80, 0x04, 0xe0, 0x07, 0xeb, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x32, 0xcf, 0x00, 0x00, 0x01, 0x80, 0x04, 0xe0, 0x1f, 0xc7, 0x01, 0x00, 0x01, 0x80, 0x04, 0xf0, 0x0f, 0x81, 0x03, 0x00, 0x01, 0x80, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x40, 0x04, 0x00, 0x04, 0x10, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x06, 0x18, 0x00, 0x00, 0x02, 0x40, 0x02, 0x80, 0x06, 0x1e, 0x00, 0x00, 0x02, 0x40, 0x02, 0x80, 0xc6, 0x07, 0x00, 0x00, 0x02, 0x40, 0x02, 0xc0, 0x86, 0x03, 0x00, 0x00, 0x02, 0x40, 0x02, 0xc0, 0x04, 0x3a, 0x00, 0x00, 0x04, 0x20, 0x02, 0x60, 0x0f, 0x7e, 0x00, 0x00, 0x04, 0x20, 0x02, 0xe0, 0xdf, 0x66, 0x00, 0x00, 0x04, 0x20, 0x01, 0x20, 0xde, 0x60, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0x94, 0x38, 0x00, 0x00, 0x04, 0x20, 0x01, 0xf0, 0x05, 0x3e, 0x00, 0x00, 0x04, 0x20, 0x01, 0xf8, 0x04, 0x06, 0x00, 0x00, 0x08, 0x20, 0x01, 0x20, 0x06, 0x60, 0x00, 0x00, 0x08, 0x10, 0x01, 0x30, 0xc6, 0xff, 0x0f, 0x00, 0x08, 0x10, 0x01, 0x30, 0xc6, 0xe7, 0x07, 0x00, 0x08, 0x90, 0x00, 0x38, 0x06, 0x64, 0x00, 0x00, 0x08, 0x90, 0x00, 0x18, 0x06, 0xc6, 0x00, 0x00, 0x08, 0x90, 0x00, 0xc0, 0x06, 0xc7, 0x00, 0x00, 0x10, 0x90, 0x00, 0x80, 0x07, 0xc3, 0x00, 0x00, 0x10, 0x90, 0x00, 0x80, 0x03, 0xd0, 0x00, 0x00, 0x10, 0x88, 0x00, 0x00, 0x01, 0xf0, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/kingR_l.xbm0000644000175000017500000000626412274270516016104 00000000000000#define kingR_l_width 64 #define kingR_l_height 64 static unsigned char kingR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x0f, 0x80, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x0b, 0xc0, 0x01, 0x00, 0x20, 0x48, 0x00, 0x00, 0xc3, 0xe0, 0x01, 0x00, 0x20, 0x48, 0x00, 0x00, 0xe3, 0x60, 0x03, 0x00, 0x10, 0x48, 0x00, 0x00, 0x63, 0x60, 0x18, 0x00, 0x10, 0x88, 0x00, 0x00, 0x26, 0x60, 0x1c, 0x00, 0x10, 0x90, 0x00, 0xe0, 0xe7, 0x63, 0x0c, 0x00, 0x10, 0x90, 0x00, 0xf0, 0xff, 0x63, 0x0c, 0x00, 0x10, 0x90, 0x00, 0x00, 0x06, 0x60, 0x04, 0x00, 0x10, 0x90, 0x00, 0x00, 0x60, 0x20, 0x1f, 0x00, 0x08, 0x90, 0x00, 0x00, 0x7c, 0xa0, 0x0f, 0x00, 0x08, 0x10, 0x01, 0x00, 0x1c, 0x21, 0x00, 0x00, 0x08, 0x10, 0x01, 0x00, 0x06, 0x23, 0x0c, 0x00, 0x08, 0x20, 0x01, 0x00, 0x66, 0xe3, 0x1f, 0x00, 0x08, 0x20, 0x01, 0x00, 0x7e, 0xe0, 0x06, 0x00, 0x08, 0x20, 0x01, 0x00, 0x5c, 0x20, 0x03, 0x00, 0x04, 0x20, 0x01, 0x00, 0xc0, 0x61, 0x03, 0x00, 0x04, 0x20, 0x01, 0x00, 0xe0, 0x63, 0x01, 0x00, 0x04, 0x20, 0x02, 0x00, 0x78, 0x60, 0x01, 0x00, 0x04, 0x20, 0x02, 0x00, 0x18, 0x60, 0x00, 0x00, 0x04, 0x40, 0x02, 0x00, 0x08, 0x20, 0x00, 0x00, 0x04, 0x40, 0x02, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x02, 0x40, 0x02, 0x80, 0xff, 0xff, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0xfe, 0x1f, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x80, 0x01, 0x00, 0x00, 0x02, 0x40, 0x04, 0x00, 0x80, 0x01, 0x00, 0x00, 0x02, 0x80, 0x04, 0x00, 0x80, 0x01, 0x00, 0x00, 0x02, 0x80, 0x04, 0x00, 0xe0, 0x3f, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xf8, 0x0f, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x9c, 0x01, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x80, 0x01, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0x80, 0x01, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0x80, 0xe3, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0xfe, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0xff, 0x1f, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x02, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x80, 0x07, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0xe0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/none_l.xbm0000644000175000017500000000522612274270516015766 00000000000000#define none_l_width 64 #define none_l_height 64 static char none_l_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_eastern_bitmaps/bishopP_l.xbm0000644000175000017500000000627212274270516016435 00000000000000#define bishopP_l_width 64 #define bishopP_l_height 64 static unsigned char bishopP_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x81, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x01, 0x3c, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xc0, 0x01, 0xc0, 0x03, 0x00, 0x00, 0x1c, 0x00, 0x3c, 0x1e, 0x00, 0x1c, 0x00, 0x00, 0x04, 0xc0, 0x03, 0xe0, 0x01, 0x10, 0x00, 0x00, 0x06, 0x38, 0x00, 0x00, 0x0e, 0x60, 0x00, 0x00, 0x8a, 0x07, 0x00, 0x00, 0xf0, 0x40, 0x00, 0x00, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x4f, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x12, 0x60, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x11, 0xc0, 0x00, 0x07, 0x00, 0x80, 0x00, 0x00, 0x11, 0xc0, 0x0c, 0x0f, 0x00, 0x80, 0x00, 0x00, 0x09, 0xf0, 0x0f, 0x0e, 0x00, 0x80, 0x00, 0x00, 0x09, 0xf8, 0x03, 0x0e, 0x00, 0x80, 0x00, 0x00, 0x09, 0xc0, 0x00, 0x0e, 0x00, 0x80, 0x00, 0x00, 0x09, 0xc0, 0x0e, 0x0e, 0x00, 0x80, 0x00, 0x00, 0x09, 0xc0, 0x0f, 0x0e, 0x00, 0x00, 0x01, 0x80, 0x08, 0xc0, 0x01, 0x06, 0x0e, 0x00, 0x01, 0x80, 0x08, 0x00, 0x7c, 0x86, 0x07, 0x00, 0x01, 0x80, 0x04, 0xc0, 0x3f, 0xc6, 0x03, 0x00, 0x01, 0x80, 0x04, 0xfe, 0x1f, 0xf6, 0x01, 0x00, 0x01, 0x80, 0x04, 0xf8, 0x0f, 0x7e, 0x00, 0x00, 0x01, 0x80, 0x04, 0x80, 0x03, 0x3e, 0x00, 0x00, 0x01, 0x80, 0x04, 0xc0, 0x0d, 0x0f, 0x07, 0x00, 0x02, 0x40, 0x04, 0xf0, 0x98, 0x87, 0x07, 0x00, 0x02, 0x40, 0x02, 0x70, 0xd8, 0xcf, 0x01, 0x00, 0x02, 0x40, 0x02, 0x38, 0xfc, 0x68, 0x00, 0x00, 0x02, 0x40, 0x02, 0x1c, 0x3c, 0x0c, 0x1f, 0x00, 0x02, 0x40, 0x02, 0x8c, 0x1f, 0xec, 0x3f, 0x00, 0x02, 0x40, 0x02, 0x8e, 0x19, 0x7e, 0x38, 0x00, 0x04, 0x20, 0x02, 0x87, 0x19, 0x0c, 0x3c, 0x00, 0x04, 0x20, 0x02, 0x81, 0x1b, 0x00, 0x1e, 0x00, 0x04, 0x20, 0x01, 0x00, 0x1e, 0x80, 0x0f, 0x00, 0x04, 0x20, 0x01, 0x00, 0x0c, 0xf0, 0x01, 0x00, 0x04, 0x20, 0x01, 0x00, 0x00, 0x30, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x20, 0x01, 0xc0, 0xfd, 0x3f, 0x00, 0x00, 0x08, 0x10, 0x01, 0xc0, 0xff, 0x7f, 0x00, 0x00, 0x08, 0x10, 0x01, 0xc0, 0x87, 0x03, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0xf8, 0x00, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0x60, 0x1f, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0xf0, 0x1f, 0x00, 0x00, 0x10, 0x90, 0x00, 0xc0, 0x0f, 0x30, 0x00, 0x00, 0x10, 0x88, 0x00, 0xc0, 0x1f, 0x30, 0x00, 0x00, 0x10, 0x48, 0x00, 0xe0, 0x1c, 0x38, 0x00, 0x00, 0x10, 0x48, 0x00, 0xe0, 0x18, 0x1c, 0x00, 0x00, 0x10, 0x48, 0x00, 0xc0, 0xc1, 0x0f, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0xfc, 0x03, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/new_eastern_bitmaps/knightR_l.xbm0000644000175000017500000000627212274270516016437 00000000000000#define knightR_l_width 64 #define knightR_l_height 64 static unsigned char knightR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x01, 0x10, 0x02, 0x00, 0x1f, 0x00, 0x00, 0x80, 0x00, 0x10, 0x02, 0x00, 0x1f, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x80, 0x31, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0xc0, 0x31, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0xc0, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x60, 0x38, 0xe7, 0x0e, 0x80, 0x00, 0x20, 0x02, 0x70, 0x38, 0xe7, 0x0e, 0x80, 0x00, 0x20, 0x04, 0x30, 0x70, 0xc6, 0x0c, 0x40, 0x00, 0x20, 0x04, 0x30, 0x60, 0x8c, 0x08, 0x40, 0x00, 0x40, 0x04, 0x70, 0x00, 0x00, 0x00, 0x40, 0x00, 0x40, 0x04, 0xf0, 0x7f, 0x00, 0x00, 0x40, 0x00, 0x40, 0x04, 0xe0, 0xff, 0x7f, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0xfc, 0x6f, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x63, 0x00, 0x40, 0x00, 0x40, 0x08, 0x00, 0xf0, 0x7f, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x63, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0xf0, 0x7f, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x63, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0xe0, 0x7f, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0xf0, 0x5f, 0x00, 0x20, 0x00, 0x80, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x80, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x00, 0x40, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x00, 0x62, 0x00, 0x10, 0x00, 0x00, 0x11, 0xe0, 0xff, 0xe3, 0x00, 0x10, 0x00, 0x00, 0x11, 0xe0, 0xff, 0xe1, 0x04, 0x10, 0x00, 0x00, 0x11, 0x40, 0x1c, 0x60, 0x06, 0x10, 0x00, 0x00, 0x21, 0x00, 0x98, 0x61, 0x07, 0x08, 0x00, 0x00, 0x22, 0x00, 0xff, 0xe0, 0x03, 0x08, 0x00, 0x00, 0x22, 0x80, 0x3f, 0xe0, 0x01, 0x08, 0x00, 0x00, 0x22, 0x00, 0xd8, 0xe1, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0xff, 0xe0, 0x00, 0x08, 0x00, 0x00, 0x24, 0x80, 0x3f, 0x60, 0x00, 0x08, 0x00, 0x00, 0x28, 0x00, 0x98, 0x61, 0x0e, 0x08, 0x00, 0x00, 0x48, 0x00, 0xfe, 0xf8, 0x07, 0x04, 0x00, 0x00, 0x50, 0x00, 0xff, 0xf0, 0x03, 0x04, 0x00, 0x00, 0x50, 0x00, 0x18, 0x60, 0x00, 0x04, 0x00, 0x00, 0x60, 0x00, 0x18, 0x60, 0x00, 0x04, 0x00, 0x00, 0xc0, 0x00, 0x18, 0x20, 0x00, 0x06, 0x00, 0x00, 0x00, 0x07, 0x08, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/install-sh0000755000175000017500000003452312274272444011763 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2013-12-25.23; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # 'make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. tab=' ' nl=' ' IFS=" $tab$nl" # Set DOITPROG to "echo" to test this script. doit=${DOITPROG-} doit_exec=${doit:-exec} # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false is_target_a_directory=possibly usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) is_target_a_directory=always dst_arg=$2 # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) is_target_a_directory=never;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done # We allow the use of options -d and -T together, by making -d # take the precedence; this is for compatibility with GNU install. if test -n "$dir_arg"; then if test -n "$dst_arg"; then echo "$0: target directory not allowed when installing a directory." >&2 exit 1 fi fi if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call 'install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then if test $# -gt 1 || test "$is_target_a_directory" = always; then if test ! -d "$dst_arg"; then echo "$0: $dst_arg: Is not a directory." >&2 exit 1 fi fi fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for 'test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test "$is_target_a_directory" = never; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else dstdir=`dirname "$dst"` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac oIFS=$IFS IFS=/ set -f set fnord $dstdir shift set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: xshogi-1.4.2/ChangeLog0000644000175000017500000002245712274272327011534 000000000000002013-12-17 Yann Dirson * Makefile.am, Makefile.in: [gnushogi subtree] Switch build to automake, building gnuminishogi officially. 2013-12-14 Yann Dirson * Makefile.in, parser.y, scanner.l: [gnushogi subtree] Xshogi: build scanner separately from parser. 2013-11-05 Yann Dirson * Makefile.in: [gnushogi subtree] Remove unused obsolete version numbers from Makefiles. 2013-11-03 Yann Dirson * Makefile.in, xshogi.c: [gnushogi subtree] Use centralized version from configure.ac, drop use of separate patchlevel. 2013-10-14 Yann Dirson * xshogi.c: [gnushogi subtree] Finally get rid of that highly non-standard use of SIGINT. People will at last be able to Ctrl-C gnushogi :) 2013-10-13 Yann Dirson * xshogi.c: [gnushogi subtree] Restore SIGINT for stopping gnushogi when thinking. SIGINT is unfortunately part of the protocol inherited from gnuchess4, and is used by xboard as such. So this was not a proper fix for the original issue. This reverts commit 00e10bc4a760150665436b17c50abf264f28d435, "Don't intercept INT and QUIT signals, and use USR1 instead of QUIT for". 2013-09-30 Yann Dirson * Makefile.in: [gnushogi subtree] Honor LDFLAGS at link-time. 2008-02-11 Yann Dirson * Makefile.in: [gnushogi subtree] Add support for building gnushogi and xshogi out of source tree. 2008-02-11 Yann Dirson * xshogi.c: [gnushogi subtree] Don't intercept INT and QUIT signals, and use USR1 instead of QUIT for communication. This braindead use of SIGINT causes problem when a frontend is interrupted with Ctrl-C: if gnushogi is waiting for input, it would enter a tight loop trying to read stdin, eating 100% CPU. 2004-07-08 Mike Vanier * BUGS, Makefile.in, TRANS.TBL, bitmaps.h, eastern_bitmaps/TRANS.TBL, eastern_bitmaps/bigblank.xbm, eastern_bitmaps/bigblankR.xbm, eastern_bitmaps/biglight.xbm, eastern_bitmaps/bigsolid.xbm, eastern_bitmaps/bigsolidR.xbm, eastern_bitmaps/bigsolidR_l.xbm, eastern_bitmaps/bigsolidR_m.xbm, eastern_bitmaps/bigsolid_l.xbm, eastern_bitmaps/bigsolid_m.xbm, eastern_bitmaps/bishop.xbm, eastern_bitmaps/bishopP.top.xbm, eastern_bitmaps/bishopP.xbm, eastern_bitmaps/bishopPR.top.xbm, eastern_bitmaps/bishopPR.xbm, eastern_bitmaps/bishopPR_l.top.xbm, eastern_bitmaps/bishopPR_l.xbm, eastern_bitmaps/bishopPR_m.top.xbm, eastern_bitmaps/bishopPR_m.xbm, eastern_bitmaps/bishopP_l.top.xbm, eastern_bitmaps/bishopP_l.xbm, eastern_bitmaps/bishopP_m.top.xbm, eastern_bitmaps/bishopP_m.xbm, eastern_bitmaps/bishopR.xbm, eastern_bitmaps/bishopR_l.xbm, eastern_bitmaps/bishopR_m.xbm, eastern_bitmaps/bishop_l.xbm, eastern_bitmaps/bishop_m.xbm, eastern_bitmaps/gold.xbm, eastern_bitmaps/goldR.xbm, eastern_bitmaps/goldR_l.xbm, eastern_bitmaps/goldR_m.xbm, eastern_bitmaps/gold_l.xbm, eastern_bitmaps/gold_m.xbm, eastern_bitmaps/icon.xbm, eastern_bitmaps/king.xbm, eastern_bitmaps/kingR.xbm, eastern_bitmaps/kingR_l.xbm, eastern_bitmaps/kingR_m.xbm, eastern_bitmaps/king_l.xbm, eastern_bitmaps/king_m.xbm, eastern_bitmaps/knight.xbm, eastern_bitmaps/knightP.xbm, eastern_bitmaps/knightPR.xbm, eastern_bitmaps/knightPR_l.xbm, eastern_bitmaps/knightPR_m.xbm, eastern_bitmaps/knightP_l.xbm, eastern_bitmaps/knightP_m.xbm, eastern_bitmaps/knightR.xbm, eastern_bitmaps/knightR_l.xbm, eastern_bitmaps/knightR_m.xbm, eastern_bitmaps/knight_l.xbm, eastern_bitmaps/knight_m.xbm, eastern_bitmaps/lance.xbm, eastern_bitmaps/lanceP.xbm, eastern_bitmaps/lancePR.xbm, eastern_bitmaps/lancePR_l.xbm, eastern_bitmaps/lancePR_m.xbm, eastern_bitmaps/lanceP_l.xbm, eastern_bitmaps/lanceP_m.xbm, eastern_bitmaps/lanceR.xbm, eastern_bitmaps/lanceR_l.xbm, eastern_bitmaps/lanceR_m.xbm, eastern_bitmaps/lance_l.xbm, eastern_bitmaps/lance_m.xbm, eastern_bitmaps/none.xbm, eastern_bitmaps/none_l.xbm, eastern_bitmaps/none_m.xbm, eastern_bitmaps/pawn.xbm, eastern_bitmaps/pawnP.xbm, eastern_bitmaps/pawnPR.xbm, eastern_bitmaps/pawnPR_l.xbm, eastern_bitmaps/pawnPR_m.xbm, eastern_bitmaps/pawnP_l.xbm, eastern_bitmaps/pawnP_m.xbm, eastern_bitmaps/pawnR.xbm, eastern_bitmaps/pawnR_l.xbm, eastern_bitmaps/pawnR_m.xbm, eastern_bitmaps/pawn_l.xbm, eastern_bitmaps/pawn_m.xbm, eastern_bitmaps/rook.xbm, eastern_bitmaps/rookP.top.xbm, eastern_bitmaps/rookP.xbm, eastern_bitmaps/rookPR.top.xbm, eastern_bitmaps/rookPR.xbm, eastern_bitmaps/rookPR_l.top.xbm, eastern_bitmaps/rookPR_l.xbm, eastern_bitmaps/rookPR_m.top.xbm, eastern_bitmaps/rookPR_m.xbm, eastern_bitmaps/rookP_l.top.xbm, eastern_bitmaps/rookP_l.xbm, eastern_bitmaps/rookP_m.top.xbm, eastern_bitmaps/rookP_m.xbm, eastern_bitmaps/rookR.xbm, eastern_bitmaps/rookR_l.xbm, eastern_bitmaps/rookR_m.xbm, eastern_bitmaps/rook_l.xbm, eastern_bitmaps/rook_m.xbm, eastern_bitmaps/silver.xbm, eastern_bitmaps/silverP.xbm, eastern_bitmaps/silverPR.xbm, eastern_bitmaps/silverPR_l.xbm, eastern_bitmaps/silverPR_m.xbm, eastern_bitmaps/silverP_l.xbm, eastern_bitmaps/silverP_m.xbm, eastern_bitmaps/silverR.xbm, eastern_bitmaps/silverR_l.xbm, eastern_bitmaps/silverR_m.xbm, eastern_bitmaps/silver_l.xbm, eastern_bitmaps/silver_m.xbm, eastern_bitmaps/smallblank.xbm, eastern_bitmaps/smallblankR.xbm, eastern_bitmaps/smalllight.xbm, eastern_bitmaps/smallsolid.xbm, eastern_bitmaps/smallsolidR.xbm, eastern_bitmaps/smallsolidR_l.xbm, eastern_bitmaps/smallsolidR_m.xbm, eastern_bitmaps/smallsolid_l.xbm, eastern_bitmaps/smallsolid_m.xbm, new_eastern_bitmaps/bigsolidR_l.xbm, new_eastern_bitmaps/bigsolid_l.xbm, new_eastern_bitmaps/bishopPR_l.xbm, new_eastern_bitmaps/bishopP_l.xbm, new_eastern_bitmaps/bishopR_l.xbm, new_eastern_bitmaps/bishop_l.xbm, new_eastern_bitmaps/goldR_l.xbm, new_eastern_bitmaps/gold_l.xbm, new_eastern_bitmaps/kingR_l.xbm, new_eastern_bitmaps/king_l.xbm, new_eastern_bitmaps/knightPR_l.xbm, new_eastern_bitmaps/knightP_l.xbm, new_eastern_bitmaps/knightR_l.xbm, new_eastern_bitmaps/knight_l.xbm, new_eastern_bitmaps/lancePR_l.xbm, new_eastern_bitmaps/lanceP_l.xbm, new_eastern_bitmaps/lanceR_l.xbm, new_eastern_bitmaps/lance_l.xbm, {eastern_bitmaps => new_eastern_bitmaps}/none_l.xbm, new_eastern_bitmaps/pawnPR_l.xbm, new_eastern_bitmaps/pawnP_l.xbm, new_eastern_bitmaps/pawnR_l.xbm, new_eastern_bitmaps/pawn_l.xbm, new_eastern_bitmaps/rookPR_l.xbm, new_eastern_bitmaps/rookP_l.xbm, new_eastern_bitmaps/rookR_l.xbm, new_eastern_bitmaps/rook_l.xbm, new_eastern_bitmaps/silverPR_l.xbm, new_eastern_bitmaps/silverP_l.xbm, new_eastern_bitmaps/silverR_l.xbm, new_eastern_bitmaps/silver_l.xbm, new_eastern_bitmaps/smallsolidR_l.xbm, new_eastern_bitmaps/smallsolid_l.xbm, new_western_bitmaps/bishopPRW.xbm, new_western_bitmaps/bishopPW.xbm, new_western_bitmaps/bishopRW.xbm, new_western_bitmaps/bishopW.xbm, new_western_bitmaps/goldRW.xbm, new_western_bitmaps/goldW.xbm, new_western_bitmaps/kingRW.xbm, new_western_bitmaps/kingW.xbm, new_western_bitmaps/knightPRW.xbm, new_western_bitmaps/knightPW.xbm, new_western_bitmaps/knightRW.xbm, new_western_bitmaps/knightW.xbm, new_western_bitmaps/lancePRW.xbm, new_western_bitmaps/lancePW.xbm, new_western_bitmaps/lanceRW.xbm, new_western_bitmaps/lanceW.xbm, eastern_bitmaps/none_l.xbm => new_western_bitmaps/noneW.xbm, new_western_bitmaps/pawnPRW.xbm, new_western_bitmaps/pawnPW.xbm, new_western_bitmaps/pawnRW.xbm, new_western_bitmaps/pawnW.xbm, new_western_bitmaps/rookPRW.xbm, new_western_bitmaps/rookPW.xbm, new_western_bitmaps/rookRW.xbm, new_western_bitmaps/rookW.xbm, new_western_bitmaps/silverPRW.xbm, new_western_bitmaps/silverPW.xbm, new_western_bitmaps/silverRW.xbm, new_western_bitmaps/silverW.xbm, parser.y, scanner.l, sysdeps.h, western_bitmaps/TRANS.TBL, western_bitmaps/bishopPRW.xbm, western_bitmaps/bishopPW.xbm, western_bitmaps/bishopRW.xbm, western_bitmaps/bishopW.xbm, western_bitmaps/goldRW.xbm, western_bitmaps/goldW.xbm, western_bitmaps/kingRW.xbm, western_bitmaps/kingW.xbm, western_bitmaps/knightPRW.xbm, western_bitmaps/knightPW.xbm, western_bitmaps/knightRW.xbm, western_bitmaps/knightW.xbm, western_bitmaps/lancePRW.xbm, western_bitmaps/lancePW.xbm, western_bitmaps/lanceRW.xbm, western_bitmaps/lanceW.xbm, western_bitmaps/noneW.xbm, western_bitmaps/pawnPRW.xbm, western_bitmaps/pawnPW.xbm, western_bitmaps/pawnRW.xbm, western_bitmaps/pawnW.xbm, western_bitmaps/rookPRW.xbm, western_bitmaps/rookPW.xbm, western_bitmaps/rookRW.xbm, western_bitmaps/rookW.xbm, western_bitmaps/silverPRW.xbm, western_bitmaps/silverPW.xbm, western_bitmaps/silverRW.xbm, western_bitmaps/silverW.xbm, xshogi.c, xshogi.h, xshogifn.h: [gnushogi subtree] GNU Shogi 1.3.2 2002-04-26 Mike Vanier * BUGS, CONTRIB, COPYING, INSTALL, Imakefile, Makefile.custom, Makefile.in, CHANGES => NEWS, README, README-1.2p03, README.challenge, README.iss_client, README.xboard, REMOTEHOSTS, TRANS.TBL, bitmaps.h, eastern_bitmaps/TRANS.TBL, parsebrd.c, parser.bison, parser.c, parser.y, scanner.c, scanner.flex, scanner.l, sysdeps.h, version.h, western_bitmaps/TRANS.TBL, western_moves.ps, xshogi.c, xshogi.h, xshogi.man, xshogifn.h: [gnushogi subtree] GNU Shogi 1.3 1995-05-24 Matthias Mutz * CHANGES, INSTALL, Makefile.custom, README-1.2p01 => README-1.2p03, README.iss_client, parsebrd.c, version.h, xshogi.c, xshogi.h, xshogi.man: XShogi 1.2p03 1993-11-15 Matthias Mutz * XShogi 1.2p02 xshogi-1.4.2/xshogi.h0000644000175000017500000001416312274270516011425 00000000000000/* * FILE: xshogi.h * * Main header file for xshogi. * * ------------------------------------------------------------------------ * xshogi is based on XBoard -- an Xt/Athena user interface for GNU Chess. * * Original authors: Dan Sears, Chris Sears * Enhancements (Version 2.0 and following): Tim Mann * Modifications to XShogi (Version 1.0): Matthias Mutz * Enhancements to XShogi (Version 1.1): Matthias Mutz * Modified implementation of ISS mode for XShogi: Matthias Mutz * Current maintainer: Michael C. Vanier * * XShogi borrows some of its piece bitmaps from CRANES Shogi. * * Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts. * Enhancements Copyright 1992 Free Software Foundation, Inc. * Enhancements for XShogi Copyright 1993, 1994, 1995 Matthias Mutz * Copyright (c) 1999 Michael Vanier and the Free Software Foundation * * The following terms apply to Digital Equipment Corporation's copyright * interest in XBoard: * ------------------------------------------------------------------------ * All Rights Reserved * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, * provided that the above copyright notice appear in all copies and that * both that copyright notice and this permission notice appear in * supporting documentation, and that the name of Digital not be * used in advertising or publicity pertaining to distribution of the * software without specific, written prior permission. * * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS * SOFTWARE. * ------------------------------------------------------------------------ * * This file is part of GNU shogi. * * GNU shogi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation. * * GNU shogi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GNU shogi; see the file COPYING. If not, write to * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. * * ------------------------------------------------------------------------ * */ #ifndef _XSHOGI_H_ #define _XSHOGI_H_ #define BOARD_SIZE 9 #define DROP_LINES 3 #define DROP_COLS 3 #ifdef WESTERN_BITMAPS #define LARGE_SQUARE_SIZE 64 #define MEDIUM_SQUARE_SIZE 32 #else #define LARGE_SQUARE_SIZE 64 #define MEDIUM_SQUARE_SIZE 49 #endif #define SMALL_SQUARE_SIZE 32 #define LINE_GAP 2 #define MAX_MOVES 512 #define MSG_SIZ 256 #define DIALOG_SIZE 256 #define MOVE_ #define MOVE_LEN 16 /* enough for "Black resigns\000"*/ #define TIME_CONTROL "5" /* in minutes */ #define TIME_DELAY "1.0" /* seconds between moves */ #define MOVES_PER_SESSION 40 /* moves per TIME_CONTROL */ #define BlackOnMove(move) ((int) ((move) % 2) == 0) #define BELLCHAR '\007' #define NULLCHAR '\000' #ifndef FIRST_SHOGI_PROGRAM #define FIRST_SHOGI_PROGRAM "gnushogi" #endif #ifndef SECOND_SHOGI_PROGRAM #define SECOND_SHOGI_PROGRAM "gnushogi" #endif #ifndef FIRST_HOST #define FIRST_HOST "localhost" #endif #ifndef SECOND_HOST #define SECOND_HOST "localhost" #endif #define MATCH_MODE "False" #define INIT_STRING "beep\neasy\nrandom\n" #define BLACK_STRING "black\ngo\n" #define WHITE_STRING "white\ngo\n" #define DEFAULT_SIZE "Large" #define LIGHT 1 #define DARK 0 #define CHAR_PIECE_COLOR "Black" #define ZERO_COLOR "#000000" #define ONE_COLOR "#FFFFFF" #define PIECE_COLOR "#FFFFD7" #define SQUARE_COLOR "#EBDFB0" #define MAIN_FONT "-*-helvetica-medium-o-normal--*-*-*-*-*-*-*-*" #define COORD_FONT "-*-helvetica-bold-r-normal--*-*-*-*-*-*-*-*" #define DEFAULT_FONT "*font: -*-helvetica-medium-r-normal--*-120-*-*-*-*-*-*" #define BLINK_COUNT 3 #define BORDER_X_OFFSET 3 #define BORDER_Y_OFFSET 27 typedef enum { Large, Medium, Small } BoardSize; typedef enum { BeginningOfGame, MachinePlaysBlack, MachinePlaysWhite, TwoMachinesPlay, ForceMoves, PlayFromGameFile, PauseGame, EndOfGame, EditPosition } GameMode; typedef enum { MatchFalse, MatchInit, MatchPosition, MatchOpening } MatchMode; typedef enum { BlackPawn, BlackLance, BlackKnight, BlackSilver, BlackGold, BlackBishop, BlackRook, BlackPPawn, BlackPLance, BlackPKnight, BlackPSilver, BlackPBishop, BlackPRook, BlackKing, WhitePawn, WhiteLance, WhiteKnight, WhiteSilver, WhiteGold, WhiteBishop, WhiteRook, WhitePPawn, WhitePLance, WhitePKnight, WhitePSilver, WhitePBishop, WhitePRook, WhiteKing, EmptySquare, ClearBoard, BlackPlay, WhitePlay /* for use on EditPosition menus */ } ShogiSquare; typedef ShogiSquare Board[BOARD_SIZE][BOARD_SIZE]; typedef int Catched[2][8]; typedef enum { BlackPromotion = 1, WhitePromotion, BlackDrop, WhiteDrop, NormalMove, BlackWins, WhiteWins, GameIsDrawn, StartGame, BadMove, Comment, AmbiguousMove } ShogiMove; typedef enum { ResetTimers, DecrementTimers, SwitchTimers, ReDisplayTimers, StopTimers, StartTimers } ClockMode; /* * This is a hack that allows the parser to tell the program * that the game it's loading has finished. */ extern int loaded_game_finished; #endif /* _XSHOGI_H_ */ xshogi-1.4.2/NEWS0000644000175000017500000000740512274274005010450 00000000000000Changes of XShogi will are recorded starting with XShogi 1.0 patchlevel 10. version 1.4.2 o Split out of the GNU Shogi source. o Official depreciation notice. version 1.3 01.06.1999 o New maintainer: Mike Vanier (mvanier@bbb.caltech.edu). o Merged xshogi into the gnushogi source tree. Henceforth, further revisions of xshogi will be noted in the top-level NEWS file; this file will not be added to. o Cleaned up the source code and Makefile. o Changed the code to refer to "gnushogi" instead of "gnushogix" since gnushogi now is only one executable, and the default input/output format is the xshogi format. o Removed support for Internet Shogi Server (ISS); there are now better ways to play shogi over the internet such as JavaShogi, so this support was redundant. version 1.2 patchlevel 2 -> version 1.2 patchlevel 3 23.5.1995 several changes concerning color and time control 11.2.1994 going into force mode after pressing backward button version 1.2 patchlevel 1 -> version 1.2 patchlevel 2 11.10.1993 correcting "Save/Load File/Position" bugs correction for compilation without -DISS adding "Save Game" to ISS mode version 1.1 patchlevel 3 -> version 1.2 patchlevel 1 28.10.1993 Support if the Internet Shogi Server (ISS) according to XBoard 2.1 with -iss True. Access Western piece set with -wps True Display negative times (after fallen flag) version 1.1 patchlevel 2 -> version 1.1 patchlevel 3 05.08.1993 Adding "Select Level" button: allows to reset thinking time for black and white. Adding "Move NOW" button: forces GNU Shogi to stop thinking and to make the current best move. 17.07.1993 checking file type when loading game or position from file 02.07.1993 Adding a "Challenge" button: pressing this button tries to open a new window on a remote display, which can be used in "force" mode as interface for a remote player. 11.05.1993 Detect draw by repetition 05.04.1993 Adding alternative eastern bitmaps for promoted rook and promoted bishop 04.29.1993 Correction of the Send Board routine: now promoted pieces are sent as promoted (and not as unpromoted as in the previous version) to gnushogix. After loading position from game file, side next to move is now set correctly. version 1.1 patchlevel 1 -> version 1.1 patchlevel 2 04/28/1993 Change white colored symbols on some color monitors to black symbols. version 1.0 patchlevel 11 -> version 1.1 patchlevel 1 04/27/1993 Allow different colors for board and pieces on board. 04/12/1993 Flipping horizontally the reversed pieces. Thanx to Mr. R.Susukita, who noticed the wrong images of reversed Chinese characters. Blinking piece on the square the machine has moved to. The number of blinks is controlled by BLINK_COUNT in "xshogi.h". 04/09/1993 Extenting the "save game" option. Text files created by this commond can be used as GNU Shogi text book files. If the file name exists, the user has the option to append the current game to the file or to overwrite the existing file. patchlevel 10 -> 11 04/08/1993 Correction of the "save game" command. Now, games saved with this command can be read in using the "load game" command. "parser.l" has been replaced by "parser.bison" and "scanner.flex". The creation of "parser.c" using GNU Bison and GNU Flex has been included in "Makefile.custom". patchlevel 9 -> 10 04/01/1993 Some changes in the Makefile in order to make it more easier to install on different machines. 04/02/1993 Changing "bitmaps" to "eastern_bitmaps" and adding the more chess-like pieces from Paul Reines as "western_bitmaps". This forces minor changes in xshogi.c. xshogi-1.4.2/scanner.l0000644000175000017500000000755412274270526011570 00000000000000%{ /* * FILE: scanner.l * * Lexer for xshogi. * * ------------------------------------------------------------------------ * xshogi is based on XBoard -- an Xt/Athena user interface for GNU Chess. * * Original authors: Dan Sears, Chris Sears * Enhancements (Version 2.0 and following): Tim Mann * Modifications to XShogi (Version 1.0): Matthias Mutz * Enhancements to XShogi (Version 1.1): Matthias Mutz * Modified implementation of ISS mode for XShogi: Matthias Mutz * Current maintainer: Michael C. Vanier * * XShogi borrows some of its piece bitmaps from CRANES Shogi. * * Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts. * Enhancements Copyright 1992 Free Software Foundation, Inc. * Enhancements for XShogi Copyright 1993, 1994, 1995 Matthias Mutz * Copyright (c) 1999 Michael Vanier and the Free Software Foundation * * The following terms apply to Digital Equipment Corporation's copyright * interest in XBoard: * ------------------------------------------------------------------------ * All Rights Reserved * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, * provided that the above copyright notice appear in all copies and that * both that copyright notice and this permission notice appear in * supporting documentation, and that the name of Digital not be * used in advertising or publicity pertaining to distribution of the * software without specific, written prior permission. * * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS * SOFTWARE. * ------------------------------------------------------------------------ * * This file is part of GNU shogi. * * GNU shogi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation. * * GNU shogi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GNU shogi; see the file COPYING. If not, write to * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. * * ------------------------------------------------------------------------ * */ #include "parser.h" extern int lines, cols; %} PIECE [PLNSGBRK] SQUARE [1-9][a-i] NUMBER [1-9]([0-9])* COMMENT ["#"]([^\n])* %% "White wins" { return WHITE_WINS; } "Black wins" { return BLACK_WINS; } "Draw" { return DRAW; } "\n" { lines++; cols = 1; } "+" { cols++; return PROMOTE; } "*" { cols++; return DROPS; } "'" { cols++; return DROPS; } "." { cols++; return COLON; } {PIECE} { yylval.string = yytext; cols += strlen(yytext); return PIECE; } {SQUARE} { yylval.string = yytext; cols += strlen(yytext); return SQUARE; } {NUMBER} { yylval.string = yytext; cols += strlen(yytext); return NUMBER; } {COMMENT} { yylval.string = yytext; lines++; cols = 1; return COMMENT; } . { cols++; } %% /* * This is to avoid having to link in a lex library; * flex also allows the "%option noyywrap" option but * I don't think that's generally true of other lex * implementations. */ int yywrap() { return 1; } xshogi-1.4.2/REMOTEHOSTS0000644000175000017500000000102312274270516011501 00000000000000NOTE: this file may be seriously outdated. I haven't had time to go over it yet. Let me know if there are problems. -- Mike (mvanier@bbb.caltech.edu) If you want to use a remote host, you have to modify "xshogi.h". The program "gnushogi" must be known. In case of trouble, create a symbolic link to the gnushogi distribution , e.g. : ln -s $(HOME)/gnushogi-1.3/src/gnushogi gnushogi1 for the first gnushogi program. If you would like to let two versions play against each other, establish a similar link for gnushogi2. xshogi-1.4.2/README.xboard0000644000175000017500000001164112274270516012107 00000000000000---------------------------------------------------------------------- xshogi is based on xboard. This file includes copyright information for xboard. ---------------------------------------------------------------------- XBoard -- an Xt/Athena user interface for GNU Chess Original authors: Dan Sears and Chris Sears Enhancements (Version 2.0): Tim Mann XBoard borrows its colors, icon and piece bitmaps from XChess which was written and is copyrighted by Wayne Christopher. Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts. Enhancements Copyright 1992 Free Software Foundation, Inc. The following terms apply to Digital Equipment Corporation's copyright interest in XBoard: ------------------------------------------------------------------------ All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of Digital not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ------------------------------------------------------------------------ The following terms apply to the enhanced version of XBoard distributed by the Free Software Foundation: ------------------------------------------------------------------------ This file is part of XBOARD. XBOARD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. No author or distributor accepts responsibility to anyone for the consequences of using it or for whether it serves any particular purpose or works at all, unless he says so in writing. Refer to the XBOARD General Public License for full details. Everyone is granted permission to copy, modify and redistribute XBOARD, but only under the conditions described in the XBOARD General Public License. A copy of this license is supposed to have been given to you along with XBOARD so you can know your rights and responsibilities. It should be in a file named COPYING. Among other things, the copyright notice and this notice must be preserved on all copies. ------------------------------------------------------------------------ XBoard is an X11/R4-based user interface for GNU Chess. It uses the R4 Athena widgets and Xt Intrinsics to provide an interactive referee for managing a chess game between a user and a computer opponent or between two computers. You can also use XBoard without a chess program to play through games in files or to play through games manually (force mode); in this case, moves aren't validated by XBoard. XBoard manages a digital chess clock for each player and resets the clocks if the proper number of moves are played within the time control period. A game can be started with the initial chess position, with a series of moves from a game file or with a position from a position file. The "match" shell script runs a series of games between two machines, alternating sides. The man page xboard.man describes the features of XBoard. XBoard was originally written by Dan Sears and Chris Sears. XBoard borrows its colors, icons and piece bitmaps from XChess, which was written and copyrighted by Wayne Christopher. We thank him for his work on XChess. Beginning with version 2.0, Tim Mann has taken over development of XBoard. Report bugs to Tim Mann , with a carbon copy to Stuart Cracraft . If you improve XBoard, please send your changes to Tim and Stuart. CAVEATS XBoard depends on the R4 Xt Intrinsics and R4 Athena Widget Set. In particular, R3 just won't do---XBoard uses features introduced in R4. The standard DEC and SUN releases won't do either. The Athena widgets are either missing in the DEC standard distribution or in the wrong (R3) place in SUN OpenWindows. XBoard works best with version 4.0 of GNU Chess. (Older versions may also work, but they are unsupported. The GNU Chess project requests that you get a current copy of GNU Chess rather than using older, bug-ridden versions.) GNU Chess must be compiled with the -DXBOARD flag for use with XBoard. Use the "make gnuchessx" target in GNU Chess 4.0 to do this. The Free Software Foundation would prefer to be able to distribute an X chessboard program covered only by the GNU General Public License and unencumbered by any other copyright. If you can help with this, please contact the FSF. xshogi-1.4.2/parser.y0000644000175000017500000001502312274270526011436 00000000000000%{ /* * FILE: parser.y * * Board parser for xshogi. * * ------------------------------------------------------------------------ * xshogi is based on XBoard -- an Xt/Athena user interface for GNU Chess. * * Original authors: Dan Sears, Chris Sears * Enhancements (Version 2.0 and following): Tim Mann * Modifications to XShogi (Version 1.0): Matthias Mutz * Enhancements to XShogi (Version 1.1): Matthias Mutz * Modified implementation of ISS mode for XShogi: Matthias Mutz * Current maintainer: Michael C. Vanier * * XShogi borrows some of its piece bitmaps from CRANES Shogi. * * Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts. * Enhancements Copyright 1992 Free Software Foundation, Inc. * Enhancements for XShogi Copyright 1993, 1994, 1995 Matthias Mutz * Copyright 1998, 1999 Michael C. Vanier and the Free Software Foundation * * The following terms apply to Digital Equipment Corporation's copyright * interest in XBoard: * ------------------------------------------------------------------------ * All Rights Reserved * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, * provided that the above copyright notice appear in all copies and that * both that copyright notice and this permission notice appear in * supporting documentation, and that the name of Digital not be * used in advertising or publicity pertaining to distribution of the * software without specific, written prior permission. * * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS * SOFTWARE. * ------------------------------------------------------------------------ * * This file is part of GNU shogi. * * GNU shogi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation. * * GNU shogi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GNU shogi; see the file COPYING. If not, write to * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. * * ------------------------------------------------------------------------ * */ #include "xshogi.h" #include #include #include enum { False, True }; static void yyerror(); static ShogiMove move_type; static int from_x, from_y, to_x, to_y; static char piece; char currentMoveString[MSG_SIZ]; static char token[20]; FILE *outfile = (FILE *)0; extern FILE *gameFileFP, *toFirstProgFP; extern int currentMove; extern char moveList[MAX_MOVES][MOVE_LEN]; extern void SendToProgram(char *message, FILE *fp); extern void MakeMove(ShogiMove *move_type, int from_x, int from_y, int to_x, int to_y); int lines = 1, cols = 1; %} %start goal %token PROMOTE DROPS PIECE SQUARE NUMBER COMMENT COLON %token BLACK_WINS WHITE_WINS DRAW %union { int val; char* string; } %% goal: comment_list move_elem move_list ; comment_list: | comment_list COMMENT { fprintf(stderr, "%s\n", $2); } ; move_list: | move_list move_elem ; move_elem: { strcpy(token, "number"); } number { strcpy(token, "promoted"); } promoted { strcpy(token, "move"); } move ; number: | NUMBER { strcpy(token, "colon"); } COLON ; promoted: | PROMOTE ; move: SQUARE { from_x = '9' - $1[0]; from_y = 'i' - $1[1]; strcpy(currentMoveString,$1); strcpy(token, "square"); } SQUARE { to_x = '9' - $3[0]; to_y = 'i' - $3[1]; strcat(currentMoveString,$3); } { move_type = NormalMove; } promotion { SendToProgram(currentMoveString, toFirstProgFP); strcpy(moveList[currentMove], currentMoveString); MakeMove(&move_type, from_x, from_y, to_x, to_y); } | PIECE { piece = $1[0]; strcpy(currentMoveString,$1); strcpy(token,"'*'"); } DROPS { strcat(currentMoveString,"*"); strcpy(token, "square"); } SQUARE { to_x = '9' - $5[0]; to_y = 'i' - $5[1]; strcat(currentMoveString,$5); } { move_type = (BlackOnMove(currentMove) ? BlackDrop : WhiteDrop); switch ( piece ) { case 'P': from_x = 81; break; case 'L': from_x = 82; break; case 'N': from_x = 83; break; case 'S': from_x = 84; break; case 'G': from_x = 85; break; case 'B': from_x = 86; break; case 'R': from_x = 87; break; case 'K': from_x = 88; break; default: from_x = -1; }; from_y = from_x; SendToProgram(currentMoveString, toFirstProgFP); strcpy(moveList[currentMove], currentMoveString); MakeMove(&move_type, from_x, from_y, to_x, to_y); } | BLACK_WINS { loaded_game_finished = 1; DisplayMessage("Black wins", False); } | WHITE_WINS { loaded_game_finished = 1; DisplayMessage("White wins", False); } | DRAW { loaded_game_finished = 1; DisplayMessage("Draw", False); } ; promotion: | PROMOTE { move_type = (BlackOnMove(currentMove) ? BlackPromotion : WhitePromotion); strcat(currentMoveString,"+"); } ; %% static void yyerror(char *errmsg) { if (strlen(token) > 0) { fprintf(stderr, "parse error line %d column %d : %s expected\n", lines, cols, token); token[0] = '\0'; } else { fprintf(stderr,"parse error line %d column %d : %s\n", lines, cols, errmsg); } exit(-1); } extern FILE *yyin; void parseGameFile() { yyin = gameFileFP; outfile = stderr; yyparse(); } xshogi-1.4.2/eastern_bitmaps/0000755000175000017500000000000012274274137013211 500000000000000xshogi-1.4.2/eastern_bitmaps/knightPR.xbm0000644000175000017500000000136112274270516015365 00000000000000#define knightPR_width 32 #define knightPR_height 32 static unsigned char knightPR_bits[] = { 0xfc,0xff,0xff,0x1f,0x04,0x00,0x00,0x30,0x04,0x00,0x00,0x30,0x04,0xfe,0x0d, 0x30,0x04,0x30,0x0c,0x30,0x08,0x30,0x0c,0x18,0x08,0xfc,0x0c,0x18,0x08,0x30, 0x2c,0x18,0x08,0xfe,0x1e,0x18,0x10,0x30,0x0c,0x0c,0x10,0xfc,0x3e,0x0c,0x10, 0x30,0x0c,0x0c,0x10,0x30,0x0c,0x0c,0x20,0x00,0x00,0x06,0x20,0x08,0x13,0x06, 0x20,0x5c,0x1b,0x06,0x20,0x30,0x1b,0x06,0x40,0x38,0x1b,0x03,0x40,0x6c,0x1f, 0x03,0x40,0x60,0x18,0x03,0x40,0xc0,0x18,0x03,0x80,0xf8,0x9f,0x01,0x80,0xc0, 0x80,0x01,0x80,0x10,0x80,0x01,0x00,0x03,0xe0,0x00,0x00,0x0c,0x78,0x00,0x00, 0x30,0x1e,0x00,0x00,0xc0,0x07,0x00,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/knightPR_m.xbm0000644000175000017500000000350612274270516015704 00000000000000#define knightPR_m_width 49 #define knightPR_m_height 49 static unsigned char knightPR_m_bits[] = { 0xf8,0xff,0xff,0xff,0xff,0x0f,0xfe,0xf8,0xff,0xff,0xff,0xff,0x0f,0xfe,0xf8, 0xff,0xff,0xff,0xff,0x1f,0xfe,0xf8,0xff,0xff,0xff,0xff,0x1f,0xfe,0x38,0x00, 0x00,0x00,0x00,0x10,0xfe,0x38,0x00,0x00,0x00,0x00,0x10,0xfe,0x38,0x00,0x00, 0x00,0x00,0x10,0xfe,0x38,0x80,0xff,0xe7,0x00,0x10,0xfe,0x30,0x00,0x38,0xe0, 0x00,0x10,0xfe,0x30,0x00,0x38,0xe0,0x00,0x10,0xfe,0x70,0x00,0x38,0xe0,0x00, 0x0c,0xfe,0x70,0x00,0xff,0xe3,0x00,0x0c,0xfe,0x70,0x00,0xff,0xe3,0x00,0x0c, 0xfe,0x70,0x00,0x38,0xe0,0x06,0x0c,0xfe,0x40,0x80,0xff,0xfb,0x01,0x0c,0xfe, 0x40,0x80,0xff,0xfb,0x01,0x0c,0xfe,0xc0,0x01,0x38,0xe0,0x00,0x02,0xfe,0xc0, 0x01,0xff,0xfb,0x07,0x02,0xfe,0xc0,0x01,0xff,0xfb,0x07,0x02,0xfe,0xc0,0x01, 0x38,0xe0,0x00,0x02,0xfe,0x80,0x01,0x38,0xe0,0x00,0x02,0xfe,0x80,0x01,0x38, 0xe0,0x00,0x02,0xfe,0x80,0x03,0x00,0x00,0x80,0x01,0xfe,0x80,0x03,0x04,0x1c, 0x81,0x01,0xfe,0x80,0x03,0x04,0x1c,0x81,0x01,0xfe,0x80,0x03,0xdf,0xdc,0x81, 0x01,0xfe,0x80,0x03,0xdf,0xdc,0x81,0x01,0xfe,0x00,0x02,0x38,0xdc,0x81,0x01, 0xfe,0x00,0x0e,0x3c,0xdc,0x41,0x00,0xfe,0x00,0x0e,0x3c,0xdc,0x41,0x00,0xfe, 0x00,0x0e,0xe7,0xfc,0x41,0x00,0xfe,0x00,0x0e,0xe0,0xc0,0x41,0x00,0xfe,0x00, 0x0e,0xe0,0xc0,0x41,0x00,0xfe,0x00,0x0c,0xc0,0xc3,0x41,0x00,0xfe,0x00,0x1c, 0xfc,0xff,0x31,0x00,0xfe,0x00,0x1c,0xfc,0xff,0x31,0x00,0xfe,0x00,0x1c,0xc0, 0x03,0x30,0x00,0xfe,0x00,0x10,0x18,0x00,0x30,0x00,0xfe,0x00,0x10,0x18,0x00, 0x30,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01, 0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0x00,0x38,0x38,0x00,0x00, 0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe, 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe}; xshogi-1.4.2/eastern_bitmaps/pawnPR_m.xbm0000644000175000017500000000350012274270516015357 00000000000000#define pawnPR_m_width 49 #define pawnPR_m_height 49 static unsigned char pawnPR_m_bits[] = { 0xf8,0xff,0xff,0xff,0xff,0x0f,0xfe,0xf8,0xff,0xff,0xff,0xff,0x0f,0xfe,0xf8, 0xff,0xff,0xff,0xff,0x1f,0xfe,0xf8,0xff,0xff,0xff,0xff,0x1f,0xfe,0x38,0x00, 0x00,0x00,0x00,0x10,0xfe,0x38,0x00,0x00,0x00,0x00,0x10,0xfe,0x38,0x00,0x00, 0x00,0x00,0x10,0xfe,0x38,0x00,0x00,0x00,0x00,0x10,0xfe,0x30,0x00,0x00,0x00, 0x00,0x10,0xfe,0x30,0x00,0x00,0x00,0x00,0x10,0xfe,0x70,0x00,0x00,0x00,0x00, 0x0c,0xfe,0x70,0x00,0x00,0x00,0x00,0x0c,0xfe,0x70,0x00,0x00,0x00,0x00,0x0c, 0xfe,0x70,0x00,0xfc,0x1f,0x00,0x0c,0xfe,0x40,0x00,0xfc,0x3f,0x00,0x0c,0xfe, 0x40,0x00,0xfc,0x3f,0x00,0x0c,0xfe,0xc0,0x01,0x00,0x38,0x00,0x02,0xfe,0xc0, 0x01,0x00,0x38,0x00,0x02,0xfe,0xc0,0x01,0x00,0x38,0x00,0x02,0xfe,0xc0,0x01, 0x00,0x1c,0x00,0x02,0xfe,0x80,0x01,0xc0,0x07,0x00,0x02,0xfe,0x80,0x01,0xc0, 0x07,0x00,0x02,0xfe,0x80,0x03,0x38,0x07,0x80,0x01,0xfe,0x80,0x03,0x00,0x07, 0x80,0x01,0xfe,0x80,0x03,0x00,0x07,0x80,0x01,0xfe,0x80,0x03,0x00,0x07,0x80, 0x01,0xfe,0x80,0x03,0x00,0x07,0x80,0x01,0xfe,0x00,0x02,0x00,0x07,0x80,0x01, 0xfe,0x00,0x0e,0x00,0x07,0x40,0x00,0xfe,0x00,0x0e,0x00,0x07,0x40,0x00,0xfe, 0x00,0x0e,0x00,0x00,0x40,0x00,0xfe,0x00,0x0e,0x00,0x00,0x40,0x00,0xfe,0x00, 0x0e,0x00,0x00,0x40,0x00,0xfe,0x00,0x0c,0x00,0x00,0x40,0x00,0xfe,0x00,0x1c, 0x00,0x00,0x30,0x00,0xfe,0x00,0x1c,0x00,0x00,0x30,0x00,0xfe,0x00,0x1c,0x00, 0x00,0x30,0x00,0xfe,0x00,0x10,0x00,0x00,0x30,0x00,0xfe,0x00,0x10,0x00,0x00, 0x30,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01, 0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0x00,0x38,0x38,0x00,0x00, 0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe, 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe}; xshogi-1.4.2/eastern_bitmaps/bishopPR_l.top.xbm0000644000175000017500000000634612274270516016511 00000000000000#define bishopPR_l_width 64 #define bishopPR_l_height 64 static unsigned char bishopPR_l_bits[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x0c, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0xc0, 0x3c, 0x00, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x30, 0x3c, 0x00, 0xe0, 0x07, 0x00, 0x38, 0x00, 0x30, 0x3c, 0x00, 0xf0, 0x8b, 0x31, 0x3c, 0x00, 0x30, 0x3c, 0x00, 0xf0, 0xc0, 0x39, 0x3c, 0x00, 0x30, 0x3c, 0x00, 0xf0, 0xc6, 0x39, 0x3c, 0x00, 0x30, 0x3c, 0x00, 0xf0, 0xce, 0x39, 0x1c, 0x00, 0x30, 0x30, 0x00, 0xf0, 0x8e, 0x31, 0x1c, 0x00, 0x30, 0x30, 0x00, 0xf0, 0x0c, 0x63, 0x0e, 0x00, 0x30, 0xf0, 0x00, 0xf0, 0x18, 0x42, 0x06, 0x00, 0x0c, 0xf0, 0x00, 0xf0, 0x00, 0x00, 0x02, 0x00, 0x0c, 0xf0, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x0c, 0xf0, 0x00, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x0c, 0xf0, 0x00, 0xf8, 0x00, 0xc0, 0x01, 0x00, 0x0c, 0xf0, 0x00, 0xf8, 0xff, 0xff, 0x03, 0x00, 0x0c, 0xc0, 0x00, 0xf0, 0xff, 0xff, 0x03, 0x00, 0x0c, 0xc0, 0x00, 0xe0, 0x80, 0xc3, 0x03, 0x00, 0x0c, 0xc0, 0x03, 0x00, 0x80, 0xc3, 0x03, 0x00, 0x03, 0xc0, 0x03, 0x00, 0x80, 0xc3, 0x03, 0x00, 0x03, 0xc0, 0x03, 0x00, 0xfe, 0xff, 0x03, 0x00, 0x03, 0xc0, 0x03, 0x00, 0xfc, 0xff, 0x03, 0x00, 0x03, 0xc0, 0x03, 0x00, 0x88, 0xc3, 0x03, 0x00, 0x03, 0xc0, 0x03, 0x00, 0x80, 0xc3, 0x03, 0x00, 0x03, 0x00, 0x03, 0x00, 0x80, 0xc3, 0x03, 0x00, 0x03, 0x00, 0x03, 0x00, 0xfe, 0xff, 0x03, 0x00, 0x03, 0x00, 0x0f, 0x00, 0xfc, 0xff, 0x03, 0xc0, 0x00, 0x00, 0x0f, 0x00, 0x88, 0xc3, 0x03, 0xc0, 0x00, 0x00, 0x0f, 0x00, 0x80, 0xc3, 0x03, 0xc0, 0x00, 0x00, 0x0f, 0x00, 0x80, 0xc3, 0x03, 0xc0, 0x00, 0x00, 0x0f, 0x80, 0xff, 0xff, 0x03, 0xc0, 0x00, 0x00, 0x0f, 0x00, 0xff, 0xff, 0x03, 0xc0, 0x00, 0x00, 0x0c, 0x00, 0x06, 0x00, 0x07, 0xc0, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; xshogi-1.4.2/eastern_bitmaps/smallblank.xbm0000644000175000017500000000136712274270516015765 00000000000000#define smallblank_width 32 #define smallblank_height 32 static unsigned char smallblank_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0x01, 0x00,0x00,0x30,0x06,0x00,0x00,0x0c,0x18,0x00,0x00,0x03,0x60,0x00,0x80,0x00, 0x80,0x00,0x80,0x00,0x80,0x01,0x80,0x00,0x80,0x01,0x40,0x00,0x00,0x01,0x40, 0x00,0x00,0x03,0x40,0x00,0x00,0x03,0x40,0x00,0x00,0x03,0x20,0x00,0x00,0x02, 0x20,0x00,0x00,0x06,0x20,0x00,0x00,0x06,0x20,0x00,0x00,0x06,0x10,0x00,0x00, 0x04,0x10,0x00,0x00,0x0c,0x10,0x00,0x00,0x0c,0x10,0x00,0x00,0x0c,0x08,0x00, 0x00,0x08,0x08,0x00,0x00,0x18,0x08,0x00,0x00,0x18,0x08,0x00,0x00,0x18,0x04, 0x00,0x00,0x10,0x04,0x00,0x00,0x30,0x04,0x00,0x00,0x30,0x04,0x00,0x00,0x30, 0xfc,0xff,0xff,0x3f,0xf8,0xff,0xff,0x3f}; xshogi-1.4.2/eastern_bitmaps/silverP_l.xbm0000644000175000017500000000627212274270516015604 00000000000000#define silverP_l_width 64 #define silverP_l_height 64 static unsigned char silverP_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x81, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x01, 0x3c, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xc0, 0x01, 0xc0, 0x03, 0x00, 0x00, 0x1c, 0x00, 0x3c, 0x1e, 0x00, 0x1c, 0x00, 0x00, 0x04, 0xc0, 0x03, 0xe0, 0x01, 0x10, 0x00, 0x00, 0x06, 0x38, 0x00, 0x00, 0x0e, 0x60, 0x00, 0x00, 0x8a, 0x07, 0x00, 0x00, 0xf0, 0x40, 0x00, 0x00, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x4f, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x80, 0x03, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x80, 0x03, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0x80, 0x03, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0xc0, 0x03, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xe0, 0x07, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xe0, 0x06, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x70, 0x0c, 0x00, 0x00, 0x02, 0x40, 0x04, 0x00, 0x38, 0x18, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x1c, 0x70, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x06, 0xe0, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x03, 0xc0, 0x03, 0x00, 0x02, 0x40, 0x02, 0xc0, 0x01, 0x9c, 0x0f, 0x00, 0x02, 0x40, 0x02, 0xe0, 0xf0, 0x0f, 0x3f, 0x00, 0x04, 0x20, 0x02, 0x30, 0xfe, 0x01, 0x7c, 0x00, 0x04, 0x20, 0x02, 0x1e, 0x80, 0x01, 0xf8, 0x00, 0x04, 0x20, 0x01, 0x00, 0x00, 0x39, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0xfe, 0x1f, 0x00, 0x00, 0x04, 0x20, 0x01, 0x80, 0x7f, 0x01, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x08, 0x20, 0x01, 0x00, 0x80, 0xfd, 0x00, 0x00, 0x08, 0x10, 0x01, 0x00, 0xfe, 0xff, 0x01, 0x00, 0x08, 0x10, 0x01, 0x80, 0xff, 0x01, 0x00, 0x00, 0x08, 0x90, 0x00, 0x80, 0x03, 0x01, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0xc0, 0xc1, 0x1f, 0x00, 0x10, 0x90, 0x00, 0x80, 0xff, 0xff, 0x3f, 0x00, 0x10, 0x88, 0x00, 0xf0, 0xff, 0xff, 0x3f, 0x00, 0x10, 0x48, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/silver.xbm0000644000175000017500000000135312274270516015144 00000000000000#define silver_width 32 #define silver_height 32 static unsigned char silver_bits[] = { 0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x30,0x06,0x00,0x00,0x0c,0x18, 0x00,0x00,0x03,0x60,0x00,0xc0,0x00,0x80,0x01,0x20,0x18,0x00,0x02,0x20,0x34, 0x3f,0x06,0x20,0x62,0x33,0x06,0x20,0x3d,0x3f,0x06,0x10,0x18,0x33,0x04,0x10, 0x7e,0x3f,0x0c,0x10,0x18,0x03,0x0c,0x10,0x5a,0x2b,0x0c,0x08,0x18,0x1b,0x08, 0x08,0x7f,0x77,0x18,0x08,0x00,0x00,0x18,0x08,0x00,0x3c,0x18,0x04,0xda,0x23, 0x10,0x04,0x5a,0x36,0x30,0x04,0xda,0x14,0x30,0x04,0x9f,0x00,0x30,0x02,0x18, 0x18,0x20,0x02,0xdf,0x7f,0x60,0x02,0x1a,0x18,0x60,0x02,0x9a,0x18,0x60,0x01, 0x19,0x19,0x40,0x01,0x19,0x0c,0xc0,0x01,0x00,0x00,0xc0,0x01,0x00,0x00,0xc0, 0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff}; xshogi-1.4.2/eastern_bitmaps/knight_m.xbm0000644000175000017500000000350012274270516015434 00000000000000#define knight_m_width 49 #define knight_m_height 49 static unsigned char knight_m_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00, 0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0xc0, 0x07,0x00,0x00,0xfe,0x00,0x00,0x38,0x38,0x00,0x00,0xfe,0x00,0x00,0x07,0xc0, 0x01,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e, 0x00,0xfe,0x00,0x18,0x00,0x00,0x10,0x00,0xfe,0x00,0x18,0x00,0x00,0x10,0x00, 0xfe,0x00,0x18,0x00,0x00,0x70,0x00,0xfe,0x00,0x18,0x0e,0x0e,0x70,0x00,0xfe, 0x00,0x18,0x0e,0x0e,0x70,0x00,0xfe,0x00,0x04,0x0e,0x0e,0x60,0x00,0xfe,0x00, 0xc4,0xcf,0x7f,0xe0,0x00,0xfe,0x00,0xc4,0xcf,0x7f,0xe0,0x00,0xfe,0x00,0x04, 0x0e,0x0e,0xe0,0x00,0xfe,0x00,0x04,0xcf,0xff,0xe1,0x00,0xfe,0x00,0x04,0xcf, 0xff,0xe1,0x00,0xfe,0x00,0xc3,0x0e,0x0e,0x80,0x00,0xfe,0x00,0x03,0xce,0x7f, 0x80,0x03,0xfe,0x00,0x03,0xce,0x7f,0x80,0x03,0xfe,0x00,0x03,0x0e,0x0e,0x80, 0x03,0xfe,0x00,0x03,0x0e,0x0e,0x80,0x03,0xfe,0x00,0x03,0xce,0xff,0x83,0x03, 0xfe,0x80,0x00,0x00,0x00,0x00,0x03,0xfe,0x80,0x00,0x00,0x00,0x00,0x03,0xfe, 0x80,0x00,0xfe,0xff,0x01,0x07,0xfe,0x80,0x00,0x8e,0x07,0x00,0x07,0xfe,0x80, 0x00,0x8e,0x07,0x00,0x07,0xfe,0x80,0x00,0xfe,0x7f,0x00,0x07,0xfe,0x60,0x00, 0x8e,0x07,0x00,0x04,0xfe,0x60,0x00,0x8e,0x07,0x00,0x04,0xfe,0x60,0x00,0xfe, 0x7f,0x00,0x1c,0xfe,0x60,0x00,0x8e,0x07,0x00,0x1c,0xfe,0x60,0x00,0x8e,0x07, 0x00,0x1c,0xfe,0x60,0x00,0xfe,0xff,0x03,0x1c,0xfe,0x10,0x00,0x00,0x80,0x03, 0x18,0xfe,0x10,0x00,0x00,0x80,0x03,0x18,0xfe,0x10,0x00,0x49,0xc6,0x01,0x38, 0xfe,0x10,0x00,0x00,0x00,0x00,0x38,0xfe,0x10,0x00,0x00,0x00,0x00,0x38,0xfe, 0x10,0x00,0x00,0x00,0x00,0x38,0xfe,0xf0,0xff,0xff,0xff,0xff,0x3f,0xfe,0xf0, 0xff,0xff,0xff,0xff,0x3f,0xfe,0xe0,0xff,0xff,0xff,0xff,0x3f,0xfe}; xshogi-1.4.2/eastern_bitmaps/smallblankR.xbm0000644000175000017500000000137212274270516016103 00000000000000#define smallblankR_width 32 #define smallblankR_height 32 static unsigned char smallblankR_bits[] = { 0xfc,0xff,0xff,0x1f,0x04,0x00,0x00,0x30,0x04,0x00,0x00,0x30,0x04,0x00,0x00, 0x30,0x04,0x00,0x00,0x30,0x08,0x00,0x00,0x18,0x08,0x00,0x00,0x18,0x08,0x00, 0x00,0x18,0x08,0x00,0x00,0x18,0x10,0x00,0x00,0x0c,0x10,0x00,0x00,0x0c,0x10, 0x00,0x00,0x0c,0x10,0x00,0x00,0x0c,0x20,0x00,0x00,0x06,0x20,0x00,0x00,0x06, 0x20,0x00,0x00,0x06,0x20,0x00,0x00,0x06,0x40,0x00,0x00,0x03,0x40,0x00,0x00, 0x03,0x40,0x00,0x00,0x03,0x40,0x00,0x00,0x03,0x80,0x00,0x80,0x01,0x80,0x00, 0x80,0x01,0x80,0x00,0x80,0x01,0x00,0x03,0xe0,0x00,0x00,0x0c,0x78,0x00,0x00, 0x30,0x1e,0x00,0x00,0xc0,0x07,0x00,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/rookPR_m.top.xbm0000644000175000017500000000430012274270516016164 00000000000000#define rookPR_m_width 49 #define rookPR_m_height 49 static unsigned char rookPR_m_bits[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x80, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x80, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x80, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x80, 0xff, 0x06, 0x00, 0x00, 0x00, 0x00, 0x80, 0xff, 0x06, 0xf0, 0x7f, 0x0c, 0x04, 0x80, 0xff, 0x0e, 0xf0, 0xff, 0x1c, 0x07, 0x60, 0xfe, 0x0e, 0x20, 0xe0, 0x1c, 0x07, 0x60, 0xfe, 0x0e, 0xa0, 0xff, 0x1c, 0x07, 0x60, 0xfe, 0x0e, 0x20, 0xe3, 0x1c, 0x07, 0x60, 0xfe, 0x08, 0x00, 0xe0, 0x1c, 0x07, 0x60, 0xfe, 0x08, 0x80, 0xff, 0xfc, 0x07, 0x60, 0xfe, 0x38, 0x00, 0xe3, 0x1c, 0x07, 0x10, 0xfe, 0x38, 0x00, 0xe0, 0x1c, 0x07, 0x10, 0xfe, 0x38, 0x80, 0xff, 0xfc, 0x07, 0x10, 0xfe, 0x38, 0x00, 0xe3, 0x1c, 0x07, 0x10, 0xfe, 0x30, 0x60, 0xe0, 0x1c, 0x07, 0x10, 0xfe, 0x30, 0xe0, 0xff, 0x1c, 0x07, 0x10, 0xfe, 0x70, 0xe0, 0xc0, 0xfc, 0x07, 0x0c, 0xfe, 0x70, 0xe0, 0x00, 0x18, 0x06, 0x0c, 0xfe, 0x70, 0xe0, 0x60, 0x00, 0x00, 0x0c, 0xfe, 0x70, 0xc0, 0xff, 0xfe, 0x0f, 0x0c, 0xfe, 0x70, 0x80, 0xe0, 0xb4, 0x01, 0x0c, 0xfe, 0x40, 0x00, 0xe0, 0xb0, 0x01, 0x0c, 0xfe, 0xc0, 0xc1, 0xff, 0xb8, 0x03, 0x02, 0xfe, 0xc0, 0x81, 0xe1, 0xfc, 0x07, 0x02, 0xfe, 0xc0, 0x01, 0x80, 0xe8, 0x00, 0x02, 0xfe, 0xc0, 0x01, 0x00, 0xc0, 0x00, 0x02, 0xfe, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x02, 0xfe, 0x80, 0x01, 0x00, 0x00, 0x00, 0x02, 0xfe, 0x80, 0x03, 0x00, 0x00, 0x80, 0x01, 0xfe, 0x80, 0x03, 0x00, 0x00, 0x80, 0x01, 0xfe, 0x80, 0x03, 0x00, 0x00, 0x80, 0x01, 0xfe, 0x80, 0x03, 0x00, 0x00, 0x80, 0x01, 0xfe, 0x80, 0x03, 0x00, 0x00, 0x80, 0x01, 0xfe, 0x00, 0x02, 0x00, 0x00, 0x80, 0x01, 0xfe, 0x00, 0x1c, 0x00, 0x00, 0x70, 0x00, 0xfe, 0x00, 0x1c, 0x00, 0x00, 0x70, 0x00, 0xfe, 0x00, 0xe0, 0x00, 0x00, 0x0e, 0x00, 0xfe, 0x00, 0x00, 0x07, 0xc0, 0x01, 0x00, 0xfe, 0x00, 0x00, 0x07, 0xc0, 0x01, 0x00, 0xfe, 0x00, 0x00, 0x38, 0x38, 0x00, 0x00, 0xfe, 0x00, 0x00, 0xc0, 0x07, 0x00, 0x00, 0xfe, 0x00, 0x00, 0xc0, 0x07, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe}; xshogi-1.4.2/eastern_bitmaps/lance_l.xbm0000644000175000017500000000524212274270516015236 00000000000000#define lance_l_width 64 #define lance_l_height 64 static unsigned char lance_l_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x0e,0x00,0x00,0x00,0x00,0x00,0xf0,0x80, 0x70,0x00,0x00,0x00,0x00,0x00,0x0f,0xc0,0x81,0x03,0x00,0x00,0x00,0xf0,0x00, 0x38,0x0e,0x1c,0x00,0x00,0x00,0x08,0x00,0x07,0x70,0x60,0x00,0x00,0x00,0x0c, 0xe0,0x00,0x80,0x83,0x00,0x00,0x00,0x14,0x1c,0x00,0x00,0x1c,0x01,0x00,0x00, 0x94,0x03,0x00,0x03,0xe0,0x01,0x00,0x00,0x64,0x00,0x80,0x03,0x00,0x03,0x00, 0x00,0x22,0x00,0xc0,0x01,0x00,0x02,0x00,0x00,0x22,0x00,0x60,0x00,0x00,0x02, 0x00,0x00,0x22,0x00,0x80,0x00,0x00,0x02,0x00,0x00,0x22,0x00,0x9c,0x0c,0x00, 0x02,0x00,0x00,0x12,0x00,0xf8,0x0f,0x00,0x04,0x00,0x00,0x12,0x00,0x80,0x01, 0x00,0x04,0x00,0x00,0x11,0x00,0xb8,0x1d,0x00,0x04,0x00,0x00,0x11,0x00,0x98, 0x38,0x00,0x04,0x00,0x00,0x11,0x00,0xcc,0x30,0x00,0x04,0x00,0x00,0x11,0x00, 0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00,0xf8,0x0f,0x00,0x04,0x00,0x00,0x09, 0x00,0x18,0x18,0x00,0x08,0x00,0x80,0x08,0x00,0xf8,0x1f,0x00,0x08,0x00,0x80, 0x08,0x00,0x10,0x0f,0x00,0x08,0x00,0x80,0x08,0x00,0x30,0x04,0x00,0x08,0x00, 0x80,0x08,0x00,0xe0,0x07,0x00,0x08,0x00,0x80,0x08,0x00,0x00,0x00,0x00,0x08, 0x00,0x80,0x08,0x00,0x80,0x00,0x00,0x08,0x00,0x40,0x04,0x00,0xfc,0x00,0x00, 0x10,0x00,0x40,0x04,0x00,0xf8,0x1f,0x00,0x10,0x00,0x40,0x04,0x00,0xc0,0x00, 0x00,0x10,0x00,0x40,0x04,0x80,0xfe,0xff,0x00,0x10,0x00,0x40,0x04,0x80,0x83, 0xe0,0x00,0x10,0x00,0x40,0x04,0x80,0x83,0xc0,0x00,0x10,0x00,0x20,0x02,0x00, 0xff,0xff,0x00,0x20,0x00,0x20,0x02,0x00,0x87,0x60,0x00,0x20,0x00,0x20,0x02, 0x00,0x86,0x3c,0x00,0x20,0x00,0x20,0x02,0x00,0xfe,0x3f,0x00,0x20,0x00,0x20, 0x02,0x20,0x80,0x00,0x00,0x20,0x00,0x20,0x02,0xe0,0xfc,0xff,0x01,0x20,0x00, 0x10,0x02,0xc0,0xff,0xff,0x03,0x20,0x00,0x10,0x01,0x00,0x80,0x00,0x00,0x40, 0x00,0x10,0x01,0x00,0x80,0x00,0x00,0x40,0x00,0x10,0x01,0x00,0x80,0x00,0x00, 0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00, 0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00, 0x00,0x00,0x40,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00, 0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0xc0,0x00,0x80,0xff, 0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/bigsolidR_l.xbm0000644000175000017500000000630012274270516016066 00000000000000#define bigsolidR_l_width 64 #define bigsolidR_l_height 64 static unsigned char bigsolidR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xf0, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0xff, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/bishopP.xbm0000644000175000017500000000135612274270516015247 00000000000000#define bishopP_width 32 #define bishopP_height 32 static unsigned char bishopP_bits[] = { 0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x30,0x06,0x00,0x00,0x0c,0x18, 0x00,0x00,0x03,0x60,0x00,0xc0,0x00,0x80,0x01,0x20,0x00,0x00,0x02,0x20,0x08, 0x03,0x06,0x20,0x7e,0x1f,0x06,0x20,0x34,0x03,0x06,0x10,0x7e,0x3f,0x04,0x10, 0x00,0x30,0x0c,0x10,0x7e,0x3f,0x0c,0x10,0x66,0x03,0x0c,0x08,0x7e,0x3f,0x08, 0x08,0x66,0x03,0x18,0x08,0x7e,0x3f,0x18,0x08,0x62,0x3e,0x18,0x04,0x00,0x00, 0x10,0x04,0xfc,0x1f,0x30,0x04,0xcc,0x00,0x30,0x04,0xfc,0x0f,0x30,0x02,0xcc, 0x00,0x20,0x02,0xfc,0x0f,0x60,0x02,0xcc,0x00,0x60,0x02,0xfc,0x3f,0x60,0x01, 0x00,0x30,0x40,0x01,0xb6,0x15,0xc0,0x01,0x00,0x00,0xc0,0x01,0x00,0x00,0xc0, 0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff}; xshogi-1.4.2/eastern_bitmaps/pawn_l.xbm0000644000175000017500000000523712274270516015125 00000000000000#define pawn_l_width 64 #define pawn_l_height 64 static unsigned char pawn_l_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x0e,0x00,0x00,0x00,0x00,0x00,0xf0,0x80, 0x70,0x00,0x00,0x00,0x00,0x00,0x0f,0xc0,0x81,0x03,0x00,0x00,0x00,0xf0,0x00, 0x38,0x0e,0x1c,0x00,0x00,0x00,0x08,0x00,0x07,0x70,0x60,0x00,0x00,0x00,0x0c, 0xe0,0x00,0x80,0x83,0x00,0x00,0x00,0x14,0x1c,0x00,0x00,0x1c,0x01,0x00,0x00, 0x94,0x03,0x80,0x30,0xe0,0x01,0x00,0x00,0x64,0x00,0xc0,0x3c,0x00,0x03,0x00, 0x00,0x22,0x00,0xc4,0x1e,0x00,0x02,0x00,0x00,0x22,0x00,0x86,0x00,0x00,0x02, 0x00,0x00,0x22,0x00,0xc3,0xff,0x00,0x02,0x00,0x00,0x22,0x80,0xf9,0x7f,0x00, 0x02,0x00,0x00,0x12,0xc0,0xff,0x00,0x00,0x04,0x00,0x00,0x12,0xe0,0x83,0x00, 0x00,0x04,0x00,0x00,0x11,0x00,0xc4,0x3f,0x00,0x04,0x00,0x00,0x11,0x00,0xf6, 0x7f,0x00,0x04,0x00,0x00,0x11,0x00,0xff,0xe0,0x00,0x04,0x00,0x00,0x11,0x80, 0xcf,0xe0,0x00,0x04,0x00,0x00,0x11,0x80,0xc0,0x70,0x00,0x04,0x00,0x00,0x09, 0x00,0xc0,0x1c,0x00,0x08,0x00,0x80,0x08,0x00,0xc0,0x0f,0x00,0x08,0x00,0x80, 0x08,0x00,0xf8,0x33,0x00,0x08,0x00,0x80,0x08,0x00,0x7f,0x78,0x00,0x08,0x00, 0x80,0x08,0x80,0x07,0x1c,0x00,0x08,0x00,0x80,0x08,0x00,0x00,0x06,0x00,0x08, 0x00,0x80,0x08,0x00,0x00,0x01,0x00,0x08,0x00,0x40,0x04,0x00,0x18,0x00,0x00, 0x10,0x00,0x40,0x04,0x00,0x0c,0x00,0x00,0x10,0x00,0x40,0x04,0x00,0x0e,0x1f, 0x00,0x10,0x00,0x40,0x04,0x00,0xf7,0x0f,0x00,0x10,0x00,0x40,0x04,0x80,0xff, 0x07,0x00,0x10,0x00,0x40,0x04,0x00,0x06,0x06,0x00,0x10,0x00,0x20,0x02,0x00, 0x0c,0xfe,0x00,0x20,0x00,0x20,0x02,0x80,0xff,0xff,0x03,0x20,0x00,0x20,0x02, 0xe0,0xff,0x03,0x00,0x20,0x00,0x20,0x02,0xf0,0x00,0x04,0x00,0x20,0x00,0x20, 0x02,0x20,0x0e,0x0c,0x00,0x20,0x00,0x20,0x02,0x00,0x0f,0x1c,0x00,0x20,0x00, 0x10,0x02,0x00,0x03,0x78,0x00,0x20,0x00,0x10,0x01,0xc0,0x01,0x70,0x00,0x40, 0x00,0x10,0x01,0x00,0x00,0x60,0x00,0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x00, 0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00, 0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00, 0x00,0x00,0x40,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00, 0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0xc0,0x00,0x80,0xff, 0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/bishopR.xbm0000644000175000017500000000135612274270516015251 00000000000000#define bishopR_width 32 #define bishopR_height 32 static unsigned char bishopR_bits[] = { 0xff,0xff,0xff,0x7f,0x01,0x00,0x00,0xc0,0x01,0x00,0x00,0xc0,0x01,0x38,0x18, 0xc0,0x01,0x18,0x18,0xc0,0x02,0x18,0x18,0x60,0x02,0x18,0x58,0x60,0x02,0x18, 0x38,0x60,0x02,0xfe,0x19,0x60,0x04,0x00,0x48,0x30,0x04,0x00,0x24,0x30,0x04, 0xfc,0x11,0x30,0x04,0x00,0x00,0x30,0x08,0x00,0x00,0x18,0x08,0x38,0x30,0x18, 0x08,0x18,0x18,0x18,0x08,0xf8,0x1f,0x18,0x10,0x98,0x19,0x0c,0x10,0xf8,0x1f, 0x0c,0x10,0x98,0x19,0x0c,0x10,0xf8,0x1f,0x0c,0x20,0xc0,0x00,0x06,0x20,0x60, 0x0c,0x06,0x20,0xe0,0x03,0x06,0x20,0x00,0x00,0x06,0xc0,0x00,0x80,0x03,0x00, 0x03,0xe0,0x01,0x00,0x0c,0x78,0x00,0x00,0x30,0x1e,0x00,0x00,0xc0,0x07,0x00, 0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/knight.xbm0000644000175000017500000000135312274270516015124 00000000000000#define knight_width 32 #define knight_height 32 static unsigned char knight_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0x01, 0x00,0x00,0x30,0x06,0x00,0x00,0x0c,0x18,0x00,0x00,0x03,0x60,0x00,0x80,0x00, 0x80,0x00,0x80,0x00,0x80,0x01,0x80,0x18,0x83,0x01,0x40,0x18,0x03,0x01,0x40, 0xde,0x0f,0x03,0x40,0x18,0x03,0x03,0x40,0xdc,0x1f,0x03,0x20,0x1a,0x03,0x02, 0x20,0xd8,0x0f,0x06,0x20,0x18,0x03,0x06,0x20,0xd8,0x3f,0x06,0x10,0x00,0x00, 0x04,0x10,0xf8,0x1f,0x0c,0x10,0x98,0x01,0x0c,0x10,0xf8,0x0f,0x0c,0x08,0x98, 0x01,0x08,0x08,0xf8,0x0f,0x18,0x08,0x98,0x01,0x18,0x08,0xf8,0x3f,0x18,0x04, 0x00,0x30,0x10,0x04,0x54,0x19,0x30,0x04,0x00,0x00,0x30,0x04,0x00,0x00,0x30, 0xfc,0xff,0xff,0x3f,0xf8,0xff,0xff,0x3f}; xshogi-1.4.2/eastern_bitmaps/silverP_m.xbm0000644000175000017500000000350312274270516015577 00000000000000#define silverP_m_width 49 #define silverP_m_height 49 static unsigned char silverP_m_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00, 0x38,0x38,0x00,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0x00,0x07, 0xc0,0x01,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e,0x00,0xfe,0x00,0x1c,0x00,0x40, 0x70,0x00,0xfe,0x00,0x1c,0x00,0x40,0x70,0x00,0xfe,0x00,0x03,0x80,0x07,0x80, 0x00,0xfe,0x00,0x03,0xff,0xff,0x81,0x03,0xfe,0x00,0x03,0xff,0xff,0x81,0x03, 0xfe,0x00,0x03,0x87,0x07,0x80,0x03,0xfe,0x00,0x03,0x07,0x0e,0x80,0x03,0xfe, 0x00,0x03,0x07,0x0e,0x80,0x03,0xfe,0x80,0x00,0x7f,0x0e,0x00,0x03,0xfe,0x80, 0x00,0x77,0xb8,0x01,0x07,0xfe,0x80,0x00,0x77,0xb8,0x01,0x07,0xfe,0x80,0x00, 0x77,0x78,0x00,0x07,0xfe,0x80,0x00,0x77,0x70,0x00,0x07,0xfe,0x80,0x00,0x77, 0x70,0x00,0x07,0xfe,0x60,0x00,0x71,0xc8,0x03,0x04,0xfe,0x60,0xc0,0x78,0x86, 0x01,0x1c,0xfe,0x60,0xc0,0x78,0x86,0x01,0x1c,0xfe,0x60,0x00,0x00,0x00,0x00, 0x1c,0xfe,0x60,0x00,0x00,0x00,0x00,0x1c,0xfe,0x60,0x00,0x08,0x00,0x00,0x1c, 0xfe,0x10,0x00,0x3e,0xfe,0x03,0x18,0xfe,0x10,0x00,0x3e,0xfe,0x03,0x18,0xfe, 0x10,0x00,0x71,0x8e,0x03,0x38,0xfe,0x10,0xc0,0x00,0xfe,0x03,0x38,0xfe,0x10, 0xc0,0x00,0xfe,0x03,0x38,0xfe,0x10,0x00,0x3f,0x8e,0x03,0x38,0xfe,0x0c,0x00, 0x0e,0xfe,0x03,0x20,0xfe,0x0c,0x00,0x0e,0xfe,0x03,0x20,0xfe,0x0c,0xc0,0x7f, 0x0e,0x00,0xe0,0xfe,0x0c,0x00,0x0e,0x4e,0x02,0xe0,0xfe,0x0c,0x00,0x0e,0x4e, 0x02,0xe0,0xfe,0x0c,0xc0,0x4e,0xce,0x01,0xe0,0xfe,0x03,0x00,0x0e,0xbe,0x03, 0xc0,0xfe,0x03,0x00,0x0e,0xbe,0x03,0xc0,0xfe,0x03,0xc0,0x7f,0x0e,0x0e,0xc0, 0xff,0x03,0x00,0x00,0x00,0x00,0xc0,0xff,0x03,0x00,0x00,0x00,0x00,0xc0,0xff, 0x03,0x00,0x00,0x00,0x00,0xc0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xfc,0xff,0xff,0xff,0xff,0xff,0xff}; xshogi-1.4.2/eastern_bitmaps/goldR_l.xbm0000644000175000017500000000626412274270516015230 00000000000000#define goldR_l_width 64 #define goldR_l_height 64 static unsigned char goldR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x0f, 0x80, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x0b, 0xc0, 0x01, 0x00, 0x20, 0x48, 0x00, 0x00, 0xc3, 0xe0, 0x01, 0x00, 0x20, 0x48, 0x00, 0x00, 0xe3, 0x60, 0x03, 0x00, 0x10, 0x48, 0x00, 0x00, 0x63, 0x60, 0x18, 0x00, 0x10, 0x88, 0x00, 0x00, 0x26, 0x60, 0x1c, 0x00, 0x10, 0x90, 0x00, 0xe0, 0xe7, 0x63, 0x0c, 0x00, 0x10, 0x90, 0x00, 0xf0, 0xff, 0x63, 0x0c, 0x00, 0x10, 0x90, 0x00, 0x00, 0x06, 0x60, 0x04, 0x00, 0x10, 0x90, 0x00, 0x00, 0x60, 0x20, 0x1f, 0x00, 0x08, 0x90, 0x00, 0x00, 0x7c, 0xa0, 0x0f, 0x00, 0x08, 0x10, 0x01, 0x00, 0x1c, 0x21, 0x00, 0x00, 0x08, 0x10, 0x01, 0x00, 0x06, 0x63, 0x0c, 0x00, 0x08, 0x20, 0x01, 0x00, 0x66, 0xe3, 0x1f, 0x00, 0x08, 0x20, 0x01, 0x00, 0x7e, 0xe0, 0x06, 0x00, 0x08, 0x20, 0x01, 0x00, 0x5c, 0x20, 0x03, 0x00, 0x04, 0x20, 0x01, 0x00, 0xc0, 0x61, 0x03, 0x00, 0x04, 0x20, 0x01, 0x00, 0xe0, 0x63, 0x01, 0x00, 0x04, 0x20, 0x02, 0x00, 0x78, 0x60, 0x01, 0x00, 0x04, 0x20, 0x02, 0x00, 0x18, 0x60, 0x00, 0x00, 0x04, 0x40, 0x02, 0x00, 0x08, 0x20, 0x00, 0x00, 0x04, 0x40, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0xfc, 0xff, 0x01, 0x00, 0x02, 0x40, 0x02, 0x00, 0xfe, 0xff, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x00, 0x03, 0x00, 0x00, 0x02, 0x40, 0x04, 0x00, 0x38, 0x3b, 0x00, 0x00, 0x02, 0x80, 0x04, 0x00, 0x1c, 0x73, 0x00, 0x00, 0x02, 0x80, 0x04, 0x00, 0x0c, 0x63, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xe0, 0x1f, 0x00, 0x00, 0x01, 0x80, 0x04, 0x80, 0xfb, 0x1f, 0x0e, 0x00, 0x01, 0x80, 0x04, 0x00, 0x07, 0x83, 0x07, 0x00, 0x01, 0x80, 0x08, 0x00, 0xdc, 0xcf, 0x03, 0x00, 0x01, 0x80, 0x08, 0x00, 0x98, 0xe7, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0x70, 0x70, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0x60, 0x38, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0xc0, 0x1c, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0xc0, 0x07, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x03, 0x00, 0x80, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x80, 0x07, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0xe0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/knightP_m.xbm0000644000175000017500000000350312274270516015557 00000000000000#define knightP_m_width 49 #define knightP_m_height 49 static unsigned char knightP_m_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00, 0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0xc0, 0x07,0x00,0x00,0xfe,0x00,0x00,0x38,0x38,0x00,0x00,0xfe,0x00,0x00,0x07,0xc0, 0x01,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e, 0x00,0xfe,0x00,0x18,0x00,0x30,0x10,0x00,0xfe,0x00,0x18,0x00,0x30,0x10,0x00, 0xfe,0x00,0x18,0x80,0x07,0x70,0x00,0xfe,0x00,0x18,0xff,0x7f,0x70,0x00,0xfe, 0x00,0x18,0xff,0x7f,0x70,0x00,0xfe,0x00,0x04,0x87,0x07,0x60,0x00,0xfe,0x00, 0x04,0x07,0x0e,0xe0,0x00,0xfe,0x00,0x04,0x07,0x0e,0xe0,0x00,0xfe,0x00,0x04, 0x7f,0xce,0xe1,0x00,0xfe,0x00,0x04,0x77,0x78,0xe0,0x00,0xfe,0x00,0x04,0x77, 0x78,0xe0,0x00,0xfe,0x00,0x03,0x77,0x38,0x80,0x00,0xfe,0x00,0x03,0x77,0xf6, 0x81,0x03,0xfe,0x00,0x03,0x77,0xf6,0x81,0x03,0xfe,0x00,0x03,0x71,0x40,0x80, 0x03,0xfe,0x00,0x03,0x71,0x40,0x80,0x03,0xfe,0x00,0x03,0x00,0x00,0x80,0x03, 0xfe,0x80,0x00,0x0e,0x38,0x00,0x03,0xfe,0x80,0x00,0x0e,0x38,0x00,0x03,0xfe, 0x80,0x00,0x0e,0x38,0x00,0x07,0xfe,0x80,0xc0,0xbf,0xff,0x01,0x07,0xfe,0x80, 0xc0,0xbf,0xff,0x01,0x07,0xfe,0x80,0x00,0x0e,0x38,0x00,0x07,0xfe,0x60,0x00, 0xbf,0xff,0x03,0x04,0xfe,0x60,0x00,0xbf,0xff,0x03,0x04,0xfe,0x60,0xc0,0x0e, 0x38,0x00,0x1c,0xfe,0x60,0x00,0x8e,0xff,0x01,0x1c,0xfe,0x60,0x00,0x8e,0xff, 0x01,0x1c,0xfe,0x60,0x00,0x0e,0x38,0x00,0x1c,0xfe,0x10,0x00,0x0e,0x38,0x00, 0x18,0xfe,0x10,0x00,0x0e,0x38,0x00,0x18,0xfe,0x10,0x00,0xce,0xff,0x03,0x38, 0xfe,0x10,0x00,0x00,0x00,0x00,0x38,0xfe,0x10,0x00,0x00,0x00,0x00,0x38,0xfe, 0x10,0x00,0x00,0x00,0x00,0x38,0xfe,0xf0,0xff,0xff,0xff,0xff,0x3f,0xfe,0xf0, 0xff,0xff,0xff,0xff,0x3f,0xfe,0xe0,0xff,0xff,0xff,0xff,0x3f,0xfe}; xshogi-1.4.2/eastern_bitmaps/knight_l.xbm0000644000175000017500000000524512274270516015443 00000000000000#define knight_l_width 64 #define knight_l_height 64 static unsigned char knight_l_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x0e,0x00,0x00,0x00,0x00,0x00,0xf0,0x80, 0x70,0x00,0x00,0x00,0x00,0x00,0x0f,0xc0,0x81,0x03,0x00,0x00,0x00,0xf0,0x00, 0x38,0x0e,0x1c,0x00,0x00,0x00,0x08,0x00,0x07,0x70,0x60,0x00,0x00,0x00,0x0c, 0xe0,0x00,0x80,0x83,0x00,0x00,0x00,0x14,0x1c,0x00,0x00,0x1c,0x01,0x00,0x00, 0x94,0x03,0x00,0x10,0xe0,0x01,0x00,0x00,0x64,0x00,0x04,0x18,0x00,0x03,0x00, 0x00,0x22,0x00,0x06,0x18,0x00,0x02,0x00,0x00,0x22,0x00,0x06,0x18,0x00,0x02, 0x00,0x00,0x22,0xc0,0x0f,0xff,0x00,0x02,0x00,0x00,0x22,0xe0,0x1f,0x7f,0x00, 0x02,0x00,0x00,0x12,0x70,0x86,0x19,0x00,0x04,0x00,0x00,0x12,0x00,0x06,0xfc, 0x01,0x04,0x00,0x00,0x11,0x00,0x07,0xff,0x00,0x04,0x00,0x00,0x11,0x00,0x87, 0x1b,0x00,0x04,0x00,0x00,0x11,0x80,0x07,0xfc,0x01,0x04,0x00,0x00,0x11,0xc0, 0x07,0xff,0x00,0x04,0x00,0x00,0x11,0xe0,0x86,0x19,0x00,0x04,0x00,0x00,0x09, 0x60,0x06,0x38,0x02,0x08,0x00,0x80,0x08,0x20,0x87,0xff,0x07,0x08,0x00,0x80, 0x08,0x00,0xc7,0xff,0x07,0x08,0x00,0x80,0x08,0x00,0x46,0x00,0x00,0x08,0x00, 0x80,0x08,0x00,0x02,0x00,0x00,0x08,0x00,0x80,0x08,0x00,0x00,0x00,0x00,0x08, 0x00,0x80,0x08,0x00,0x00,0x00,0x00,0x08,0x00,0x40,0x04,0x00,0xfa,0x0f,0x00, 0x10,0x00,0x40,0x04,0x00,0xfe,0x07,0x00,0x10,0x00,0x40,0x04,0x00,0xc6,0x00, 0x00,0x10,0x00,0x40,0x04,0x00,0xfe,0x0f,0x00,0x10,0x00,0x40,0x04,0x00,0xc6, 0x00,0x00,0x10,0x00,0x40,0x04,0x00,0xfe,0x0f,0x00,0x10,0x00,0x20,0x02,0x00, 0xc6,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0xf6,0x3f,0x00,0x20,0x00,0x20,0x02, 0x00,0xfe,0xff,0x07,0x20,0x00,0x20,0x02,0x00,0x00,0xfe,0x0f,0x20,0x00,0x20, 0x02,0x00,0x00,0x00,0x0e,0x20,0x00,0x20,0x02,0x10,0x31,0x06,0x0c,0x20,0x00, 0x10,0x02,0x30,0x63,0x0e,0x0c,0x20,0x00,0x10,0x01,0x70,0xe7,0x1c,0x0e,0x40, 0x00,0x10,0x01,0x70,0xe7,0x1c,0x06,0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x03, 0x40,0x00,0x10,0x01,0x00,0x00,0x8c,0x03,0x40,0x00,0x20,0x01,0x00,0x00,0x8c, 0x01,0x40,0x00,0x20,0x01,0x00,0x00,0xf8,0x00,0x40,0x00,0x20,0x01,0x00,0x00, 0xf8,0x00,0x40,0x00,0xa0,0x00,0x00,0x00,0x78,0x00,0x80,0x00,0xc0,0x00,0x00, 0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0xc0,0x00,0x80,0xff, 0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/bigblank.xbm0000644000175000017500000000136112274270516015410 00000000000000#define bigblank_width 32 #define bigblank_height 32 static unsigned char bigblank_bits[] = { 0x00,0x00,0x00,0x00,0x00,0xe0,0x03,0x00,0x00,0x18,0x0c,0x00,0x00,0x06,0x30, 0x00,0x80,0x01,0xc0,0x00,0x40,0x00,0x00,0x01,0x40,0x00,0x00,0x03,0x40,0x00, 0x00,0x03,0x40,0x00,0x00,0x03,0x20,0x00,0x00,0x02,0x20,0x00,0x00,0x06,0x20, 0x00,0x00,0x06,0x20,0x00,0x00,0x06,0x10,0x00,0x00,0x04,0x10,0x00,0x00,0x0c, 0x10,0x00,0x00,0x0c,0x10,0x00,0x00,0x0c,0x08,0x00,0x00,0x08,0x08,0x00,0x00, 0x18,0x08,0x00,0x00,0x18,0x08,0x00,0x00,0x18,0x04,0x00,0x00,0x10,0x04,0x00, 0x00,0x30,0x04,0x00,0x00,0x30,0x04,0x00,0x00,0x30,0x02,0x00,0x00,0x20,0x02, 0x00,0x00,0x60,0x02,0x00,0x00,0x60,0x02,0x00,0x00,0x60,0xfe,0xff,0xff,0x7f, 0xfc,0xff,0xff,0x7f,0x00,0x00,0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/rookR.xbm0000644000175000017500000000135012274270516014731 00000000000000#define rookR_width 32 #define rookR_height 32 static unsigned char rookR_bits[] = { 0xff,0xff,0xff,0x7f,0x01,0x00,0x00,0xc0,0x01,0x00,0x00,0xc0,0x01,0x80,0x01, 0xc0,0x01,0xfe,0x7f,0xc0,0x02,0x80,0x01,0x60,0x02,0xf8,0x1f,0x60,0x02,0x98, 0x19,0x60,0x02,0xf8,0x1f,0x60,0x04,0x98,0x19,0x30,0x04,0xf8,0x1f,0x30,0x04, 0x80,0x01,0x30,0x04,0xfc,0x3f,0x30,0x08,0x80,0x01,0x18,0x08,0x00,0x00,0x18, 0x08,0x8e,0x11,0x18,0x08,0x98,0x09,0x18,0x10,0x9c,0x0d,0x0c,0x10,0x9a,0x0d, 0x0c,0x10,0xf8,0x3f,0x0c,0x10,0x8e,0x0d,0x0c,0x20,0x98,0x1d,0x06,0x20,0x9c, 0x01,0x06,0x20,0xfa,0x1f,0x06,0x20,0x00,0x00,0x06,0xc0,0x00,0x80,0x03,0x00, 0x03,0xe0,0x01,0x00,0x0c,0x78,0x00,0x00,0x30,0x1e,0x00,0x00,0xc0,0x07,0x00, 0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/knightR_m.xbm0000644000175000017500000000350312274270516015561 00000000000000#define knightR_m_width 49 #define knightR_m_height 49 static unsigned char knightR_m_bits[] = { 0xf8,0xff,0xff,0xff,0xff,0x0f,0xfe,0xf8,0xff,0xff,0xff,0xff,0x0f,0xfe,0xf8, 0xff,0xff,0xff,0xff,0x1f,0xfe,0xf8,0xff,0xff,0xff,0xff,0x1f,0xfe,0x38,0x00, 0x00,0x00,0x00,0x10,0xfe,0x38,0x00,0x00,0x00,0x00,0x10,0xfe,0x38,0x00,0x00, 0x00,0x00,0x10,0xfe,0x38,0x00,0xc7,0x24,0x01,0x10,0xfe,0x30,0x80,0x03,0x00, 0x00,0x10,0xfe,0x30,0x80,0x03,0x00,0x00,0x10,0xfe,0x70,0x80,0xff,0xff,0x00, 0x0c,0xfe,0x70,0x00,0xc0,0xe3,0x00,0x0c,0xfe,0x70,0x00,0xc0,0xe3,0x00,0x0c, 0xfe,0x70,0x00,0xfc,0xff,0x00,0x0c,0xfe,0x40,0x00,0xc0,0xe3,0x00,0x0c,0xfe, 0x40,0x00,0xc0,0xe3,0x00,0x0c,0xfe,0xc0,0x01,0xfc,0xff,0x00,0x02,0xfe,0xc0, 0x01,0xc0,0xe3,0x00,0x02,0xfe,0xc0,0x01,0xc0,0xe3,0x00,0x02,0xfe,0xc0,0x01, 0xff,0xff,0x00,0x02,0xfe,0x80,0x01,0x00,0x00,0x00,0x02,0xfe,0x80,0x01,0x00, 0x00,0x00,0x02,0xfe,0x80,0x83,0xff,0xe7,0x80,0x01,0xfe,0x80,0x03,0xe0,0xe0, 0x80,0x01,0xfe,0x80,0x03,0xe0,0xe0,0x80,0x01,0xfe,0x80,0x03,0xfc,0xe7,0x80, 0x01,0xfe,0x80,0x03,0xfc,0xe7,0x80,0x01,0xfe,0x00,0x02,0xe0,0xe0,0x86,0x01, 0xfe,0x00,0x0e,0xff,0xe7,0x41,0x00,0xfe,0x00,0x0e,0xff,0xe7,0x41,0x00,0xfe, 0x00,0x0e,0xe0,0xe0,0x40,0x00,0xfe,0x00,0x0e,0xfc,0xe7,0x47,0x00,0xfe,0x00, 0x0e,0xfc,0xe7,0x47,0x00,0xfe,0x00,0x0c,0xe0,0xe0,0x40,0x00,0xfe,0x00,0x1c, 0xe0,0xe0,0x30,0x00,0xfe,0x00,0x1c,0xe0,0xe0,0x30,0x00,0xfe,0x00,0x1c,0x00, 0x00,0x30,0x00,0xfe,0x00,0x10,0x00,0x00,0x30,0x00,0xfe,0x00,0x10,0x00,0x00, 0x30,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01, 0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0x00,0x38,0x38,0x00,0x00, 0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe, 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe}; xshogi-1.4.2/eastern_bitmaps/lanceP_m.xbm0000644000175000017500000000350012274270516015352 00000000000000#define lanceP_m_width 49 #define lanceP_m_height 49 static unsigned char lanceP_m_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00, 0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0xf0,0x01,0x00,0x00,0xfe,0x00,0x00,0xf0, 0x01,0x00,0x00,0xfe,0x00,0x00,0x0e,0x0e,0x00,0x00,0xfe,0x00,0xc0,0x01,0x70, 0x00,0x00,0xfe,0x00,0xc0,0x01,0x70,0x00,0x00,0xfe,0x00,0x38,0x00,0x80,0x03, 0x00,0xfe,0x00,0x04,0x00,0x08,0x0c,0x00,0xfe,0x00,0x04,0x00,0x08,0x0c,0x00, 0xfe,0x00,0x04,0xc0,0x01,0x1c,0x00,0xfe,0x00,0xc4,0xff,0x3f,0x1c,0x00,0xfe, 0x00,0xc4,0xff,0x3f,0x1c,0x00,0xfe,0x00,0xc3,0xc1,0x01,0x10,0x00,0xfe,0x00, 0xc3,0x81,0x07,0x70,0x00,0xfe,0x00,0xc3,0x81,0x07,0x70,0x00,0xfe,0x00,0xc3, 0xbf,0x77,0x70,0x00,0xfe,0x00,0xc3,0x39,0x3e,0x70,0x00,0xfe,0x00,0xc3,0x39, 0x3e,0x70,0x00,0xfe,0x80,0xc0,0x39,0x0e,0x60,0x00,0xfe,0x80,0xc0,0xb9,0x79, 0xe0,0x00,0xfe,0x80,0xc0,0xb9,0x79,0xe0,0x00,0xfe,0x80,0xc0,0x08,0x30,0xe0, 0x00,0xfe,0x80,0xc0,0x08,0x30,0xe0,0x00,0xfe,0x80,0x00,0x00,0x00,0xe0,0x00, 0xfe,0x60,0x00,0x00,0x3e,0x80,0x00,0xfe,0x60,0x00,0x00,0x3e,0x80,0x00,0xfe, 0x60,0x00,0xfe,0x3f,0x80,0x03,0xfe,0x60,0x00,0xc0,0x01,0x80,0x03,0xfe,0x60, 0x00,0xc0,0x01,0x80,0x03,0xfe,0x60,0xc0,0xff,0xff,0x81,0x03,0xfe,0x10,0x00, 0xce,0x39,0x00,0x03,0xfe,0x10,0x00,0xce,0x39,0x00,0x03,0xfe,0x10,0x00,0xc7, 0x71,0x00,0x07,0xfe,0x10,0xc0,0xff,0xff,0x01,0x07,0xfe,0x10,0xc0,0xff,0xff, 0x01,0x07,0xfe,0x10,0xe0,0x0e,0xb8,0x03,0x07,0xfe,0x0c,0x00,0xfe,0x3f,0x00, 0x04,0xfe,0x0c,0x00,0xfe,0x3f,0x00,0x04,0xfe,0x0c,0x00,0x0e,0x38,0x00,0x1c, 0xfe,0x0c,0x00,0xfe,0x3f,0x00,0x1c,0xfe,0x0c,0x00,0xfe,0x3f,0x00,0x1c,0xfe, 0x0c,0x00,0x00,0x00,0x00,0x1c,0xfe,0xfc,0xff,0xff,0xff,0xff,0x1f,0xfe,0xfc, 0xff,0xff,0xff,0xff,0x1f,0xfe,0xf0,0xff,0xff,0xff,0xff,0x1f,0xfe}; xshogi-1.4.2/eastern_bitmaps/pawnR.xbm0000644000175000017500000000135012274270516014724 00000000000000#define pawnR_width 32 #define pawnR_height 32 static unsigned char pawnR_bits[] = { 0xfc,0xff,0xff,0x1f,0x04,0x00,0x00,0x30,0x04,0x00,0x00,0x30,0x04,0x04,0x04, 0x30,0x04,0x08,0x02,0x30,0x08,0xfe,0x1f,0x18,0x08,0x30,0x06,0x18,0x08,0x30, 0x06,0x18,0x08,0xf8,0x07,0x18,0x10,0x00,0x06,0x0c,0x10,0xf8,0x01,0x0c,0x10, 0x00,0x00,0x0c,0x10,0x80,0x07,0x0c,0x20,0xe0,0x00,0x06,0x20,0x30,0x00,0x06, 0x20,0x84,0x08,0x06,0x20,0xc8,0x04,0x06,0x40,0xd0,0x02,0x03,0x40,0xfc,0x1f, 0x03,0x40,0xc0,0x06,0x03,0x40,0xf0,0x06,0x03,0x80,0xc0,0x80,0x01,0x80,0x00, 0x80,0x01,0x80,0x00,0x80,0x01,0x00,0x03,0xe0,0x00,0x00,0x0c,0x78,0x00,0x00, 0x30,0x1e,0x00,0x00,0xc0,0x07,0x00,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/bigsolid.xbm0000644000175000017500000000136112274270516015433 00000000000000#define bigsolid_width 32 #define bigsolid_height 32 static unsigned char bigsolid_bits[] = { 0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0xf0,0x07,0x00,0x00,0xfc,0x1f, 0x00,0x00,0xff,0x7f,0x00,0xc0,0xff,0xff,0x01,0xe0,0xff,0xff,0x03,0xe0,0xff, 0xff,0x07,0xe0,0xff,0xff,0x07,0xe0,0xff,0xff,0x07,0xf0,0xff,0xff,0x07,0xf0, 0xff,0xff,0x0f,0xf0,0xff,0xff,0x0f,0xf0,0xff,0xff,0x0f,0xf8,0xff,0xff,0x0f, 0xf8,0xff,0xff,0x1f,0xf8,0xff,0xff,0x1f,0xf8,0xff,0xff,0x1f,0xfc,0xff,0xff, 0x1f,0xfc,0xff,0xff,0x3f,0xfc,0xff,0xff,0x3f,0xfc,0xff,0xff,0x3f,0xfe,0xff, 0xff,0x3f,0xfe,0xff,0xff,0x7f,0xfe,0xff,0xff,0x7f,0xfe,0xff,0xff,0x7f,0xff, 0xff,0xff,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff}; xshogi-1.4.2/eastern_bitmaps/lancePR_m.xbm0000644000175000017500000000350312274270516015477 00000000000000#define lancePR_m_width 49 #define lancePR_m_height 49 static unsigned char lancePR_m_bits[] = { 0xf0,0xff,0xff,0xff,0xff,0x1f,0xfe,0xf0,0xff,0xff,0xff,0xff,0x1f,0xfe,0xf0, 0xff,0xff,0xff,0xff,0x7f,0xfe,0xf0,0xff,0xff,0xff,0xff,0x7f,0xfe,0x70,0x00, 0x00,0x00,0x00,0x60,0xfe,0x70,0x00,0xf8,0xff,0x00,0x60,0xfe,0x70,0x00,0xf8, 0xff,0x00,0x60,0xfe,0x70,0x00,0x38,0xe0,0x00,0x60,0xfe,0x40,0x00,0xf8,0xff, 0x00,0x60,0xfe,0x40,0x00,0xf8,0xff,0x00,0x60,0xfe,0xc0,0x81,0x3b,0xe0,0x0e, 0x10,0xfe,0xc0,0x01,0xff,0xff,0x07,0x10,0xfe,0xc0,0x01,0xff,0xff,0x07,0x10, 0xfe,0xc0,0x01,0x1c,0xc7,0x01,0x10,0xfe,0x80,0x01,0x38,0xe7,0x00,0x10,0xfe, 0x80,0x01,0x38,0xe7,0x00,0x10,0xfe,0x80,0x03,0xff,0xff,0x07,0x0c,0xfe,0x80, 0x03,0x00,0x07,0x00,0x0c,0xfe,0x80,0x03,0x00,0x07,0x00,0x0c,0xfe,0x80,0x03, 0xf8,0xff,0x00,0x0c,0xfe,0x00,0x02,0xf8,0x00,0x00,0x0c,0xfe,0x00,0x02,0xf8, 0x00,0x00,0x0c,0xfe,0x00,0x0e,0x00,0x00,0x00,0x02,0xfe,0x00,0x0e,0x18,0x20, 0x06,0x02,0xfe,0x00,0x0e,0x18,0x20,0x06,0x02,0xfe,0x00,0x0e,0x3c,0x3b,0x07, 0x02,0xfe,0x00,0x0e,0x3c,0x3b,0x07,0x02,0xfe,0x00,0x0c,0xe0,0x38,0x07,0x02, 0xfe,0x00,0x1c,0xf8,0x38,0x87,0x01,0xfe,0x00,0x1c,0xf8,0x38,0x87,0x01,0xfe, 0x00,0x1c,0xdc,0xfb,0x87,0x01,0xfe,0x00,0x1c,0xc0,0x03,0x87,0x01,0xfe,0x00, 0x1c,0xc0,0x03,0x87,0x01,0xfe,0x00,0x10,0x00,0x07,0x87,0x01,0xfe,0x00,0x70, 0xf8,0xff,0x47,0x00,0xfe,0x00,0x70,0xf8,0xff,0x47,0x00,0xfe,0x00,0x70,0x00, 0x07,0x40,0x00,0xfe,0x00,0x60,0x20,0x00,0x40,0x00,0xfe,0x00,0x60,0x20,0x00, 0x40,0x00,0xfe,0x00,0x80,0x03,0x00,0x38,0x00,0xfe,0x00,0x00,0x1c,0x00,0x07, 0x00,0xfe,0x00,0x00,0x1c,0x00,0x07,0x00,0xfe,0x00,0x00,0xe0,0xe0,0x00,0x00, 0xfe,0x00,0x00,0x00,0x1f,0x00,0x00,0xfe,0x00,0x00,0x00,0x1f,0x00,0x00,0xfe, 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe}; xshogi-1.4.2/eastern_bitmaps/bishopPR_m.top.xbm0000644000175000017500000000430612274270516016504 00000000000000#define bishopPR_m_width 49 #define bishopPR_m_height 49 static unsigned char bishopPR_m_bits[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x80, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x80, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x80, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x80, 0xff, 0x06, 0x00, 0x00, 0x00, 0x00, 0x80, 0xff, 0x06, 0x00, 0x07, 0x00, 0x00, 0x80, 0xff, 0x0e, 0x00, 0x0f, 0x00, 0x06, 0x60, 0xfe, 0x0e, 0x80, 0x97, 0x19, 0x07, 0x60, 0xfe, 0x0e, 0x80, 0x83, 0x19, 0x07, 0x60, 0xfe, 0x0e, 0x80, 0x9b, 0x19, 0x07, 0x60, 0xfe, 0x08, 0x80, 0x1b, 0x11, 0x03, 0x60, 0xfe, 0x08, 0x80, 0x13, 0x33, 0x01, 0x60, 0xfe, 0x38, 0x80, 0x23, 0x22, 0x01, 0x10, 0xfe, 0x38, 0xc0, 0x03, 0x00, 0x00, 0x10, 0xfe, 0x38, 0xc0, 0x03, 0x20, 0x00, 0x10, 0xfe, 0x38, 0x80, 0xff, 0xff, 0x00, 0x10, 0xfe, 0x30, 0x00, 0xff, 0xff, 0x00, 0x10, 0xfe, 0x30, 0x00, 0x86, 0xe3, 0x00, 0x10, 0xfe, 0x70, 0x00, 0x80, 0xe3, 0x00, 0x0c, 0xfe, 0x70, 0x00, 0xf8, 0xff, 0x00, 0x0c, 0xfe, 0x70, 0x00, 0xf0, 0xff, 0x00, 0x0c, 0xfe, 0x70, 0x00, 0xa0, 0xe3, 0x00, 0x0c, 0xfe, 0x70, 0x00, 0x80, 0xe3, 0x00, 0x0c, 0xfe, 0x40, 0x00, 0xf8, 0xff, 0x00, 0x0c, 0xfe, 0xc0, 0x01, 0xf0, 0xff, 0x00, 0x02, 0xfe, 0xc0, 0x01, 0xa0, 0xe3, 0x00, 0x02, 0xfe, 0xc0, 0x01, 0x80, 0xe3, 0x00, 0x02, 0xfe, 0xc0, 0x01, 0xfe, 0xff, 0x00, 0x02, 0xfe, 0xc0, 0x01, 0xfc, 0xff, 0x00, 0x02, 0xfe, 0x80, 0x01, 0x18, 0xc0, 0x01, 0x02, 0xfe, 0x80, 0x03, 0x00, 0x00, 0x80, 0x01, 0xfe, 0x80, 0x03, 0x00, 0x00, 0x80, 0x01, 0xfe, 0x80, 0x03, 0x00, 0x00, 0x80, 0x01, 0xfe, 0x80, 0x03, 0x00, 0x00, 0x80, 0x01, 0xfe, 0x80, 0x03, 0x00, 0x00, 0x80, 0x01, 0xfe, 0x00, 0x02, 0x00, 0x00, 0x80, 0x01, 0xfe, 0x00, 0x1c, 0x00, 0x00, 0x70, 0x00, 0xfe, 0x00, 0x1c, 0x00, 0x00, 0x70, 0x00, 0xfe, 0x00, 0xe0, 0x00, 0x00, 0x0e, 0x00, 0xfe, 0x00, 0x00, 0x07, 0xc0, 0x01, 0x00, 0xfe, 0x00, 0x00, 0x07, 0xc0, 0x01, 0x00, 0xfe, 0x00, 0x00, 0x38, 0x38, 0x00, 0x00, 0xfe, 0x00, 0x00, 0xc0, 0x07, 0x00, 0x00, 0xfe, 0x00, 0x00, 0xc0, 0x07, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe}; xshogi-1.4.2/eastern_bitmaps/bishopPR_l.xbm0000644000175000017500000000627512274270516015711 00000000000000#define bishopPR_l_width 64 #define bishopPR_l_height 64 static unsigned char bishopPR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0xc0, 0x3f, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0xf0, 0xff, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0xf0, 0x83, 0x03, 0x00, 0x20, 0x44, 0x00, 0x00, 0x38, 0x18, 0x07, 0x00, 0x20, 0x48, 0x00, 0x00, 0x1c, 0x38, 0x07, 0x00, 0x20, 0x48, 0x00, 0x00, 0x0c, 0xf8, 0x03, 0x00, 0x20, 0x48, 0x00, 0x00, 0x0c, 0xf0, 0x03, 0x00, 0x20, 0x48, 0x00, 0x00, 0xf8, 0x0f, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0xf8, 0x06, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x10, 0x88, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0xc0, 0xe1, 0x03, 0x00, 0x10, 0x90, 0x00, 0x00, 0xfe, 0xff, 0x03, 0x00, 0x10, 0x90, 0x00, 0x00, 0xfc, 0xbf, 0x03, 0x00, 0x10, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x08, 0x10, 0x01, 0x80, 0x0f, 0x30, 0x00, 0x00, 0x08, 0x10, 0x01, 0xf0, 0x01, 0x78, 0x00, 0x00, 0x08, 0x20, 0x01, 0x78, 0x00, 0xd8, 0x81, 0x00, 0x08, 0x20, 0x01, 0x3c, 0x30, 0x98, 0xe1, 0x00, 0x08, 0x20, 0x01, 0x1c, 0x7e, 0x98, 0x71, 0x00, 0x04, 0x20, 0x01, 0xfc, 0x37, 0xf8, 0x31, 0x00, 0x04, 0x20, 0x01, 0xf8, 0x30, 0x3c, 0x38, 0x00, 0x04, 0x20, 0x02, 0x00, 0x16, 0x3f, 0x1c, 0x00, 0x04, 0x20, 0x02, 0x80, 0xf3, 0x1b, 0x0e, 0x00, 0x04, 0x40, 0x02, 0xe0, 0xe1, 0x19, 0x0f, 0x00, 0x04, 0x40, 0x02, 0xe0, 0xf0, 0xb0, 0x03, 0x00, 0x02, 0x40, 0x02, 0x00, 0x7c, 0xc0, 0x01, 0x00, 0x02, 0x40, 0x02, 0x00, 0x7e, 0xf0, 0x1f, 0x00, 0x02, 0x40, 0x02, 0x80, 0x6f, 0xf8, 0x7f, 0x00, 0x02, 0x40, 0x04, 0xc0, 0x63, 0xfc, 0x03, 0x00, 0x02, 0x80, 0x04, 0xe0, 0x61, 0x3e, 0x00, 0x00, 0x02, 0x80, 0x04, 0x70, 0x60, 0x80, 0x03, 0x00, 0x01, 0x80, 0x04, 0x00, 0x70, 0xf0, 0x03, 0x00, 0x01, 0x80, 0x04, 0x00, 0x70, 0x70, 0x03, 0x00, 0x01, 0x80, 0x04, 0x00, 0x70, 0x00, 0x03, 0x00, 0x01, 0x80, 0x08, 0x00, 0x70, 0xc0, 0x1f, 0x00, 0x01, 0x80, 0x08, 0x00, 0x70, 0xf0, 0x0f, 0x00, 0x01, 0x00, 0x09, 0x00, 0xf0, 0x30, 0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0xe0, 0x00, 0x03, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x06, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x80, 0x07, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0xe0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/gold.xbm0000644000175000017500000000134512274270516014566 00000000000000#define gold_width 32 #define gold_height 32 static unsigned char gold_bits[] = { 0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x30,0x06,0x00,0x00,0x0c,0x18, 0x00,0x00,0x03,0x60,0x00,0xc0,0x00,0x80,0x01,0x20,0xc0,0x00,0x02,0x20,0x30, 0x03,0x06,0x20,0x0c,0x0c,0x06,0x20,0xf3,0x33,0x06,0x10,0xc0,0x00,0x04,0x10, 0xfc,0x0f,0x0c,0x10,0xc0,0x00,0x0c,0x10,0xc8,0x04,0x0c,0x08,0xd0,0x02,0x08, 0x08,0xfe,0x1f,0x18,0x08,0x00,0x00,0x18,0x08,0x00,0x3c,0x18,0x04,0xda,0x23, 0x10,0x04,0x5a,0x36,0x30,0x04,0xda,0x14,0x30,0x04,0x9f,0x00,0x30,0x02,0x18, 0x18,0x20,0x02,0xdf,0x7f,0x60,0x02,0x1a,0x18,0x60,0x02,0x9a,0x18,0x60,0x01, 0x19,0x19,0x40,0x01,0x19,0x0c,0xc0,0x01,0x00,0x00,0xc0,0x01,0x00,0x00,0xc0, 0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff}; xshogi-1.4.2/eastern_bitmaps/kingR_m.xbm0000644000175000017500000000347512274270516015235 00000000000000#define kingR_m_width 49 #define kingR_m_height 49 static unsigned char kingR_m_bits[] = { 0xff,0xff,0xff,0xff,0xff,0x7f,0xfe,0xff,0xff,0xff,0xff,0xff,0x7f,0xfe,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x00, 0x00,0x00,0x00,0x80,0xff,0x07,0x00,0x00,0x00,0x00,0x80,0xff,0x07,0x00,0x00, 0x00,0x00,0x80,0xff,0x07,0x00,0x1c,0xe0,0x08,0x80,0xff,0x06,0x00,0xc7,0xe0, 0x08,0x80,0xff,0x06,0x00,0xc7,0xe0,0x08,0x80,0xff,0x0e,0x00,0x07,0xe3,0x06, 0x60,0xfe,0x0e,0x00,0x07,0xe0,0x06,0x60,0xfe,0x0e,0x00,0x07,0xe0,0x06,0x60, 0xfe,0x0e,0xe0,0xff,0xe7,0x0f,0x60,0xfe,0x08,0x00,0x07,0xe0,0x00,0x60,0xfe, 0x08,0x00,0x07,0xe0,0x00,0x60,0xfe,0x38,0x00,0x00,0xe3,0x0f,0x10,0xfe,0x38, 0x00,0x1b,0xe7,0x06,0x10,0xfe,0x38,0x00,0x1b,0xe7,0x06,0x10,0xfe,0x38,0x80, 0x3b,0xe4,0x06,0x10,0xfe,0x30,0x80,0xe0,0xe7,0x06,0x10,0xfe,0x30,0x80,0xe0, 0xe7,0x06,0x10,0xfe,0x70,0x80,0x1f,0x00,0x00,0x0c,0xfe,0x70,0x00,0x00,0x00, 0x00,0x0c,0xfe,0x70,0x00,0x00,0x00,0x00,0x0c,0xfe,0x70,0x00,0xff,0xff,0x07, 0x0c,0xfe,0x70,0x00,0xff,0xff,0x07,0x0c,0xfe,0x40,0x00,0x00,0x07,0x00,0x0c, 0xfe,0xc0,0x01,0x00,0x07,0x00,0x02,0xfe,0xc0,0x01,0x00,0x07,0x00,0x02,0xfe, 0xc0,0x01,0x00,0x07,0x00,0x02,0xfe,0xc0,0x01,0xfc,0xff,0x01,0x02,0xfe,0xc0, 0x01,0xfc,0xff,0x01,0x02,0xfe,0x80,0x01,0x00,0x07,0x00,0x02,0xfe,0x80,0x03, 0x00,0x07,0x80,0x01,0xfe,0x80,0x03,0x00,0x07,0x80,0x01,0xfe,0x80,0x03,0x00, 0x07,0x80,0x01,0xfe,0x80,0x03,0xfc,0xff,0x81,0x01,0xfe,0x80,0x03,0xfc,0xff, 0x81,0x01,0xfe,0x00,0x02,0x00,0x00,0x80,0x01,0xfe,0x00,0x1c,0x00,0x00,0x70, 0x00,0xfe,0x00,0x1c,0x00,0x00,0x70,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e,0x00, 0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe, 0x00,0x00,0x38,0x38,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00, 0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe}; xshogi-1.4.2/eastern_bitmaps/rook_l.xbm0000644000175000017500000000626112274270516015130 00000000000000#define rook_l_width 64 #define rook_l_height 64 static unsigned char rook_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x81, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x01, 0x3c, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xc0, 0x01, 0xc0, 0x03, 0x00, 0x00, 0x1c, 0x00, 0x3c, 0x1e, 0x00, 0x1c, 0x00, 0x00, 0x04, 0xc0, 0x03, 0xe0, 0x01, 0x10, 0x00, 0x00, 0x06, 0x38, 0x00, 0x00, 0x0e, 0x60, 0x00, 0x00, 0x8a, 0x07, 0x00, 0x00, 0xf0, 0x40, 0x00, 0x00, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x4f, 0x00, 0x00, 0x12, 0x00, 0x00, 0x07, 0x00, 0x70, 0x00, 0x00, 0x12, 0x00, 0xf0, 0xc7, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0xfe, 0x77, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0x03, 0x3c, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x20, 0x6c, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x60, 0xcc, 0x05, 0x80, 0x00, 0x00, 0x09, 0xe0, 0x67, 0x88, 0x0d, 0x80, 0x00, 0x00, 0x09, 0xf0, 0x67, 0x18, 0x0c, 0x80, 0x00, 0x00, 0x09, 0x10, 0xe6, 0xfb, 0x0f, 0x00, 0x01, 0x80, 0x08, 0x00, 0xf6, 0xf7, 0x07, 0x00, 0x01, 0x80, 0x08, 0xb8, 0xff, 0x06, 0x00, 0x00, 0x01, 0x80, 0x04, 0xf0, 0x6f, 0x8c, 0x01, 0x00, 0x01, 0x80, 0x04, 0x00, 0x62, 0xcc, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x63, 0x7c, 0x08, 0x00, 0x01, 0x80, 0x04, 0x00, 0x63, 0xec, 0x0c, 0x00, 0x01, 0x80, 0x04, 0x80, 0x65, 0x8c, 0x09, 0x00, 0x02, 0x40, 0x04, 0xc0, 0x78, 0x18, 0x08, 0x00, 0x02, 0x40, 0x02, 0x70, 0x30, 0xf0, 0x0f, 0x00, 0x02, 0x40, 0x02, 0x00, 0x00, 0xe0, 0x07, 0x00, 0x02, 0x40, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x80, 0x00, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0xfc, 0x0f, 0x00, 0x00, 0x04, 0x20, 0x02, 0x00, 0xf8, 0x1f, 0x00, 0x00, 0x04, 0x20, 0x02, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x04, 0x20, 0x01, 0x80, 0xfe, 0xff, 0x00, 0x00, 0x04, 0x20, 0x01, 0x80, 0x83, 0xe0, 0x00, 0x00, 0x04, 0x20, 0x01, 0x80, 0x83, 0xc0, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0xff, 0x7f, 0x00, 0x00, 0x08, 0x20, 0x01, 0x00, 0xc7, 0x60, 0x00, 0x00, 0x08, 0x10, 0x01, 0x00, 0xc6, 0x3c, 0x00, 0x00, 0x08, 0x10, 0x01, 0x00, 0xfe, 0x3f, 0x00, 0x00, 0x08, 0x90, 0x00, 0x20, 0xc0, 0x00, 0x00, 0x00, 0x08, 0x90, 0x00, 0xe0, 0xfc, 0xff, 0x01, 0x00, 0x08, 0x90, 0x00, 0xc0, 0xff, 0xff, 0x03, 0x00, 0x10, 0x90, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x10, 0x88, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/biglight.xbm0000644000175000017500000000166412274270516015436 00000000000000#define biglight_width 32 #define biglight_height 32 #define biglight_x_hot -1 #define biglight_y_hot -1 static unsigned char biglight_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; xshogi-1.4.2/eastern_bitmaps/rookPR_l.top.xbm0000644000175000017500000000634012274270516016171 00000000000000#define rookPR_l_width 64 #define rookPR_l_height 64 static unsigned char rookPR_l_bits[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x0c, 0x00, 0xfc, 0x7f, 0x18, 0x20, 0x00, 0xc0, 0x3c, 0x00, 0xfc, 0xff, 0x38, 0x38, 0x00, 0x30, 0x3c, 0x00, 0x3c, 0xf0, 0x78, 0x38, 0x00, 0x30, 0x3c, 0x00, 0x18, 0xe0, 0x38, 0x38, 0x00, 0x30, 0x3c, 0x00, 0xd8, 0xff, 0x38, 0x38, 0x00, 0x30, 0x3c, 0x00, 0x90, 0xff, 0x38, 0x38, 0x00, 0x30, 0x3c, 0x00, 0x00, 0xe1, 0x38, 0x38, 0x00, 0x30, 0x30, 0x00, 0x00, 0xe0, 0xf8, 0x3f, 0x00, 0x30, 0x30, 0x00, 0xc0, 0xff, 0xf8, 0x3f, 0x00, 0x30, 0xf0, 0x00, 0x80, 0xff, 0x38, 0x38, 0x00, 0x0c, 0xf0, 0x00, 0x00, 0xe1, 0x38, 0x38, 0x00, 0x0c, 0xf0, 0x00, 0x00, 0xe0, 0x38, 0x38, 0x00, 0x0c, 0xf0, 0x00, 0xc0, 0xff, 0xf8, 0x3f, 0x00, 0x0c, 0xf0, 0x00, 0x80, 0xff, 0xf8, 0x3f, 0x00, 0x0c, 0xf0, 0x00, 0x00, 0xe1, 0x38, 0x38, 0x00, 0x0c, 0xc0, 0x00, 0x70, 0xe0, 0x38, 0x38, 0x00, 0x0c, 0xc0, 0x00, 0xf0, 0xff, 0x38, 0x38, 0x00, 0x0c, 0xc0, 0x03, 0xf0, 0xff, 0xf8, 0x3f, 0x00, 0x03, 0xc0, 0x03, 0x70, 0xc0, 0xf0, 0x3f, 0x00, 0x03, 0xc0, 0x03, 0x70, 0x00, 0x30, 0x30, 0x00, 0x03, 0xc0, 0x03, 0x70, 0x60, 0x00, 0x00, 0x00, 0x03, 0xc0, 0x03, 0xf0, 0xff, 0xfc, 0x7f, 0x00, 0x03, 0xc0, 0x03, 0xf0, 0xff, 0xfc, 0xff, 0x00, 0x03, 0x00, 0x03, 0x60, 0xe0, 0xc8, 0x04, 0x00, 0x03, 0x00, 0x03, 0x00, 0xe0, 0x40, 0x0c, 0x00, 0x03, 0x00, 0x0f, 0xc0, 0xff, 0x60, 0x0c, 0xc0, 0x00, 0x00, 0x0f, 0xc0, 0xff, 0xf8, 0x3f, 0xc0, 0x00, 0x00, 0x0f, 0x80, 0xe0, 0xf0, 0x7f, 0xc0, 0x00, 0x00, 0x0f, 0x00, 0xc0, 0xa0, 0x03, 0xc0, 0x00, 0x00, 0x0f, 0x00, 0x80, 0x80, 0x03, 0xc0, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x03, 0xc0, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; xshogi-1.4.2/eastern_bitmaps/king.xbm0000644000175000017500000000134512274270516014571 00000000000000#define king_width 32 #define king_height 32 static unsigned char king_bits[] = { 0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x30,0x06,0x00,0x00,0x0c,0x18, 0x00,0x00,0x03,0x60,0x00,0xc0,0x00,0x80,0x01,0x20,0x00,0x00,0x02,0x20,0xfc, 0x0f,0x06,0x20,0xc0,0x00,0x06,0x20,0xc0,0x00,0x06,0x10,0xc0,0x00,0x04,0x10, 0xfc,0x0f,0x0c,0x10,0xc0,0x00,0x0c,0x10,0xc0,0x00,0x0c,0x08,0xc0,0x00,0x08, 0x08,0xfe,0x1f,0x18,0x08,0x00,0x00,0x18,0x08,0x00,0x3c,0x18,0x04,0xda,0x23, 0x10,0x04,0x5a,0x36,0x30,0x04,0xda,0x14,0x30,0x04,0x9f,0x00,0x30,0x02,0x18, 0x18,0x20,0x02,0xdf,0x7f,0x60,0x02,0x1a,0x18,0x60,0x02,0x9a,0x18,0x60,0x01, 0x19,0x19,0x40,0x01,0x19,0x0c,0xc0,0x01,0x00,0x00,0xc0,0x01,0x00,0x00,0xc0, 0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff}; xshogi-1.4.2/eastern_bitmaps/smallsolid_l.xbm0000644000175000017500000000526112274270516016320 00000000000000#define smallsolid_l_width 64 #define smallsolid_l_height 64 static unsigned char smallsolid_l_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x0f,0x00,0x00,0x00,0x00,0x00,0xf0,0xff, 0x7f,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0xff,0x03,0x00,0x00,0x00,0xf0,0xff, 0xff,0xff,0x1f,0x00,0x00,0x00,0xf8,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0xfc, 0xff,0xff,0xff,0xff,0x00,0x00,0x00,0xfc,0xff,0xff,0xff,0xff,0x01,0x00,0x00, 0xfc,0xff,0xff,0xff,0xff,0x01,0x00,0x00,0xfc,0xff,0xff,0xff,0xff,0x03,0x00, 0x00,0xfe,0xff,0xff,0xff,0xff,0x03,0x00,0x00,0xfe,0xff,0xff,0xff,0xff,0x03, 0x00,0x00,0xfe,0xff,0xff,0xff,0xff,0x03,0x00,0x00,0xfe,0xff,0xff,0xff,0xff, 0x03,0x00,0x00,0xfe,0xff,0xff,0xff,0xff,0x07,0x00,0x00,0xfe,0xff,0xff,0xff, 0xff,0x07,0x00,0x00,0xff,0xff,0xff,0xff,0xff,0x07,0x00,0x00,0xff,0xff,0xff, 0xff,0xff,0x07,0x00,0x00,0xff,0xff,0xff,0xff,0xff,0x07,0x00,0x00,0xff,0xff, 0xff,0xff,0xff,0x07,0x00,0x00,0xff,0xff,0xff,0xff,0xff,0x07,0x00,0x00,0xff, 0xff,0xff,0xff,0xff,0x0f,0x00,0x80,0xff,0xff,0xff,0xff,0xff,0x0f,0x00,0x80, 0xff,0xff,0xff,0xff,0xff,0x0f,0x00,0x80,0xff,0xff,0xff,0xff,0xff,0x0f,0x00, 0x80,0xff,0xff,0xff,0xff,0xff,0x0f,0x00,0x80,0xff,0xff,0xff,0xff,0xff,0x0f, 0x00,0x80,0xff,0xff,0xff,0xff,0xff,0x0f,0x00,0xc0,0xff,0xff,0xff,0xff,0xff, 0x1f,0x00,0xc0,0xff,0xff,0xff,0xff,0xff,0x1f,0x00,0xc0,0xff,0xff,0xff,0xff, 0xff,0x1f,0x00,0xc0,0xff,0xff,0xff,0xff,0xff,0x1f,0x00,0xc0,0xff,0xff,0xff, 0xff,0xff,0x1f,0x00,0xc0,0xff,0xff,0xff,0xff,0xff,0x1f,0x00,0xe0,0xff,0xff, 0xff,0xff,0xff,0x3f,0x00,0xe0,0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0xe0,0xff, 0xff,0xff,0xff,0xff,0x3f,0x00,0xe0,0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0xe0, 0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0xe0,0xff,0xff,0xff,0xff,0xff,0x3f,0x00, 0xf0,0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0xf0,0xff,0xff,0xff,0xff,0xff,0x7f, 0x00,0xf0,0xff,0xff,0xff,0xff,0xff,0x7f,0x00,0xf0,0xff,0xff,0xff,0xff,0xff, 0x7f,0x00,0xf0,0xff,0xff,0xff,0xff,0xff,0x7f,0x00,0xe0,0xff,0xff,0xff,0xff, 0xff,0x7f,0x00,0xe0,0xff,0xff,0xff,0xff,0xff,0x7f,0x00,0xe0,0xff,0xff,0xff, 0xff,0xff,0x7f,0x00,0xe0,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0xc0,0xff,0xff, 0xff,0xff,0xff,0xff,0x00,0xc0,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0x80,0xff, 0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/smallsolid.xbm0000644000175000017500000000136712274270516016010 00000000000000#define smallsolid_width 32 #define smallsolid_height 32 static unsigned char smallsolid_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0x01, 0x00,0x00,0xf0,0x07,0x00,0x00,0xfc,0x1f,0x00,0x00,0xff,0x7f,0x00,0x80,0xff, 0xff,0x00,0x80,0xff,0xff,0x01,0x80,0xff,0xff,0x01,0xc0,0xff,0xff,0x01,0xc0, 0xff,0xff,0x03,0xc0,0xff,0xff,0x03,0xc0,0xff,0xff,0x03,0xe0,0xff,0xff,0x03, 0xe0,0xff,0xff,0x07,0xe0,0xff,0xff,0x07,0xe0,0xff,0xff,0x07,0xf0,0xff,0xff, 0x07,0xf0,0xff,0xff,0x0f,0xf0,0xff,0xff,0x0f,0xf0,0xff,0xff,0x0f,0xf8,0xff, 0xff,0x0f,0xf8,0xff,0xff,0x1f,0xf8,0xff,0xff,0x1f,0xf8,0xff,0xff,0x1f,0xfc, 0xff,0xff,0x1f,0xfc,0xff,0xff,0x3f,0xfc,0xff,0xff,0x3f,0xfc,0xff,0xff,0x3f, 0xfc,0xff,0xff,0x3f,0xf8,0xff,0xff,0x3f}; xshogi-1.4.2/eastern_bitmaps/rookP_m.xbm0000644000175000017500000000347512274270516015255 00000000000000#define rookP_m_width 49 #define rookP_m_height 49 static unsigned char rookP_m_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00, 0x38,0x38,0x00,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0x00,0x07, 0xc0,0x01,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e,0x00,0xfe,0x00,0x1c,0x00,0x00, 0x70,0x00,0xfe,0x00,0x1c,0x00,0x00,0x70,0x00,0xfe,0x00,0x03,0x00,0x00,0x80, 0x00,0xfe,0x00,0x03,0x06,0x0e,0x80,0x03,0xfe,0x00,0x03,0x06,0x0e,0x80,0x03, 0xfe,0x00,0xc3,0x7f,0xfe,0x81,0x03,0xfe,0x00,0x03,0x39,0x0e,0x80,0x03,0xfe, 0x00,0x03,0x39,0x0e,0x80,0x03,0xfe,0x80,0xc0,0x7f,0xfe,0x03,0x03,0xfe,0x80, 0x00,0x00,0x80,0x03,0x07,0xfe,0x80,0x00,0x00,0x80,0x03,0x07,0xfe,0x80,0xc0, 0x7f,0xfe,0x03,0x07,0xfe,0x80,0xc0,0x71,0x0e,0x00,0x07,0xfe,0x80,0xc0,0x71, 0x0e,0x00,0x07,0xfe,0x60,0xc0,0x7f,0xfe,0x03,0x04,0xfe,0x60,0xc0,0x71,0x0e, 0x00,0x1c,0xfe,0x60,0xc0,0x71,0x0e,0x00,0x1c,0xfe,0x60,0xc0,0x7f,0xfe,0x03, 0x1c,0xfe,0x60,0xc0,0x7f,0xfe,0x03,0x1c,0xfe,0x60,0xc0,0x70,0xf8,0x03,0x1c, 0xfe,0x10,0x00,0x00,0x00,0x00,0x18,0xfe,0x10,0x00,0x00,0x00,0x00,0x18,0xfe, 0x10,0x00,0xff,0x7f,0x00,0x38,0xfe,0x10,0x00,0xc0,0x01,0x00,0x38,0xfe,0x10, 0x00,0xc0,0x01,0x00,0x38,0xfe,0x10,0x00,0xc0,0x01,0x00,0x38,0xfe,0x0c,0x00, 0xc0,0x01,0x00,0x20,0xfe,0x0c,0x00,0xc0,0x01,0x00,0x20,0xfe,0x0c,0x00,0xfe, 0x3f,0x00,0xe0,0xfe,0x0c,0x00,0xc0,0x01,0x00,0xe0,0xfe,0x0c,0x00,0xc0,0x01, 0x00,0xe0,0xfe,0x0c,0x00,0xc0,0x01,0x00,0xe0,0xfe,0x03,0x00,0xc0,0x01,0x00, 0xc0,0xfe,0x03,0x00,0xc0,0x01,0x00,0xc0,0xfe,0x03,0xc0,0xff,0xff,0x01,0xc0, 0xff,0x03,0x00,0x00,0x00,0x00,0xc0,0xff,0x03,0x00,0x00,0x00,0x00,0xc0,0xff, 0x03,0x00,0x00,0x00,0x00,0xc0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xfc,0xff,0xff,0xff,0xff,0xff,0xff}; xshogi-1.4.2/eastern_bitmaps/kingR.xbm0000644000175000017500000000135012274270516014707 00000000000000#define kingR_width 32 #define kingR_height 32 static unsigned char kingR_bits[] = { 0xff,0xff,0xff,0x7f,0x01,0x00,0x00,0xc0,0x01,0x00,0x00,0xc0,0x01,0x18,0x4c, 0xc0,0x01,0x4c,0x4c,0xc0,0x02,0x8c,0x2c,0x60,0x02,0x0c,0x2c,0x60,0x02,0xff, 0x7d,0x60,0x02,0x0c,0x0c,0x60,0x04,0x80,0x7c,0x30,0x04,0x94,0x2d,0x30,0x04, 0x36,0x2d,0x30,0x04,0xe2,0x2d,0x30,0x08,0x1e,0x00,0x18,0x08,0x00,0x00,0x18, 0x08,0xfc,0x3f,0x18,0x08,0x80,0x01,0x18,0x10,0x80,0x01,0x0c,0x10,0x80,0x01, 0x0c,0x10,0xf8,0x1f,0x0c,0x10,0x80,0x01,0x0c,0x20,0x80,0x01,0x06,0x20,0x80, 0x01,0x06,0x20,0xf8,0x1f,0x06,0x20,0x00,0x00,0x06,0xc0,0x00,0x80,0x03,0x00, 0x03,0xe0,0x01,0x00,0x0c,0x78,0x00,0x00,0x30,0x1e,0x00,0x00,0xc0,0x07,0x00, 0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/lance_m.xbm0000644000175000017500000000347512274270516015245 00000000000000#define lance_m_width 49 #define lance_m_height 49 static unsigned char lance_m_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00, 0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0xc0, 0x07,0x00,0x00,0xfe,0x00,0x00,0x38,0x38,0x00,0x00,0xfe,0x00,0x00,0x07,0xc0, 0x01,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e, 0x00,0xfe,0x00,0x18,0x00,0x3e,0x10,0x00,0xfe,0x00,0x18,0x00,0x3e,0x10,0x00, 0xfe,0x00,0x18,0xf8,0x3f,0x70,0x00,0xfe,0x00,0x18,0x80,0x07,0x70,0x00,0xfe, 0x00,0x18,0x80,0x07,0x70,0x00,0xfe,0x00,0xc4,0xff,0xff,0x63,0x00,0xfe,0x00, 0x04,0xb8,0x77,0xe0,0x00,0xfe,0x00,0x04,0xb8,0x77,0xe0,0x00,0xfe,0x00,0x04, 0xfe,0xff,0xe1,0x00,0xfe,0x00,0x04,0x3f,0xf0,0xe3,0x00,0xfe,0x00,0x04,0x3f, 0xf0,0xe3,0x00,0xfe,0x00,0xc3,0xf9,0x7f,0x8e,0x00,0xfe,0x00,0x03,0x38,0x70, 0x80,0x03,0xfe,0x00,0x03,0x38,0x70,0x80,0x03,0xfe,0x00,0x03,0xf8,0x7f,0x80, 0x03,0xfe,0x00,0x03,0xf8,0x7f,0x80,0x03,0xfe,0x00,0x03,0x00,0x00,0x80,0x03, 0xfe,0x80,0x00,0x80,0x07,0x00,0x03,0xfe,0x80,0x00,0x80,0x07,0x00,0x03,0xfe, 0x80,0x00,0xfe,0xff,0x01,0x07,0xfe,0x80,0x00,0x80,0x07,0x00,0x07,0xfe,0x80, 0x00,0x80,0x07,0x00,0x07,0xfe,0x80,0x00,0xfe,0xff,0x01,0x07,0xfe,0x60,0x00, 0x8e,0xc7,0x01,0x04,0xfe,0x60,0x00,0x8e,0xc7,0x01,0x04,0xfe,0x60,0x00,0xfe, 0xff,0x01,0x1c,0xfe,0x60,0x00,0x8e,0xc7,0x01,0x1c,0xfe,0x60,0x00,0x8e,0xc7, 0x01,0x1c,0xfe,0x60,0x00,0xfe,0xff,0x01,0x1c,0xfe,0x10,0x00,0x80,0x07,0x00, 0x18,0xfe,0x10,0x00,0x80,0x07,0x00,0x18,0xfe,0x10,0x00,0xff,0xff,0x03,0x38, 0xfe,0x10,0x00,0x80,0x07,0x00,0x38,0xfe,0x10,0x00,0x80,0x07,0x00,0x38,0xfe, 0x10,0x00,0x00,0x00,0x00,0x38,0xfe,0xf0,0xff,0xff,0xff,0xff,0x3f,0xfe,0xf0, 0xff,0xff,0xff,0xff,0x3f,0xfe,0xe0,0xff,0xff,0xff,0xff,0x3f,0xfe}; xshogi-1.4.2/eastern_bitmaps/pawn_m.xbm0000644000175000017500000000347212274270516015125 00000000000000#define pawn_m_width 49 #define pawn_m_height 49 static unsigned char pawn_m_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00, 0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0xc0, 0x07,0x00,0x00,0xfe,0x00,0x00,0x38,0x38,0x00,0x00,0xfe,0x00,0x00,0x07,0xc0, 0x01,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e, 0x00,0xfe,0x00,0x18,0x00,0x00,0x10,0x00,0xfe,0x00,0x18,0x00,0x00,0x10,0x00, 0xfe,0x00,0x18,0x00,0x00,0x70,0x00,0xfe,0x00,0x18,0xc0,0x01,0x70,0x00,0xfe, 0x00,0x18,0xc0,0x01,0x70,0x00,0xfe,0x00,0x04,0xce,0x0f,0x60,0x00,0xfe,0x00, 0x04,0xce,0x01,0xe0,0x00,0xfe,0x00,0x04,0xce,0x01,0xe0,0x00,0xfe,0x00,0x04, 0xff,0x7f,0xe0,0x00,0xfe,0x00,0x04,0xc8,0x09,0xe0,0x00,0xfe,0x00,0x04,0xc8, 0x09,0xe0,0x00,0xfe,0x00,0x03,0xc6,0x31,0x80,0x00,0xfe,0x00,0x03,0x41,0x40, 0x80,0x03,0xfe,0x00,0x03,0x41,0x40,0x80,0x03,0xfe,0x00,0x03,0x00,0x0e,0x80, 0x03,0xfe,0x00,0x03,0x00,0x0e,0x80,0x03,0xfe,0x00,0x03,0xc0,0x07,0x80,0x03, 0xfe,0x80,0x00,0x7e,0x00,0x00,0x03,0xfe,0x80,0x00,0x7e,0x00,0x00,0x03,0xfe, 0x80,0x00,0x00,0x00,0x00,0x07,0xfe,0x80,0x00,0xf0,0x3f,0x00,0x07,0xfe,0x80, 0x00,0xf0,0x3f,0x00,0x07,0xfe,0x80,0x00,0x0e,0x00,0x00,0x07,0xfe,0x60,0x00, 0xfe,0x3f,0x00,0x04,0xfe,0x60,0x00,0xfe,0x3f,0x00,0x04,0xfe,0x60,0x00,0x0e, 0x0e,0x00,0x1c,0xfe,0x60,0x00,0x0e,0x0e,0x00,0x1c,0xfe,0x60,0x00,0x0e,0x0e, 0x00,0x1c,0xfe,0x60,0xc0,0xff,0xff,0x01,0x1c,0xfe,0x10,0x00,0x08,0x30,0x00, 0x18,0xfe,0x10,0x00,0x08,0x30,0x00,0x18,0xfe,0x10,0x00,0x06,0x40,0x00,0x38, 0xfe,0x10,0x00,0x00,0x00,0x00,0x38,0xfe,0x10,0x00,0x00,0x00,0x00,0x38,0xfe, 0x10,0x00,0x00,0x00,0x00,0x38,0xfe,0xf0,0xff,0xff,0xff,0xff,0x3f,0xfe,0xf0, 0xff,0xff,0xff,0xff,0x3f,0xfe,0xe0,0xff,0xff,0xff,0xff,0x3f,0xfe}; xshogi-1.4.2/eastern_bitmaps/bishopPR.top.xbm0000644000175000017500000000166412274270516016174 00000000000000#define bishopPR_width 32 #define bishopPR_height 32 #define bishopPR_x_hot -1 #define bishopPR_y_hot -1 static unsigned char bishopPR_bits[] = { 0xff, 0xff, 0xff, 0x7f, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x02, 0x00, 0x00, 0xc0, 0x02, 0x18, 0x00, 0x60, 0x02, 0xbc, 0xcd, 0x60, 0x02, 0x8c, 0xcd, 0x60, 0x04, 0x2c, 0xc9, 0x60, 0x04, 0x6c, 0x52, 0x30, 0x04, 0x4c, 0x40, 0x30, 0x04, 0x0c, 0x10, 0x30, 0x08, 0xfc, 0x3f, 0x30, 0x08, 0x08, 0x33, 0x18, 0x08, 0xe0, 0x3f, 0x18, 0x08, 0x00, 0x33, 0x18, 0x10, 0xe0, 0x3f, 0x18, 0x10, 0x00, 0x33, 0x0c, 0x10, 0xf0, 0x3f, 0x0c, 0x10, 0x20, 0x20, 0x0c, 0x20, 0x00, 0x00, 0x0c, 0x20, 0x00, 0x00, 0x06, 0x20, 0x00, 0x00, 0x06, 0x20, 0x00, 0x00, 0x06, 0xc0, 0x00, 0x00, 0x07, 0x00, 0x03, 0xc0, 0x03, 0x00, 0x0c, 0xf0, 0x00, 0x00, 0x30, 0x3c, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00}; xshogi-1.4.2/eastern_bitmaps/knightP.xbm0000644000175000017500000000135612274270516015247 00000000000000#define knightP_width 32 #define knightP_height 32 static unsigned char knightP_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0x01, 0x00,0x00,0x30,0x06,0x00,0x00,0x0c,0x18,0x00,0x00,0x03,0x60,0x00,0x80,0x00, 0x84,0x00,0x80,0x80,0x81,0x01,0x80,0xfc,0x8f,0x01,0x40,0x8c,0x01,0x01,0x40, 0x0c,0x03,0x03,0x40,0x7c,0x1b,0x03,0x40,0x6c,0x0e,0x03,0x20,0x6c,0x06,0x02, 0x20,0x6c,0x1d,0x06,0x20,0x64,0x08,0x06,0x20,0x00,0x00,0x06,0x10,0x18,0x06, 0x04,0x10,0x18,0x06,0x0c,0x10,0xbe,0x1f,0x0c,0x10,0x18,0x06,0x0c,0x08,0xbc, 0x3f,0x08,0x08,0x1a,0x06,0x18,0x08,0x98,0x1f,0x18,0x08,0x18,0x06,0x18,0x04, 0x18,0x06,0x10,0x04,0xd8,0x3f,0x30,0x04,0x00,0x00,0x30,0x04,0x00,0x00,0x30, 0xfc,0xff,0xff,0x3f,0xf8,0xff,0xff,0x3f}; xshogi-1.4.2/eastern_bitmaps/pawn.xbm0000644000175000017500000000134512274270516014606 00000000000000#define pawn_width 32 #define pawn_height 32 static unsigned char pawn_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0x01, 0x00,0x00,0x30,0x06,0x00,0x00,0x0c,0x18,0x00,0x00,0x03,0x60,0x00,0x80,0x00, 0x80,0x00,0x80,0x00,0x80,0x01,0x80,0xc0,0x80,0x01,0x40,0xd8,0x03,0x01,0x40, 0xd8,0x00,0x03,0x40,0xfc,0x0f,0x03,0x40,0xd0,0x02,0x03,0x20,0xc8,0x04,0x02, 0x20,0x44,0x08,0x06,0x20,0x00,0x03,0x06,0x20,0xc0,0x01,0x06,0x10,0x78,0x00, 0x04,0x10,0x00,0x00,0x0c,0x10,0xe0,0x07,0x0c,0x10,0x18,0x00,0x0c,0x08,0xf8, 0x07,0x08,0x08,0x18,0x03,0x18,0x08,0x18,0x03,0x18,0x08,0xfe,0x1f,0x18,0x04, 0x10,0x04,0x10,0x04,0x08,0x08,0x30,0x04,0x00,0x00,0x30,0x04,0x00,0x00,0x30, 0xfc,0xff,0xff,0x3f,0xf8,0xff,0xff,0x3f}; xshogi-1.4.2/eastern_bitmaps/pawnP_l.xbm0000644000175000017500000000524212274270516015241 00000000000000#define pawnP_l_width 64 #define pawnP_l_height 64 static unsigned char pawnP_l_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x0e,0x00,0x00,0x00,0x00,0x00,0xf0,0x80, 0x70,0x00,0x00,0x00,0x00,0x00,0x0f,0xc0,0x81,0x03,0x00,0x00,0x00,0xf0,0x00, 0x38,0x0e,0x1c,0x00,0x00,0x00,0x08,0x00,0x07,0x70,0x60,0x00,0x00,0x00,0x0c, 0xe0,0x00,0x80,0x83,0x00,0x00,0x00,0x14,0x1c,0x00,0x00,0x1c,0x01,0x00,0x00, 0x94,0x03,0x00,0x00,0xe0,0x01,0x00,0x00,0x64,0x00,0x00,0x00,0x00,0x03,0x00, 0x00,0x22,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x02, 0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x22,0x00,0x00,0x00,0x00, 0x02,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x12,0x00,0x00,0x00, 0x00,0x04,0x00,0x00,0x11,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00,0x00, 0x00,0x00,0x04,0x00,0x00,0x11,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00, 0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x09, 0x00,0x03,0x00,0x00,0x08,0x00,0x80,0x08,0x80,0x07,0x00,0x00,0x08,0x00,0x80, 0x08,0x80,0x07,0x18,0x00,0x08,0x00,0x80,0x08,0x00,0x07,0x1e,0x00,0x08,0x00, 0x80,0x08,0x00,0x87,0x0f,0x00,0x08,0x00,0x80,0x08,0x00,0xee,0x07,0x00,0x08, 0x00,0x80,0x08,0x00,0xfe,0x01,0x00,0x08,0x00,0x40,0x04,0x00,0x7c,0x00,0x00, 0x10,0x00,0x40,0x04,0x00,0x38,0x00,0x00,0x10,0x00,0x40,0x04,0x00,0x18,0x00, 0x00,0x10,0x00,0x40,0x04,0x00,0x0c,0x00,0x00,0x10,0x00,0x40,0x04,0x00,0x0c, 0x00,0x00,0x10,0x00,0x40,0x04,0x00,0x1c,0x06,0x00,0x10,0x00,0x20,0x02,0x00, 0xf8,0x0f,0x00,0x20,0x00,0x20,0x02,0x00,0xf8,0x0f,0x00,0x20,0x00,0x20,0x02, 0x00,0xf0,0x03,0x00,0x20,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x20,0x00,0x20, 0x02,0x00,0x00,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x20,0x00, 0x10,0x02,0x00,0x00,0x00,0x00,0x20,0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40, 0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x00, 0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00, 0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00, 0x00,0x00,0x40,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00, 0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0xc0,0x00,0x80,0xff, 0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/king_l.xbm0000644000175000017500000000626112274270516015106 00000000000000#define king_l_width 64 #define king_l_height 64 static unsigned char king_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x81, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x01, 0x3c, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xc0, 0x01, 0xc0, 0x03, 0x00, 0x00, 0x1c, 0x00, 0x3c, 0x1e, 0x00, 0x1c, 0x00, 0x00, 0x04, 0xc0, 0x03, 0xe0, 0x01, 0x10, 0x00, 0x00, 0x06, 0x38, 0x00, 0x00, 0x0e, 0x60, 0x00, 0x00, 0x8a, 0x07, 0x00, 0x00, 0xf0, 0x40, 0x00, 0x00, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x4f, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x12, 0x00, 0x00, 0x40, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0xf8, 0xff, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0xfe, 0x7f, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0xc7, 0x01, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x80, 0x01, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x80, 0x01, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x80, 0x39, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0xf0, 0x1f, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0xfc, 0x07, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0x80, 0x01, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x80, 0x01, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x80, 0x01, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xf8, 0x7f, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xff, 0xff, 0x01, 0x00, 0x01, 0x80, 0x04, 0x00, 0x03, 0x00, 0x00, 0x00, 0x02, 0x40, 0x04, 0x00, 0x04, 0x10, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x06, 0x18, 0x00, 0x00, 0x02, 0x40, 0x02, 0x80, 0x06, 0x1e, 0x00, 0x00, 0x02, 0x40, 0x02, 0x80, 0xc6, 0x07, 0x00, 0x00, 0x02, 0x40, 0x02, 0xc0, 0x86, 0x03, 0x00, 0x00, 0x02, 0x40, 0x02, 0xc0, 0x04, 0x3a, 0x00, 0x00, 0x04, 0x20, 0x02, 0x60, 0x07, 0x7e, 0x00, 0x00, 0x04, 0x20, 0x02, 0xf8, 0xc7, 0x66, 0x00, 0x00, 0x04, 0x20, 0x01, 0x30, 0xc4, 0x60, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0x84, 0x38, 0x00, 0x00, 0x04, 0x20, 0x01, 0xf0, 0x05, 0x3e, 0x00, 0x00, 0x04, 0x20, 0x01, 0xf8, 0x04, 0x06, 0x00, 0x00, 0x08, 0x20, 0x01, 0x20, 0x06, 0x60, 0x00, 0x00, 0x08, 0x10, 0x01, 0x30, 0xc6, 0xff, 0x0f, 0x00, 0x08, 0x10, 0x01, 0x30, 0xc6, 0xe7, 0x07, 0x00, 0x08, 0x90, 0x00, 0x38, 0x06, 0x64, 0x00, 0x00, 0x08, 0x90, 0x00, 0x18, 0x06, 0xc6, 0x00, 0x00, 0x08, 0x90, 0x00, 0xc0, 0x06, 0xc7, 0x00, 0x00, 0x10, 0x90, 0x00, 0x80, 0x07, 0xc3, 0x00, 0x00, 0x10, 0x90, 0x00, 0x80, 0x03, 0xd0, 0x00, 0x00, 0x10, 0x88, 0x00, 0x00, 0x01, 0xf0, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/smallsolidR_l.xbm0000644000175000017500000000630612274270516016443 00000000000000#define smallsolidR_l_width 64 #define smallsolidR_l_height 64 static unsigned char smallsolidR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0x07, 0x00, 0x00, 0xf0, 0xff, 0xff, 0xff, 0xff, 0x07, 0x00, 0x00, 0xf0, 0xff, 0xff, 0xff, 0xff, 0x07, 0x00, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0x07, 0x00, 0x00, 0xc0, 0xff, 0xff, 0xff, 0xff, 0x07, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/knightR.xbm0000644000175000017500000000135612274270516015251 00000000000000#define knightR_width 32 #define knightR_height 32 static unsigned char knightR_bits[] = { 0xfc,0xff,0xff,0x1f,0x04,0x00,0x00,0x30,0x04,0x00,0x00,0x30,0x04,0x4c,0x15, 0x30,0x04,0x06,0x00,0x30,0x08,0xfe,0x0f,0x18,0x08,0xc0,0x0c,0x18,0x08,0xf8, 0x0f,0x18,0x08,0xc0,0x0c,0x18,0x10,0xf8,0x0f,0x0c,0x10,0xc0,0x0c,0x0c,0x10, 0xfc,0x0f,0x0c,0x10,0x00,0x00,0x0c,0x20,0xfe,0x0d,0x06,0x20,0x60,0x0c,0x06, 0x20,0xf8,0x0d,0x06,0x20,0x60,0x2c,0x06,0x40,0xfc,0x1d,0x03,0x40,0x60,0x0c, 0x03,0x40,0xf8,0x3d,0x03,0x40,0x60,0x0c,0x03,0x80,0x60,0x8c,0x01,0x80,0x00, 0x80,0x01,0x80,0x00,0x80,0x01,0x00,0x03,0xe0,0x00,0x00,0x0c,0x78,0x00,0x00, 0x30,0x1e,0x00,0x00,0xc0,0x07,0x00,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/lanceR_m.xbm0000644000175000017500000000350012274270516015354 00000000000000#define lanceR_m_width 49 #define lanceR_m_height 49 static unsigned char lanceR_m_bits[] = { 0xf8,0xff,0xff,0xff,0xff,0x0f,0xfe,0xf8,0xff,0xff,0xff,0xff,0x0f,0xfe,0xf8, 0xff,0xff,0xff,0xff,0x1f,0xfe,0xf8,0xff,0xff,0xff,0xff,0x1f,0xfe,0x38,0x00, 0x00,0x00,0x00,0x10,0xfe,0x38,0x00,0xc0,0x03,0x00,0x10,0xfe,0x38,0x00,0xc0, 0x03,0x00,0x10,0xfe,0x38,0x80,0xff,0xff,0x01,0x10,0xfe,0x30,0x00,0xc0,0x03, 0x00,0x10,0xfe,0x30,0x00,0xc0,0x03,0x00,0x10,0xfe,0x70,0x00,0xff,0xff,0x00, 0x0c,0xfe,0x70,0x00,0xc7,0xe3,0x00,0x0c,0xfe,0x70,0x00,0xc7,0xe3,0x00,0x0c, 0xfe,0x70,0x00,0xff,0xff,0x00,0x0c,0xfe,0x40,0x00,0xc7,0xe3,0x00,0x0c,0xfe, 0x40,0x00,0xc7,0xe3,0x00,0x0c,0xfe,0xc0,0x01,0xff,0xff,0x00,0x02,0xfe,0xc0, 0x01,0xc0,0x03,0x00,0x02,0xfe,0xc0,0x01,0xc0,0x03,0x00,0x02,0xfe,0xc0,0x01, 0xff,0xff,0x00,0x02,0xfe,0x80,0x01,0xc0,0x03,0x00,0x02,0xfe,0x80,0x01,0xc0, 0x03,0x00,0x02,0xfe,0x80,0x03,0x00,0x00,0x80,0x01,0xfe,0x80,0x03,0xfc,0x3f, 0x80,0x01,0xfe,0x80,0x03,0xfc,0x3f,0x80,0x01,0xfe,0x80,0x03,0x1c,0x38,0x80, 0x01,0xfe,0x80,0x03,0x1c,0x38,0x80,0x01,0xfe,0x00,0xe2,0xfc,0x3f,0x87,0x01, 0xfe,0x00,0x8e,0x1f,0xf8,0x41,0x00,0xfe,0x00,0x8e,0x1f,0xf8,0x41,0x00,0xfe, 0x00,0x0e,0xff,0xff,0x40,0x00,0xfe,0x00,0x0e,0xdc,0x3b,0x40,0x00,0xfe,0x00, 0x0e,0xdc,0x3b,0x40,0x00,0xfe,0x00,0x8c,0xff,0xff,0x47,0x00,0xfe,0x00,0x1c, 0xc0,0x03,0x30,0x00,0xfe,0x00,0x1c,0xc0,0x03,0x30,0x00,0xfe,0x00,0x1c,0xf8, 0x3f,0x30,0x00,0xfe,0x00,0x10,0xf8,0x00,0x30,0x00,0xfe,0x00,0x10,0xf8,0x00, 0x30,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01, 0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0x00,0x38,0x38,0x00,0x00, 0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe, 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe}; xshogi-1.4.2/eastern_bitmaps/lanceR.xbm0000644000175000017500000000135312274270516015044 00000000000000#define lanceR_width 32 #define lanceR_height 32 static unsigned char lanceR_bits[] = { 0xfc,0xff,0xff,0x1f,0x04,0x00,0x00,0x30,0x04,0xc0,0x00,0x30,0x04,0xfe,0x1f, 0x30,0x04,0xc0,0x00,0x30,0x08,0xfc,0x0f,0x18,0x08,0xcc,0x0c,0x18,0x08,0xfc, 0x0f,0x18,0x08,0xcc,0x0c,0x18,0x10,0xfc,0x0f,0x0c,0x10,0xc0,0x00,0x0c,0x10, 0xfc,0x0f,0x0c,0x10,0xc0,0x00,0x0c,0x20,0x00,0x00,0x06,0x20,0xf8,0x07,0x06, 0x20,0x18,0x06,0x06,0x20,0xfb,0x37,0x06,0x40,0x1e,0x1e,0x03,0x40,0xfc,0x0f, 0x03,0x40,0xd8,0x06,0x03,0x40,0xfe,0x3f,0x03,0x80,0xc0,0x80,0x01,0x80,0xf0, 0x87,0x01,0x80,0x70,0x80,0x01,0x00,0x03,0xe0,0x00,0x00,0x0c,0x78,0x00,0x00, 0x30,0x1e,0x00,0x00,0xc0,0x07,0x00,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/none.xbm0000644000175000017500000000134512274270516014600 00000000000000#define none_width 32 #define none_height 32 static unsigned char none_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/bishop_m.xbm0000644000175000017500000000350012274270516015434 00000000000000#define bishop_m_width 49 #define bishop_m_height 49 static unsigned char bishop_m_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00, 0x38,0x38,0x00,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0x00,0x07, 0xc0,0x01,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e,0x00,0xfe,0x00,0x1c,0x00,0x00, 0x70,0x00,0xfe,0x00,0x1c,0x00,0x00,0x70,0x00,0xfe,0x00,0x03,0xf0,0x0f,0x80, 0x00,0xfe,0x00,0x03,0x0e,0x0e,0x80,0x03,0xfe,0x00,0x03,0x0e,0x0e,0x80,0x03, 0xfe,0x00,0x03,0x80,0x07,0x80,0x03,0xfe,0x00,0x03,0xff,0x7f,0x80,0x03,0xfe, 0x00,0x03,0xff,0x7f,0x80,0x03,0xfe,0x80,0x00,0xc7,0x71,0x00,0x03,0xfe,0x80, 0x00,0xff,0x7f,0x00,0x07,0xfe,0x80,0x00,0xff,0x7f,0x00,0x07,0xfe,0x80,0x00, 0xc7,0x71,0x00,0x07,0xfe,0x80,0x00,0xff,0x7f,0x00,0x07,0xfe,0x80,0x00,0xff, 0x7f,0x00,0x07,0xfe,0x60,0x00,0x07,0x70,0x00,0x04,0xfe,0x60,0xc0,0x01,0x78, 0x00,0x1c,0xfe,0x60,0xc0,0x01,0x78,0x00,0x1c,0xfe,0x60,0x00,0x00,0x00,0x00, 0x1c,0xfe,0x60,0x00,0x00,0x00,0x00,0x1c,0xfe,0x60,0x00,0x00,0x00,0x00,0x1c, 0xfe,0x10,0x00,0x81,0xff,0x01,0x18,0xfe,0x10,0x00,0x81,0xff,0x01,0x18,0xfe, 0x10,0xc0,0x08,0x00,0x00,0x38,0xfe,0x10,0x20,0x06,0x00,0x00,0x38,0xfe,0x10, 0x20,0x06,0x00,0x00,0x38,0xfe,0x10,0x00,0xc7,0xff,0x03,0x38,0xfe,0x0c,0xc0, 0x07,0x70,0x00,0x20,0xfe,0x0c,0xc0,0x07,0x70,0x00,0x20,0xfe,0x0c,0x20,0x07, 0x70,0x00,0xe0,0xfe,0x0c,0x00,0x07,0x70,0x00,0xe0,0xfe,0x0c,0x00,0x07,0x70, 0x00,0xe0,0xfe,0x0c,0x00,0x07,0x70,0x00,0xe0,0xfe,0x03,0x00,0x07,0x38,0x00, 0xc0,0xfe,0x03,0x00,0x07,0x38,0x00,0xc0,0xfe,0x03,0x00,0x00,0x00,0x00,0xc0, 0xff,0x03,0x00,0x00,0x00,0x00,0xc0,0xff,0x03,0x00,0x00,0x00,0x00,0xc0,0xff, 0x03,0x00,0x00,0x00,0x00,0xc0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xfc,0xff,0xff,0xff,0xff,0xff,0xff}; xshogi-1.4.2/eastern_bitmaps/bigsolid_l.xbm0000644000175000017500000000627512274270516015757 00000000000000#define bigsolid_l_width 64 #define bigsolid_l_height 64 static unsigned char bigsolid_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xff, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0xe0, 0xff, 0xff, 0xff, 0xff, 0x03, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/knightP_l.xbm0000644000175000017500000000525012274270516015557 00000000000000#define knightP_l_width 64 #define knightP_l_height 64 static unsigned char knightP_l_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x0e,0x00,0x00,0x00,0x00,0x00,0xf0,0x80, 0x70,0x00,0x00,0x00,0x00,0x00,0x0f,0xc0,0x81,0x03,0x00,0x00,0x00,0xf0,0x00, 0x38,0x0e,0x1c,0x00,0x00,0x00,0x08,0x00,0x07,0x70,0x60,0x00,0x00,0x00,0x0c, 0xe0,0x00,0x80,0x83,0x00,0x00,0x00,0x14,0x1c,0x00,0x00,0x1c,0x01,0x00,0x00, 0x94,0x03,0x00,0x00,0xe0,0x01,0x00,0x00,0x64,0x00,0x00,0x00,0x00,0x03,0x00, 0x00,0x22,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x02, 0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x22,0x00,0x00,0x00,0x00, 0x02,0x00,0x00,0x12,0x00,0x80,0x03,0x00,0x04,0x00,0x00,0x12,0x00,0x80,0x03, 0x00,0x04,0x00,0x00,0x11,0x00,0x80,0x03,0x00,0x04,0x00,0x00,0x11,0x00,0xc0, 0x03,0x00,0x04,0x00,0x00,0x11,0x00,0xc0,0x01,0x00,0x04,0x00,0x00,0x11,0x00, 0xc0,0x01,0x00,0x04,0x00,0x00,0x11,0x00,0xe0,0x07,0x00,0x04,0x00,0x00,0x09, 0x00,0xe0,0x06,0x00,0x08,0x00,0x80,0x08,0x00,0x70,0x0c,0x00,0x08,0x00,0x80, 0x08,0x00,0x38,0x18,0x00,0x08,0x00,0x80,0x08,0x00,0x1c,0x70,0x00,0x08,0x00, 0x80,0x08,0x00,0x06,0xe0,0x00,0x08,0x00,0x80,0x08,0x00,0x03,0xc7,0x03,0x08, 0x00,0x80,0x08,0xc0,0xc1,0x87,0x0f,0x08,0x00,0x40,0x04,0xe0,0xe0,0x01,0x3f, 0x10,0x00,0x40,0x04,0x30,0x00,0x00,0x7c,0x10,0x00,0x40,0x04,0x1e,0x00,0x1f, 0xf8,0x10,0x00,0x40,0x04,0x00,0xf0,0x1f,0x00,0x10,0x00,0x40,0x04,0x00,0x3c, 0x18,0x00,0x10,0x00,0x40,0x04,0x00,0x00,0x0e,0x00,0x10,0x00,0x20,0x02,0x00, 0xe0,0x07,0x00,0x20,0x00,0x20,0x02,0x00,0xfe,0x07,0x00,0x20,0x00,0x20,0x02, 0x00,0x87,0x03,0x00,0x20,0x00,0x20,0x02,0x80,0xc3,0x01,0x00,0x20,0x00,0x20, 0x02,0x00,0xe7,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x7e,0x00,0x00,0x20,0x00, 0x10,0x02,0x00,0x78,0x00,0x00,0x20,0x00,0x10,0x01,0x00,0x30,0x00,0x00,0x40, 0x00,0x10,0x01,0x00,0x30,0x00,0x00,0x40,0x00,0x10,0x01,0x00,0xf0,0x1f,0x00, 0x40,0x00,0x10,0x01,0x00,0xc0,0x0f,0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00, 0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00, 0x00,0x00,0x40,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00, 0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0xc0,0x00,0x80,0xff, 0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/bishopP.top.xbm0000644000175000017500000000157512274270516016053 00000000000000#define bishopP_width 32 #define bishopP_height 32 static unsigned char bishopP_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x30, 0x06, 0x00, 0x00, 0x0c, 0x18, 0x00, 0x00, 0x03, 0x60, 0x00, 0xc0, 0x00, 0x80, 0x01, 0x20, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x06, 0x20, 0x00, 0x00, 0x06, 0x20, 0x00, 0x00, 0x06, 0x10, 0x00, 0x00, 0x04, 0x10, 0x04, 0x04, 0x0c, 0x10, 0xfc, 0x0f, 0x0c, 0x10, 0xcc, 0x00, 0x0c, 0x08, 0xfc, 0x07, 0x08, 0x08, 0xcc, 0x00, 0x18, 0x08, 0xfc, 0x07, 0x18, 0x08, 0xcc, 0x10, 0x18, 0x04, 0xfc, 0x3f, 0x10, 0x04, 0x08, 0x30, 0x30, 0x04, 0x02, 0x32, 0x30, 0x04, 0x4a, 0x36, 0x30, 0x02, 0x93, 0x34, 0x20, 0x02, 0xb3, 0x31, 0x60, 0x02, 0xb3, 0x3d, 0x60, 0x02, 0x00, 0x18, 0x60, 0x01, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff}; xshogi-1.4.2/eastern_bitmaps/pawnP_m.xbm0000644000175000017500000000347512274270516015250 00000000000000#define pawnP_m_width 49 #define pawnP_m_height 49 static unsigned char pawnP_m_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00, 0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0xc0, 0x07,0x00,0x00,0xfe,0x00,0x00,0x38,0x38,0x00,0x00,0xfe,0x00,0x00,0x07,0xc0, 0x01,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e, 0x00,0xfe,0x00,0x18,0x00,0x00,0x10,0x00,0xfe,0x00,0x18,0x00,0x00,0x10,0x00, 0xfe,0x00,0x18,0x00,0x00,0x70,0x00,0xfe,0x00,0x18,0x00,0x00,0x70,0x00,0xfe, 0x00,0x18,0x00,0x00,0x70,0x00,0xfe,0x00,0x04,0x00,0x00,0x60,0x00,0xfe,0x00, 0x04,0x00,0x00,0xe0,0x00,0xfe,0x00,0x04,0x00,0x00,0xe0,0x00,0xfe,0x00,0x04, 0x00,0x00,0xe0,0x00,0xfe,0x00,0x04,0xc0,0x01,0xe0,0x00,0xfe,0x00,0x04,0xc0, 0x01,0xe0,0x00,0xfe,0x00,0x03,0xc0,0x01,0x80,0x00,0xfe,0x00,0x03,0xc0,0x01, 0x80,0x03,0xfe,0x00,0x03,0xc0,0x01,0x80,0x03,0xfe,0x00,0x03,0xc0,0x01,0x80, 0x03,0xfe,0x00,0x03,0xc0,0x01,0x80,0x03,0xfe,0x00,0x03,0xc0,0x39,0x80,0x03, 0xfe,0x80,0x00,0xc0,0x07,0x00,0x03,0xfe,0x80,0x00,0xc0,0x07,0x00,0x03,0xfe, 0x80,0x00,0x70,0x00,0x00,0x07,0xfe,0x80,0x00,0x38,0x00,0x00,0x07,0xfe,0x80, 0x00,0x38,0x00,0x00,0x07,0xfe,0x80,0x00,0x38,0x00,0x00,0x07,0xfe,0x60,0x00, 0xf8,0x7f,0x00,0x04,0xfe,0x60,0x00,0xf8,0x7f,0x00,0x04,0xfe,0x60,0x00,0xf0, 0x7f,0x00,0x1c,0xfe,0x60,0x00,0x00,0x00,0x00,0x1c,0xfe,0x60,0x00,0x00,0x00, 0x00,0x1c,0xfe,0x60,0x00,0x00,0x00,0x00,0x1c,0xfe,0x10,0x00,0x00,0x00,0x00, 0x18,0xfe,0x10,0x00,0x00,0x00,0x00,0x18,0xfe,0x10,0x00,0x00,0x00,0x00,0x38, 0xfe,0x10,0x00,0x00,0x00,0x00,0x38,0xfe,0x10,0x00,0x00,0x00,0x00,0x38,0xfe, 0x10,0x00,0x00,0x00,0x00,0x38,0xfe,0xf0,0xff,0xff,0xff,0xff,0x3f,0xfe,0xf0, 0xff,0xff,0xff,0xff,0x3f,0xfe,0xe0,0xff,0xff,0xff,0xff,0x3f,0xfe}; xshogi-1.4.2/eastern_bitmaps/pawnR_m.xbm0000644000175000017500000000347512274270516015252 00000000000000#define pawnR_m_width 49 #define pawnR_m_height 49 static unsigned char pawnR_m_bits[] = { 0xf8,0xff,0xff,0xff,0xff,0x0f,0xfe,0xf8,0xff,0xff,0xff,0xff,0x0f,0xfe,0xf8, 0xff,0xff,0xff,0xff,0x1f,0xfe,0xf8,0xff,0xff,0xff,0xff,0x1f,0xfe,0x38,0x00, 0x00,0x00,0x00,0x10,0xfe,0x38,0x00,0x00,0x00,0x00,0x10,0xfe,0x38,0x00,0x00, 0x00,0x00,0x10,0xfe,0x38,0x00,0x04,0xc0,0x00,0x10,0xfe,0x30,0x00,0x18,0x20, 0x00,0x10,0xfe,0x30,0x00,0x18,0x20,0x00,0x10,0xfe,0x70,0x00,0xff,0xff,0x07, 0x0c,0xfe,0x70,0x00,0xe0,0xe0,0x00,0x0c,0xfe,0x70,0x00,0xe0,0xe0,0x00,0x0c, 0xfe,0x70,0x00,0xe0,0xe0,0x00,0x0c,0xfe,0x40,0x00,0xf8,0xff,0x00,0x0c,0xfe, 0x40,0x00,0xf8,0xff,0x00,0x0c,0xfe,0xc0,0x01,0x00,0xe0,0x00,0x02,0xfe,0xc0, 0x01,0xf8,0x1f,0x00,0x02,0xfe,0xc0,0x01,0xf8,0x1f,0x00,0x02,0xfe,0xc0,0x01, 0x00,0x00,0x00,0x02,0xfe,0x80,0x01,0x00,0xfc,0x00,0x02,0xfe,0x80,0x01,0x00, 0xfc,0x00,0x02,0xfe,0x80,0x03,0xc0,0x07,0x80,0x01,0xfe,0x80,0x03,0xe0,0x00, 0x80,0x01,0xfe,0x80,0x03,0xe0,0x00,0x80,0x01,0xfe,0x80,0x03,0x04,0x04,0x81, 0x01,0xfe,0x80,0x03,0x04,0x04,0x81,0x01,0xfe,0x00,0x02,0x18,0xc7,0x80,0x01, 0xfe,0x00,0x0e,0x20,0x27,0x40,0x00,0xfe,0x00,0x0e,0x20,0x27,0x40,0x00,0xfe, 0x00,0x0e,0xfc,0xff,0x41,0x00,0xfe,0x00,0x0e,0x00,0xe7,0x40,0x00,0xfe,0x00, 0x0e,0x00,0xe7,0x40,0x00,0xfe,0x00,0x0c,0xe0,0xe7,0x40,0x00,0xfe,0x00,0x1c, 0x00,0x07,0x30,0x00,0xfe,0x00,0x1c,0x00,0x07,0x30,0x00,0xfe,0x00,0x1c,0x00, 0x00,0x30,0x00,0xfe,0x00,0x10,0x00,0x00,0x30,0x00,0xfe,0x00,0x10,0x00,0x00, 0x30,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01, 0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0x00,0x38,0x38,0x00,0x00, 0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe, 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe}; xshogi-1.4.2/eastern_bitmaps/bishopP_l.top.xbm0000644000175000017500000000634312274270516016364 00000000000000#define bishopP_l_width 64 #define bishopP_l_height 64 static unsigned char bishopP_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x00, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x00, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0xc0, 0x03, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0xc0, 0x03, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x03, 0xe0, 0x00, 0x60, 0x00, 0x30, 0x00, 0x00, 0x03, 0xc0, 0xff, 0xff, 0x00, 0xf0, 0x00, 0x00, 0x03, 0xc0, 0xff, 0xff, 0x01, 0xf0, 0x00, 0x00, 0x03, 0xc0, 0xc3, 0x01, 0x00, 0xf0, 0x00, 0x00, 0x03, 0xc0, 0xc3, 0x01, 0x00, 0xf0, 0x00, 0x00, 0x03, 0xc0, 0xc3, 0x11, 0x00, 0xf0, 0x00, 0x00, 0x03, 0xc0, 0xff, 0x3f, 0x00, 0xf0, 0x00, 0xc0, 0x00, 0xc0, 0xff, 0x7f, 0x00, 0xc0, 0x00, 0xc0, 0x00, 0xc0, 0xc3, 0x01, 0x00, 0xc0, 0x00, 0xc0, 0x00, 0xc0, 0xc3, 0x01, 0x00, 0xc0, 0x03, 0xc0, 0x00, 0xc0, 0xc3, 0x11, 0x00, 0xc0, 0x03, 0xc0, 0x00, 0xc0, 0xff, 0x3f, 0x00, 0xc0, 0x03, 0xc0, 0x00, 0xc0, 0xff, 0x7f, 0x00, 0xc0, 0x03, 0xc0, 0x00, 0xc0, 0xc3, 0x01, 0x00, 0xc0, 0x03, 0xc0, 0x00, 0xc0, 0xc3, 0x01, 0x00, 0xc0, 0x03, 0x30, 0x00, 0xc0, 0xc3, 0x01, 0x07, 0x00, 0x03, 0x30, 0x00, 0xc0, 0xff, 0xff, 0x0f, 0x00, 0x03, 0x30, 0x00, 0xc0, 0xff, 0xff, 0x1f, 0x00, 0x0f, 0x30, 0x00, 0x80, 0x03, 0x00, 0x1f, 0x00, 0x0f, 0x30, 0x00, 0x00, 0x00, 0x00, 0x1f, 0x00, 0x0f, 0x30, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x0f, 0x30, 0x00, 0x40, 0x00, 0x00, 0x0f, 0x00, 0x0f, 0x30, 0x00, 0x60, 0x42, 0x18, 0x0f, 0x00, 0x0f, 0x0c, 0x00, 0x70, 0xc6, 0x30, 0x0f, 0x00, 0x0c, 0x0c, 0x00, 0x38, 0x8c, 0x71, 0x0f, 0x00, 0x0c, 0x0c, 0x00, 0x38, 0x9c, 0x73, 0x0f, 0x00, 0x3c, 0x0c, 0x00, 0x3c, 0x9c, 0x63, 0x0f, 0x00, 0x3c, 0x0c, 0x00, 0x3c, 0x9c, 0x03, 0x0f, 0x00, 0x3c, 0x0c, 0x00, 0x3c, 0x8c, 0xd1, 0x0f, 0x00, 0x3c, 0x0c, 0x00, 0x1c, 0x00, 0xe0, 0x07, 0x00, 0x3c, 0x0c, 0x00, 0x00, 0x00, 0xc0, 0x07, 0x00, 0x3c, 0x03, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x30, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; xshogi-1.4.2/eastern_bitmaps/rookP.xbm0000644000175000017500000000135012274270516014727 00000000000000#define rookP_width 32 #define rookP_height 32 static unsigned char rookP_bits[] = { 0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x30,0x06,0x00,0x00,0x0c,0x18, 0x00,0x00,0x03,0x60,0x00,0xc0,0x00,0x80,0x01,0x20,0x00,0x00,0x02,0x20,0x08, 0x03,0x06,0x20,0x7e,0x1f,0x06,0x20,0x34,0x03,0x06,0x10,0x7e,0x3f,0x04,0x10, 0x00,0x30,0x0c,0x10,0x7e,0x3f,0x0c,0x10,0x66,0x03,0x0c,0x08,0x7e,0x3f,0x08, 0x08,0x66,0x03,0x18,0x08,0x7e,0x3f,0x18,0x08,0x62,0x3e,0x18,0x04,0x00,0x00, 0x10,0x04,0xfc,0x0f,0x30,0x04,0xc0,0x00,0x30,0x04,0xc0,0x00,0x30,0x02,0xc0, 0x00,0x20,0x02,0xf8,0x07,0x60,0x02,0xc0,0x00,0x60,0x02,0xc0,0x00,0x60,0x01, 0xc0,0x00,0x40,0x01,0xfe,0x1f,0xc0,0x01,0x00,0x00,0xc0,0x01,0x00,0x00,0xc0, 0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff}; xshogi-1.4.2/eastern_bitmaps/gold_l.xbm0000644000175000017500000000626112274270516015103 00000000000000#define gold_l_width 64 #define gold_l_height 64 static unsigned char gold_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x81, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x01, 0x3c, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xc0, 0x01, 0xc0, 0x03, 0x00, 0x00, 0x1c, 0x00, 0x3c, 0x1e, 0x00, 0x1c, 0x00, 0x00, 0x04, 0xc0, 0x03, 0xe0, 0x01, 0x10, 0x00, 0x00, 0x06, 0x38, 0x00, 0x00, 0x0e, 0x60, 0x00, 0x00, 0x8a, 0x07, 0x00, 0x00, 0xf0, 0x40, 0x00, 0x00, 0x7a, 0x00, 0xc0, 0x00, 0x00, 0x4f, 0x00, 0x00, 0x12, 0x00, 0xe0, 0x03, 0x00, 0x70, 0x00, 0x00, 0x12, 0x00, 0x38, 0x03, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0x1c, 0x06, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0x0e, 0x0e, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0xe7, 0x19, 0x00, 0x80, 0x00, 0x00, 0x09, 0xc0, 0xf3, 0x3b, 0x00, 0x80, 0x00, 0x00, 0x09, 0xe0, 0xc1, 0xe0, 0x00, 0x80, 0x00, 0x00, 0x09, 0x70, 0xf8, 0xdf, 0x01, 0x80, 0x00, 0x00, 0x09, 0x00, 0xf8, 0x07, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0xc6, 0x30, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0xce, 0x38, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xdc, 0x1c, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xff, 0x7f, 0x00, 0x00, 0x01, 0x80, 0x04, 0x80, 0xff, 0x3f, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x40, 0x04, 0x00, 0x04, 0x10, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x06, 0x18, 0x00, 0x00, 0x02, 0x40, 0x02, 0x80, 0x06, 0x1e, 0x00, 0x00, 0x02, 0x40, 0x02, 0x80, 0xc6, 0x07, 0x00, 0x00, 0x02, 0x40, 0x02, 0xc0, 0x86, 0x03, 0x00, 0x00, 0x02, 0x40, 0x02, 0xc0, 0x04, 0x3a, 0x00, 0x00, 0x04, 0x20, 0x02, 0x60, 0x07, 0x7e, 0x00, 0x00, 0x04, 0x20, 0x02, 0xf8, 0xc7, 0x66, 0x00, 0x00, 0x04, 0x20, 0x01, 0x30, 0xc6, 0x60, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0x84, 0x38, 0x00, 0x00, 0x04, 0x20, 0x01, 0xf0, 0x05, 0x3e, 0x00, 0x00, 0x04, 0x20, 0x01, 0xf8, 0x04, 0x06, 0x00, 0x00, 0x08, 0x20, 0x01, 0x20, 0x06, 0x60, 0x00, 0x00, 0x08, 0x10, 0x01, 0x30, 0xc6, 0xff, 0x0f, 0x00, 0x08, 0x10, 0x01, 0x30, 0xc6, 0xe7, 0x07, 0x00, 0x08, 0x90, 0x00, 0x38, 0x06, 0x64, 0x00, 0x00, 0x08, 0x90, 0x00, 0x18, 0x06, 0xc6, 0x00, 0x00, 0x08, 0x90, 0x00, 0xc0, 0x06, 0xc7, 0x00, 0x00, 0x10, 0x90, 0x00, 0x80, 0x07, 0xc3, 0x00, 0x00, 0x10, 0x90, 0x00, 0x80, 0x03, 0xd0, 0x00, 0x00, 0x10, 0x88, 0x00, 0x00, 0x01, 0xf0, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/pawnR_l.xbm0000644000175000017500000000626412274270516015250 00000000000000#define pawnR_l_width 64 #define pawnR_l_height 64 static unsigned char pawnR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x06, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x0e, 0x80, 0x03, 0x80, 0x00, 0x20, 0x04, 0x00, 0x1e, 0xc0, 0x00, 0x40, 0x00, 0x20, 0x04, 0x00, 0x38, 0xf0, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x30, 0x70, 0x04, 0x40, 0x00, 0x40, 0x04, 0x00, 0x20, 0x00, 0x0f, 0x40, 0x00, 0x40, 0x04, 0x00, 0xc0, 0xff, 0x07, 0x40, 0x00, 0x40, 0x04, 0xc0, 0xff, 0xff, 0x01, 0x40, 0x00, 0x40, 0x04, 0x00, 0x7f, 0x30, 0x00, 0x40, 0x00, 0x40, 0x08, 0x00, 0x60, 0x60, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0xe0, 0xff, 0x01, 0x20, 0x00, 0x80, 0x08, 0x00, 0xf0, 0xef, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0xf8, 0x70, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x30, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x18, 0x00, 0x20, 0x00, 0x80, 0x10, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x80, 0x10, 0x00, 0x60, 0x00, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x38, 0xe0, 0x01, 0x10, 0x00, 0x00, 0x11, 0x00, 0x1e, 0xfe, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0xcc, 0x1f, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0xf0, 0x03, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x38, 0x03, 0x00, 0x10, 0x00, 0x00, 0x21, 0x00, 0x0e, 0x03, 0x01, 0x08, 0x00, 0x00, 0x22, 0x00, 0x07, 0xf3, 0x01, 0x08, 0x00, 0x00, 0x22, 0x00, 0x07, 0xff, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0xfe, 0x6f, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0xfc, 0x23, 0x00, 0x08, 0x00, 0x00, 0x24, 0x00, 0x00, 0xc1, 0x07, 0x08, 0x00, 0x00, 0x28, 0x00, 0x00, 0xff, 0x03, 0x08, 0x00, 0x00, 0x48, 0x00, 0xfe, 0x9f, 0x01, 0x04, 0x00, 0x00, 0x50, 0x00, 0xff, 0xc3, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0x00, 0x61, 0x00, 0x04, 0x00, 0x00, 0x60, 0x00, 0x78, 0x23, 0x00, 0x04, 0x00, 0x00, 0xc0, 0x00, 0x3c, 0x03, 0x00, 0x06, 0x00, 0x00, 0x00, 0x07, 0x0c, 0x01, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/goldR_m.xbm0000644000175000017500000000347512274270516015232 00000000000000#define goldR_m_width 49 #define goldR_m_height 49 static unsigned char goldR_m_bits[] = { 0xff,0xff,0xff,0xff,0xff,0x7f,0xfe,0xff,0xff,0xff,0xff,0xff,0x7f,0xfe,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x00, 0x00,0x00,0x00,0x80,0xff,0x07,0x00,0x00,0x00,0x00,0x80,0xff,0x07,0x00,0x00, 0x00,0x00,0x80,0xff,0x07,0x00,0x1c,0xe0,0x08,0x80,0xff,0x06,0x00,0xc7,0xe0, 0x08,0x80,0xff,0x06,0x00,0xc7,0xe0,0x08,0x80,0xff,0x0e,0x00,0x07,0xe3,0x06, 0x60,0xfe,0x0e,0x00,0x07,0xe0,0x06,0x60,0xfe,0x0e,0x00,0x07,0xe0,0x06,0x60, 0xfe,0x0e,0xe0,0xff,0xe7,0x0f,0x60,0xfe,0x08,0x00,0x07,0xe0,0x00,0x60,0xfe, 0x08,0x00,0x07,0xe0,0x00,0x60,0xfe,0x38,0x00,0x00,0xe3,0x0f,0x10,0xfe,0x38, 0x00,0x1b,0xe7,0x06,0x10,0xfe,0x38,0x00,0x1b,0xe7,0x06,0x10,0xfe,0x38,0x80, 0x3b,0xe4,0x06,0x10,0xfe,0x30,0x80,0xe0,0xe7,0x06,0x10,0xfe,0x30,0x80,0xe0, 0xe7,0x06,0x10,0xfe,0x70,0x80,0x1f,0x00,0x00,0x0c,0xfe,0x70,0x00,0x00,0x00, 0x00,0x0c,0xfe,0x70,0x00,0x00,0x00,0x00,0x0c,0xfe,0x70,0x00,0xff,0xff,0x07, 0x0c,0xfe,0x70,0x00,0xff,0xff,0x07,0x0c,0xfe,0x40,0x00,0x20,0x27,0x00,0x0c, 0xfe,0xc0,0x01,0x18,0xc7,0x00,0x02,0xfe,0xc0,0x01,0x18,0xc7,0x00,0x02,0xfe, 0xc0,0x01,0x00,0x07,0x00,0x02,0xfe,0xc0,0x01,0xfc,0xff,0x01,0x02,0xfe,0xc0, 0x01,0xfc,0xff,0x01,0x02,0xfe,0x80,0x01,0x00,0x07,0x00,0x02,0xfe,0x80,0x83, 0xe3,0x3f,0x8e,0x01,0xfe,0x80,0x83,0xe3,0x3f,0x8e,0x01,0xfe,0x80,0x03,0x1c, 0xc0,0x81,0x01,0xfe,0x80,0x03,0xe0,0x38,0x80,0x01,0xfe,0x80,0x03,0xe0,0x38, 0x80,0x01,0xfe,0x00,0x02,0x00,0x07,0x80,0x01,0xfe,0x00,0x1c,0x00,0x00,0x70, 0x00,0xfe,0x00,0x1c,0x00,0x00,0x70,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e,0x00, 0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe, 0x00,0x00,0x38,0x38,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00, 0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe}; xshogi-1.4.2/eastern_bitmaps/bishop_l.xbm0000644000175000017500000000626712274270516015450 00000000000000#define bishop_l_width 64 #define bishop_l_height 64 static unsigned char bishop_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x81, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x01, 0x3c, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xc0, 0x01, 0xc0, 0x03, 0x00, 0x00, 0x1c, 0x00, 0x3c, 0x1e, 0x00, 0x1c, 0x00, 0x00, 0x04, 0xc0, 0x03, 0xe0, 0x01, 0x10, 0x00, 0x00, 0x06, 0x38, 0x00, 0x00, 0x0e, 0x60, 0x00, 0x00, 0x8a, 0x07, 0x00, 0x00, 0xf0, 0x40, 0x00, 0x00, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x4f, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x12, 0x00, 0x10, 0x00, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0xd8, 0x03, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0xfc, 0x03, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x8e, 0x03, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0xc6, 0x01, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0xe0, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x20, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0xff, 0x1f, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0xff, 0x31, 0x00, 0x00, 0x01, 0x80, 0x04, 0x80, 0x63, 0x30, 0x00, 0x00, 0x01, 0x80, 0x04, 0x80, 0xe1, 0x3f, 0x00, 0x00, 0x01, 0x80, 0x04, 0x80, 0xff, 0x3b, 0x00, 0x00, 0x01, 0x80, 0x04, 0x80, 0x6f, 0x30, 0x00, 0x00, 0x01, 0x80, 0x04, 0x80, 0xe1, 0x3f, 0x00, 0x00, 0x02, 0x40, 0x04, 0x80, 0xfd, 0x3f, 0x00, 0x00, 0x02, 0x40, 0x02, 0x80, 0x1f, 0x30, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x00, 0x20, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x00, 0x30, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x20, 0x02, 0x80, 0x03, 0x00, 0x00, 0x00, 0x04, 0x20, 0x02, 0x80, 0x03, 0x00, 0x00, 0x00, 0x04, 0x20, 0x01, 0xc0, 0x05, 0xfe, 0x01, 0x00, 0x04, 0x20, 0x01, 0xe0, 0x1e, 0xff, 0x01, 0x00, 0x04, 0x20, 0x01, 0x30, 0x1e, 0x00, 0x00, 0x00, 0x04, 0x20, 0x01, 0x18, 0x07, 0xf8, 0x0f, 0x00, 0x08, 0x20, 0x01, 0x80, 0x83, 0xff, 0x07, 0x00, 0x08, 0x10, 0x01, 0xc0, 0x81, 0x0f, 0x02, 0x00, 0x08, 0x10, 0x01, 0xe0, 0x00, 0x00, 0x02, 0x00, 0x08, 0x90, 0x00, 0xf0, 0x01, 0x00, 0x06, 0x00, 0x08, 0x90, 0x00, 0x98, 0x01, 0x0c, 0x06, 0x00, 0x08, 0x90, 0x00, 0x80, 0x01, 0x18, 0x06, 0x00, 0x10, 0x90, 0x00, 0x80, 0x01, 0x70, 0x06, 0x00, 0x10, 0x90, 0x00, 0x80, 0x01, 0xe0, 0x06, 0x00, 0x10, 0x88, 0x00, 0x80, 0x01, 0xc0, 0x07, 0x00, 0x10, 0x48, 0x00, 0x00, 0x01, 0x00, 0x03, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/knightPR_l.xbm0000644000175000017500000000627512274270516015711 00000000000000#define knightPR_l_width 64 #define knightPR_l_height 64 static unsigned char knightPR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0xf0, 0x03, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0xf8, 0x0f, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x0c, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x0c, 0x00, 0x80, 0x00, 0x20, 0x04, 0x00, 0x00, 0x1e, 0x00, 0x40, 0x00, 0x20, 0x04, 0x00, 0x00, 0x7e, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0xe7, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x80, 0xc3, 0x01, 0x40, 0x00, 0x40, 0x04, 0x00, 0xc0, 0xe1, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0xe0, 0x7f, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0xe0, 0x07, 0x00, 0x40, 0x00, 0x40, 0x08, 0x00, 0x70, 0x00, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x18, 0x3c, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0xf8, 0x0f, 0x00, 0x20, 0x00, 0x80, 0x08, 0x1f, 0xf8, 0x00, 0x78, 0x20, 0x00, 0x80, 0x08, 0x3e, 0x00, 0x00, 0x0c, 0x20, 0x00, 0x80, 0x08, 0xfc, 0x80, 0x07, 0x07, 0x20, 0x00, 0x80, 0x10, 0xf0, 0xe1, 0x83, 0x03, 0x10, 0x00, 0x80, 0x10, 0xc0, 0xe3, 0xc0, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x07, 0x60, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x0e, 0x38, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x18, 0x1c, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x30, 0x0e, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x60, 0x07, 0x00, 0x10, 0x00, 0x00, 0x21, 0x00, 0xe0, 0x07, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x80, 0x03, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x80, 0x03, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0xc0, 0x03, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0xc0, 0x01, 0x00, 0x08, 0x00, 0x00, 0x24, 0x00, 0xc0, 0x01, 0x00, 0x08, 0x00, 0x00, 0x28, 0x00, 0xc0, 0x01, 0x00, 0x08, 0x00, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/bishopP_m.top.xbm0000644000175000017500000000430312274270516016357 00000000000000#define bishopP_m_width 49 #define bishopP_m_height 49 static unsigned char bishopP_m_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0xc0, 0x07, 0x00, 0x00, 0xfe, 0x00, 0x00, 0xc0, 0x07, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x38, 0x38, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x07, 0xc0, 0x01, 0x00, 0xfe, 0x00, 0x00, 0x07, 0xc0, 0x01, 0x00, 0xfe, 0x00, 0xe0, 0x00, 0x00, 0x0e, 0x00, 0xfe, 0x00, 0x1c, 0x00, 0x00, 0x70, 0x00, 0xfe, 0x00, 0x1c, 0x00, 0x00, 0x70, 0x00, 0xfe, 0x00, 0x03, 0x00, 0x00, 0x80, 0x00, 0xfe, 0x00, 0x03, 0x00, 0x00, 0x80, 0x03, 0xfe, 0x00, 0x03, 0x00, 0x00, 0x80, 0x03, 0xfe, 0x00, 0x03, 0x00, 0x00, 0x80, 0x03, 0xfe, 0x00, 0x03, 0x00, 0x00, 0x80, 0x03, 0xfe, 0x00, 0x03, 0x00, 0x00, 0x80, 0x03, 0xfe, 0x80, 0x00, 0x07, 0x30, 0x00, 0x03, 0xfe, 0x80, 0x00, 0xfe, 0x7f, 0x00, 0x07, 0xfe, 0x80, 0x00, 0xfe, 0xff, 0x00, 0x07, 0xfe, 0x80, 0x00, 0x8e, 0x03, 0x00, 0x07, 0xfe, 0x80, 0x00, 0x8e, 0x0b, 0x00, 0x07, 0xfe, 0x80, 0x00, 0xfe, 0x1f, 0x00, 0x07, 0xfe, 0x60, 0x00, 0xfe, 0x3f, 0x00, 0x04, 0xfe, 0x60, 0x00, 0x8e, 0x03, 0x00, 0x1c, 0xfe, 0x60, 0x00, 0x8e, 0x0b, 0x00, 0x1c, 0xfe, 0x60, 0x00, 0xfe, 0x1f, 0x00, 0x1c, 0xfe, 0x60, 0x00, 0xfe, 0x3f, 0x00, 0x1c, 0xfe, 0x60, 0x00, 0x8e, 0x03, 0x00, 0x1c, 0xfe, 0x10, 0x00, 0x8e, 0xc3, 0x00, 0x18, 0xfe, 0x10, 0x00, 0xfe, 0xff, 0x01, 0x18, 0xfe, 0x10, 0x00, 0xfe, 0xff, 0x03, 0x38, 0xfe, 0x10, 0x00, 0x08, 0x80, 0x07, 0x38, 0xfe, 0x10, 0x00, 0x00, 0x80, 0x07, 0x38, 0xfe, 0x10, 0x00, 0x89, 0x88, 0x03, 0x38, 0xfe, 0x0c, 0x00, 0x99, 0x91, 0x03, 0x20, 0xfe, 0x0c, 0x80, 0x11, 0xb1, 0x03, 0x20, 0xfe, 0x0c, 0xc0, 0x31, 0xb3, 0x03, 0xe0, 0xfe, 0x0c, 0xc0, 0x31, 0x83, 0x03, 0xe0, 0xfe, 0x0c, 0xc0, 0x31, 0xd3, 0x03, 0xe0, 0xfe, 0x0c, 0xc0, 0x00, 0xe0, 0x01, 0xe0, 0xfe, 0x03, 0x00, 0x00, 0xc0, 0x01, 0xc0, 0xfe, 0x03, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xfe, 0x03, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; xshogi-1.4.2/eastern_bitmaps/lance.xbm0000644000175000017500000000135012274270516014717 00000000000000#define lance_width 32 #define lance_height 32 static unsigned char lance_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0x01, 0x00,0x00,0x30,0x06,0x00,0x00,0x0c,0x18,0x00,0x00,0x03,0x60,0x00,0x80,0x00, 0x87,0x00,0x80,0xf0,0x87,0x01,0x80,0x80,0x81,0x01,0x40,0xfe,0x3f,0x01,0x40, 0xb0,0x0d,0x03,0x40,0xf8,0x1f,0x03,0x40,0x3c,0x3c,0x03,0x20,0xf6,0x6f,0x02, 0x20,0x30,0x0c,0x06,0x20,0xf0,0x0f,0x06,0x20,0x00,0x00,0x06,0x10,0x80,0x01, 0x04,0x10,0xf8,0x1f,0x0c,0x10,0x80,0x01,0x0c,0x10,0xf8,0x1f,0x0c,0x08,0x98, 0x19,0x08,0x08,0xf8,0x1f,0x18,0x08,0x98,0x19,0x18,0x08,0xf8,0x1f,0x18,0x04, 0x80,0x01,0x10,0x04,0xfc,0x3f,0x30,0x04,0x80,0x01,0x30,0x04,0x00,0x00,0x30, 0xfc,0xff,0xff,0x3f,0xf8,0xff,0xff,0x3f}; xshogi-1.4.2/eastern_bitmaps/lanceR_l.xbm0000644000175000017500000000626712274270516015370 00000000000000#define lanceR_l_width 64 #define lanceR_l_height 64 static unsigned char lanceR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x01, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x01, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x01, 0x00, 0x80, 0x00, 0x20, 0x04, 0xc0, 0xff, 0xff, 0x03, 0x40, 0x00, 0x20, 0x04, 0x80, 0xff, 0x3f, 0x07, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x04, 0x40, 0x00, 0x40, 0x04, 0x00, 0xfc, 0x7f, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x3c, 0x61, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x06, 0xe1, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0xff, 0xff, 0x00, 0x40, 0x00, 0x40, 0x08, 0x00, 0x03, 0xc1, 0x01, 0x20, 0x00, 0x80, 0x08, 0x00, 0x07, 0xc1, 0x01, 0x20, 0x00, 0x80, 0x08, 0x00, 0xff, 0x7f, 0x01, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x03, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0xf8, 0x1f, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x3f, 0x00, 0x20, 0x00, 0x80, 0x10, 0x00, 0x00, 0x01, 0x00, 0x10, 0x00, 0x80, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0xe0, 0x07, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x20, 0x0c, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0xf0, 0x08, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0xf8, 0x1f, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x18, 0x18, 0x00, 0x10, 0x00, 0x00, 0x21, 0x00, 0xf0, 0x1f, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x0c, 0x33, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x1c, 0x19, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0xb8, 0x1d, 0x00, 0x08, 0x00, 0x00, 0x24, 0x00, 0x80, 0x01, 0x00, 0x08, 0x00, 0x00, 0x28, 0x00, 0xf0, 0x1f, 0x00, 0x08, 0x00, 0x00, 0x48, 0x00, 0x30, 0x39, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0x00, 0x06, 0x00, 0x04, 0x00, 0x00, 0x60, 0x00, 0x80, 0x03, 0x00, 0x04, 0x00, 0x00, 0xc0, 0x00, 0xc0, 0x01, 0x00, 0x06, 0x00, 0x00, 0x00, 0x07, 0xc0, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/silverPR.xbm0000644000175000017500000000136112274270516015405 00000000000000#define silverPR_width 32 #define silverPR_height 32 static unsigned char silverPR_bits[] = { 0xff,0xff,0xff,0x7f,0x01,0x00,0x00,0xc0,0x01,0x00,0x00,0xc0,0x01,0x63,0x3f, 0xc0,0x01,0x76,0x0c,0xc0,0x02,0x6c,0x2d,0x60,0x02,0x6a,0x0c,0x60,0x02,0x60, 0x3f,0x60,0x02,0x7e,0x0c,0x60,0x04,0x66,0x1e,0x30,0x04,0x7e,0x20,0x30,0x04, 0x66,0x13,0x30,0x04,0x7e,0x0e,0x30,0x08,0x00,0x04,0x18,0x08,0x00,0x00,0x18, 0x08,0x44,0x27,0x18,0x08,0x2e,0x13,0x18,0x10,0x18,0x1b,0x0c,0x10,0x38,0x1b, 0x0c,0x10,0x34,0x1b,0x0c,0x10,0x60,0x1f,0x0c,0x20,0x60,0x18,0x06,0x20,0xc0, 0x18,0x06,0x20,0xfc,0x1f,0x06,0x20,0xc0,0x00,0x06,0xc0,0x08,0x80,0x03,0x00, 0x03,0xe0,0x01,0x00,0x0c,0x78,0x00,0x00,0x30,0x1e,0x00,0x00,0xc0,0x07,0x00, 0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/goldR.xbm0000644000175000017500000000135012274270516014704 00000000000000#define goldR_width 32 #define goldR_height 32 static unsigned char goldR_bits[] = { 0xff,0xff,0xff,0x7f,0x01,0x00,0x00,0xc0,0x01,0x00,0x00,0xc0,0x01,0x1c,0x4c, 0xc0,0x01,0x4c,0x2c,0xc0,0x02,0x8c,0x2c,0x60,0x02,0x0c,0x2c,0x60,0x02,0xff, 0x7d,0x60,0x02,0x00,0x0c,0x60,0x04,0x94,0x7c,0x30,0x04,0x22,0x2d,0x30,0x04, 0x00,0x2c,0x30,0x04,0xff,0x2d,0x30,0x08,0x0e,0x00,0x18,0x08,0x00,0x00,0x18, 0x08,0xfc,0x3f,0x18,0x08,0xa0,0x05,0x18,0x10,0x90,0x09,0x0c,0x10,0x80,0x01, 0x0c,0x10,0xf8,0x1f,0x0c,0x10,0x80,0x01,0x0c,0x20,0xe6,0x67,0x06,0x20,0x18, 0x18,0x06,0x20,0x60,0x06,0x06,0x20,0x80,0x01,0x06,0xc0,0x00,0x80,0x03,0x00, 0x03,0xe0,0x01,0x00,0x0c,0x78,0x00,0x00,0x30,0x1e,0x00,0x00,0xc0,0x07,0x00, 0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/silver_m.xbm0000644000175000017500000000350012274270516015454 00000000000000#define silver_m_width 49 #define silver_m_height 49 static unsigned char silver_m_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00, 0x38,0x38,0x00,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0x00,0x07, 0xc0,0x01,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e,0x00,0xfe,0x00,0x1c,0x00,0x00, 0x70,0x00,0xfe,0x00,0x1c,0x00,0x00,0x70,0x00,0xfe,0x00,0x03,0x0e,0x00,0x80, 0x00,0xfe,0x00,0x03,0x39,0xfe,0x83,0x03,0xfe,0x00,0x03,0x39,0xfe,0x83,0x03, 0xfe,0x00,0xc3,0x70,0x8e,0x83,0x03,0xfe,0x00,0x23,0x3f,0xfe,0x83,0x03,0xfe, 0x00,0x23,0x3f,0xfe,0x83,0x03,0xfe,0x80,0x00,0x0e,0x8e,0x03,0x03,0xfe,0x80, 0xc0,0x7f,0xfe,0x03,0x07,0xfe,0x80,0xc0,0x7f,0xfe,0x03,0x07,0xfe,0x80,0x00, 0x0e,0x0e,0x00,0x07,0xfe,0x80,0xc0,0x4e,0x4e,0x02,0x07,0xfe,0x80,0xc0,0x4e, 0x4e,0x02,0x07,0xfe,0x60,0x00,0x0e,0xce,0x01,0x04,0xfe,0x60,0xe0,0x7f,0xbe, 0x0f,0x1c,0xfe,0x60,0xe0,0x7f,0xbe,0x0f,0x1c,0xfe,0x60,0x00,0x00,0x00,0x00, 0x1c,0xfe,0x60,0x00,0x00,0x00,0x00,0x1c,0xfe,0x60,0x00,0x00,0xf0,0x03,0x1c, 0xfe,0x10,0xc0,0xce,0x0f,0x02,0x18,0xfe,0x10,0xc0,0xce,0x0f,0x02,0x18,0xfe, 0x10,0xc0,0x4e,0xb8,0x03,0x38,0xfe,0x10,0xc0,0xce,0xb1,0x01,0x38,0xfe,0x10, 0xc0,0xce,0xb1,0x01,0x38,0xfe,0x10,0xe0,0x8f,0x01,0x00,0x38,0xfe,0x0c,0x00, 0x0e,0xc0,0x01,0x20,0xfe,0x0c,0x00,0x0e,0xc0,0x01,0x20,0xfe,0x0c,0xe0,0xcf, 0xff,0x0f,0xe0,0xfe,0x0c,0xc0,0x0e,0xc0,0x01,0xe0,0xfe,0x0c,0xc0,0x0e,0xc0, 0x01,0xe0,0xfe,0x0c,0xc0,0x8e,0xc1,0x01,0xe0,0xfe,0x03,0x20,0x0e,0xc6,0x01, 0xc0,0xfe,0x03,0x20,0x0e,0xc6,0x01,0xc0,0xfe,0x03,0x20,0x0e,0x70,0x00,0xc0, 0xff,0x03,0x00,0x00,0x00,0x00,0xc0,0xff,0x03,0x00,0x00,0x00,0x00,0xc0,0xff, 0x03,0x00,0x00,0x00,0x00,0xc0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xfc,0xff,0xff,0xff,0xff,0xff,0xff}; xshogi-1.4.2/eastern_bitmaps/rookP_l.xbm0000644000175000017500000000626412274270516015253 00000000000000#define rookP_l_width 64 #define rookP_l_height 64 static unsigned char rookP_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x81, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x01, 0x3c, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xc0, 0x01, 0xc0, 0x03, 0x00, 0x00, 0x1c, 0x00, 0x3c, 0x1e, 0x00, 0x1c, 0x00, 0x00, 0x04, 0xc0, 0x03, 0xe0, 0x01, 0x10, 0x00, 0x00, 0x06, 0x38, 0x00, 0x00, 0x0e, 0x60, 0x00, 0x00, 0x8a, 0x07, 0x00, 0x00, 0xf0, 0x40, 0x00, 0x00, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x4f, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x11, 0x80, 0x03, 0x07, 0x00, 0x80, 0x00, 0x00, 0x11, 0x00, 0x03, 0x0f, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x03, 0x0e, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x02, 0x0e, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x3c, 0x0e, 0x00, 0x80, 0x00, 0x00, 0x09, 0xc0, 0x1f, 0x0e, 0x00, 0x80, 0x00, 0x00, 0x09, 0xf0, 0x03, 0x0e, 0x00, 0x00, 0x01, 0x80, 0x08, 0xc0, 0x0c, 0x06, 0x0e, 0x00, 0x01, 0x80, 0x08, 0xe0, 0x3c, 0x86, 0x07, 0x00, 0x01, 0x80, 0x04, 0x60, 0x3e, 0xc6, 0x03, 0x00, 0x01, 0x80, 0x04, 0x90, 0x1f, 0xf6, 0x01, 0x00, 0x01, 0x80, 0x04, 0xf8, 0x0f, 0x7e, 0x00, 0x00, 0x01, 0x80, 0x04, 0xf0, 0x03, 0x3e, 0x00, 0x00, 0x01, 0x80, 0x04, 0xc0, 0x01, 0x1f, 0x07, 0x00, 0x02, 0x40, 0x04, 0xf0, 0x88, 0x8f, 0x07, 0x00, 0x02, 0x40, 0x02, 0x70, 0xd8, 0xef, 0x01, 0x00, 0x02, 0x40, 0x02, 0x38, 0xfc, 0xec, 0x00, 0x00, 0x02, 0x40, 0x02, 0x1c, 0x3c, 0x0c, 0x10, 0x00, 0x02, 0x40, 0x02, 0x8c, 0x1f, 0x0c, 0x18, 0x00, 0x02, 0x40, 0x02, 0x8e, 0x19, 0x0c, 0x38, 0x00, 0x04, 0x20, 0x02, 0x87, 0x19, 0x0c, 0x38, 0x00, 0x04, 0x20, 0x02, 0x81, 0x1b, 0x18, 0x18, 0x00, 0x04, 0x20, 0x01, 0x00, 0x1e, 0xf0, 0x1f, 0x00, 0x04, 0x20, 0x01, 0x00, 0x0c, 0xe0, 0x0f, 0x00, 0x04, 0x20, 0x01, 0x00, 0x80, 0x03, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0xe0, 0x03, 0x00, 0x00, 0x08, 0x20, 0x01, 0x00, 0xf8, 0x03, 0x00, 0x00, 0x08, 0x10, 0x01, 0x00, 0x0e, 0x03, 0x00, 0x00, 0x08, 0x10, 0x01, 0x00, 0xf0, 0x1f, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0xf8, 0x17, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0x8c, 0x1f, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0x8c, 0x0f, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0xfc, 0x07, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0x9c, 0x03, 0x00, 0x00, 0x10, 0x88, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0xfc, 0xff, 0x07, 0x00, 0x10, 0x48, 0x00, 0xe0, 0xff, 0xff, 0x0f, 0x00, 0x10, 0x48, 0x00, 0xf8, 0xff, 0xff, 0x07, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/lanceP_l.xbm0000644000175000017500000000524512274270516015361 00000000000000#define lanceP_l_width 64 #define lanceP_l_height 64 static unsigned char lanceP_l_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x0e,0x00,0x00,0x00,0x00,0x00,0xf0,0x80, 0x70,0x00,0x00,0x00,0x00,0x00,0x0f,0xc0,0x81,0x03,0x00,0x00,0x00,0xf0,0x00, 0x38,0x0e,0x1c,0x00,0x00,0x00,0x08,0x00,0x07,0x70,0x60,0x00,0x00,0x00,0x0c, 0xe0,0x00,0x80,0x83,0x00,0x00,0x00,0x14,0x1c,0x00,0x00,0x1c,0x01,0x00,0x00, 0x94,0x03,0x00,0x00,0xe0,0x01,0x00,0x00,0x64,0x00,0x00,0x00,0x00,0x03,0x00, 0x00,0x22,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x02, 0x00,0x00,0x22,0x00,0x60,0x00,0x00,0x02,0x00,0x00,0x22,0x00,0xe0,0x01,0x00, 0x02,0x00,0x00,0x12,0x00,0x80,0x01,0x00,0x04,0x00,0x00,0x12,0x00,0xc0,0x01, 0x00,0x04,0x00,0x00,0x11,0x00,0xe0,0x01,0x00,0x04,0x00,0x00,0x11,0x00,0xe0, 0x01,0x00,0x04,0x00,0x00,0x11,0x00,0x70,0x00,0x00,0x04,0x00,0x00,0x11,0x00, 0xf8,0x0f,0x00,0x04,0x00,0x00,0x11,0x00,0xf8,0x07,0x00,0x04,0x00,0x00,0x09, 0xc0,0xdd,0x00,0x00,0x08,0x00,0x80,0x08,0xe0,0xc0,0xf8,0x00,0x08,0x00,0x80, 0x08,0xf0,0xfe,0xff,0x01,0x08,0x00,0x80,0x08,0xf8,0xfd,0xff,0x03,0x08,0x00, 0x80,0x08,0x78,0xc0,0xc0,0x03,0x08,0x00,0x80,0x08,0x38,0xc0,0xe0,0x03,0x08, 0x00,0x80,0x08,0x00,0xc3,0xf8,0x01,0x08,0x00,0x40,0x04,0x80,0xc7,0xfc,0x00, 0x10,0x00,0x40,0x04,0x80,0xc7,0x00,0x00,0x10,0x00,0x40,0x04,0x00,0xe7,0x00, 0x00,0x10,0x00,0x40,0x04,0x00,0xe7,0x07,0x00,0x10,0x00,0x40,0x04,0x00,0xff, 0x07,0x00,0x10,0x00,0x40,0x04,0x00,0xfe,0x01,0x00,0x10,0x00,0x20,0x02,0x00, 0x7c,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x38,0x00,0x00,0x20,0x00,0x20,0x02, 0x00,0x18,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x0c,0x00,0x00,0x20,0x00,0x20, 0x02,0x00,0x0c,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x1c,0x06,0x00,0x20,0x00, 0x10,0x02,0x00,0xf8,0x0f,0x00,0x20,0x00,0x10,0x01,0x00,0xf8,0x0f,0x00,0x40, 0x00,0x10,0x01,0x00,0xf0,0x03,0x00,0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x00, 0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00, 0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00, 0x00,0x00,0x40,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00, 0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0xc0,0x00,0x80,0xff, 0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/lancePR_l.xbm0000644000175000017500000000627212274270516015504 00000000000000#define lancePR_l_width 64 #define lancePR_l_height 64 static unsigned char lancePR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0xc0, 0x0f, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0xf0, 0x1f, 0x00, 0x80, 0x00, 0x20, 0x04, 0x00, 0xf0, 0x1f, 0x00, 0x40, 0x00, 0x20, 0x04, 0x00, 0x60, 0x38, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x30, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x30, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x18, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x1c, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x3e, 0x00, 0x40, 0x00, 0x40, 0x08, 0x00, 0x80, 0x7f, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0xe0, 0xff, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0xe0, 0xe7, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0xe7, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0xe3, 0x01, 0x20, 0x00, 0x80, 0x08, 0x00, 0x3f, 0xe3, 0x01, 0x20, 0x00, 0x80, 0x10, 0x80, 0x1f, 0xc3, 0x00, 0x10, 0x00, 0x80, 0x10, 0xc0, 0x07, 0x03, 0x1c, 0x10, 0x00, 0x00, 0x11, 0xc0, 0x03, 0x03, 0x1e, 0x10, 0x00, 0x00, 0x11, 0xc0, 0xff, 0xbf, 0x1f, 0x10, 0x00, 0x00, 0x11, 0x80, 0xff, 0x7f, 0x0f, 0x10, 0x00, 0x00, 0x11, 0x00, 0x1f, 0x03, 0x07, 0x10, 0x00, 0x00, 0x11, 0x00, 0x00, 0xbb, 0x03, 0x10, 0x00, 0x00, 0x21, 0x00, 0xe0, 0x1f, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0xf0, 0x1f, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x0e, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x80, 0x07, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x80, 0x07, 0x00, 0x08, 0x00, 0x00, 0x24, 0x00, 0x80, 0x03, 0x00, 0x08, 0x00, 0x00, 0x28, 0x00, 0x80, 0x01, 0x00, 0x08, 0x00, 0x00, 0x48, 0x00, 0x80, 0x07, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0x00, 0x06, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/rookPR.xbm0000644000175000017500000000135312274270516015054 00000000000000#define rookPR_width 32 #define rookPR_height 32 static unsigned char rookPR_bits[] = { 0xff,0xff,0xff,0x7f,0x01,0x00,0x00,0xc0,0x01,0x00,0x00,0xc0,0x01,0xfc,0x3f, 0xc0,0x01,0x80,0x01,0xc0,0x02,0x80,0x01,0x60,0x02,0x80,0x01,0x60,0x02,0xf0, 0x0f,0x60,0x02,0x80,0x01,0x60,0x04,0x80,0x01,0x30,0x04,0x80,0x01,0x30,0x04, 0xf8,0x1f,0x30,0x04,0x00,0x00,0x30,0x08,0x3e,0x23,0x18,0x08,0x7e,0x3f,0x18, 0x08,0x60,0x33,0x18,0x08,0x7e,0x3f,0x18,0x10,0x60,0x33,0x0c,0x10,0x7e,0x3f, 0x0c,0x10,0x06,0x00,0x0c,0x10,0x7e,0x3f,0x0c,0x20,0x60,0x16,0x06,0x20,0x7c, 0x3f,0x06,0x20,0x60,0x08,0x06,0x20,0x00,0x00,0x06,0xc0,0x00,0x80,0x03,0x00, 0x03,0xe0,0x01,0x00,0x0c,0x78,0x00,0x00,0x30,0x1e,0x00,0x00,0xc0,0x07,0x00, 0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/gold_m.xbm0000644000175000017500000000347212274270516015105 00000000000000#define gold_m_width 49 #define gold_m_height 49 static unsigned char gold_m_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00, 0x38,0x38,0x00,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0x00,0x07, 0xc0,0x01,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e,0x00,0xfe,0x00,0x1c,0x00,0x00, 0x70,0x00,0xfe,0x00,0x1c,0x00,0x00,0x70,0x00,0xfe,0x00,0x03,0xc0,0x01,0x80, 0x00,0xfe,0x00,0x03,0x38,0x0e,0x80,0x03,0xfe,0x00,0x03,0x38,0x0e,0x80,0x03, 0xfe,0x00,0x03,0x07,0x70,0x80,0x03,0xfe,0x00,0xe3,0xf8,0x8f,0x83,0x03,0xfe, 0x00,0xe3,0xf8,0x8f,0x83,0x03,0xfe,0x80,0x00,0xc0,0x01,0x00,0x03,0xfe,0x80, 0x00,0xff,0x7f,0x00,0x07,0xfe,0x80,0x00,0xff,0x7f,0x00,0x07,0xfe,0x80,0x00, 0xc0,0x01,0x00,0x07,0xfe,0x80,0x00,0xc6,0x31,0x00,0x07,0xfe,0x80,0x00,0xc6, 0x31,0x00,0x07,0xfe,0x60,0x00,0xc8,0x09,0x00,0x04,0xfe,0x60,0xc0,0xff,0xff, 0x01,0x1c,0xfe,0x60,0xc0,0xff,0xff,0x01,0x1c,0xfe,0x60,0x00,0x00,0x00,0x00, 0x1c,0xfe,0x60,0x00,0x00,0x00,0x00,0x1c,0xfe,0x60,0x00,0x00,0xf0,0x03,0x1c, 0xfe,0x10,0xc0,0xce,0x0f,0x02,0x18,0xfe,0x10,0xc0,0xce,0x0f,0x02,0x18,0xfe, 0x10,0xc0,0x4e,0xb8,0x03,0x38,0xfe,0x10,0xc0,0xce,0xb1,0x01,0x38,0xfe,0x10, 0xc0,0xce,0xb1,0x01,0x38,0xfe,0x10,0xe0,0x8f,0x01,0x00,0x38,0xfe,0x0c,0x00, 0x0e,0xc0,0x01,0x20,0xfe,0x0c,0x00,0x0e,0xc0,0x01,0x20,0xfe,0x0c,0xe0,0xcf, 0xff,0x0f,0xe0,0xfe,0x0c,0xc0,0x0e,0xc0,0x01,0xe0,0xfe,0x0c,0xc0,0x0e,0xc0, 0x01,0xe0,0xfe,0x0c,0xc0,0x8e,0xc1,0x01,0xe0,0xfe,0x03,0x20,0x0e,0xc6,0x01, 0xc0,0xfe,0x03,0x20,0x0e,0xc6,0x01,0xc0,0xfe,0x03,0x20,0x0e,0x70,0x00,0xc0, 0xff,0x03,0x00,0x00,0x00,0x00,0xc0,0xff,0x03,0x00,0x00,0x00,0x00,0xc0,0xff, 0x03,0x00,0x00,0x00,0x00,0xc0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xfc,0xff,0xff,0xff,0xff,0xff,0xff}; xshogi-1.4.2/eastern_bitmaps/rook_m.xbm0000644000175000017500000000347212274270516015132 00000000000000#define rook_m_width 49 #define rook_m_height 49 static unsigned char rook_m_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00, 0x38,0x38,0x00,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0x00,0x07, 0xc0,0x01,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e,0x00,0xfe,0x00,0x1c,0x00,0x00, 0x70,0x00,0xfe,0x00,0x1c,0x00,0x00,0x70,0x00,0xfe,0x00,0x03,0x00,0x00,0x80, 0x00,0xfe,0x00,0x03,0xff,0x7f,0x82,0x03,0xfe,0x00,0x03,0xff,0x7f,0x82,0x03, 0xfe,0x00,0x03,0xc0,0xf1,0x81,0x03,0xfe,0x00,0x03,0xcf,0x71,0x80,0x03,0xfe, 0x00,0x03,0xcf,0x71,0x80,0x03,0xfe,0x80,0x00,0xce,0xc1,0x03,0x03,0xfe,0x80, 0xc0,0xff,0x7f,0x00,0x07,0xfe,0x80,0xc0,0xff,0x7f,0x00,0x07,0xfe,0x80,0x00, 0xce,0x71,0x02,0x07,0xfe,0x80,0x00,0xce,0xf1,0x01,0x07,0xfe,0x80,0x00,0xce, 0xf1,0x01,0x07,0xfe,0x60,0x00,0xc6,0x71,0x00,0x04,0xfe,0x60,0x00,0xc1,0xc1, 0x03,0x1c,0xfe,0x60,0x00,0xc1,0xc1,0x03,0x1c,0xfe,0x60,0x00,0x00,0x00,0x00, 0x1c,0xfe,0x60,0x00,0x00,0x00,0x00,0x1c,0xfe,0x60,0x00,0xc0,0x01,0x00,0x1c, 0xfe,0x10,0xc0,0xff,0xff,0x01,0x18,0xfe,0x10,0xc0,0xff,0xff,0x01,0x18,0xfe, 0x10,0x00,0xc0,0x01,0x00,0x38,0xfe,0x10,0x00,0xff,0x7f,0x00,0x38,0xfe,0x10, 0x00,0xff,0x7f,0x00,0x38,0xfe,0x10,0x00,0xc7,0x71,0x00,0x38,0xfe,0x0c,0x00, 0xff,0x7f,0x00,0x20,0xfe,0x0c,0x00,0xff,0x7f,0x00,0x20,0xfe,0x0c,0x00,0xc7, 0x71,0x00,0xe0,0xfe,0x0c,0x00,0xff,0x7f,0x00,0xe0,0xfe,0x0c,0x00,0xff,0x7f, 0x00,0xe0,0xfe,0x0c,0x00,0xc0,0x01,0x00,0xe0,0xfe,0x03,0xe0,0xff,0xff,0x03, 0xc0,0xfe,0x03,0xe0,0xff,0xff,0x03,0xc0,0xfe,0x03,0x00,0xc0,0x01,0x00,0xc0, 0xff,0x03,0x00,0x00,0x00,0x00,0xc0,0xff,0x03,0x00,0x00,0x00,0x00,0xc0,0xff, 0x03,0x00,0x00,0x00,0x00,0xc0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xfc,0xff,0xff,0xff,0xff,0xff,0xff}; xshogi-1.4.2/eastern_bitmaps/rookPR_m.xbm0000644000175000017500000000350012274270516015364 00000000000000#define rookPR_m_width 49 #define rookPR_m_height 49 static unsigned char rookPR_m_bits[] = { 0xff,0xff,0xff,0xff,0xff,0x7f,0xfe,0xff,0xff,0xff,0xff,0xff,0x7f,0xfe,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x00, 0x00,0x00,0x00,0x80,0xff,0x07,0x00,0x00,0x00,0x00,0x80,0xff,0x07,0x00,0x00, 0x00,0x00,0x80,0xff,0x07,0x00,0xff,0xff,0x07,0x80,0xff,0x06,0x00,0x00,0x07, 0x00,0x80,0xff,0x06,0x00,0x00,0x07,0x00,0x80,0xff,0x0e,0x00,0x00,0x07,0x00, 0x60,0xfe,0x0e,0x00,0x00,0x07,0x00,0x60,0xfe,0x0e,0x00,0x00,0x07,0x00,0x60, 0xfe,0x0e,0x00,0xf8,0xff,0x00,0x60,0xfe,0x08,0x00,0x00,0x07,0x00,0x60,0xfe, 0x08,0x00,0x00,0x07,0x00,0x60,0xfe,0x38,0x00,0x00,0x07,0x00,0x10,0xfe,0x38, 0x00,0x00,0x07,0x00,0x10,0xfe,0x38,0x00,0x00,0x07,0x00,0x10,0xfe,0x38,0x00, 0xfc,0xff,0x01,0x10,0xfe,0x30,0x00,0x00,0x00,0x00,0x10,0xfe,0x30,0x00,0x00, 0x00,0x00,0x10,0xfe,0x70,0x80,0x3f,0x1c,0x06,0x0c,0xfe,0x70,0x80,0xff,0xfc, 0x07,0x0c,0xfe,0x70,0x80,0xff,0xfc,0x07,0x0c,0xfe,0x70,0x00,0xe0,0x1c,0x07, 0x0c,0xfe,0x70,0x00,0xe0,0x1c,0x07,0x0c,0xfe,0x40,0x80,0xff,0xfc,0x07,0x0c, 0xfe,0xc0,0x01,0xe0,0x1c,0x07,0x02,0xfe,0xc0,0x01,0xe0,0x1c,0x07,0x02,0xfe, 0xc0,0x81,0xff,0xfc,0x07,0x02,0xfe,0xc0,0x81,0x03,0x00,0x00,0x02,0xfe,0xc0, 0x81,0x03,0x00,0x00,0x02,0xfe,0x80,0x81,0xff,0xfc,0x07,0x02,0xfe,0x80,0x03, 0xe0,0x38,0x81,0x01,0xfe,0x80,0x03,0xe0,0x38,0x81,0x01,0xfe,0x80,0x03,0xff, 0xfc,0x87,0x01,0xfe,0x80,0x03,0xe0,0xc0,0x80,0x01,0xfe,0x80,0x03,0xe0,0xc0, 0x80,0x01,0xfe,0x00,0x02,0x00,0x00,0x80,0x01,0xfe,0x00,0x1c,0x00,0x00,0x70, 0x00,0xfe,0x00,0x1c,0x00,0x00,0x70,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e,0x00, 0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe, 0x00,0x00,0x38,0x38,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00, 0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe}; xshogi-1.4.2/eastern_bitmaps/pawnPR.xbm0000644000175000017500000000135312274270516015047 00000000000000#define pawnPR_width 32 #define pawnPR_height 32 static unsigned char pawnPR_bits[] = { 0xfc,0xff,0xff,0x1f,0x04,0x00,0x00,0x30,0x04,0x00,0x00,0x30,0x04,0x00,0x00, 0x30,0x04,0x00,0x00,0x30,0x08,0x00,0x00,0x18,0x08,0x00,0x00,0x18,0x08,0xf8, 0x03,0x18,0x08,0xf8,0x07,0x18,0x10,0x00,0x06,0x0c,0x10,0x00,0x06,0x0c,0x10, 0x00,0x03,0x0c,0x10,0xc0,0x01,0x0c,0x20,0xb0,0x01,0x06,0x20,0x80,0x01,0x06, 0x20,0x80,0x01,0x06,0x20,0x80,0x01,0x06,0x40,0x80,0x01,0x03,0x40,0x00,0x00, 0x03,0x40,0x00,0x00,0x03,0x40,0x00,0x00,0x03,0x80,0x00,0x80,0x01,0x80,0x00, 0x80,0x01,0x80,0x00,0x80,0x01,0x00,0x03,0xe0,0x00,0x00,0x0c,0x78,0x00,0x00, 0x30,0x1e,0x00,0x00,0xc0,0x07,0x00,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/icon.xbm0000644000175000017500000000156412274270516014574 00000000000000#define icon_width 32 #define icon_height 32 static unsigned char icon_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0xc0, 0x0c, 0x00, 0x00, 0x20, 0x10, 0x00, 0x00, 0x20, 0x30, 0x00, 0x00, 0x20, 0x30, 0x00, 0x00, 0x10, 0x20, 0x00, 0x00, 0x10, 0x60, 0x00, 0x00, 0x10, 0x67, 0x00, 0x00, 0xc8, 0x49, 0x00, 0x00, 0x28, 0xc9, 0x00, 0x00, 0x38, 0xf9, 0x00, 0x00, 0x10, 0xf9, 0x00, 0x00, 0x20, 0x09, 0x00, 0x00, 0x20, 0x39, 0x00, 0x00, 0x20, 0x49, 0x00, 0x00, 0x23, 0xc9, 0x00, 0x80, 0x24, 0x48, 0x01, 0x80, 0x18, 0x40, 0x02, 0x00, 0x01, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x05, 0x00, 0x02, 0x00, 0x09, 0x00, 0x01, 0x00, 0x11, 0x00, 0x01, 0x00, 0x25, 0x80, 0x00, 0x00, 0x25, 0x40, 0x02, 0x00, 0x25, 0x40, 0x02, 0x00, 0xf4, 0xff, 0x02, 0x00, 0xf1, 0xff, 0x02, 0x00, 0xf4, 0xff, 0x00, 0x00, 0x11, 0x80, 0x02, 0x00, 0x00, 0x00, 0x00}; xshogi-1.4.2/eastern_bitmaps/silverP.xbm0000644000175000017500000000135612274270516015267 00000000000000#define silverP_width 32 #define silverP_height 32 static unsigned char silverP_bits[] = { 0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x30,0x06,0x00,0x00,0x0c,0x18, 0x00,0x00,0x03,0x60,0x00,0xc0,0x00,0x88,0x01,0x20,0x80,0x01,0x02,0x20,0xfc, 0x1f,0x06,0x20,0x8c,0x01,0x06,0x20,0x0c,0x03,0x06,0x10,0x7c,0x03,0x04,0x10, 0x6c,0x16,0x0c,0x10,0x6c,0x0e,0x0c,0x10,0x6c,0x0c,0x0c,0x08,0x64,0x3a,0x08, 0x08,0x72,0x11,0x18,0x08,0x00,0x00,0x18,0x08,0x10,0x00,0x18,0x04,0x38,0x3f, 0x10,0x04,0x64,0x33,0x30,0x04,0x02,0x3f,0x30,0x04,0x3c,0x33,0x30,0x02,0x18, 0x3f,0x20,0x02,0x7e,0x03,0x60,0x02,0x18,0x2b,0x60,0x02,0x5a,0x1b,0x60,0x01, 0x18,0x37,0x40,0x01,0x7e,0x63,0xc0,0x01,0x00,0x00,0xc0,0x01,0x00,0x00,0xc0, 0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff}; xshogi-1.4.2/eastern_bitmaps/rook.xbm0000644000175000017500000000134512274270516014613 00000000000000#define rook_width 32 #define rook_height 32 static unsigned char rook_bits[] = { 0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x30,0x06,0x00,0x00,0x0c,0x18, 0x00,0x00,0x03,0x60,0x00,0xc0,0x00,0x80,0x01,0x20,0x00,0x00,0x02,0x20,0xfc, 0x2f,0x06,0x20,0xc0,0x1c,0x06,0x20,0xdc,0x0c,0x06,0x10,0xd8,0x38,0x04,0x10, 0xfe,0x0f,0x0c,0x10,0xd8,0x2c,0x0c,0x10,0xd8,0x1c,0x0c,0x08,0xc8,0x0c,0x08, 0x08,0xc4,0x38,0x18,0x08,0x00,0x00,0x18,0x08,0xc0,0x00,0x18,0x04,0xfe,0x1f, 0x10,0x04,0xc0,0x00,0x30,0x04,0xfc,0x0f,0x30,0x04,0xcc,0x0c,0x30,0x02,0xfc, 0x0f,0x20,0x02,0xcc,0x0c,0x60,0x02,0xfc,0x0f,0x60,0x02,0xc0,0x00,0x60,0x01, 0xff,0x3f,0x40,0x01,0xc0,0x00,0xc0,0x01,0x00,0x00,0xc0,0x01,0x00,0x00,0xc0, 0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff}; xshogi-1.4.2/eastern_bitmaps/rookP.top.xbm0000644000175000017500000000156712274270516015542 00000000000000#define rookP_width 32 #define rookP_height 32 static unsigned char rookP_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x30, 0x06, 0x00, 0x00, 0x0c, 0x18, 0x00, 0x00, 0x03, 0x60, 0x00, 0xc0, 0x00, 0x80, 0x01, 0x20, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x06, 0x20, 0x00, 0x00, 0x06, 0x20, 0x00, 0x00, 0x06, 0x10, 0x18, 0x01, 0x04, 0x10, 0x7e, 0x23, 0x0c, 0x10, 0x34, 0x3f, 0x0c, 0x10, 0x34, 0x03, 0x0c, 0x08, 0x7f, 0x23, 0x08, 0x08, 0x00, 0x7f, 0x18, 0x08, 0x7e, 0x60, 0x18, 0x08, 0x66, 0x61, 0x18, 0x04, 0x66, 0x7f, 0x10, 0x04, 0x7e, 0x03, 0x30, 0x04, 0x66, 0x3f, 0x30, 0x04, 0x66, 0x03, 0x30, 0x02, 0x7e, 0x3f, 0x20, 0x02, 0x66, 0x03, 0x60, 0x02, 0x66, 0x3f, 0x60, 0x02, 0x66, 0xc7, 0x60, 0x01, 0x66, 0xfe, 0x40, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff}; xshogi-1.4.2/eastern_bitmaps/smallsolidR_m.xbm0000644000175000017500000000351712274270516016445 00000000000000#define smallsolidR_m_width 49 #define smallsolidR_m_height 49 static unsigned char smallsolidR_m_bits[] = { 0xf0,0xff,0xff,0xff,0xff,0x1f,0xfe,0xf0,0xff,0xff,0xff,0xff,0x1f,0xfe,0xf0, 0xff,0xff,0xff,0xff,0x3f,0xfe,0xf0,0xff,0xff,0xff,0xff,0x3f,0xfe,0xf0,0xff, 0xff,0xff,0xff,0x3f,0xfe,0xf0,0xff,0xff,0xff,0xff,0x3f,0xfe,0xf0,0xff,0xff, 0xff,0xff,0x3f,0xfe,0xf0,0xff,0xff,0xff,0xff,0x3f,0xfe,0xe0,0xff,0xff,0xff, 0xff,0x1f,0xfe,0xe0,0xff,0xff,0xff,0xff,0x1f,0xfe,0xe0,0xff,0xff,0xff,0xff, 0x1f,0xfe,0xe0,0xff,0xff,0xff,0xff,0x1f,0xfe,0xe0,0xff,0xff,0xff,0xff,0x1f, 0xfe,0xe0,0xff,0xff,0xff,0xff,0x1f,0xfe,0x80,0xff,0xff,0xff,0xff,0x07,0xfe, 0x80,0xff,0xff,0xff,0xff,0x07,0xfe,0x80,0xff,0xff,0xff,0xff,0x07,0xfe,0x80, 0xff,0xff,0xff,0xff,0x07,0xfe,0x80,0xff,0xff,0xff,0xff,0x07,0xfe,0x80,0xff, 0xff,0xff,0xff,0x07,0xfe,0x00,0xff,0xff,0xff,0xff,0x03,0xfe,0x00,0xff,0xff, 0xff,0xff,0x03,0xfe,0x00,0xff,0xff,0xff,0xff,0x03,0xfe,0x00,0xff,0xff,0xff, 0xff,0x03,0xfe,0x00,0xff,0xff,0xff,0xff,0x03,0xfe,0x00,0xff,0xff,0xff,0xff, 0x03,0xfe,0x00,0xff,0xff,0xff,0xff,0x03,0xfe,0x00,0xfc,0xff,0xff,0xff,0x00, 0xfe,0x00,0xfc,0xff,0xff,0xff,0x00,0xfe,0x00,0xfc,0xff,0xff,0xff,0x00,0xfe, 0x00,0xfc,0xff,0xff,0xff,0x00,0xfe,0x00,0xfc,0xff,0xff,0xff,0x00,0xfe,0x00, 0xfc,0xff,0xff,0xff,0x00,0xfe,0x00,0xf8,0xff,0xff,0x7f,0x00,0xfe,0x00,0xf8, 0xff,0xff,0x7f,0x00,0xfe,0x00,0xf8,0xff,0xff,0x7f,0x00,0xfe,0x00,0xf8,0xff, 0xff,0x7f,0x00,0xfe,0x00,0xe0,0xff,0xff,0x1f,0x00,0xfe,0x00,0xe0,0xff,0xff, 0x1f,0x00,0xfe,0x00,0x00,0xff,0xff,0x0f,0x00,0xfe,0x00,0x00,0xf8,0xff,0x01, 0x00,0xfe,0x00,0x00,0xf8,0xff,0x01,0x00,0xfe,0x00,0x00,0xc0,0x3f,0x00,0x00, 0xfe,0x00,0x00,0x80,0x07,0x00,0x00,0xfe,0x00,0x00,0x80,0x07,0x00,0x00,0xfe, 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe}; xshogi-1.4.2/eastern_bitmaps/bishopPR.xbm0000644000175000017500000000136112274270516015365 00000000000000#define bishopPR_width 32 #define bishopPR_height 32 static unsigned char bishopPR_bits[] = { 0xff,0xff,0xff,0x7f,0x01,0x00,0x00,0xc0,0x01,0x00,0x00,0xc0,0x01,0xd4,0x36, 0xc0,0x01,0x06,0x00,0xc0,0x02,0xfe,0x1f,0x60,0x02,0x80,0x19,0x60,0x02,0xf8, 0x1f,0x60,0x02,0x80,0x19,0x60,0x04,0xf8,0x1f,0x30,0x04,0x80,0x19,0x30,0x04, 0xf8,0x1f,0x30,0x04,0x00,0x00,0x30,0x08,0x3e,0x23,0x18,0x08,0x7e,0x3f,0x18, 0x08,0x60,0x33,0x18,0x08,0x7e,0x3f,0x18,0x10,0x60,0x33,0x0c,0x10,0x7e,0x3f, 0x0c,0x10,0x06,0x00,0x0c,0x10,0x7e,0x3f,0x0c,0x20,0x60,0x16,0x06,0x20,0x7c, 0x3f,0x06,0x20,0x60,0x08,0x06,0x20,0x00,0x00,0x06,0xc0,0x00,0x80,0x03,0x00, 0x03,0xe0,0x01,0x00,0x0c,0x78,0x00,0x00,0x30,0x1e,0x00,0x00,0xc0,0x07,0x00, 0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/pawnP.xbm0000644000175000017500000000135012274270516014722 00000000000000#define pawnP_width 32 #define pawnP_height 32 static unsigned char pawnP_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0,0x01, 0x00,0x00,0x30,0x06,0x00,0x00,0x0c,0x18,0x00,0x00,0x03,0x60,0x00,0x80,0x00, 0x80,0x00,0x80,0x00,0x80,0x01,0x80,0x00,0x80,0x01,0x40,0x00,0x00,0x01,0x40, 0x00,0x00,0x03,0x40,0x00,0x00,0x03,0x40,0xc0,0x00,0x03,0x20,0xc0,0x00,0x02, 0x20,0xc0,0x00,0x06,0x20,0xc0,0x00,0x06,0x20,0xc0,0x06,0x06,0x10,0xc0,0x01, 0x04,0x10,0x60,0x00,0x0c,0x10,0x30,0x00,0x0c,0x10,0x30,0x00,0x0c,0x08,0xf0, 0x0f,0x08,0x08,0xe0,0x0f,0x18,0x08,0x00,0x00,0x18,0x08,0x00,0x00,0x18,0x04, 0x00,0x00,0x10,0x04,0x00,0x00,0x30,0x04,0x00,0x00,0x30,0x04,0x00,0x00,0x30, 0xfc,0xff,0xff,0x3f,0xf8,0xff,0xff,0x3f}; xshogi-1.4.2/eastern_bitmaps/none_m.xbm0000644000175000017500000000347212274270516015117 00000000000000#define none_m_width 49 #define none_m_height 49 static unsigned char none_m_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00, 0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00, 0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00, 0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00, 0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00, 0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe, 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00, 0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00, 0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00, 0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00, 0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00, 0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe, 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00, 0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00, 0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00, 0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00, 0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00, 0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe, 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe}; xshogi-1.4.2/eastern_bitmaps/silverR_l.xbm0000644000175000017500000000627212274270516015606 00000000000000#define silverR_l_width 64 #define silverR_l_height 64 static unsigned char silverR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x0f, 0x80, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x0b, 0xc0, 0x01, 0x00, 0x20, 0x48, 0x00, 0x00, 0xc3, 0xe0, 0x01, 0x00, 0x20, 0x48, 0x00, 0x00, 0xe3, 0x60, 0x03, 0x00, 0x10, 0x48, 0x00, 0x00, 0x63, 0x60, 0x18, 0x00, 0x10, 0x88, 0x00, 0x00, 0x26, 0x60, 0x1c, 0x00, 0x10, 0x90, 0x00, 0xe0, 0xe7, 0x63, 0x0c, 0x00, 0x10, 0x90, 0x00, 0xf0, 0xff, 0x63, 0x0c, 0x00, 0x10, 0x90, 0x00, 0x00, 0x06, 0x60, 0x04, 0x00, 0x10, 0x90, 0x00, 0x00, 0x60, 0x20, 0x1f, 0x00, 0x08, 0x90, 0x00, 0x00, 0x7c, 0xa0, 0x0f, 0x00, 0x08, 0x10, 0x01, 0x00, 0x1c, 0x29, 0x00, 0x00, 0x08, 0x10, 0x01, 0x00, 0x06, 0x7b, 0x04, 0x00, 0x08, 0x20, 0x01, 0x00, 0x66, 0xfb, 0x07, 0x00, 0x08, 0x20, 0x01, 0x00, 0x7e, 0xf0, 0x06, 0x00, 0x08, 0x20, 0x01, 0x00, 0x5c, 0x20, 0x03, 0x00, 0x04, 0x20, 0x01, 0x00, 0xc0, 0x61, 0x03, 0x00, 0x04, 0x20, 0x01, 0x00, 0xe0, 0x63, 0x01, 0x00, 0x04, 0x20, 0x02, 0x00, 0x78, 0x60, 0x01, 0x00, 0x04, 0x20, 0x02, 0x00, 0x18, 0x60, 0x00, 0x00, 0x04, 0x40, 0x02, 0x00, 0x08, 0x20, 0x00, 0x00, 0x04, 0x40, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x40, 0x02, 0xc0, 0x81, 0xf0, 0x0f, 0x00, 0x02, 0x40, 0x02, 0x80, 0xe3, 0xf8, 0x07, 0x00, 0x02, 0x40, 0x02, 0x00, 0xf3, 0x4c, 0x00, 0x00, 0x02, 0x40, 0x04, 0x00, 0xd7, 0xe0, 0x07, 0x00, 0x02, 0x80, 0x04, 0x00, 0x47, 0x58, 0x00, 0x00, 0x02, 0x80, 0x04, 0xc0, 0x4c, 0xe0, 0x03, 0x00, 0x01, 0x80, 0x04, 0x60, 0x78, 0x58, 0x00, 0x00, 0x01, 0x80, 0x04, 0x60, 0x7c, 0xc0, 0x03, 0x00, 0x01, 0x80, 0x04, 0x00, 0x46, 0xf0, 0x01, 0x00, 0x01, 0x80, 0x08, 0x00, 0xf2, 0x00, 0x0c, 0x00, 0x01, 0x80, 0x08, 0x00, 0xde, 0x18, 0x06, 0x00, 0x01, 0x00, 0x09, 0x00, 0xc2, 0x30, 0x03, 0x00, 0x01, 0x00, 0x09, 0x00, 0xfe, 0xe0, 0x01, 0x80, 0x00, 0x00, 0x09, 0x00, 0xdc, 0xc0, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x40, 0x40, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x80, 0x07, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0xe0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/rookPR_l.xbm0000644000175000017500000000626712274270516015400 00000000000000#define rookPR_l_width 64 #define rookPR_l_height 64 static unsigned char rookPR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0xe0, 0xff, 0xff, 0x1f, 0x00, 0x20, 0x44, 0x00, 0xf0, 0xff, 0xff, 0x07, 0x00, 0x20, 0x48, 0x00, 0xe0, 0xff, 0x3f, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0xc0, 0x39, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0xe0, 0x3f, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0xf0, 0x31, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0xf8, 0x31, 0x00, 0x00, 0x10, 0x88, 0x00, 0x00, 0xe8, 0x1f, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0xf8, 0x0f, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0xc0, 0x70, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0xc0, 0x1f, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0xc0, 0x07, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x08, 0x10, 0x01, 0xf0, 0x07, 0x30, 0x00, 0x00, 0x08, 0x10, 0x01, 0xf8, 0x0f, 0x78, 0x00, 0x00, 0x08, 0x20, 0x01, 0x18, 0x18, 0xd8, 0x81, 0x00, 0x08, 0x20, 0x01, 0x1c, 0x30, 0x98, 0xe1, 0x00, 0x08, 0x20, 0x01, 0x1c, 0x30, 0x98, 0x71, 0x00, 0x04, 0x20, 0x01, 0x18, 0x30, 0xf8, 0x31, 0x00, 0x04, 0x20, 0x01, 0x08, 0x30, 0x3c, 0x38, 0x00, 0x04, 0x20, 0x02, 0x00, 0x37, 0x3f, 0x1c, 0x00, 0x04, 0x20, 0x02, 0x80, 0xf7, 0x1b, 0x0e, 0x00, 0x04, 0x40, 0x02, 0xe0, 0xf1, 0x11, 0x0f, 0x00, 0x04, 0x40, 0x02, 0xe0, 0xf8, 0x80, 0x03, 0x00, 0x02, 0x40, 0x02, 0x00, 0x7c, 0xc0, 0x0f, 0x00, 0x02, 0x40, 0x02, 0x00, 0x7e, 0xf0, 0x1f, 0x00, 0x02, 0x40, 0x02, 0x80, 0x6f, 0xf8, 0x09, 0x00, 0x02, 0x40, 0x04, 0xc0, 0x63, 0x7c, 0x06, 0x00, 0x02, 0x80, 0x04, 0xe0, 0x61, 0x3c, 0x07, 0x00, 0x02, 0x80, 0x04, 0x70, 0x60, 0x30, 0x03, 0x00, 0x01, 0x80, 0x04, 0x00, 0x70, 0xc0, 0x0f, 0x00, 0x01, 0x80, 0x04, 0x00, 0x70, 0xf8, 0x03, 0x00, 0x01, 0x80, 0x04, 0x00, 0x70, 0x3c, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0x70, 0x40, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0x70, 0xc0, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0xf0, 0xc0, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0xe0, 0xc0, 0x01, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x80, 0x07, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0xe0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/smallsolid_m.xbm0000644000175000017500000000351412274270516016320 00000000000000#define smallsolid_m_width 49 #define smallsolid_m_height 49 static unsigned char smallsolid_m_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00, 0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0xc0, 0x07,0x00,0x00,0xfe,0x00,0x00,0xf8,0x3f,0x00,0x00,0xfe,0x00,0x00,0xff,0xff, 0x01,0x00,0xfe,0x00,0x00,0xff,0xff,0x01,0x00,0xfe,0x00,0xe0,0xff,0xff,0x0f, 0x00,0xfe,0x00,0xf8,0xff,0xff,0x1f,0x00,0xfe,0x00,0xf8,0xff,0xff,0x1f,0x00, 0xfe,0x00,0xf8,0xff,0xff,0x7f,0x00,0xfe,0x00,0xf8,0xff,0xff,0x7f,0x00,0xfe, 0x00,0xf8,0xff,0xff,0x7f,0x00,0xfe,0x00,0xfc,0xff,0xff,0x7f,0x00,0xfe,0x00, 0xfc,0xff,0xff,0xff,0x00,0xfe,0x00,0xfc,0xff,0xff,0xff,0x00,0xfe,0x00,0xfc, 0xff,0xff,0xff,0x00,0xfe,0x00,0xfc,0xff,0xff,0xff,0x00,0xfe,0x00,0xfc,0xff, 0xff,0xff,0x00,0xfe,0x00,0xff,0xff,0xff,0xff,0x00,0xfe,0x00,0xff,0xff,0xff, 0xff,0x03,0xfe,0x00,0xff,0xff,0xff,0xff,0x03,0xfe,0x00,0xff,0xff,0xff,0xff, 0x03,0xfe,0x00,0xff,0xff,0xff,0xff,0x03,0xfe,0x00,0xff,0xff,0xff,0xff,0x03, 0xfe,0x80,0xff,0xff,0xff,0xff,0x03,0xfe,0x80,0xff,0xff,0xff,0xff,0x03,0xfe, 0x80,0xff,0xff,0xff,0xff,0x07,0xfe,0x80,0xff,0xff,0xff,0xff,0x07,0xfe,0x80, 0xff,0xff,0xff,0xff,0x07,0xfe,0x80,0xff,0xff,0xff,0xff,0x07,0xfe,0xe0,0xff, 0xff,0xff,0xff,0x07,0xfe,0xe0,0xff,0xff,0xff,0xff,0x07,0xfe,0xe0,0xff,0xff, 0xff,0xff,0x1f,0xfe,0xe0,0xff,0xff,0xff,0xff,0x1f,0xfe,0xe0,0xff,0xff,0xff, 0xff,0x1f,0xfe,0xe0,0xff,0xff,0xff,0xff,0x1f,0xfe,0xf0,0xff,0xff,0xff,0xff, 0x1f,0xfe,0xf0,0xff,0xff,0xff,0xff,0x1f,0xfe,0xf0,0xff,0xff,0xff,0xff,0x3f, 0xfe,0xf0,0xff,0xff,0xff,0xff,0x3f,0xfe,0xf0,0xff,0xff,0xff,0xff,0x3f,0xfe, 0xf0,0xff,0xff,0xff,0xff,0x3f,0xfe,0xf0,0xff,0xff,0xff,0xff,0x3f,0xfe,0xf0, 0xff,0xff,0xff,0xff,0x3f,0xfe,0xe0,0xff,0xff,0xff,0xff,0x3f,0xfe}; xshogi-1.4.2/eastern_bitmaps/silverPR_m.xbm0000644000175000017500000000350612274270516015724 00000000000000#define silverPR_m_width 49 #define silverPR_m_height 49 static unsigned char silverPR_m_bits[] = { 0xff,0xff,0xff,0xff,0xff,0x7f,0xfe,0xff,0xff,0xff,0xff,0xff,0x7f,0xfe,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x00, 0x00,0x00,0x00,0x80,0xff,0x07,0x00,0x00,0x00,0x00,0x80,0xff,0x07,0x00,0x00, 0x00,0x00,0x80,0xff,0x07,0xe0,0xe0,0xfc,0x07,0x80,0xff,0x06,0x80,0xfb,0xe0, 0x00,0x80,0xff,0x06,0x80,0xfb,0xe0,0x00,0x80,0xff,0x0e,0x00,0xe7,0xe4,0x06, 0x60,0xfe,0x0e,0x80,0xe4,0xe0,0x00,0x60,0xfe,0x0e,0x80,0xe4,0xe0,0x00,0x60, 0xfe,0x0e,0x00,0xe0,0xfc,0x07,0x60,0xfe,0x08,0x80,0xff,0xe0,0x00,0x60,0xfe, 0x08,0x80,0xff,0xe0,0x00,0x60,0xfe,0x38,0x80,0xe3,0xf8,0x01,0x10,0xfe,0x38, 0x80,0xff,0x00,0x06,0x10,0xfe,0x38,0x80,0xff,0x00,0x06,0x10,0xfe,0x38,0x80, 0xe3,0x1c,0x01,0x10,0xfe,0x30,0x80,0xff,0xf8,0x00,0x10,0xfe,0x30,0x80,0xff, 0xf8,0x00,0x10,0xfe,0x70,0x00,0x00,0x20,0x00,0x0c,0xfe,0x70,0x00,0x00,0x00, 0x00,0x0c,0xfe,0x70,0x00,0x00,0x00,0x00,0x0c,0xfe,0x70,0x00,0xc3,0x3c,0x06, 0x0c,0xfe,0x70,0x00,0xc3,0x3c,0x06,0x0c,0xfe,0x40,0x80,0x27,0x1c,0x01,0x0c, 0xfe,0xc0,0x01,0x1c,0xdc,0x01,0x02,0xfe,0xc0,0x01,0x1c,0xdc,0x01,0x02,0xfe, 0xc0,0x01,0x3c,0xdc,0x01,0x02,0xfe,0xc0,0x01,0x3b,0xdc,0x01,0x02,0xfe,0xc0, 0x01,0x3b,0xdc,0x01,0x02,0xfe,0x80,0x01,0xe0,0xfc,0x01,0x02,0xfe,0x80,0x03, 0xe0,0xc0,0x81,0x01,0xfe,0x80,0x03,0xe0,0xc0,0x81,0x01,0xfe,0x80,0x03,0xc0, 0xc3,0x81,0x01,0xfe,0x80,0x03,0xff,0xff,0x81,0x01,0xfe,0x80,0x03,0xff,0xff, 0x81,0x01,0xfe,0x00,0x02,0xc0,0x03,0x80,0x01,0xfe,0x00,0x1c,0x04,0x00,0x70, 0x00,0xfe,0x00,0x1c,0x04,0x00,0x70,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e,0x00, 0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe, 0x00,0x00,0x38,0x38,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00, 0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe}; xshogi-1.4.2/eastern_bitmaps/silverR.xbm0000644000175000017500000000135612274270516015271 00000000000000#define silverR_width 32 #define silverR_height 32 static unsigned char silverR_bits[] = { 0xff,0xff,0xff,0x7f,0x01,0x00,0x00,0xc0,0x01,0x00,0x00,0xc0,0x01,0x1c,0x4c, 0xc0,0x01,0x8c,0x2c,0xc0,0x02,0x0c,0x2d,0x60,0x02,0x0c,0x2c,0x60,0x02,0xff, 0x7d,0x60,0x02,0x00,0x0c,0x60,0x04,0x94,0x7c,0x30,0x04,0x22,0x2d,0x30,0x04, 0x00,0x2c,0x30,0x04,0xff,0x2d,0x30,0x08,0x0e,0x00,0x18,0x08,0x00,0x00,0x18, 0x08,0x77,0x7f,0x18,0x08,0x6c,0x0c,0x18,0x10,0x6a,0x2d,0x0c,0x10,0x60,0x0c, 0x0c,0x10,0x7e,0x3f,0x0c,0x10,0x66,0x0c,0x0c,0x20,0x7e,0x5e,0x06,0x20,0x66, 0x23,0x06,0x20,0x7e,0x16,0x06,0x20,0x00,0x0c,0x06,0xc0,0x00,0x80,0x03,0x00, 0x03,0xe0,0x01,0x00,0x0c,0x78,0x00,0x00,0x30,0x1e,0x00,0x00,0xc0,0x07,0x00, 0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/rookPR.top.xbm0000644000175000017500000000165212274270516015657 00000000000000#define rookPR_width 32 #define rookPR_height 32 #define rookPR_x_hot -1 #define rookPR_y_hot -1 static unsigned char rookPR_bits[] = { 0xff, 0xff, 0xff, 0x7f, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc0, 0x02, 0x7f, 0x66, 0xc0, 0x02, 0xe3, 0x66, 0x60, 0x02, 0xfc, 0x66, 0x60, 0x02, 0xc0, 0x66, 0x60, 0x04, 0xfc, 0x7e, 0x60, 0x04, 0xc0, 0x66, 0x30, 0x04, 0xfc, 0x66, 0x30, 0x04, 0xc0, 0x7e, 0x30, 0x08, 0xfe, 0x66, 0x30, 0x08, 0x86, 0x66, 0x18, 0x08, 0x06, 0x7e, 0x18, 0x08, 0xfe, 0x00, 0x18, 0x10, 0xc4, 0xfe, 0x18, 0x10, 0xc0, 0x2c, 0x0c, 0x10, 0xfc, 0x2c, 0x0c, 0x10, 0xc4, 0x7e, 0x0c, 0x20, 0x80, 0x18, 0x0c, 0x20, 0x00, 0x00, 0x06, 0x20, 0x00, 0x00, 0x06, 0x20, 0x00, 0x00, 0x06, 0xc0, 0x00, 0x00, 0x07, 0x00, 0x03, 0xc0, 0x03, 0x00, 0x0c, 0xf0, 0x00, 0x00, 0x30, 0x3c, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00}; xshogi-1.4.2/eastern_bitmaps/silverR_m.xbm0000644000175000017500000000350312274270516015601 00000000000000#define silverR_m_width 49 #define silverR_m_height 49 static unsigned char silverR_m_bits[] = { 0xff,0xff,0xff,0xff,0xff,0x7f,0xfe,0xff,0xff,0xff,0xff,0xff,0x7f,0xfe,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x00, 0x00,0x00,0x00,0x80,0xff,0x07,0x00,0x00,0x00,0x00,0x80,0xff,0x07,0x00,0x00, 0x00,0x00,0x80,0xff,0x07,0x00,0x1c,0xe0,0x08,0x80,0xff,0x06,0x00,0xc7,0xe0, 0x08,0x80,0xff,0x06,0x00,0xc7,0xe0,0x08,0x80,0xff,0x0e,0x00,0x07,0xe3,0x06, 0x60,0xfe,0x0e,0x00,0x07,0xe0,0x06,0x60,0xfe,0x0e,0x00,0x07,0xe0,0x06,0x60, 0xfe,0x0e,0xe0,0xff,0xe7,0x0f,0x60,0xfe,0x08,0x00,0x07,0xe0,0x00,0x60,0xfe, 0x08,0x00,0x07,0xe0,0x00,0x60,0xfe,0x38,0x00,0x00,0xe3,0x0f,0x10,0xfe,0x38, 0x00,0x1b,0xe7,0x06,0x10,0xfe,0x38,0x00,0x1b,0xe7,0x06,0x10,0xfe,0x38,0x80, 0x3b,0xe4,0x06,0x10,0xfe,0x30,0x80,0xe0,0xe7,0x06,0x10,0xfe,0x30,0x80,0xe0, 0xe7,0x06,0x10,0xfe,0x70,0x80,0x1f,0x00,0x00,0x0c,0xfe,0x70,0x00,0x00,0x00, 0x00,0x0c,0xfe,0x70,0x00,0x00,0x00,0x00,0x0c,0xfe,0x70,0xe0,0xfb,0xfc,0x0f, 0x0c,0xfe,0x70,0xe0,0xfb,0xfc,0x0f,0x0c,0xfe,0x40,0x00,0xe7,0xe0,0x00,0x0c, 0xfe,0xc0,0x81,0xe4,0xe4,0x06,0x02,0xfe,0xc0,0x81,0xe4,0xe4,0x06,0x02,0xfe, 0xc0,0x01,0xe0,0xe0,0x00,0x02,0xfe,0xc0,0x81,0xff,0xfc,0x07,0x02,0xfe,0xc0, 0x81,0xff,0xfc,0x07,0x02,0xfe,0x80,0x81,0xe3,0xe0,0x00,0x02,0xfe,0x80,0x83, 0xff,0xf8,0x89,0x01,0xfe,0x80,0x83,0xff,0xf8,0x89,0x01,0xfe,0x80,0x83,0xe3, 0x1c,0x86,0x01,0xfe,0x80,0x83,0xff,0x38,0x81,0x01,0xfe,0x80,0x83,0xff,0x38, 0x81,0x01,0xfe,0x00,0x02,0x00,0xe0,0x80,0x01,0xfe,0x00,0x1c,0x00,0x00,0x70, 0x00,0xfe,0x00,0x1c,0x00,0x00,0x70,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e,0x00, 0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe, 0x00,0x00,0x38,0x38,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00, 0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe}; xshogi-1.4.2/eastern_bitmaps/rookP_m.top.xbm0000644000175000017500000000427512274270516016055 00000000000000#define rookP_m_width 49 #define rookP_m_height 49 static unsigned char rookP_m_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0xc0, 0x07, 0x00, 0x00, 0xfe, 0x00, 0x00, 0xc0, 0x07, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x38, 0x38, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x07, 0xc0, 0x01, 0x00, 0xfe, 0x00, 0x00, 0x07, 0xc0, 0x01, 0x00, 0xfe, 0x00, 0xe0, 0x00, 0x00, 0x0e, 0x00, 0xfe, 0x00, 0x1c, 0x00, 0x00, 0x70, 0x00, 0xfe, 0x00, 0x1c, 0x00, 0x00, 0x70, 0x00, 0xfe, 0x00, 0x03, 0x00, 0x00, 0x80, 0x00, 0xfe, 0x00, 0x03, 0x00, 0x00, 0x80, 0x03, 0xfe, 0x00, 0x03, 0x00, 0x00, 0x80, 0x03, 0xfe, 0x00, 0x03, 0x00, 0x00, 0x80, 0x03, 0xfe, 0x00, 0x03, 0x00, 0x00, 0x80, 0x03, 0xfe, 0x00, 0x03, 0x00, 0x00, 0x80, 0x03, 0xfe, 0x80, 0x00, 0x00, 0x00, 0x00, 0x03, 0xfe, 0x80, 0x00, 0x00, 0x00, 0x00, 0x07, 0xfe, 0x80, 0x00, 0x06, 0x00, 0x00, 0x07, 0xfe, 0x80, 0x00, 0x2e, 0x02, 0x00, 0x07, 0xfe, 0x80, 0xc0, 0x7f, 0x0e, 0x03, 0x07, 0xfe, 0x80, 0x80, 0x3b, 0xfe, 0x07, 0x07, 0xfe, 0x60, 0x00, 0x1b, 0x0e, 0x00, 0x04, 0xfe, 0x60, 0x00, 0x5b, 0x0e, 0x02, 0x1c, 0xfe, 0x60, 0xe0, 0xff, 0xfe, 0x07, 0x1c, 0xfe, 0x60, 0x00, 0x00, 0x0c, 0x0e, 0x1c, 0xfe, 0x60, 0xc0, 0x30, 0x00, 0x0e, 0x1c, 0xfe, 0x60, 0xc0, 0x7f, 0x06, 0x0e, 0x1c, 0xfe, 0x10, 0xc0, 0x71, 0xfe, 0x0f, 0x18, 0xfe, 0x10, 0xc0, 0x71, 0x0e, 0x0c, 0x18, 0xfe, 0x10, 0xc0, 0x71, 0x8e, 0x01, 0x38, 0xfe, 0x10, 0xc0, 0x7f, 0xfe, 0x03, 0x38, 0xfe, 0x10, 0xc0, 0x71, 0x0e, 0x00, 0x38, 0xfe, 0x10, 0xc0, 0x71, 0x8e, 0x01, 0x38, 0xfe, 0x0c, 0xc0, 0x7f, 0xfe, 0x03, 0x20, 0xfe, 0x0c, 0xc0, 0x71, 0x0e, 0x00, 0x20, 0xfe, 0x0c, 0xc0, 0x71, 0x8e, 0x09, 0xe0, 0xfe, 0x0c, 0xc0, 0x71, 0xfe, 0x0b, 0xe0, 0xfe, 0x0c, 0xc0, 0x71, 0x0e, 0x08, 0xe0, 0xfe, 0x0c, 0xc0, 0x71, 0xfe, 0x1f, 0xe0, 0xfe, 0x03, 0x40, 0x60, 0xfc, 0x1f, 0xc0, 0xfe, 0x03, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xfe, 0x03, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; xshogi-1.4.2/eastern_bitmaps/bishopR_m.xbm0000644000175000017500000000350312274270516015561 00000000000000#define bishopR_m_width 49 #define bishopR_m_height 49 static unsigned char bishopR_m_bits[] = { 0xff,0xff,0xff,0xff,0xff,0x7f,0xfe,0xff,0xff,0xff,0xff,0xff,0x7f,0xfe,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x00, 0x00,0x00,0x00,0x80,0xff,0x07,0x00,0x00,0x00,0x00,0x80,0xff,0x07,0x00,0x00, 0x00,0x00,0x80,0xff,0x07,0x00,0x00,0x00,0x00,0x80,0xff,0x06,0x00,0x38,0xc0, 0x01,0x80,0xff,0x06,0x00,0x38,0xc0,0x01,0x80,0xff,0x0e,0x00,0x1c,0xc0,0x01, 0x60,0xfe,0x0e,0x00,0x1c,0xc0,0x01,0x60,0xfe,0x0e,0x00,0x1c,0xc0,0x01,0x60, 0xfe,0x0e,0x00,0x1c,0xc0,0x09,0x60,0xfe,0x08,0x00,0x1c,0xc0,0x07,0x60,0xfe, 0x08,0x00,0x1c,0xc0,0x07,0x60,0xfe,0x38,0x80,0xff,0xc7,0x01,0x10,0xfe,0x38, 0x00,0x00,0xc0,0x08,0x10,0xfe,0x38,0x00,0x00,0xc0,0x08,0x10,0xfe,0x38,0x00, 0x00,0x20,0x06,0x10,0xfe,0x30,0x00,0xff,0x03,0x01,0x10,0xfe,0x30,0x00,0xff, 0x03,0x01,0x10,0xfe,0x70,0x00,0x00,0x00,0x00,0x0c,0xfe,0x70,0x00,0x00,0x00, 0x00,0x0c,0xfe,0x70,0x00,0x00,0x00,0x00,0x0c,0xfe,0x70,0x00,0x3c,0x00,0x07, 0x0c,0xfe,0x70,0x00,0x3c,0x00,0x07,0x0c,0xfe,0x40,0x00,0x1c,0xc0,0x01,0x0c, 0xfe,0xc0,0x01,0xfc,0xff,0x01,0x02,0xfe,0xc0,0x01,0xfc,0xff,0x01,0x02,0xfe, 0xc0,0x01,0x1c,0xc7,0x01,0x02,0xfe,0xc0,0x01,0xfc,0xff,0x01,0x02,0xfe,0xc0, 0x01,0xfc,0xff,0x01,0x02,0xfe,0x80,0x01,0x1c,0xc7,0x01,0x02,0xfe,0x80,0x03, 0xfc,0xff,0x81,0x01,0xfe,0x80,0x03,0xfc,0xff,0x81,0x01,0xfe,0x80,0x03,0xc0, 0x03,0x80,0x01,0xfe,0x80,0x03,0xe0,0xe0,0x80,0x01,0xfe,0x80,0x03,0xe0,0xe0, 0x80,0x01,0xfe,0x00,0x02,0xe0,0x1f,0x80,0x01,0xfe,0x00,0x1c,0x00,0x00,0x70, 0x00,0xfe,0x00,0x1c,0x00,0x00,0x70,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e,0x00, 0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe, 0x00,0x00,0x38,0x38,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00, 0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe}; xshogi-1.4.2/eastern_bitmaps/bigblankR.xbm0000644000175000017500000000136412274270516015535 00000000000000#define bigblankR_width 32 #define bigblankR_height 32 static unsigned char bigblankR_bits[] = { 0xff,0xff,0xff,0x7f,0x01,0x00,0x00,0xc0,0x01,0x00,0x00,0xc0,0x01,0x00,0x00, 0xc0,0x01,0x00,0x00,0xc0,0x02,0x00,0x00,0x60,0x02,0x00,0x00,0x60,0x02,0x00, 0x00,0x60,0x02,0x00,0x00,0x60,0x04,0x00,0x00,0x30,0x04,0x00,0x00,0x30,0x04, 0x00,0x00,0x30,0x04,0x00,0x00,0x30,0x08,0x00,0x00,0x18,0x08,0x00,0x00,0x18, 0x08,0x00,0x00,0x18,0x08,0x00,0x00,0x18,0x10,0x00,0x00,0x0c,0x10,0x00,0x00, 0x0c,0x10,0x00,0x00,0x0c,0x10,0x00,0x00,0x0c,0x20,0x00,0x00,0x06,0x20,0x00, 0x00,0x06,0x20,0x00,0x00,0x06,0x20,0x00,0x00,0x06,0xc0,0x00,0x80,0x03,0x00, 0x03,0xe0,0x01,0x00,0x0c,0x78,0x00,0x00,0x30,0x1e,0x00,0x00,0xc0,0x07,0x00, 0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/lanceP.xbm0000644000175000017500000000135312274270516015042 00000000000000#define lanceP_width 32 #define lanceP_height 32 static unsigned char lanceP_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x00, 0x00,0x00,0x18,0x03,0x00,0x00,0x06,0x0c,0x00,0x80,0x01,0x30,0x00,0x40,0x00, 0x42,0x00,0x40,0xc0,0xc0,0x00,0x40,0xfe,0xc7,0x00,0x20,0xc6,0x80,0x00,0x20, 0x86,0x81,0x01,0x20,0xbe,0x8d,0x01,0x20,0x36,0x87,0x01,0x10,0x36,0x03,0x01, 0x10,0xb6,0x0e,0x03,0x10,0x12,0x04,0x03,0x10,0x00,0x00,0x03,0x08,0x00,0x07, 0x02,0x08,0xf8,0x07,0x06,0x08,0xc0,0x00,0x06,0x08,0xfe,0x1f,0x06,0x04,0xd8, 0x06,0x04,0x04,0xcc,0x0c,0x0c,0x04,0xfe,0x1f,0x0c,0x04,0x1b,0x36,0x0c,0x02, 0xf8,0x07,0x08,0x02,0x18,0x06,0x18,0x02,0xf8,0x07,0x18,0x02,0x00,0x00,0x18, 0xfe,0xff,0xff,0x1f,0xfc,0xff,0xff,0x1f}; xshogi-1.4.2/eastern_bitmaps/rookR_m.xbm0000644000175000017500000000347512274270516015257 00000000000000#define rookR_m_width 49 #define rookR_m_height 49 static unsigned char rookR_m_bits[] = { 0xff,0xff,0xff,0xff,0xff,0x7f,0xfe,0xff,0xff,0xff,0xff,0xff,0x7f,0xfe,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x00, 0x00,0x00,0x00,0x80,0xff,0x07,0x00,0x00,0x00,0x00,0x80,0xff,0x07,0x00,0x00, 0x00,0x00,0x80,0xff,0x07,0x00,0x00,0x07,0x00,0x80,0xff,0x06,0x80,0xff,0xff, 0x0f,0x80,0xff,0x06,0x80,0xff,0xff,0x0f,0x80,0xff,0x0e,0x00,0x00,0x07,0x00, 0x60,0xfe,0x0e,0x00,0xfc,0xff,0x01,0x60,0xfe,0x0e,0x00,0xfc,0xff,0x01,0x60, 0xfe,0x0e,0x00,0x1c,0xc7,0x01,0x60,0xfe,0x08,0x00,0xfc,0xff,0x01,0x60,0xfe, 0x08,0x00,0xfc,0xff,0x01,0x60,0xfe,0x38,0x00,0x1c,0xc7,0x01,0x10,0xfe,0x38, 0x00,0xfc,0xff,0x01,0x10,0xfe,0x38,0x00,0xfc,0xff,0x01,0x10,0xfe,0x38,0x00, 0x00,0x07,0x00,0x10,0xfe,0x30,0x00,0xff,0xff,0x07,0x10,0xfe,0x30,0x00,0xff, 0xff,0x07,0x10,0xfe,0x70,0x00,0x00,0x07,0x00,0x0c,0xfe,0x70,0x00,0x00,0x00, 0x00,0x0c,0xfe,0x70,0x00,0x00,0x00,0x00,0x0c,0xfe,0x70,0x80,0x07,0x07,0x01, 0x0c,0xfe,0x70,0x80,0x07,0x07,0x01,0x0c,0xfe,0x40,0x00,0x1c,0xc7,0x00,0x0c, 0xfe,0xc0,0x01,0x1f,0xe7,0x00,0x02,0xfe,0xc0,0x01,0x1f,0xe7,0x00,0x02,0xfe, 0xc0,0x81,0x1c,0xe7,0x00,0x02,0xfe,0xc0,0x01,0xfc,0xff,0x07,0x02,0xfe,0xc0, 0x01,0xfc,0xff,0x07,0x02,0xfe,0x80,0x81,0x07,0xe7,0x00,0x02,0xfe,0x80,0x03, 0x1c,0xe7,0x81,0x01,0xfe,0x80,0x03,0x1c,0xe7,0x81,0x01,0xfe,0x80,0x03,0x1f, 0x07,0x80,0x01,0xfe,0x80,0x83,0xfc,0xff,0x81,0x01,0xfe,0x80,0x83,0xfc,0xff, 0x81,0x01,0xfe,0x00,0x02,0x00,0x00,0x80,0x01,0xfe,0x00,0x1c,0x00,0x00,0x70, 0x00,0xfe,0x00,0x1c,0x00,0x00,0x70,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e,0x00, 0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe, 0x00,0x00,0x38,0x38,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00, 0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe}; xshogi-1.4.2/eastern_bitmaps/king_m.xbm0000644000175000017500000000347212274270516015110 00000000000000#define king_m_width 49 #define king_m_height 49 static unsigned char king_m_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00, 0x38,0x38,0x00,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0x00,0x07, 0xc0,0x01,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e,0x00,0xfe,0x00,0x1c,0x00,0x00, 0x70,0x00,0xfe,0x00,0x1c,0x00,0x00,0x70,0x00,0xfe,0x00,0x03,0x00,0x00,0x80, 0x00,0xfe,0x00,0x03,0xff,0x7f,0x80,0x03,0xfe,0x00,0x03,0xff,0x7f,0x80,0x03, 0xfe,0x00,0x03,0xc0,0x01,0x80,0x03,0xfe,0x00,0x03,0xc0,0x01,0x80,0x03,0xfe, 0x00,0x03,0xc0,0x01,0x80,0x03,0xfe,0x80,0x00,0xc0,0x01,0x00,0x03,0xfe,0x80, 0x00,0xff,0x7f,0x00,0x07,0xfe,0x80,0x00,0xff,0x7f,0x00,0x07,0xfe,0x80,0x00, 0xc0,0x01,0x00,0x07,0xfe,0x80,0x00,0xc0,0x01,0x00,0x07,0xfe,0x80,0x00,0xc0, 0x01,0x00,0x07,0xfe,0x60,0x00,0xc0,0x01,0x00,0x04,0xfe,0x60,0xc0,0xff,0xff, 0x01,0x1c,0xfe,0x60,0xc0,0xff,0xff,0x01,0x1c,0xfe,0x60,0x00,0x00,0x00,0x00, 0x1c,0xfe,0x60,0x00,0x00,0x00,0x00,0x1c,0xfe,0x60,0x00,0x00,0xf0,0x03,0x1c, 0xfe,0x10,0xc0,0xce,0x0f,0x02,0x18,0xfe,0x10,0xc0,0xce,0x0f,0x02,0x18,0xfe, 0x10,0xc0,0x4e,0xb8,0x03,0x38,0xfe,0x10,0xc0,0xce,0xb1,0x01,0x38,0xfe,0x10, 0xc0,0xce,0xb1,0x01,0x38,0xfe,0x10,0xe0,0x8f,0x01,0x00,0x38,0xfe,0x0c,0x00, 0x0e,0xc0,0x01,0x20,0xfe,0x0c,0x00,0x0e,0xc0,0x01,0x20,0xfe,0x0c,0xe0,0xcf, 0xff,0x0f,0xe0,0xfe,0x0c,0xc0,0x0e,0xc0,0x01,0xe0,0xfe,0x0c,0xc0,0x0e,0xc0, 0x01,0xe0,0xfe,0x0c,0xc0,0x8e,0xc1,0x01,0xe0,0xfe,0x03,0x20,0x0e,0xc6,0x01, 0xc0,0xfe,0x03,0x20,0x0e,0xc6,0x01,0xc0,0xfe,0x03,0x20,0x0e,0x70,0x00,0xc0, 0xff,0x03,0x00,0x00,0x00,0x00,0xc0,0xff,0x03,0x00,0x00,0x00,0x00,0xc0,0xff, 0x03,0x00,0x00,0x00,0x00,0xc0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xfc,0xff,0xff,0xff,0xff,0xff,0xff}; xshogi-1.4.2/eastern_bitmaps/smalllight.xbm0000644000175000017500000000167612274270516016010 00000000000000#define smalllight_width 32 #define smalllight_height 32 #define smalllight_x_hot -1 #define smalllight_y_hot -1 static unsigned char smalllight_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; xshogi-1.4.2/eastern_bitmaps/bishopR_l.xbm0000644000175000017500000000627212274270516015566 00000000000000#define bishopR_l_width 64 #define bishopR_l_height 64 static unsigned char bishopR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0xc0, 0x00, 0x80, 0x00, 0x00, 0x20, 0x48, 0x00, 0xe0, 0x03, 0x80, 0x01, 0x00, 0x20, 0x48, 0x00, 0x60, 0x07, 0x80, 0x01, 0x00, 0x20, 0x48, 0x00, 0x60, 0x0e, 0x80, 0x01, 0x00, 0x20, 0x48, 0x00, 0x60, 0x18, 0x80, 0x01, 0x00, 0x10, 0x48, 0x00, 0x60, 0x30, 0x80, 0x19, 0x00, 0x10, 0x88, 0x00, 0x60, 0x00, 0x80, 0x0f, 0x00, 0x10, 0x90, 0x00, 0x40, 0x00, 0x00, 0x07, 0x00, 0x10, 0x90, 0x00, 0x40, 0xf0, 0x81, 0x03, 0x00, 0x10, 0x90, 0x00, 0xe0, 0xff, 0xc1, 0x01, 0x00, 0x10, 0x90, 0x00, 0xf0, 0x1f, 0xe0, 0x18, 0x00, 0x08, 0x90, 0x00, 0x00, 0x00, 0x78, 0x0c, 0x00, 0x08, 0x10, 0x01, 0x80, 0xff, 0x78, 0x07, 0x00, 0x08, 0x10, 0x01, 0x80, 0x7f, 0xa0, 0x03, 0x00, 0x08, 0x20, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x08, 0x20, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x08, 0x20, 0x01, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x04, 0x20, 0x02, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x20, 0x02, 0x00, 0x0c, 0xf8, 0x01, 0x00, 0x04, 0x40, 0x02, 0x00, 0xfc, 0xbf, 0x01, 0x00, 0x04, 0x40, 0x02, 0x00, 0xfc, 0x87, 0x01, 0x00, 0x02, 0x40, 0x02, 0x00, 0x0c, 0xf6, 0x01, 0x00, 0x02, 0x40, 0x02, 0x00, 0xdc, 0xff, 0x01, 0x00, 0x02, 0x40, 0x02, 0x00, 0xfc, 0x87, 0x01, 0x00, 0x02, 0x40, 0x04, 0x00, 0x0c, 0xc6, 0x01, 0x00, 0x02, 0x80, 0x04, 0x00, 0x8c, 0xff, 0x00, 0x00, 0x02, 0x80, 0x04, 0x00, 0xf8, 0xff, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x00, 0x04, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x00, 0x07, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0x80, 0x63, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0xc0, 0x71, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0xc0, 0x3f, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0xc0, 0x1b, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x08, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x80, 0x07, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0xe0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/silverPR_l.xbm0000644000175000017500000000627512274270516015731 00000000000000#define silverPR_l_width 64 #define silverPR_l_height 64 static unsigned char silverPR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x20, 0x48, 0x00, 0xfc, 0xff, 0xff, 0x0f, 0x00, 0x20, 0x48, 0x00, 0xfc, 0xff, 0xff, 0x01, 0x00, 0x20, 0x48, 0x00, 0xf8, 0x83, 0x03, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x10, 0x88, 0x00, 0x00, 0x80, 0xc0, 0x01, 0x00, 0x10, 0x90, 0x00, 0x00, 0x80, 0xff, 0x01, 0x00, 0x10, 0x90, 0x00, 0x80, 0xff, 0x7f, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0xbf, 0x01, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0x80, 0xfe, 0x01, 0x00, 0x08, 0x10, 0x01, 0x00, 0xf8, 0x7f, 0x00, 0x00, 0x08, 0x10, 0x01, 0x00, 0x9c, 0x00, 0x00, 0x00, 0x08, 0x20, 0x01, 0x1f, 0x80, 0x01, 0x78, 0x00, 0x08, 0x20, 0x01, 0x3e, 0x80, 0x7f, 0x0c, 0x00, 0x08, 0x20, 0x01, 0xfc, 0xf0, 0x0f, 0x07, 0x00, 0x04, 0x20, 0x01, 0xf0, 0x39, 0x80, 0x03, 0x00, 0x04, 0x20, 0x01, 0xc0, 0x03, 0xc0, 0x00, 0x00, 0x04, 0x20, 0x02, 0x00, 0x07, 0x60, 0x00, 0x00, 0x04, 0x20, 0x02, 0x00, 0x0e, 0x38, 0x00, 0x00, 0x04, 0x40, 0x02, 0x00, 0x18, 0x1c, 0x00, 0x00, 0x04, 0x40, 0x02, 0x00, 0x30, 0x0e, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x60, 0x07, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0xe0, 0x07, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x80, 0x03, 0x00, 0x00, 0x02, 0x40, 0x04, 0x00, 0x80, 0x03, 0x00, 0x00, 0x02, 0x80, 0x04, 0x00, 0xc0, 0x03, 0x00, 0x00, 0x02, 0x80, 0x04, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x80, 0x07, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0xe0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/lancePR.xbm0000644000175000017500000000135612274270516015167 00000000000000#define lancePR_width 32 #define lancePR_height 32 static unsigned char lancePR_bits[] = { 0xfc,0xff,0xff,0x1f,0x04,0x00,0x00,0x30,0x04,0xf8,0x07,0x30,0x04,0x18,0x06, 0x30,0x04,0xf8,0x07,0x30,0x08,0x1b,0x36,0x18,0x08,0xfe,0x1f,0x18,0x08,0xcc, 0x0c,0x18,0x08,0xd8,0x06,0x18,0x10,0xfe,0x1f,0x0c,0x10,0xc0,0x00,0x0c,0x10, 0xf8,0x07,0x0c,0x10,0x38,0x00,0x0c,0x20,0x00,0x00,0x06,0x20,0x08,0x13,0x06, 0x20,0x5c,0x1b,0x06,0x20,0x30,0x1b,0x06,0x40,0x38,0x1b,0x03,0x40,0x6c,0x1f, 0x03,0x40,0x60,0x18,0x03,0x40,0xc0,0x18,0x03,0x80,0xf8,0x9f,0x01,0x80,0xc0, 0x80,0x01,0x80,0x10,0x80,0x01,0x00,0x03,0xe0,0x00,0x00,0x0c,0x78,0x00,0x00, 0x30,0x1e,0x00,0x00,0xc0,0x07,0x00,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/rookR_l.xbm0000644000175000017500000000626412274270516015255 00000000000000#define rookR_l_width 64 #define rookR_l_height 64 static unsigned char rookR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x20, 0x48, 0x00, 0xc0, 0xff, 0xff, 0x03, 0x00, 0x10, 0x48, 0x00, 0x80, 0xff, 0x3f, 0x07, 0x00, 0x10, 0x88, 0x00, 0x00, 0x00, 0x03, 0x04, 0x00, 0x10, 0x90, 0x00, 0x00, 0xfc, 0x7f, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0x3c, 0x63, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0x06, 0xe3, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0xfe, 0xff, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0x03, 0xc1, 0x01, 0x00, 0x08, 0x10, 0x01, 0x00, 0x07, 0xc1, 0x01, 0x00, 0x08, 0x10, 0x01, 0x00, 0xff, 0x7f, 0x01, 0x00, 0x08, 0x20, 0x01, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08, 0x20, 0x01, 0x00, 0xf8, 0x1f, 0x00, 0x00, 0x08, 0x20, 0x01, 0x00, 0xf0, 0x3f, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x20, 0x02, 0xe0, 0x07, 0x00, 0x00, 0x00, 0x04, 0x20, 0x02, 0xf0, 0x0f, 0x0c, 0x0e, 0x00, 0x04, 0x40, 0x02, 0x10, 0x18, 0x1e, 0x03, 0x00, 0x04, 0x40, 0x02, 0x90, 0x31, 0xa6, 0x01, 0x00, 0x02, 0x40, 0x02, 0x30, 0x37, 0xc6, 0x00, 0x00, 0x02, 0x40, 0x02, 0x10, 0x3e, 0xc6, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x33, 0x46, 0x00, 0x00, 0x02, 0x40, 0x04, 0x80, 0x31, 0xf6, 0x0f, 0x00, 0x02, 0x80, 0x04, 0x00, 0x60, 0xff, 0x1d, 0x00, 0x02, 0x80, 0x04, 0xe0, 0xef, 0x6f, 0x00, 0x00, 0x01, 0x80, 0x04, 0xf0, 0xdf, 0x67, 0x08, 0x00, 0x01, 0x80, 0x04, 0x30, 0x18, 0xe6, 0x0f, 0x00, 0x01, 0x80, 0x04, 0xb0, 0x11, 0xe6, 0x07, 0x00, 0x01, 0x80, 0x08, 0xa0, 0x33, 0x06, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0x36, 0x04, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0x3c, 0xc0, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0xee, 0x7f, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0xe3, 0x0f, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0xe0, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x80, 0x07, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0xe0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/bishop.xbm0000644000175000017500000000135312274270516015124 00000000000000#define bishop_width 32 #define bishop_height 32 static unsigned char bishop_bits[] = { 0x00,0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x30,0x06,0x00,0x00,0x0c,0x18, 0x00,0x00,0x03,0x60,0x00,0xc0,0x00,0x80,0x01,0x20,0xe0,0x03,0x02,0x20,0x18, 0x03,0x06,0x20,0x80,0x01,0x06,0x20,0xfc,0x0f,0x06,0x10,0xcc,0x0c,0x04,0x10, 0xfc,0x0f,0x0c,0x10,0xcc,0x0c,0x0c,0x10,0xfc,0x0f,0x0c,0x08,0x0c,0x0c,0x08, 0x08,0x06,0x0e,0x18,0x08,0x00,0x00,0x18,0x08,0x00,0x00,0x18,0x04,0x84,0x1f, 0x10,0x04,0x12,0x00,0x30,0x04,0x09,0x00,0x30,0x04,0xcc,0x3f,0x30,0x02,0x0e, 0x0c,0x20,0x02,0x0d,0x0c,0x60,0x02,0x0c,0x0c,0x60,0x02,0x0c,0x0c,0x60,0x01, 0x0c,0x06,0x40,0x01,0x00,0x00,0xc0,0x01,0x00,0x00,0xc0,0x01,0x00,0x00,0xc0, 0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff}; xshogi-1.4.2/eastern_bitmaps/pawnPR_l.xbm0000644000175000017500000000626712274270516015373 00000000000000#define pawnPR_l_width 64 #define pawnPR_l_height 64 static unsigned char pawnPR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x04, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x20, 0x04, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0xc0, 0x0f, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0xf0, 0x1f, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0xf0, 0x1f, 0x00, 0x40, 0x00, 0x40, 0x08, 0x00, 0x60, 0x38, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x30, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x30, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x18, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x1c, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x3e, 0x00, 0x20, 0x00, 0x80, 0x10, 0x00, 0x80, 0x7f, 0x00, 0x10, 0x00, 0x80, 0x10, 0x00, 0xe0, 0x77, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0xf0, 0xe1, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x78, 0xe0, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x18, 0xe0, 0x01, 0x10, 0x00, 0x00, 0x11, 0x00, 0x00, 0xe0, 0x01, 0x10, 0x00, 0x00, 0x11, 0x00, 0x00, 0xc0, 0x00, 0x10, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/silver_l.xbm0000644000175000017500000000626712274270516015470 00000000000000#define silver_l_width 64 #define silver_l_height 64 static unsigned char silver_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x81, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x01, 0x3c, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xc0, 0x01, 0xc0, 0x03, 0x00, 0x00, 0x1c, 0x00, 0x3c, 0x1e, 0x00, 0x1c, 0x00, 0x00, 0x04, 0xc0, 0x03, 0xe0, 0x01, 0x10, 0x00, 0x00, 0x06, 0x38, 0x00, 0x00, 0x0e, 0x60, 0x00, 0x00, 0x8a, 0x07, 0x00, 0x00, 0xf0, 0x40, 0x00, 0x00, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x4f, 0x00, 0x00, 0x12, 0x00, 0x02, 0x02, 0x00, 0x70, 0x00, 0x00, 0x12, 0x00, 0x03, 0x3b, 0x00, 0x80, 0x00, 0x00, 0x11, 0x80, 0x07, 0x7f, 0x00, 0x80, 0x00, 0x00, 0x11, 0xc0, 0x0c, 0x43, 0x00, 0x80, 0x00, 0x00, 0x09, 0x60, 0x18, 0x7b, 0x00, 0x80, 0x00, 0x00, 0x09, 0x30, 0x00, 0x4f, 0x00, 0x80, 0x00, 0x00, 0x09, 0x80, 0x0f, 0x62, 0x00, 0x80, 0x00, 0x00, 0x09, 0xc0, 0x03, 0x3e, 0x06, 0x80, 0x00, 0x00, 0x09, 0x00, 0x1a, 0x1e, 0x06, 0x00, 0x01, 0x80, 0x08, 0xc0, 0x07, 0x32, 0x03, 0x00, 0x01, 0x80, 0x08, 0x00, 0x1a, 0xe2, 0x00, 0x00, 0x01, 0x80, 0x04, 0xe0, 0x07, 0xeb, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x32, 0xcf, 0x00, 0x00, 0x01, 0x80, 0x04, 0xe0, 0x1f, 0xc7, 0x01, 0x00, 0x01, 0x80, 0x04, 0xf0, 0x0f, 0x81, 0x03, 0x00, 0x01, 0x80, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x40, 0x04, 0x00, 0x04, 0x10, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x06, 0x18, 0x00, 0x00, 0x02, 0x40, 0x02, 0x80, 0x06, 0x1e, 0x00, 0x00, 0x02, 0x40, 0x02, 0x80, 0xc6, 0x07, 0x00, 0x00, 0x02, 0x40, 0x02, 0xc0, 0x86, 0x03, 0x00, 0x00, 0x02, 0x40, 0x02, 0xc0, 0x04, 0x3a, 0x00, 0x00, 0x04, 0x20, 0x02, 0x60, 0x0f, 0x7e, 0x00, 0x00, 0x04, 0x20, 0x02, 0xe0, 0xdf, 0x66, 0x00, 0x00, 0x04, 0x20, 0x01, 0x20, 0xde, 0x60, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0x94, 0x38, 0x00, 0x00, 0x04, 0x20, 0x01, 0xf0, 0x05, 0x3e, 0x00, 0x00, 0x04, 0x20, 0x01, 0xf8, 0x04, 0x06, 0x00, 0x00, 0x08, 0x20, 0x01, 0x20, 0x06, 0x60, 0x00, 0x00, 0x08, 0x10, 0x01, 0x30, 0xc6, 0xff, 0x0f, 0x00, 0x08, 0x10, 0x01, 0x30, 0xc6, 0xe7, 0x07, 0x00, 0x08, 0x90, 0x00, 0x38, 0x06, 0x64, 0x00, 0x00, 0x08, 0x90, 0x00, 0x18, 0x06, 0xc6, 0x00, 0x00, 0x08, 0x90, 0x00, 0xc0, 0x06, 0xc7, 0x00, 0x00, 0x10, 0x90, 0x00, 0x80, 0x07, 0xc3, 0x00, 0x00, 0x10, 0x90, 0x00, 0x80, 0x03, 0xd0, 0x00, 0x00, 0x10, 0x88, 0x00, 0x00, 0x01, 0xf0, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/bigsolidR_m.xbm0000644000175000017500000000351112274270516016070 00000000000000#define bigsolidR_m_width 49 #define bigsolidR_m_height 49 static unsigned char bigsolidR_m_bits[] = { 0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfc,0xff,0xff,0xff, 0xff,0xff,0xfe,0xfc,0xff,0xff,0xff,0xff,0xff,0xfe,0xfc,0xff,0xff,0xff,0xff, 0xff,0xfe,0xfc,0xff,0xff,0xff,0xff,0xff,0xfe,0xfc,0xff,0xff,0xff,0xff,0xff, 0xfe,0xfc,0xff,0xff,0xff,0xff,0xff,0xfe,0xf0,0xff,0xff,0xff,0xff,0x3f,0xfe, 0xf0,0xff,0xff,0xff,0xff,0x3f,0xfe,0xf0,0xff,0xff,0xff,0xff,0x3f,0xfe,0xf0, 0xff,0xff,0xff,0xff,0x3f,0xfe,0xf0,0xff,0xff,0xff,0xff,0x3f,0xfe,0xf0,0xff, 0xff,0xff,0xff,0x3f,0xfe,0xe0,0xff,0xff,0xff,0xff,0x1f,0xfe,0xe0,0xff,0xff, 0xff,0xff,0x1f,0xfe,0xe0,0xff,0xff,0xff,0xff,0x1f,0xfe,0xe0,0xff,0xff,0xff, 0xff,0x1f,0xfe,0xe0,0xff,0xff,0xff,0xff,0x1f,0xfe,0xe0,0xff,0xff,0xff,0xff, 0x1f,0xfe,0xe0,0xff,0xff,0xff,0xff,0x1f,0xfe,0x80,0xff,0xff,0xff,0xff,0x07, 0xfe,0x80,0xff,0xff,0xff,0xff,0x07,0xfe,0x80,0xff,0xff,0xff,0xff,0x07,0xfe, 0x80,0xff,0xff,0xff,0xff,0x07,0xfe,0x80,0xff,0xff,0xff,0xff,0x07,0xfe,0x80, 0xff,0xff,0xff,0xff,0x07,0xfe,0x00,0xff,0xff,0xff,0xff,0x03,0xfe,0x00,0xff, 0xff,0xff,0xff,0x03,0xfe,0x00,0xff,0xff,0xff,0xff,0x03,0xfe,0x00,0xff,0xff, 0xff,0xff,0x03,0xfe,0x00,0xff,0xff,0xff,0xff,0x03,0xfe,0x00,0xff,0xff,0xff, 0xff,0x03,0xfe,0x00,0xfc,0xff,0xff,0xff,0x00,0xfe,0x00,0xe0,0xff,0xff,0x7f, 0x00,0xfe,0x00,0xe0,0xff,0xff,0x7f,0x00,0xfe,0x00,0x00,0xff,0xff,0x0f,0x00, 0xfe,0x00,0x00,0xf8,0xff,0x01,0x00,0xfe,0x00,0x00,0xf8,0xff,0x01,0x00,0xfe, 0x00,0x00,0xc0,0x3f,0x00,0x00,0xfe,0x00,0x00,0x80,0x07,0x00,0x00,0xfe,0x00, 0x00,0x80,0x07,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe}; xshogi-1.4.2/eastern_bitmaps/smallsolidR.xbm0000644000175000017500000000137212274270516016126 00000000000000#define smallsolidR_width 32 #define smallsolidR_height 32 static unsigned char smallsolidR_bits[] = { 0xfc,0xff,0xff,0x1f,0xfc,0xff,0xff,0x3f,0xfc,0xff,0xff,0x3f,0xfc,0xff,0xff, 0x3f,0xfc,0xff,0xff,0x3f,0xf8,0xff,0xff,0x1f,0xf8,0xff,0xff,0x1f,0xf8,0xff, 0xff,0x1f,0xf8,0xff,0xff,0x1f,0xf0,0xff,0xff,0x0f,0xf0,0xff,0xff,0x0f,0xf0, 0xff,0xff,0x0f,0xf0,0xff,0xff,0x0f,0xe0,0xff,0xff,0x07,0xe0,0xff,0xff,0x07, 0xe0,0xff,0xff,0x07,0xe0,0xff,0xff,0x07,0xc0,0xff,0xff,0x03,0xc0,0xff,0xff, 0x03,0xc0,0xff,0xff,0x03,0xc0,0xff,0xff,0x03,0x80,0xff,0xff,0x01,0x80,0xff, 0xff,0x01,0x80,0xff,0xff,0x01,0x00,0xff,0xff,0x00,0x00,0xfc,0x7f,0x00,0x00, 0xf0,0x1f,0x00,0x00,0xc0,0x07,0x00,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/bishopPR_m.xbm0000644000175000017500000000350612274270516015704 00000000000000#define bishopPR_m_width 49 #define bishopPR_m_height 49 static unsigned char bishopPR_m_bits[] = { 0xff,0xff,0xff,0xff,0xff,0x7f,0xfe,0xff,0xff,0xff,0xff,0xff,0x7f,0xfe,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x00, 0x00,0x00,0x00,0x80,0xff,0x07,0x00,0x00,0x00,0x00,0x80,0xff,0x07,0x00,0x00, 0x00,0x00,0x80,0xff,0x07,0x00,0xdb,0x3b,0x07,0x80,0xff,0x06,0x80,0x03,0x00, 0x00,0x80,0xff,0x06,0x80,0x03,0x00,0x00,0x80,0xff,0x0e,0x80,0xff,0xff,0x01, 0x60,0xfe,0x0e,0x00,0x00,0xc7,0x01,0x60,0xfe,0x0e,0x00,0x00,0xc7,0x01,0x60, 0xfe,0x0e,0x00,0xfc,0xff,0x01,0x60,0xfe,0x08,0x00,0x00,0xc7,0x01,0x60,0xfe, 0x08,0x00,0x00,0xc7,0x01,0x60,0xfe,0x38,0x00,0xfc,0xff,0x01,0x10,0xfe,0x38, 0x00,0x00,0xc7,0x01,0x10,0xfe,0x38,0x00,0x00,0xc7,0x01,0x10,0xfe,0x38,0x00, 0xff,0xff,0x01,0x10,0xfe,0x30,0x00,0x00,0x00,0x00,0x10,0xfe,0x30,0x00,0x00, 0x00,0x00,0x10,0xfe,0x70,0x80,0x3f,0x1c,0x06,0x0c,0xfe,0x70,0x80,0xff,0xfc, 0x07,0x0c,0xfe,0x70,0x80,0xff,0xfc,0x07,0x0c,0xfe,0x70,0x00,0xe0,0x1c,0x07, 0x0c,0xfe,0x70,0x00,0xe0,0x1c,0x07,0x0c,0xfe,0x40,0x80,0xff,0xfc,0x07,0x0c, 0xfe,0xc0,0x01,0xe0,0x1c,0x07,0x02,0xfe,0xc0,0x01,0xe0,0x1c,0x07,0x02,0xfe, 0xc0,0x81,0xff,0xfc,0x07,0x02,0xfe,0xc0,0x81,0x03,0x00,0x00,0x02,0xfe,0xc0, 0x81,0x03,0x00,0x00,0x02,0xfe,0x80,0x81,0xff,0xfc,0x07,0x02,0xfe,0x80,0x03, 0xe0,0x38,0x81,0x01,0xfe,0x80,0x03,0xe0,0x38,0x81,0x01,0xfe,0x80,0x03,0xff, 0xfc,0x87,0x01,0xfe,0x80,0x03,0xe0,0xc0,0x80,0x01,0xfe,0x80,0x03,0xe0,0xc0, 0x80,0x01,0xfe,0x00,0x02,0x00,0x00,0x80,0x01,0xfe,0x00,0x1c,0x00,0x00,0x70, 0x00,0xfe,0x00,0x1c,0x00,0x00,0x70,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e,0x00, 0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe, 0x00,0x00,0x38,0x38,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00, 0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe}; xshogi-1.4.2/eastern_bitmaps/rookP_l.top.xbm0000644000175000017500000000633512274270516016053 00000000000000#define rookP_l_width 64 #define rookP_l_height 64 static unsigned char rookP_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x00, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x00, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0xc0, 0x03, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0xc0, 0x03, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x03, 0xc0, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x03, 0xc0, 0x01, 0x01, 0x00, 0xf0, 0x00, 0x00, 0x03, 0xc0, 0x05, 0x03, 0x00, 0xf0, 0x00, 0x00, 0x03, 0xfe, 0x0f, 0x07, 0x01, 0xf0, 0x00, 0x00, 0x03, 0xfc, 0x1f, 0xff, 0x03, 0xf0, 0x00, 0x00, 0x03, 0x30, 0x06, 0xff, 0x03, 0xf0, 0x00, 0xc0, 0x00, 0x30, 0x02, 0x07, 0x00, 0xc0, 0x00, 0xc0, 0x00, 0x20, 0x13, 0x07, 0x06, 0xc0, 0x00, 0xc0, 0x00, 0xff, 0x3f, 0xff, 0x0f, 0xc0, 0x03, 0xc0, 0x00, 0xfe, 0x3f, 0xff, 0x0f, 0xc0, 0x03, 0xc0, 0x00, 0x00, 0x00, 0x06, 0x0e, 0xc0, 0x03, 0xc0, 0x00, 0x0c, 0x0c, 0x00, 0x0e, 0xc0, 0x03, 0xc0, 0x00, 0xfc, 0x0f, 0x03, 0x0e, 0xc0, 0x03, 0xc0, 0x00, 0xfc, 0x1f, 0xff, 0x0f, 0xc0, 0x03, 0x30, 0x00, 0x1c, 0x1c, 0xff, 0x0f, 0x00, 0x03, 0x30, 0x00, 0x1c, 0x1c, 0x07, 0x0e, 0x00, 0x03, 0x30, 0x00, 0x1c, 0x1c, 0x87, 0x00, 0x00, 0x0f, 0x30, 0x00, 0xfc, 0x1f, 0xff, 0x01, 0x00, 0x0f, 0x30, 0x00, 0xfc, 0x1f, 0xff, 0x03, 0x00, 0x0f, 0x30, 0x00, 0x1c, 0x1c, 0x07, 0x00, 0x00, 0x0f, 0x30, 0x00, 0x1c, 0x1c, 0x87, 0x00, 0x00, 0x0f, 0x30, 0x00, 0x1c, 0x1c, 0xff, 0x01, 0x00, 0x0f, 0x0c, 0x00, 0xfc, 0x1f, 0xff, 0x03, 0x00, 0x0c, 0x0c, 0x00, 0xfc, 0x1f, 0x07, 0x00, 0x00, 0x0c, 0x0c, 0x00, 0x1c, 0x1c, 0x87, 0x00, 0x00, 0x3c, 0x0c, 0x00, 0x1c, 0x1c, 0xff, 0x09, 0x00, 0x3c, 0x0c, 0x00, 0x1c, 0x1c, 0xff, 0x1b, 0x00, 0x3c, 0x0c, 0x00, 0x1c, 0x1c, 0x07, 0x18, 0x00, 0x3c, 0x0c, 0x00, 0x1c, 0x1e, 0x0f, 0x3c, 0x00, 0x3c, 0x0c, 0x00, 0x1c, 0x1c, 0xff, 0x3f, 0x00, 0x3c, 0x03, 0x00, 0x04, 0x18, 0xfe, 0x3f, 0x00, 0x30, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; xshogi-1.4.2/eastern_bitmaps/bigsolidR.xbm0000644000175000017500000000136412274270516015560 00000000000000#define bigsolidR_width 32 #define bigsolidR_height 32 static unsigned char bigsolidR_bits[] = { 0xff,0xff,0xff,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0x7f,0xfe,0xff,0xff,0x7f,0xfe,0xff, 0xff,0x7f,0xfe,0xff,0xff,0x7f,0xfc,0xff,0xff,0x3f,0xfc,0xff,0xff,0x3f,0xfc, 0xff,0xff,0x3f,0xfc,0xff,0xff,0x3f,0xf8,0xff,0xff,0x1f,0xf8,0xff,0xff,0x1f, 0xf8,0xff,0xff,0x1f,0xf8,0xff,0xff,0x1f,0xf0,0xff,0xff,0x0f,0xf0,0xff,0xff, 0x0f,0xf0,0xff,0xff,0x0f,0xf0,0xff,0xff,0x0f,0xe0,0xff,0xff,0x07,0xe0,0xff, 0xff,0x07,0xe0,0xff,0xff,0x07,0xe0,0xff,0xff,0x07,0xc0,0xff,0xff,0x03,0x00, 0xff,0xff,0x01,0x00,0xfc,0x7f,0x00,0x00,0xf0,0x1f,0x00,0x00,0xc0,0x07,0x00, 0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/kingR_l.xbm0000644000175000017500000000626412274270516015233 00000000000000#define kingR_l_width 64 #define kingR_l_height 64 static unsigned char kingR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xe4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x0f, 0x80, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x0b, 0xc0, 0x01, 0x00, 0x20, 0x48, 0x00, 0x00, 0xc3, 0xe0, 0x01, 0x00, 0x20, 0x48, 0x00, 0x00, 0xe3, 0x60, 0x03, 0x00, 0x10, 0x48, 0x00, 0x00, 0x63, 0x60, 0x18, 0x00, 0x10, 0x88, 0x00, 0x00, 0x26, 0x60, 0x1c, 0x00, 0x10, 0x90, 0x00, 0xe0, 0xe7, 0x63, 0x0c, 0x00, 0x10, 0x90, 0x00, 0xf0, 0xff, 0x63, 0x0c, 0x00, 0x10, 0x90, 0x00, 0x00, 0x06, 0x60, 0x04, 0x00, 0x10, 0x90, 0x00, 0x00, 0x60, 0x20, 0x1f, 0x00, 0x08, 0x90, 0x00, 0x00, 0x7c, 0xa0, 0x0f, 0x00, 0x08, 0x10, 0x01, 0x00, 0x1c, 0x21, 0x00, 0x00, 0x08, 0x10, 0x01, 0x00, 0x06, 0x23, 0x0c, 0x00, 0x08, 0x20, 0x01, 0x00, 0x66, 0xe3, 0x1f, 0x00, 0x08, 0x20, 0x01, 0x00, 0x7e, 0xe0, 0x06, 0x00, 0x08, 0x20, 0x01, 0x00, 0x5c, 0x20, 0x03, 0x00, 0x04, 0x20, 0x01, 0x00, 0xc0, 0x61, 0x03, 0x00, 0x04, 0x20, 0x01, 0x00, 0xe0, 0x63, 0x01, 0x00, 0x04, 0x20, 0x02, 0x00, 0x78, 0x60, 0x01, 0x00, 0x04, 0x20, 0x02, 0x00, 0x18, 0x60, 0x00, 0x00, 0x04, 0x40, 0x02, 0x00, 0x08, 0x20, 0x00, 0x00, 0x04, 0x40, 0x02, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x02, 0x40, 0x02, 0x80, 0xff, 0xff, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0xfe, 0x1f, 0x00, 0x00, 0x02, 0x40, 0x02, 0x00, 0x80, 0x01, 0x00, 0x00, 0x02, 0x40, 0x04, 0x00, 0x80, 0x01, 0x00, 0x00, 0x02, 0x80, 0x04, 0x00, 0x80, 0x01, 0x00, 0x00, 0x02, 0x80, 0x04, 0x00, 0xe0, 0x3f, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0xf8, 0x0f, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x9c, 0x01, 0x00, 0x00, 0x01, 0x80, 0x04, 0x00, 0x80, 0x01, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0x80, 0x01, 0x00, 0x00, 0x01, 0x80, 0x08, 0x00, 0x80, 0xe3, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0xfe, 0x7f, 0x00, 0x00, 0x01, 0x00, 0x09, 0x00, 0xff, 0x1f, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x02, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x80, 0x07, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x03, 0xe0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/none_l.xbm0000644000175000017500000000523712274270516015117 00000000000000#define none_l_width 64 #define none_l_height 64 static unsigned char none_l_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/eastern_bitmaps/bishopP_l.xbm0000644000175000017500000000627212274270516015564 00000000000000#define bishopP_l_width 64 #define bishopP_l_height 64 static unsigned char bishopP_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x81, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x01, 0x3c, 0x00, 0x00, 0x00, 0xe0, 0x01, 0xc0, 0x01, 0xc0, 0x03, 0x00, 0x00, 0x1c, 0x00, 0x3c, 0x1e, 0x00, 0x1c, 0x00, 0x00, 0x04, 0xc0, 0x03, 0xe0, 0x01, 0x10, 0x00, 0x00, 0x06, 0x38, 0x00, 0x00, 0x0e, 0x60, 0x00, 0x00, 0x8a, 0x07, 0x00, 0x00, 0xf0, 0x40, 0x00, 0x00, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x4f, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x12, 0x60, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x11, 0xc0, 0x00, 0x07, 0x00, 0x80, 0x00, 0x00, 0x11, 0xc0, 0x0c, 0x0f, 0x00, 0x80, 0x00, 0x00, 0x09, 0xf0, 0x0f, 0x0e, 0x00, 0x80, 0x00, 0x00, 0x09, 0xf8, 0x03, 0x0e, 0x00, 0x80, 0x00, 0x00, 0x09, 0xc0, 0x00, 0x0e, 0x00, 0x80, 0x00, 0x00, 0x09, 0xc0, 0x0e, 0x0e, 0x00, 0x80, 0x00, 0x00, 0x09, 0xc0, 0x0f, 0x0e, 0x00, 0x00, 0x01, 0x80, 0x08, 0xc0, 0x01, 0x06, 0x0e, 0x00, 0x01, 0x80, 0x08, 0x00, 0x7c, 0x86, 0x07, 0x00, 0x01, 0x80, 0x04, 0xc0, 0x3f, 0xc6, 0x03, 0x00, 0x01, 0x80, 0x04, 0xfe, 0x1f, 0xf6, 0x01, 0x00, 0x01, 0x80, 0x04, 0xf8, 0x0f, 0x7e, 0x00, 0x00, 0x01, 0x80, 0x04, 0x80, 0x03, 0x3e, 0x00, 0x00, 0x01, 0x80, 0x04, 0xc0, 0x0d, 0x0f, 0x07, 0x00, 0x02, 0x40, 0x04, 0xf0, 0x98, 0x87, 0x07, 0x00, 0x02, 0x40, 0x02, 0x70, 0xd8, 0xcf, 0x01, 0x00, 0x02, 0x40, 0x02, 0x38, 0xfc, 0x68, 0x00, 0x00, 0x02, 0x40, 0x02, 0x1c, 0x3c, 0x0c, 0x1f, 0x00, 0x02, 0x40, 0x02, 0x8c, 0x1f, 0xec, 0x3f, 0x00, 0x02, 0x40, 0x02, 0x8e, 0x19, 0x7e, 0x38, 0x00, 0x04, 0x20, 0x02, 0x87, 0x19, 0x0c, 0x3c, 0x00, 0x04, 0x20, 0x02, 0x81, 0x1b, 0x00, 0x1e, 0x00, 0x04, 0x20, 0x01, 0x00, 0x1e, 0x80, 0x0f, 0x00, 0x04, 0x20, 0x01, 0x00, 0x0c, 0xf0, 0x01, 0x00, 0x04, 0x20, 0x01, 0x00, 0x00, 0x30, 0x00, 0x00, 0x04, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x20, 0x01, 0xc0, 0xfd, 0x3f, 0x00, 0x00, 0x08, 0x10, 0x01, 0xc0, 0xff, 0x7f, 0x00, 0x00, 0x08, 0x10, 0x01, 0xc0, 0x87, 0x03, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0xf8, 0x00, 0x00, 0x00, 0x08, 0x90, 0x00, 0x00, 0x60, 0x1f, 0x00, 0x00, 0x10, 0x90, 0x00, 0x00, 0xf0, 0x1f, 0x00, 0x00, 0x10, 0x90, 0x00, 0xc0, 0x0f, 0x30, 0x00, 0x00, 0x10, 0x88, 0x00, 0xc0, 0x1f, 0x30, 0x00, 0x00, 0x10, 0x48, 0x00, 0xe0, 0x1c, 0x38, 0x00, 0x00, 0x10, 0x48, 0x00, 0xe0, 0x18, 0x1c, 0x00, 0x00, 0x10, 0x48, 0x00, 0xc0, 0xc1, 0x0f, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0xff, 0x0f, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0xfc, 0x03, 0x00, 0x00, 0x20, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/knightR_l.xbm0000644000175000017500000000627212274270516015566 00000000000000#define knightR_l_width 64 #define knightR_l_height 64 static unsigned char knightR_l_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x01, 0x10, 0x02, 0x00, 0x1f, 0x00, 0x00, 0x80, 0x00, 0x10, 0x02, 0x00, 0x1f, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x80, 0x31, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0xc0, 0x31, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0xc0, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x60, 0x38, 0xe7, 0x0e, 0x80, 0x00, 0x20, 0x02, 0x70, 0x38, 0xe7, 0x0e, 0x80, 0x00, 0x20, 0x04, 0x30, 0x70, 0xc6, 0x0c, 0x40, 0x00, 0x20, 0x04, 0x30, 0x60, 0x8c, 0x08, 0x40, 0x00, 0x40, 0x04, 0x70, 0x00, 0x00, 0x00, 0x40, 0x00, 0x40, 0x04, 0xf0, 0x7f, 0x00, 0x00, 0x40, 0x00, 0x40, 0x04, 0xe0, 0xff, 0x7f, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0xfc, 0x6f, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x63, 0x00, 0x40, 0x00, 0x40, 0x08, 0x00, 0xf0, 0x7f, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x63, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0xf0, 0x7f, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x63, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0xe0, 0x7f, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0xf0, 0x5f, 0x00, 0x20, 0x00, 0x80, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x80, 0x10, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x00, 0x40, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x00, 0x62, 0x00, 0x10, 0x00, 0x00, 0x11, 0xe0, 0xff, 0xe3, 0x00, 0x10, 0x00, 0x00, 0x11, 0xe0, 0xff, 0xe1, 0x04, 0x10, 0x00, 0x00, 0x11, 0x40, 0x1c, 0x60, 0x06, 0x10, 0x00, 0x00, 0x21, 0x00, 0x98, 0x61, 0x07, 0x08, 0x00, 0x00, 0x22, 0x00, 0xff, 0xe0, 0x03, 0x08, 0x00, 0x00, 0x22, 0x80, 0x3f, 0xe0, 0x01, 0x08, 0x00, 0x00, 0x22, 0x00, 0xd8, 0xe1, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0xff, 0xe0, 0x00, 0x08, 0x00, 0x00, 0x24, 0x80, 0x3f, 0x60, 0x00, 0x08, 0x00, 0x00, 0x28, 0x00, 0x98, 0x61, 0x0e, 0x08, 0x00, 0x00, 0x48, 0x00, 0xfe, 0xf8, 0x07, 0x04, 0x00, 0x00, 0x50, 0x00, 0xff, 0xf0, 0x03, 0x04, 0x00, 0x00, 0x50, 0x00, 0x18, 0x60, 0x00, 0x04, 0x00, 0x00, 0x60, 0x00, 0x18, 0x60, 0x00, 0x04, 0x00, 0x00, 0xc0, 0x00, 0x18, 0x20, 0x00, 0x06, 0x00, 0x00, 0x00, 0x07, 0x08, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; xshogi-1.4.2/eastern_bitmaps/bigsolid_m.xbm0000644000175000017500000000350612274270516015752 00000000000000#define bigsolid_m_width 49 #define bigsolid_m_height 49 static unsigned char bigsolid_m_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00, 0xf8,0x3f,0x00,0x00,0xfe,0x00,0x00,0xff,0xff,0x01,0x00,0xfe,0x00,0x00,0xff, 0xff,0x01,0x00,0xfe,0x00,0xe0,0xff,0xff,0x0f,0x00,0xfe,0x00,0xfc,0xff,0xff, 0x7f,0x00,0xfe,0x00,0xfc,0xff,0xff,0x7f,0x00,0xfe,0x00,0xff,0xff,0xff,0xff, 0x00,0xfe,0x00,0xff,0xff,0xff,0xff,0x03,0xfe,0x00,0xff,0xff,0xff,0xff,0x03, 0xfe,0x00,0xff,0xff,0xff,0xff,0x03,0xfe,0x00,0xff,0xff,0xff,0xff,0x03,0xfe, 0x00,0xff,0xff,0xff,0xff,0x03,0xfe,0x80,0xff,0xff,0xff,0xff,0x03,0xfe,0x80, 0xff,0xff,0xff,0xff,0x07,0xfe,0x80,0xff,0xff,0xff,0xff,0x07,0xfe,0x80,0xff, 0xff,0xff,0xff,0x07,0xfe,0x80,0xff,0xff,0xff,0xff,0x07,0xfe,0x80,0xff,0xff, 0xff,0xff,0x07,0xfe,0xe0,0xff,0xff,0xff,0xff,0x07,0xfe,0xe0,0xff,0xff,0xff, 0xff,0x1f,0xfe,0xe0,0xff,0xff,0xff,0xff,0x1f,0xfe,0xe0,0xff,0xff,0xff,0xff, 0x1f,0xfe,0xe0,0xff,0xff,0xff,0xff,0x1f,0xfe,0xe0,0xff,0xff,0xff,0xff,0x1f, 0xfe,0xf0,0xff,0xff,0xff,0xff,0x1f,0xfe,0xf0,0xff,0xff,0xff,0xff,0x1f,0xfe, 0xf0,0xff,0xff,0xff,0xff,0x3f,0xfe,0xf0,0xff,0xff,0xff,0xff,0x3f,0xfe,0xf0, 0xff,0xff,0xff,0xff,0x3f,0xfe,0xf0,0xff,0xff,0xff,0xff,0x3f,0xfe,0xfc,0xff, 0xff,0xff,0xff,0x3f,0xfe,0xfc,0xff,0xff,0xff,0xff,0x3f,0xfe,0xfc,0xff,0xff, 0xff,0xff,0xff,0xfe,0xfc,0xff,0xff,0xff,0xff,0xff,0xfe,0xfc,0xff,0xff,0xff, 0xff,0xff,0xfe,0xfc,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xff, 0xff,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xfc,0xff,0xff,0xff,0xff,0xff,0xff}; xshogi-1.4.2/eastern_bitmaps/bishopP_m.xbm0000644000175000017500000000350312274270516015557 00000000000000#define bishopP_m_width 49 #define bishopP_m_height 49 static unsigned char bishopP_m_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0xfe,0x00, 0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00,0xc0,0x07,0x00,0x00,0xfe,0x00,0x00, 0x38,0x38,0x00,0x00,0xfe,0x00,0x00,0x07,0xc0,0x01,0x00,0xfe,0x00,0x00,0x07, 0xc0,0x01,0x00,0xfe,0x00,0xe0,0x00,0x00,0x0e,0x00,0xfe,0x00,0x1c,0x00,0x00, 0x70,0x00,0xfe,0x00,0x1c,0x00,0x00,0x70,0x00,0xfe,0x00,0x03,0x00,0x00,0x80, 0x00,0xfe,0x00,0x03,0x06,0x0e,0x80,0x03,0xfe,0x00,0x03,0x06,0x0e,0x80,0x03, 0xfe,0x00,0xc3,0x7f,0xfe,0x81,0x03,0xfe,0x00,0x03,0x39,0x0e,0x80,0x03,0xfe, 0x00,0x03,0x39,0x0e,0x80,0x03,0xfe,0x80,0xc0,0x7f,0xfe,0x03,0x03,0xfe,0x80, 0x00,0x00,0x80,0x03,0x07,0xfe,0x80,0x00,0x00,0x80,0x03,0x07,0xfe,0x80,0xc0, 0x7f,0xfe,0x03,0x07,0xfe,0x80,0xc0,0x71,0x0e,0x00,0x07,0xfe,0x80,0xc0,0x71, 0x0e,0x00,0x07,0xfe,0x60,0xc0,0x7f,0xfe,0x03,0x04,0xfe,0x60,0xc0,0x71,0x0e, 0x00,0x1c,0xfe,0x60,0xc0,0x71,0x0e,0x00,0x1c,0xfe,0x60,0xc0,0x7f,0xfe,0x03, 0x1c,0xfe,0x60,0xc0,0x7f,0xfe,0x03,0x1c,0xfe,0x60,0xc0,0x70,0xf8,0x03,0x1c, 0xfe,0x10,0x00,0x00,0x00,0x00,0x18,0xfe,0x10,0x00,0x00,0x00,0x00,0x18,0xfe, 0x10,0x00,0xff,0xff,0x01,0x38,0xfe,0x10,0x00,0xc7,0x01,0x00,0x38,0xfe,0x10, 0x00,0xc7,0x01,0x00,0x38,0xfe,0x10,0x00,0xff,0x7f,0x00,0x38,0xfe,0x0c,0x00, 0xc7,0x01,0x00,0x20,0xfe,0x0c,0x00,0xc7,0x01,0x00,0x20,0xfe,0x0c,0x00,0xff, 0x7f,0x00,0xe0,0xfe,0x0c,0x00,0xc7,0x01,0x00,0xe0,0xfe,0x0c,0x00,0xc7,0x01, 0x00,0xe0,0xfe,0x0c,0x00,0xff,0xff,0x03,0xe0,0xfe,0x03,0x00,0x00,0x80,0x03, 0xc0,0xfe,0x03,0x00,0x00,0x80,0x03,0xc0,0xfe,0x03,0xc0,0xb9,0xb7,0x01,0xc0, 0xff,0x03,0x00,0x00,0x00,0x00,0xc0,0xff,0x03,0x00,0x00,0x00,0x00,0xc0,0xff, 0x03,0x00,0x00,0x00,0x00,0xc0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xfc,0xff,0xff,0xff,0xff,0xff,0xff}; xshogi-1.4.2/configure.ac0000644000175000017500000000526412274274040012237 00000000000000# ------------------------------------------------------------ # xshogi configuration script. # ------------------------------------------------------------ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) AC_INIT([xshogi],[1.4.2],[https://savannah.gnu.org/bugs/?group=gnushogi]) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([xshogi.c]) AC_CONFIG_HEADER(config.h) ########## AC_MSG_NOTICE([C compiler]) AC_PROG_CC ########## AC_MSG_NOTICE([yacc/bison, lex/flex, and install]) AC_PROG_YACC AC_PROG_LEX AC_PROG_INSTALL ########## AC_MSG_NOTICE([X]) AC_PATH_XTRA ########## # C compiler warnings. if [[ $ac_cv_c_compiler_gnu = yes ]] then WARNINGS="-Wall -Wno-implicit-int -Wstrict-prototypes" CEXTRAFLAGS="-fsigned-char -funroll-loops" else # Who knows what warnings your compiler uses? WARNINGS= CEXTRAFLAGS= fi AC_SUBST(WARNINGS) AC_SUBST(CEXTRAFLAGS) ########## AC_MSG_NOTICE([header files]) AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h]) AC_CHECK_HEADERS([sys/time.h unistd.h]) AC_HEADER_TIME ########## AC_MSG_NOTICE([typedefs]) AC_C_CONST AC_HEADER_STDBOOL AC_C_INLINE AC_TYPE_PID_T AC_TYPE_SIZE_T AC_HEADER_TIME AC_STRUCT_TM ########## AC_MSG_NOTICE([compiler characteristics]) AC_CHECK_SIZEOF(long) ########## AC_MSG_NOTICE([library functions]) AC_FUNC_FORK AC_PROG_GCC_TRADITIONAL AC_FUNC_MALLOC AC_TYPE_SIGNAL AC_CHECK_FUNCS([dup2 gethostname gettimeofday strcasecmp]) AC_CHECK_FUNCS([strchr strerror strrchr strstr strtol]) # # Set various user-definable options. # OPT= FIRST_SHOGI_PROGRAM=gnushogi SECOND_SHOGI_PROGRAM=gnushogi FIRST_HOST=localhost SECOND_HOST=localhost AC_ARG_WITH([top-part-bitmaps], AS_HELP_STRING([--with-top-part-bitmaps], [use top part of Kanji bitmaps only]), [OPT=-DTOP_PART_BITMAPS]) AC_ARG_WITH([first-shogi-program], AS_HELP_STRING([--with-first-shogi-program=PROGNAME], [use PROGNAME as the first shogi program (default: gnushogi)]), [FIRST_SHOGI_PROGRAM=$withval]) AC_ARG_WITH([second-shogi-program], AS_HELP_STRING([--with-second-shogi-program=PROGNAME], [use PROGNAME as the second shogi program (default: gnushogi)]), [SECOND_SHOGI_PROGRAM=$withval]) AC_ARG_WITH([first-host], AS_HELP_STRING([--with-first-host=HOSTNAME], [use HOSTNAME as the machine on which the first shogi program runs (default: localhost)]), [FIRST_HOST=$withval]) AC_ARG_WITH([second-host], AS_HELP_STRING([--with-second-host=HOSTNAME], [use HOSTNAME as the machine on which the second shogi program runs (default: localhost)]), [SECOND_HOST=$withval]) AC_SUBST(OPT) AC_SUBST(FIRST_SHOGI_PROGRAM) AC_SUBST(SECOND_SHOGI_PROGRAM) AC_SUBST(FIRST_HOST) AC_SUBST(SECOND_HOST) ########## AC_CONFIG_FILES([Makefile]) AC_OUTPUT xshogi-1.4.2/sysdeps.h0000644000175000017500000000707012274270516011615 00000000000000/* * FILE: sysdeps.h * * System dependencies for xshogi. * * ------------------------------------------------------------------------ * xshogi is based on XBoard -- an Xt/Athena user interface for GNU Chess. * * Original authors: Dan Sears, Chris Sears * Enhancements (Version 2.0 and following): Tim Mann * Modifications to XShogi (Version 1.0): Matthias Mutz * Enhancements to XShogi (Version 1.1): Matthias Mutz * Modified implementation of ISS mode for XShogi: Matthias Mutz * Current maintainer: Michael C. Vanier * * XShogi borrows some of its piece bitmaps from CRANES Shogi. * * Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts. * Enhancements Copyright 1992 Free Software Foundation, Inc. * Enhancements for XShogi Copyright 1993, 1994, 1995 Matthias Mutz * Copyright (c) 1999 Michael Vanier and the Free Software Foundation * * The following terms apply to Digital Equipment Corporation's copyright * interest in XBoard: * ------------------------------------------------------------------------ * All Rights Reserved * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, * provided that the above copyright notice appear in all copies and that * both that copyright notice and this permission notice appear in * supporting documentation, and that the name of Digital not be * used in advertising or publicity pertaining to distribution of the * software without specific, written prior permission. * * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS * SOFTWARE. * ------------------------------------------------------------------------ * * This file is part of GNU shogi. * * GNU shogi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation. * * GNU shogi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GNU shogi; see the file COPYING. If not, write to * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. * * ------------------------------------------------------------------------ * */ #ifndef _SYSDEPS_H_ #define _SYSDEPS_H_ #include #include #include #include #include #include #include #include #include /* * Stuff that isn't reliably included (on Linux, anyway). */ extern FILE *fdopen(int fd, const char *modes); extern int fileno(FILE *stream); extern int kill(pid_t pid, int sig); extern int strcasecmp(const char *s1, const char *s2); extern int gethostname(char *name, size_t len); /* * Check for POSIX-compatible wait(). */ #ifdef HAVE_SYS_WAIT_H #define WAIT0 wait((int *) 0) #else #define WAIT0 wait((union wait *) 0) #endif #endif /* _SYSDEPS_H_ */ xshogi-1.4.2/BUGS0000644000175000017500000000200412274270516010425 00000000000000KNOWN BUGS, PROBLEMS, AND MISFEATURES ------------------------------------- We only have Western-style piece bitmaps for the small-size board, which is not very pleasant to use. If you try to use the medium- or large-size board with Western bitmaps you get garbage bitmaps instead. The small bitmaps are pretty lame, too; we need new Western bitmaps at all sizes. I'd prefer if the True/False options were changed to -opt e.g. -mono or -no_mono (not necessary to have -no_opt in all cases, though). charPieceColor has no effect; the piece bitmap is *always* black. I've seen pawns disappear for no obvious reason; they come back on the next move. This is extremely hard to reproduce. I call this the "disappearing pawn bug"; the pawn is still there, but you can't see it. It almost always happens with this opening: P2f P3d P2e B3c and the pawn on 3d disappears. The coordinate printing is pretty lame. When you hit "Pause" and then move, the move isn't shown on the screen until the computer makes its next move. xshogi-1.4.2/ylwrap0000755000175000017500000001531212274272444011216 00000000000000#! /bin/sh # ylwrap - wrapper for lex/yacc invocations. scriptversion=2013-01-12.17; # UTC # Copyright (C) 1996-2013 Free Software Foundation, Inc. # # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . get_dirname () { case $1 in */*|*\\*) printf '%s\n' "$1" | sed -e 's|\([\\/]\)[^\\/]*$|\1|';; # Otherwise, we want the empty string (not "."). esac } # guard FILE # ---------- # The CPP macro used to guard inclusion of FILE. guard () { printf '%s\n' "$1" \ | sed \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' \ -e 's/__*/_/g' } # quote_for_sed [STRING] # ---------------------- # Return STRING (or stdin) quoted to be used as a sed pattern. quote_for_sed () { case $# in 0) cat;; 1) printf '%s\n' "$1";; esac \ | sed -e 's|[][\\.*]|\\&|g' } case "$1" in '') echo "$0: No files given. Try '$0 --help' for more information." 1>&2 exit 1 ;; --basedir) basedir=$2 shift 2 ;; -h|--h*) cat <<\EOF Usage: ylwrap [--help|--version] INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]... Wrapper for lex/yacc invocations, renaming files as desired. INPUT is the input file OUTPUT is one file PROG generates DESIRED is the file we actually want instead of OUTPUT PROGRAM is program to run ARGS are passed to PROG Any number of OUTPUT,DESIRED pairs may be used. Report bugs to . EOF exit $? ;; -v|--v*) echo "ylwrap $scriptversion" exit $? ;; esac # The input. input=$1 shift # We'll later need for a correct munging of "#line" directives. input_sub_rx=`get_dirname "$input" | quote_for_sed` case $input in [\\/]* | ?:[\\/]*) # Absolute path; do nothing. ;; *) # Relative path. Make it absolute. input=`pwd`/$input ;; esac input_rx=`get_dirname "$input" | quote_for_sed` # Since DOS filename conventions don't allow two dots, # the DOS version of Bison writes out y_tab.c instead of y.tab.c # and y_tab.h instead of y.tab.h. Test to see if this is the case. y_tab_nodot=false if test -f y_tab.c || test -f y_tab.h; then y_tab_nodot=true fi # The parser itself, the first file, is the destination of the .y.c # rule in the Makefile. parser=$1 # A sed program to s/FROM/TO/g for all the FROM/TO so that, for # instance, we rename #include "y.tab.h" into #include "parse.h" # during the conversion from y.tab.c to parse.c. sed_fix_filenames= # Also rename header guards, as Bison 2.7 for instance uses its header # guard in its implementation file. sed_fix_header_guards= while test $# -ne 0; do if test x"$1" = x"--"; then shift break fi from=$1 # Handle y_tab.c and y_tab.h output by DOS if $y_tab_nodot; then case $from in "y.tab.c") from=y_tab.c;; "y.tab.h") from=y_tab.h;; esac fi shift to=$1 shift sed_fix_filenames="${sed_fix_filenames}s|"`quote_for_sed "$from"`"|$to|g;" sed_fix_header_guards="${sed_fix_header_guards}s|"`guard "$from"`"|"`guard "$to"`"|g;" done # The program to run. prog=$1 shift # Make any relative path in $prog absolute. case $prog in [\\/]* | ?:[\\/]*) ;; *[\\/]*) prog=`pwd`/$prog ;; esac dirname=ylwrap$$ do_exit="cd '`pwd`' && rm -rf $dirname > /dev/null 2>&1;"' (exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 mkdir $dirname || exit 1 cd $dirname case $# in 0) "$prog" "$input" ;; *) "$prog" "$@" "$input" ;; esac ret=$? if test $ret -eq 0; then for from in * do to=`printf '%s\n' "$from" | sed "$sed_fix_filenames"` if test -f "$from"; then # If $2 is an absolute path name, then just use that, # otherwise prepend '../'. case $to in [\\/]* | ?:[\\/]*) target=$to;; *) target=../$to;; esac # Do not overwrite unchanged header files to avoid useless # recompilations. Always update the parser itself: it is the # destination of the .y.c rule in the Makefile. Divert the # output of all other files to a temporary file so we can # compare them to existing versions. if test $from != $parser; then realtarget=$target target=tmp-`printf '%s\n' "$target" | sed 's|.*[\\/]||g'` fi # Munge "#line" or "#" directives. Don't let the resulting # debug information point at an absolute srcdir. Use the real # output file name, not yy.lex.c for instance. Adjust the # include guards too. sed -e "/^#/!b" \ -e "s|$input_rx|$input_sub_rx|" \ -e "$sed_fix_filenames" \ -e "$sed_fix_header_guards" \ "$from" >"$target" || ret=$? # Check whether files must be updated. if test "$from" != "$parser"; then if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then echo "$to is unchanged" rm -f "$target" else echo "updating $to" mv -f "$target" "$realtarget" fi fi else # A missing file is only an error for the parser. This is a # blatant hack to let us support using "yacc -d". If -d is not # specified, don't fail when the header file is "missing". if test "$from" = "$parser"; then ret=1 fi fi done fi # Remove the directory. cd .. rm -rf $dirname exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: xshogi-1.4.2/parser.h0000644000175000017500000000477312274272605011427 00000000000000/* A Bison parser, made by GNU Bison 3.0.2. */ /* Bison interface for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work under terms of your choice, so long as that work isn't itself a parser generator using the skeleton or a modified version thereof as a parser skeleton. Alternatively, if you modify or redistribute the parser skeleton itself, you may (at your option) remove this special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ #ifndef YY_YY_PARSER_H_INCLUDED # define YY_YY_PARSER_H_INCLUDED /* Debug traces. */ #ifndef YYDEBUG # define YYDEBUG 0 #endif #if YYDEBUG extern int yydebug; #endif /* Token type. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE enum yytokentype { PROMOTE = 258, DROPS = 259, PIECE = 260, SQUARE = 261, NUMBER = 262, COMMENT = 263, COLON = 264, BLACK_WINS = 265, WHITE_WINS = 266, DRAW = 267 }; #endif /* Tokens. */ #define PROMOTE 258 #define DROPS 259 #define PIECE 260 #define SQUARE 261 #define NUMBER 262 #define COMMENT 263 #define COLON 264 #define BLACK_WINS 265 #define WHITE_WINS 266 #define DRAW 267 /* Value type. */ #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE YYSTYPE; union YYSTYPE { #line 100 "parser.y" /* yacc.c:1909 */ int val; char* string; #line 81 "parser.h" /* yacc.c:1909 */ }; # define YYSTYPE_IS_TRIVIAL 1 # define YYSTYPE_IS_DECLARED 1 #endif extern YYSTYPE yylval; int yyparse (void); #endif /* !YY_YY_PARSER_H_INCLUDED */ xshogi-1.4.2/config.h.in0000644000175000017500000001014112274274137011771 00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* Define to 1 if you have the `dup2' function. */ #undef HAVE_DUP2 /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H /* Define to 1 if you have the `fork' function. */ #undef HAVE_FORK /* Define to 1 if you have the `gethostname' function. */ #undef HAVE_GETHOSTNAME /* Define to 1 if you have the `gettimeofday' function. */ #undef HAVE_GETTIMEOFDAY /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if your system has a GNU libc compatible `malloc' function, and to 0 otherwise. */ #undef HAVE_MALLOC /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if stdbool.h conforms to C99. */ #undef HAVE_STDBOOL_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `strcasecmp' function. */ #undef HAVE_STRCASECMP /* Define to 1 if you have the `strchr' function. */ #undef HAVE_STRCHR /* Define to 1 if you have the `strerror' function. */ #undef HAVE_STRERROR /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the `strrchr' function. */ #undef HAVE_STRRCHR /* Define to 1 if you have the `strstr' function. */ #undef HAVE_STRSTR /* Define to 1 if you have the `strtol' function. */ #undef HAVE_STRTOL /* Define to 1 if you have the header file. */ #undef HAVE_SYS_IOCTL_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TIME_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have that is POSIX.1 compatible. */ #undef HAVE_SYS_WAIT_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if you have the `vfork' function. */ #undef HAVE_VFORK /* Define to 1 if you have the header file. */ #undef HAVE_VFORK_H /* Define to 1 if `fork' works. */ #undef HAVE_WORKING_FORK /* Define to 1 if `vfork' works. */ #undef HAVE_WORKING_VFORK /* Define to 1 if the system has the type `_Bool'. */ #undef HAVE__BOOL /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define as the return type of signal handlers (`int' or `void'). */ #undef RETSIGTYPE /* The size of `long', as computed by sizeof. */ #undef SIZEOF_LONG /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define to 1 if you can safely include both and . */ #undef TIME_WITH_SYS_TIME /* Define to 1 if your declares `struct tm'. */ #undef TM_IN_SYS_TIME /* Version number of package */ #undef VERSION /* Define to 1 if the X Window System is missing or not being used. */ #undef X_DISPLAY_MISSING /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a `char[]'. */ #undef YYTEXT_POINTER /* Define to empty if `const' does not conform to ANSI C. */ #undef const /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ #ifndef __cplusplus #undef inline #endif /* Define to rpl_malloc if the replacement function should be used. */ #undef malloc /* Define to `int' if does not define. */ #undef pid_t /* Define to `unsigned int' if does not define. */ #undef size_t /* Define as `fork' if `vfork' does not work. */ #undef vfork xshogi-1.4.2/parser.c0000644000175000017500000014721012274272605011414 00000000000000/* A Bison parser, made by GNU Bison 3.0.2. */ /* Bison implementation for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work under terms of your choice, so long as that work isn't itself a parser generator using the skeleton or a modified version thereof as a parser skeleton. Alternatively, if you modify or redistribute the parser skeleton itself, you may (at your option) remove this special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ /* C LALR(1) parser skeleton written by Richard Stallman, by simplifying the original so-called "semantic" parser. */ /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local variables, as they might otherwise be expanded by user macros. There are some unavoidable exceptions within include files to define necessary library symbols; they are noted "INFRINGES ON USER NAME SPACE" below. */ /* Identify Bison output. */ #define YYBISON 1 /* Bison version. */ #define YYBISON_VERSION "3.0.2" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" /* Pure parsers. */ #define YYPURE 0 /* Push parsers. */ #define YYPUSH 0 /* Pull parsers. */ #define YYPULL 1 /* Copy the first part of user declarations. */ #line 1 "parser.y" /* yacc.c:339 */ /* * FILE: parser.y * * Board parser for xshogi. * * ------------------------------------------------------------------------ * xshogi is based on XBoard -- an Xt/Athena user interface for GNU Chess. * * Original authors: Dan Sears, Chris Sears * Enhancements (Version 2.0 and following): Tim Mann * Modifications to XShogi (Version 1.0): Matthias Mutz * Enhancements to XShogi (Version 1.1): Matthias Mutz * Modified implementation of ISS mode for XShogi: Matthias Mutz * Current maintainer: Michael C. Vanier * * XShogi borrows some of its piece bitmaps from CRANES Shogi. * * Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts. * Enhancements Copyright 1992 Free Software Foundation, Inc. * Enhancements for XShogi Copyright 1993, 1994, 1995 Matthias Mutz * Copyright 1998, 1999 Michael C. Vanier and the Free Software Foundation * * The following terms apply to Digital Equipment Corporation's copyright * interest in XBoard: * ------------------------------------------------------------------------ * All Rights Reserved * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, * provided that the above copyright notice appear in all copies and that * both that copyright notice and this permission notice appear in * supporting documentation, and that the name of Digital not be * used in advertising or publicity pertaining to distribution of the * software without specific, written prior permission. * * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS * SOFTWARE. * ------------------------------------------------------------------------ * * This file is part of GNU shogi. * * GNU shogi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation. * * GNU shogi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GNU shogi; see the file COPYING. If not, write to * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. * * ------------------------------------------------------------------------ * */ #include "xshogi.h" #include #include #include enum { False, True }; static void yyerror(); static ShogiMove move_type; static int from_x, from_y, to_x, to_y; static char piece; char currentMoveString[MSG_SIZ]; static char token[20]; FILE *outfile = (FILE *)0; extern FILE *gameFileFP, *toFirstProgFP; extern int currentMove; extern char moveList[MAX_MOVES][MOVE_LEN]; extern void SendToProgram(char *message, FILE *fp); extern void MakeMove(ShogiMove *move_type, int from_x, int from_y, int to_x, int to_y); int lines = 1, cols = 1; #line 161 "parser.c" /* yacc.c:339 */ # ifndef YY_NULLPTR # if defined __cplusplus && 201103L <= __cplusplus # define YY_NULLPTR nullptr # else # define YY_NULLPTR 0 # endif # endif /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE # undef YYERROR_VERBOSE # define YYERROR_VERBOSE 1 #else # define YYERROR_VERBOSE 0 #endif /* In a future release of Bison, this section will be replaced by #include "y.tab.h". */ #ifndef YY_YY_PARSER_H_INCLUDED # define YY_YY_PARSER_H_INCLUDED /* Debug traces. */ #ifndef YYDEBUG # define YYDEBUG 0 #endif #if YYDEBUG extern int yydebug; #endif /* Token type. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE enum yytokentype { PROMOTE = 258, DROPS = 259, PIECE = 260, SQUARE = 261, NUMBER = 262, COMMENT = 263, COLON = 264, BLACK_WINS = 265, WHITE_WINS = 266, DRAW = 267 }; #endif /* Tokens. */ #define PROMOTE 258 #define DROPS 259 #define PIECE 260 #define SQUARE 261 #define NUMBER 262 #define COMMENT 263 #define COLON 264 #define BLACK_WINS 265 #define WHITE_WINS 266 #define DRAW 267 /* Value type. */ #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE YYSTYPE; union YYSTYPE { #line 100 "parser.y" /* yacc.c:355 */ int val; char* string; #line 228 "parser.c" /* yacc.c:355 */ }; # define YYSTYPE_IS_TRIVIAL 1 # define YYSTYPE_IS_DECLARED 1 #endif extern YYSTYPE yylval; int yyparse (void); #endif /* !YY_YY_PARSER_H_INCLUDED */ /* Copy the second part of user declarations. */ #line 243 "parser.c" /* yacc.c:358 */ #ifdef short # undef short #endif #ifdef YYTYPE_UINT8 typedef YYTYPE_UINT8 yytype_uint8; #else typedef unsigned char yytype_uint8; #endif #ifdef YYTYPE_INT8 typedef YYTYPE_INT8 yytype_int8; #else typedef signed char yytype_int8; #endif #ifdef YYTYPE_UINT16 typedef YYTYPE_UINT16 yytype_uint16; #else typedef unsigned short int yytype_uint16; #endif #ifdef YYTYPE_INT16 typedef YYTYPE_INT16 yytype_int16; #else typedef short int yytype_int16; #endif #ifndef YYSIZE_T # ifdef __SIZE_TYPE__ # define YYSIZE_T __SIZE_TYPE__ # elif defined size_t # define YYSIZE_T size_t # elif ! defined YYSIZE_T # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # else # define YYSIZE_T unsigned int # endif #endif #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) #ifndef YY_ # if defined YYENABLE_NLS && YYENABLE_NLS # if ENABLE_NLS # include /* INFRINGES ON USER NAME SPACE */ # define YY_(Msgid) dgettext ("bison-runtime", Msgid) # endif # endif # ifndef YY_ # define YY_(Msgid) Msgid # endif #endif #ifndef YY_ATTRIBUTE # if (defined __GNUC__ \ && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C # define YY_ATTRIBUTE(Spec) __attribute__(Spec) # else # define YY_ATTRIBUTE(Spec) /* empty */ # endif #endif #ifndef YY_ATTRIBUTE_PURE # define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) #endif #ifndef YY_ATTRIBUTE_UNUSED # define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) #endif #if !defined _Noreturn \ && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112) # if defined _MSC_VER && 1200 <= _MSC_VER # define _Noreturn __declspec (noreturn) # else # define _Noreturn YY_ATTRIBUTE ((__noreturn__)) # endif #endif /* Suppress unused-variable warnings by "using" E. */ #if ! defined lint || defined __GNUC__ # define YYUSE(E) ((void) (E)) #else # define YYUSE(E) /* empty */ #endif #if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ /* Suppress an incorrect diagnostic about yylval being uninitialized. */ # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ _Pragma ("GCC diagnostic push") \ _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") # define YY_IGNORE_MAYBE_UNINITIALIZED_END \ _Pragma ("GCC diagnostic pop") #else # define YY_INITIAL_VALUE(Value) Value #endif #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN # define YY_IGNORE_MAYBE_UNINITIALIZED_END #endif #ifndef YY_INITIAL_VALUE # define YY_INITIAL_VALUE(Value) /* Nothing. */ #endif #if ! defined yyoverflow || YYERROR_VERBOSE /* The parser invokes alloca or malloc; define the necessary symbols. */ # ifdef YYSTACK_USE_ALLOCA # if YYSTACK_USE_ALLOCA # ifdef __GNUC__ # define YYSTACK_ALLOC __builtin_alloca # elif defined __BUILTIN_VA_ARG_INCR # include /* INFRINGES ON USER NAME SPACE */ # elif defined _AIX # define YYSTACK_ALLOC __alloca # elif defined _MSC_VER # include /* INFRINGES ON USER NAME SPACE */ # define alloca _alloca # else # define YYSTACK_ALLOC alloca # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS # include /* INFRINGES ON USER NAME SPACE */ /* Use EXIT_SUCCESS as a witness for stdlib.h. */ # ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 # endif # endif # endif # endif # endif # ifdef YYSTACK_ALLOC /* Pacify GCC's 'empty if-body' warning. */ # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) # ifndef YYSTACK_ALLOC_MAXIMUM /* The OS might guarantee only one guard page at the bottom of the stack, and a page size can be as small as 4096 bytes. So we cannot safely invoke alloca (N) if N exceeds 4096. Use a slightly smaller number to allow for a few compiler-allocated temporary stack slots. */ # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ # endif # else # define YYSTACK_ALLOC YYMALLOC # define YYSTACK_FREE YYFREE # ifndef YYSTACK_ALLOC_MAXIMUM # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM # endif # if (defined __cplusplus && ! defined EXIT_SUCCESS \ && ! ((defined YYMALLOC || defined malloc) \ && (defined YYFREE || defined free))) # include /* INFRINGES ON USER NAME SPACE */ # ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 # endif # endif # ifndef YYMALLOC # define YYMALLOC malloc # if ! defined malloc && ! defined EXIT_SUCCESS void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ # endif # endif # ifndef YYFREE # define YYFREE free # if ! defined free && ! defined EXIT_SUCCESS void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif # endif # endif #endif /* ! defined yyoverflow || YYERROR_VERBOSE */ #if (! defined yyoverflow \ && (! defined __cplusplus \ || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { yytype_int16 yyss_alloc; YYSTYPE yyvs_alloc; }; /* The size of the maximum gap between one aligned stack and the next. */ # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) # define YYCOPY_NEEDED 1 /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ # define YYSTACK_RELOCATE(Stack_alloc, Stack) \ do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ Stack = &yyptr->Stack_alloc; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (0) #endif #if defined YYCOPY_NEEDED && YYCOPY_NEEDED /* Copy COUNT objects from SRC to DST. The source and destination do not overlap. */ # ifndef YYCOPY # if defined __GNUC__ && 1 < __GNUC__ # define YYCOPY(Dst, Src, Count) \ __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) # else # define YYCOPY(Dst, Src, Count) \ do \ { \ YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (Dst)[yyi] = (Src)[yyi]; \ } \ while (0) # endif # endif #endif /* !YYCOPY_NEEDED */ /* YYFINAL -- State number of the termination state. */ #define YYFINAL 3 /* YYLAST -- Last index in YYTABLE. */ #define YYLAST 18 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 13 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 19 /* YYNRULES -- Number of rules. */ #define YYNRULES 28 /* YYNSTATES -- Number of states. */ #define YYNSTATES 34 /* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned by yylex, with out-of-bounds checking. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 267 #define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM as returned by yylex, without out-of-bounds checking. */ static const yytype_uint8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; #if YYDEBUG /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ static const yytype_uint8 yyrline[] = { 0, 105, 105, 108, 109, 113, 114, 118, 119, 120, 118, 123, 124, 124, 127, 128, 132, 136, 139, 132, 147, 150, 152, 147, 176, 181, 186, 193, 194 }; #endif #if YYDEBUG || YYERROR_VERBOSE || 0 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { "$end", "error", "$undefined", "PROMOTE", "DROPS", "PIECE", "SQUARE", "NUMBER", "COMMENT", "COLON", "BLACK_WINS", "WHITE_WINS", "DRAW", "$accept", "goal", "comment_list", "move_list", "move_elem", "$@1", "$@2", "$@3", "number", "$@4", "promoted", "move", "$@5", "$@6", "$@7", "$@8", "$@9", "$@10", "promotion", YY_NULLPTR }; #endif # ifdef YYPRINT /* YYTOKNUM[NUM] -- (External) token number corresponding to the (internal) symbol number NUM (which must be that of a token). */ static const yytype_uint16 yytoknum[] = { 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267 }; # endif #define YYPACT_NINF -6 #define yypact_value_is_default(Yystate) \ (!!((Yystate) == (-6))) #define YYTABLE_NINF -3 #define yytable_value_is_error(Yytable_value) \ 0 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ static const yytype_int8 yypact[] = { -6, 2, -4, -6, -6, -6, 1, 3, -6, -6, -6, 0, 7, -6, -6, -6, -5, -6, -6, -6, -6, -6, -6, 8, 5, -6, -6, 9, -6, -6, 10, -6, -6, -6 }; /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. Performed when YYTABLE does not specify something else to do. Zero means the default is an error. */ static const yytype_uint8 yydefact[] = { 3, 0, 7, 1, 4, 5, 11, 7, 12, 8, 6, 0, 14, 13, 15, 9, 0, 20, 16, 24, 25, 26, 10, 0, 0, 21, 17, 0, 18, 22, 27, 23, 28, 19 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int8 yypgoto[] = { -6, -6, -6, -6, 11, -6, -6, -6, -6, -6, -6, -6, -6, -6, -6, -6, -6, -6, -6 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int8 yydefgoto[] = { -1, 1, 2, 7, 5, 6, 12, 16, 9, 11, 15, 22, 24, 28, 30, 23, 27, 31, 33 }; /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule whose number is the opposite. If YYTABLE_NINF, syntax error. */ static const yytype_int8 yytable[] = { 17, 18, 3, -2, 4, 19, 20, 21, 8, 13, 14, 26, 25, 32, 0, 29, 0, 0, 10 }; static const yytype_int8 yycheck[] = { 5, 6, 0, 0, 8, 10, 11, 12, 7, 9, 3, 6, 4, 3, -1, 6, -1, -1, 7 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const yytype_uint8 yystos[] = { 0, 14, 15, 0, 8, 17, 18, 16, 7, 21, 17, 22, 19, 9, 3, 23, 20, 5, 6, 10, 11, 12, 24, 28, 25, 4, 6, 29, 26, 6, 27, 30, 3, 31 }; /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const yytype_uint8 yyr1[] = { 0, 13, 14, 15, 15, 16, 16, 18, 19, 20, 17, 21, 22, 21, 23, 23, 25, 26, 27, 24, 28, 29, 30, 24, 24, 24, 24, 31, 31 }; /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ static const yytype_uint8 yyr2[] = { 0, 2, 3, 0, 2, 0, 2, 0, 0, 0, 6, 0, 0, 3, 0, 1, 0, 0, 0, 6, 0, 0, 0, 6, 1, 1, 1, 0, 1 }; #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY (-2) #define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrorlab #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY) \ { \ yychar = (Token); \ yylval = (Value); \ YYPOPSTACK (yylen); \ yystate = *yyssp; \ goto yybackup; \ } \ else \ { \ yyerror (YY_("syntax error: cannot back up")); \ YYERROR; \ } \ while (0) /* Error token number */ #define YYTERROR 1 #define YYERRCODE 256 /* Enable debugging if requested. */ #if YYDEBUG # ifndef YYFPRINTF # include /* INFRINGES ON USER NAME SPACE */ # define YYFPRINTF fprintf # endif # define YYDPRINTF(Args) \ do { \ if (yydebug) \ YYFPRINTF Args; \ } while (0) /* This macro is provided for backward compatibility. */ #ifndef YY_LOCATION_PRINT # define YY_LOCATION_PRINT(File, Loc) ((void) 0) #endif # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yy_symbol_print (stderr, \ Type, Value); \ YYFPRINTF (stderr, "\n"); \ } \ } while (0) /*----------------------------------------. | Print this symbol's value on YYOUTPUT. | `----------------------------------------*/ static void yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) { FILE *yyo = yyoutput; YYUSE (yyo); if (!yyvaluep) return; # ifdef YYPRINT if (yytype < YYNTOKENS) YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); # endif YYUSE (yytype); } /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ static void yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) { YYFPRINTF (yyoutput, "%s %s (", yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]); yy_symbol_value_print (yyoutput, yytype, yyvaluep); YYFPRINTF (yyoutput, ")"); } /*------------------------------------------------------------------. | yy_stack_print -- Print the state stack from its BOTTOM up to its | | TOP (included). | `------------------------------------------------------------------*/ static void yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) { YYFPRINTF (stderr, "Stack now"); for (; yybottom <= yytop; yybottom++) { int yybot = *yybottom; YYFPRINTF (stderr, " %d", yybot); } YYFPRINTF (stderr, "\n"); } # define YY_STACK_PRINT(Bottom, Top) \ do { \ if (yydebug) \ yy_stack_print ((Bottom), (Top)); \ } while (0) /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ static void yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule) { unsigned long int yylno = yyrline[yyrule]; int yynrhs = yyr2[yyrule]; int yyi; YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", yyrule - 1, yylno); /* The symbols being reduced. */ for (yyi = 0; yyi < yynrhs; yyi++) { YYFPRINTF (stderr, " $%d = ", yyi + 1); yy_symbol_print (stderr, yystos[yyssp[yyi + 1 - yynrhs]], &(yyvsp[(yyi + 1) - (yynrhs)]) ); YYFPRINTF (stderr, "\n"); } } # define YY_REDUCE_PRINT(Rule) \ do { \ if (yydebug) \ yy_reduce_print (yyssp, yyvsp, Rule); \ } while (0) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ # define YYDPRINTF(Args) # define YY_SYMBOL_PRINT(Title, Type, Value, Location) # define YY_STACK_PRINT(Bottom, Top) # define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ /* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH # define YYINITDEPTH 200 #endif /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only if the built-in stack extension method is used). Do not make this value too large; the results are undefined if YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) evaluated with infinite-precision integer arithmetic. */ #ifndef YYMAXDEPTH # define YYMAXDEPTH 10000 #endif #if YYERROR_VERBOSE # ifndef yystrlen # if defined __GLIBC__ && defined _STRING_H # define yystrlen strlen # else /* Return the length of YYSTR. */ static YYSIZE_T yystrlen (const char *yystr) { YYSIZE_T yylen; for (yylen = 0; yystr[yylen]; yylen++) continue; return yylen; } # endif # endif # ifndef yystpcpy # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE # define yystpcpy stpcpy # else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ static char * yystpcpy (char *yydest, const char *yysrc) { char *yyd = yydest; const char *yys = yysrc; while ((*yyd++ = *yys++) != '\0') continue; return yyd - 1; } # endif # endif # ifndef yytnamerr /* Copy to YYRES the contents of YYSTR after stripping away unnecessary quotes and backslashes, so that it's suitable for yyerror. The heuristic is that double-quoting is unnecessary unless the string contains an apostrophe, a comma, or backslash (other than backslash-backslash). YYSTR is taken from yytname. If YYRES is null, do not copy; instead, return the length of what the result would have been. */ static YYSIZE_T yytnamerr (char *yyres, const char *yystr) { if (*yystr == '"') { YYSIZE_T yyn = 0; char const *yyp = yystr; for (;;) switch (*++yyp) { case '\'': case ',': goto do_not_strip_quotes; case '\\': if (*++yyp != '\\') goto do_not_strip_quotes; /* Fall through. */ default: if (yyres) yyres[yyn] = *yyp; yyn++; break; case '"': if (yyres) yyres[yyn] = '\0'; return yyn; } do_not_strip_quotes: ; } if (! yyres) return yystrlen (yystr); return yystpcpy (yyres, yystr) - yyres; } # endif /* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message about the unexpected token YYTOKEN for the state stack whose top is YYSSP. Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is not large enough to hold the message. In that case, also set *YYMSG_ALLOC to the required number of bytes. Return 2 if the required number of bytes is too large to store. */ static int yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, yytype_int16 *yyssp, int yytoken) { YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]); YYSIZE_T yysize = yysize0; enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; /* Internationalized format string. */ const char *yyformat = YY_NULLPTR; /* Arguments of yyformat. */ char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; /* Number of reported tokens (one for the "unexpected", one per "expected"). */ int yycount = 0; /* There are many possibilities here to consider: - If this state is a consistent state with a default action, then the only way this function was invoked is if the default action is an error action. In that case, don't check for expected tokens because there are none. - The only way there can be no lookahead present (in yychar) is if this state is a consistent state with a default action. Thus, detecting the absence of a lookahead is sufficient to determine that there is no unexpected or expected token to report. In that case, just report a simple "syntax error". - Don't assume there isn't a lookahead just because this state is a consistent state with a default action. There might have been a previous inconsistent state, consistent state with a non-default action, or user semantic action that manipulated yychar. - Of course, the expected token list depends on states to have correct lookahead information, and it depends on the parser not to perform extra reductions after fetching a lookahead from the scanner and before detecting a syntax error. Thus, state merging (from LALR or IELR) and default reductions corrupt the expected token list. However, the list is correct for canonical LR with one exception: it will still contain any token that will not be accepted due to an error action in a later state. */ if (yytoken != YYEMPTY) { int yyn = yypact[*yyssp]; yyarg[yycount++] = yytname[yytoken]; if (!yypact_value_is_default (yyn)) { /* Start YYX at -YYN if negative to avoid negative indexes in YYCHECK. In other words, skip the first -YYN actions for this state because they are default actions. */ int yyxbegin = yyn < 0 ? -yyn : 0; /* Stay within bounds of both yycheck and yytname. */ int yychecklim = YYLAST - yyn + 1; int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; int yyx; for (yyx = yyxbegin; yyx < yyxend; ++yyx) if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR && !yytable_value_is_error (yytable[yyx + yyn])) { if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) { yycount = 1; yysize = yysize0; break; } yyarg[yycount++] = yytname[yyx]; { YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]); if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) return 2; yysize = yysize1; } } } } switch (yycount) { # define YYCASE_(N, S) \ case N: \ yyformat = S; \ break YYCASE_(0, YY_("syntax error")); YYCASE_(1, YY_("syntax error, unexpected %s")); YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); # undef YYCASE_ } { YYSIZE_T yysize1 = yysize + yystrlen (yyformat); if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) return 2; yysize = yysize1; } if (*yymsg_alloc < yysize) { *yymsg_alloc = 2 * yysize; if (! (yysize <= *yymsg_alloc && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; return 1; } /* Avoid sprintf, as that infringes on the user's name space. Don't have undefined behavior even if the translation produced a string with the wrong number of "%s"s. */ { char *yyp = *yymsg; int yyi = 0; while ((*yyp = *yyformat) != '\0') if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) { yyp += yytnamerr (yyp, yyarg[yyi++]); yyformat += 2; } else { yyp++; yyformat++; } } return 0; } #endif /* YYERROR_VERBOSE */ /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ static void yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) { YYUSE (yyvaluep); if (!yymsg) yymsg = "Deleting"; YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN YYUSE (yytype); YY_IGNORE_MAYBE_UNINITIALIZED_END } /* The lookahead symbol. */ int yychar; /* The semantic value of the lookahead symbol. */ YYSTYPE yylval; /* Number of syntax errors so far. */ int yynerrs; /*----------. | yyparse. | `----------*/ int yyparse (void) { int yystate; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* The stacks and their tools: 'yyss': related to states. 'yyvs': related to semantic values. Refer to the stacks through separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ yytype_int16 yyssa[YYINITDEPTH]; yytype_int16 *yyss; yytype_int16 *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs; YYSTYPE *yyvsp; YYSIZE_T yystacksize; int yyn; int yyresult; /* Lookahead token as an internal (translated) token number. */ int yytoken = 0; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; #if YYERROR_VERBOSE /* Buffer for error messages, and its allocated size. */ char yymsgbuf[128]; char *yymsg = yymsgbuf; YYSIZE_T yymsg_alloc = sizeof yymsgbuf; #endif #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) /* The number of symbols on the RHS of the reduced rule. Keep to zero when no symbol should be popped. */ int yylen = 0; yyssp = yyss = yyssa; yyvsp = yyvs = yyvsa; yystacksize = YYINITDEPTH; YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ goto yysetstate; /*------------------------------------------------------------. | yynewstate -- Push a new state, which is found in yystate. | `------------------------------------------------------------*/ yynewstate: /* In all cases, when you get here, the value and location stacks have just been pushed. So pushing a state here evens the stacks. */ yyssp++; yysetstate: *yyssp = yystate; if (yyss + yystacksize - 1 <= yyssp) { /* Get the current used size of the three stacks, in elements. */ YYSIZE_T yysize = yyssp - yyss + 1; #ifdef yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ YYSTYPE *yyvs1 = yyvs; yytype_int16 *yyss1 = yyss; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow (YY_("memory exhausted"), &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), &yystacksize); yyss = yyss1; yyvs = yyvs1; } #else /* no yyoverflow */ # ifndef YYSTACK_RELOCATE goto yyexhaustedlab; # else /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) goto yyexhaustedlab; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH; { yytype_int16 *yyss1 = yyss; union yyalloc *yyptr = (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); if (! yyptr) goto yyexhaustedlab; YYSTACK_RELOCATE (yyss_alloc, yyss); YYSTACK_RELOCATE (yyvs_alloc, yyvs); # undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } # endif #endif /* no yyoverflow */ yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); if (yyss + yystacksize - 1 <= yyssp) YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", yystate)); if (yystate == YYFINAL) YYACCEPT; goto yybackup; /*-----------. | yybackup. | `-----------*/ yybackup: /* Do appropriate processing given the current state. Read a lookahead token if we need one and don't already have one. */ /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; if (yypact_value_is_default (yyn)) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); yychar = yylex (); } if (yychar <= YYEOF) { yychar = yytoken = YYEOF; YYDPRINTF ((stderr, "Now at end of input.\n")); } else { yytoken = YYTRANSLATE (yychar); YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); } /* If the proper action on seeing token YYTOKEN is to reduce or to detect an error, take that action. */ yyn += yytoken; if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) goto yydefault; yyn = yytable[yyn]; if (yyn <= 0) { if (yytable_value_is_error (yyn)) goto yyerrlab; yyn = -yyn; goto yyreduce; } /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; /* Shift the lookahead token. */ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); /* Discard the shifted token. */ yychar = YYEMPTY; yystate = yyn; YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; YY_IGNORE_MAYBE_UNINITIALIZED_END goto yynewstate; /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; goto yyreduce; /*-----------------------------. | yyreduce -- Do a reduction. | `-----------------------------*/ yyreduce: /* yyn is the number of a rule to reduce with. */ yylen = yyr2[yyn]; /* If YYLEN is nonzero, implement the default value of the action: '$$ = $1'. Otherwise, the following line sets YYVAL to garbage. This behavior is undocumented and Bison users should not rely upon it. Assigning to YYVAL unconditionally makes the parser a bit smaller, and it avoids a GCC warning that YYVAL may be used uninitialized. */ yyval = yyvsp[1-yylen]; YY_REDUCE_PRINT (yyn); switch (yyn) { case 4: #line 110 "parser.y" /* yacc.c:1646 */ { fprintf(stderr, "%s\n", (yyvsp[0].string)); } #line 1332 "parser.c" /* yacc.c:1646 */ break; case 7: #line 118 "parser.y" /* yacc.c:1646 */ { strcpy(token, "number"); } #line 1338 "parser.c" /* yacc.c:1646 */ break; case 8: #line 119 "parser.y" /* yacc.c:1646 */ { strcpy(token, "promoted"); } #line 1344 "parser.c" /* yacc.c:1646 */ break; case 9: #line 120 "parser.y" /* yacc.c:1646 */ { strcpy(token, "move"); } #line 1350 "parser.c" /* yacc.c:1646 */ break; case 12: #line 124 "parser.y" /* yacc.c:1646 */ { strcpy(token, "colon"); } #line 1356 "parser.c" /* yacc.c:1646 */ break; case 16: #line 132 "parser.y" /* yacc.c:1646 */ { from_x = '9' - (yyvsp[0].string)[0]; from_y = 'i' - (yyvsp[0].string)[1]; strcpy(currentMoveString,(yyvsp[0].string)); strcpy(token, "square"); } #line 1365 "parser.c" /* yacc.c:1646 */ break; case 17: #line 136 "parser.y" /* yacc.c:1646 */ { to_x = '9' - (yyvsp[0].string)[0]; to_y = 'i' - (yyvsp[0].string)[1]; strcat(currentMoveString,(yyvsp[0].string)); } #line 1373 "parser.c" /* yacc.c:1646 */ break; case 18: #line 139 "parser.y" /* yacc.c:1646 */ { move_type = NormalMove; } #line 1379 "parser.c" /* yacc.c:1646 */ break; case 19: #line 141 "parser.y" /* yacc.c:1646 */ { SendToProgram(currentMoveString, toFirstProgFP); strcpy(moveList[currentMove], currentMoveString); MakeMove(&move_type, from_x, from_y, to_x, to_y); } #line 1389 "parser.c" /* yacc.c:1646 */ break; case 20: #line 147 "parser.y" /* yacc.c:1646 */ { piece = (yyvsp[0].string)[0]; strcpy(currentMoveString,(yyvsp[0].string)); strcpy(token,"'*'"); } #line 1397 "parser.c" /* yacc.c:1646 */ break; case 21: #line 150 "parser.y" /* yacc.c:1646 */ { strcat(currentMoveString,"*"); strcpy(token, "square"); } #line 1404 "parser.c" /* yacc.c:1646 */ break; case 22: #line 152 "parser.y" /* yacc.c:1646 */ { to_x = '9' - (yyvsp[0].string)[0]; to_y = 'i' - (yyvsp[0].string)[1]; strcat(currentMoveString,(yyvsp[0].string)); } #line 1412 "parser.c" /* yacc.c:1646 */ break; case 23: #line 155 "parser.y" /* yacc.c:1646 */ { move_type = (BlackOnMove(currentMove) ? BlackDrop : WhiteDrop); switch ( piece ) { case 'P': from_x = 81; break; case 'L': from_x = 82; break; case 'N': from_x = 83; break; case 'S': from_x = 84; break; case 'G': from_x = 85; break; case 'B': from_x = 86; break; case 'R': from_x = 87; break; case 'K': from_x = 88; break; default: from_x = -1; }; from_y = from_x; SendToProgram(currentMoveString, toFirstProgFP); strcpy(moveList[currentMove], currentMoveString); MakeMove(&move_type, from_x, from_y, to_x, to_y); } #line 1438 "parser.c" /* yacc.c:1646 */ break; case 24: #line 177 "parser.y" /* yacc.c:1646 */ { loaded_game_finished = 1; DisplayMessage("Black wins", False); } #line 1447 "parser.c" /* yacc.c:1646 */ break; case 25: #line 182 "parser.y" /* yacc.c:1646 */ { loaded_game_finished = 1; DisplayMessage("White wins", False); } #line 1456 "parser.c" /* yacc.c:1646 */ break; case 26: #line 187 "parser.y" /* yacc.c:1646 */ { loaded_game_finished = 1; DisplayMessage("Draw", False); } #line 1465 "parser.c" /* yacc.c:1646 */ break; case 28: #line 195 "parser.y" /* yacc.c:1646 */ { move_type = (BlackOnMove(currentMove) ? BlackPromotion : WhitePromotion); strcat(currentMoveString,"+"); } #line 1473 "parser.c" /* yacc.c:1646 */ break; #line 1477 "parser.c" /* yacc.c:1646 */ default: break; } /* User semantic actions sometimes alter yychar, and that requires that yytoken be updated with the new translation. We take the approach of translating immediately before every use of yytoken. One alternative is translating here after every semantic action, but that translation would be missed if the semantic action invokes YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an incorrect destructor might then be invoked immediately. In the case of YYERROR or YYBACKUP, subsequent parser actions might lead to an incorrect destructor call or verbose syntax error message before the lookahead is translated. */ YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; /* Now 'shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ yyn = yyr1[yyn]; yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) yystate = yytable[yystate]; else yystate = yydefgoto[yyn - YYNTOKENS]; goto yynewstate; /*--------------------------------------. | yyerrlab -- here on detecting error. | `--------------------------------------*/ yyerrlab: /* Make sure we have latest lookahead translation. See comments at user semantic actions for why this is necessary. */ yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; #if ! YYERROR_VERBOSE yyerror (YY_("syntax error")); #else # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ yyssp, yytoken) { char const *yymsgp = YY_("syntax error"); int yysyntax_error_status; yysyntax_error_status = YYSYNTAX_ERROR; if (yysyntax_error_status == 0) yymsgp = yymsg; else if (yysyntax_error_status == 1) { if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); if (!yymsg) { yymsg = yymsgbuf; yymsg_alloc = sizeof yymsgbuf; yysyntax_error_status = 2; } else { yysyntax_error_status = YYSYNTAX_ERROR; yymsgp = yymsg; } } yyerror (yymsgp); if (yysyntax_error_status == 2) goto yyexhaustedlab; } # undef YYSYNTAX_ERROR #endif } if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an error, discard it. */ if (yychar <= YYEOF) { /* Return failure if at end of input. */ if (yychar == YYEOF) YYABORT; } else { yydestruct ("Error: discarding", yytoken, &yylval); yychar = YYEMPTY; } } /* Else will try to reuse lookahead token after shifting the error token. */ goto yyerrlab1; /*---------------------------------------------------. | yyerrorlab -- error raised explicitly by YYERROR. | `---------------------------------------------------*/ yyerrorlab: /* Pacify compilers like GCC when the user code never invokes YYERROR and the label yyerrorlab therefore never appears in user code. */ if (/*CONSTCOND*/ 0) goto yyerrorlab; /* Do not reclaim the symbols of the rule whose action triggered this YYERROR. */ YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); yystate = *yyssp; goto yyerrlab1; /*-------------------------------------------------------------. | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: yyerrstatus = 3; /* Each real token shifted decrements this. */ for (;;) { yyn = yypact[yystate]; if (!yypact_value_is_default (yyn)) { yyn += YYTERROR; if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) { yyn = yytable[yyn]; if (0 < yyn) break; } } /* Pop the current state because it cannot handle the error token. */ if (yyssp == yyss) YYABORT; yydestruct ("Error: popping", yystos[yystate], yyvsp); YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); } YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; YY_IGNORE_MAYBE_UNINITIALIZED_END /* Shift the error token. */ YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); yystate = yyn; goto yynewstate; /*-------------------------------------. | yyacceptlab -- YYACCEPT comes here. | `-------------------------------------*/ yyacceptlab: yyresult = 0; goto yyreturn; /*-----------------------------------. | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: yyresult = 1; goto yyreturn; #if !defined yyoverflow || YYERROR_VERBOSE /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ yyexhaustedlab: yyerror (YY_("memory exhausted")); yyresult = 2; /* Fall through. */ #endif yyreturn: if (yychar != YYEMPTY) { /* Make sure we have latest lookahead translation. See comments at user semantic actions for why this is necessary. */ yytoken = YYTRANSLATE (yychar); yydestruct ("Cleanup: discarding lookahead", yytoken, &yylval); } /* Do not reclaim the symbols of the rule whose action triggered this YYABORT or YYACCEPT. */ YYPOPSTACK (yylen); YY_STACK_PRINT (yyss, yyssp); while (yyssp != yyss) { yydestruct ("Cleanup: popping", yystos[*yyssp], yyvsp); YYPOPSTACK (1); } #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif #if YYERROR_VERBOSE if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); #endif return yyresult; } #line 200 "parser.y" /* yacc.c:1906 */ static void yyerror(char *errmsg) { if (strlen(token) > 0) { fprintf(stderr, "parse error line %d column %d : %s expected\n", lines, cols, token); token[0] = '\0'; } else { fprintf(stderr,"parse error line %d column %d : %s\n", lines, cols, errmsg); } exit(-1); } extern FILE *yyin; void parseGameFile() { yyin = gameFileFP; outfile = stderr; yyparse(); } xshogi-1.4.2/AUTHORS0000644000175000017500000000044012274271772011021 00000000000000- Dan Sears and Chris Sears developed the original GNU XBoard. - Tim Mann enhanced it as XBoard 2.0. - Matthias Mutz worked on the initial version of XShogi. - Michael Vanier maintained XShogi as part ot the GNU Shogi package up to version 1.3.2. - Yann Dirson is the current maintainer. xshogi-1.4.2/western_bitmaps/0000755000175000017500000000000012274274137013237 500000000000000xshogi-1.4.2/western_bitmaps/silverW.xbm0000644000175000017500000000524212274270516015322 00000000000000#define silverW_width 64 #define silverW_height 64 static unsigned char silverW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xf0,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x8e,0x3c,0x00, 0x00,0x00,0x00,0x00,0xe0,0x81,0xc0,0x03,0x00,0x00,0x00,0x00,0x1e,0x00,0x01, 0x3c,0x00,0x00,0x00,0xe0,0x01,0xc0,0x01,0xc0,0x03,0x00,0x00,0x1c,0x00,0x3c, 0x1e,0x00,0x1c,0x00,0x00,0x04,0xc0,0x03,0xe0,0x01,0x10,0x00,0x00,0x06,0x38, 0x00,0x00,0x0e,0x60,0x00,0x00,0x8a,0x07,0x00,0x00,0xf0,0x40,0x00,0x00,0x7a, 0x00,0x00,0x00,0x00,0x4f,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x70,0x00,0x00, 0x12,0x00,0xc0,0x03,0x00,0x80,0x00,0x00,0x11,0x00,0x20,0x00,0x00,0x80,0x00, 0x00,0x11,0x00,0x20,0x00,0x00,0x80,0x00,0x00,0x09,0x00,0xc0,0x01,0x00,0x80, 0x00,0x00,0x09,0x00,0x00,0x02,0x00,0x80,0x00,0x00,0x09,0x00,0x00,0x02,0x00, 0x80,0x00,0x00,0x09,0x00,0xe0,0x01,0x00,0x80,0x00,0x00,0x09,0x00,0x00,0x00, 0x00,0x00,0x01,0x80,0x08,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x08,0x00,0x00, 0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00, 0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x08,0x80,0x00,0x08,0x00,0x01,0x80,0x04, 0x10,0x80,0x00,0x04,0x00,0x01,0x80,0x04,0x20,0x80,0x00,0x02,0x00,0x02,0x40, 0x04,0x40,0x80,0x00,0x01,0x00,0x02,0x40,0x02,0x80,0x80,0x80,0x00,0x00,0x02, 0x40,0x02,0x00,0x81,0x40,0x00,0x00,0x02,0x40,0x02,0x00,0x82,0x20,0x00,0x00, 0x02,0x40,0x02,0x00,0x84,0x10,0x00,0x00,0x02,0x40,0x02,0x00,0x88,0x08,0x00, 0x00,0x04,0x20,0x02,0x00,0x90,0x04,0x00,0x00,0x04,0x20,0x02,0x00,0xa0,0x02, 0x00,0x00,0x04,0x20,0x01,0x00,0xc0,0x01,0x00,0x00,0x04,0x20,0x01,0x00,0x80, 0x00,0x00,0x00,0x04,0x20,0x01,0x00,0x40,0x01,0x00,0x00,0x04,0x20,0x01,0x00, 0x20,0x02,0x00,0x00,0x08,0x20,0x01,0x00,0x10,0x04,0x00,0x00,0x08,0x10,0x01, 0x00,0x08,0x08,0x00,0x00,0x08,0x10,0x01,0x00,0x04,0x10,0x00,0x00,0x08,0x90, 0x00,0x00,0x02,0x20,0x00,0x00,0x08,0x90,0x00,0x00,0x01,0x40,0x00,0x00,0x08, 0x90,0x00,0x80,0x00,0x80,0x00,0x00,0x10,0x90,0x00,0x40,0x00,0x00,0x01,0x00, 0x10,0x90,0x00,0x20,0x00,0x00,0x02,0x00,0x10,0x88,0x00,0x10,0x00,0x00,0x04, 0x00,0x10,0x48,0x00,0x08,0x00,0x00,0x08,0x00,0x10,0x48,0x00,0x00,0x00,0x00, 0x00,0x00,0x10,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00, 0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00, 0x00,0x00,0x00,0x00,0x20,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24, 0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x40, 0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x30,0x00,0x00,0x00,0x00,0x00,0x00, 0x60,0xe0,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/silverRW.xbm0000644000175000017500000000524512274270516015447 00000000000000#define silverRW_width 64 #define silverRW_height 64 static unsigned char silverRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x06,0x00,0x00,0x00,0x00,0x00, 0x00,0x08,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x12,0x00,0x00,0x00,0x00, 0x00,0x00,0x20,0xe4,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x24,0x00,0x00,0x00, 0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00, 0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x44, 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x10,0x00,0x00,0x10,0x00,0x20, 0x48,0x00,0x20,0x00,0x00,0x08,0x00,0x20,0x48,0x00,0x40,0x00,0x00,0x04,0x00, 0x20,0x48,0x00,0x80,0x00,0x00,0x02,0x00,0x20,0x48,0x00,0x00,0x01,0x00,0x01, 0x00,0x10,0x48,0x00,0x00,0x02,0x80,0x00,0x00,0x10,0x88,0x00,0x00,0x04,0x40, 0x00,0x00,0x10,0x90,0x00,0x00,0x08,0x20,0x00,0x00,0x10,0x90,0x00,0x00,0x10, 0x10,0x00,0x00,0x10,0x90,0x00,0x00,0x20,0x08,0x00,0x00,0x10,0x90,0x00,0x00, 0x40,0x04,0x00,0x00,0x08,0x90,0x00,0x00,0x80,0x02,0x00,0x00,0x08,0x10,0x01, 0x00,0x00,0x01,0x00,0x00,0x08,0x10,0x01,0x00,0x80,0x03,0x00,0x00,0x08,0x20, 0x01,0x00,0x40,0x05,0x00,0x00,0x08,0x20,0x01,0x00,0x20,0x09,0x00,0x00,0x08, 0x20,0x01,0x00,0x10,0x11,0x00,0x00,0x04,0x20,0x01,0x00,0x08,0x21,0x00,0x00, 0x04,0x20,0x01,0x00,0x04,0x41,0x00,0x00,0x04,0x20,0x02,0x00,0x02,0x81,0x00, 0x00,0x04,0x20,0x02,0x00,0x01,0x01,0x01,0x00,0x04,0x40,0x02,0x80,0x00,0x01, 0x02,0x00,0x04,0x40,0x02,0x40,0x00,0x01,0x04,0x00,0x02,0x40,0x02,0x20,0x00, 0x01,0x08,0x00,0x02,0x40,0x02,0x10,0x00,0x01,0x10,0x00,0x02,0x40,0x02,0x00, 0x00,0x00,0x00,0x00,0x02,0x40,0x04,0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04, 0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80, 0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x80,0x07,0x00,0x00,0x01, 0x80,0x04,0x00,0x40,0x00,0x00,0x00,0x01,0x80,0x08,0x00,0x40,0x00,0x00,0x00, 0x01,0x80,0x08,0x00,0x80,0x03,0x00,0x00,0x01,0x00,0x09,0x00,0x00,0x04,0x00, 0x00,0x01,0x00,0x09,0x00,0x00,0x04,0x00,0x80,0x00,0x00,0x09,0x00,0xc0,0x03, 0x00,0x80,0x00,0x00,0x09,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x09,0x00,0x00, 0x00,0x00,0x80,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x14,0x00, 0x00,0x00,0x00,0x80,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x10, 0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x0f,0x00,0x00, 0x80,0x07,0x00,0x00,0xf0,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x0e,0x00,0x00, 0x00,0x00,0xc0,0x03,0xe0,0x01,0x00,0x00,0x00,0x00,0x00,0x3c,0x1e,0x00,0x00, 0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/bishopPW.xbm0000644000175000017500000000524512274270516015425 00000000000000#define bishopPW_width 64 #define bishopPW_height 64 static unsigned char bishopPW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xf0,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x8e,0x3c,0x00, 0x00,0x00,0x00,0x00,0xe0,0x81,0xc0,0x03,0x00,0x00,0x00,0x00,0x1e,0x00,0x01, 0x3c,0x00,0x00,0x00,0xe0,0x01,0xc0,0x01,0xc0,0x03,0x00,0x00,0x1c,0x00,0x3c, 0x1e,0x00,0x1c,0x00,0x00,0x04,0xc0,0x03,0xe0,0x01,0x10,0x00,0x00,0x06,0x38, 0x00,0x00,0x0e,0x60,0x00,0x00,0x8a,0x07,0x00,0x00,0xf0,0x40,0x00,0x00,0x7a, 0x00,0xe0,0x03,0x00,0x4f,0x00,0x00,0x12,0x00,0x10,0x04,0x00,0x70,0x00,0x00, 0x12,0x00,0xe8,0x09,0x00,0x80,0x00,0x00,0x11,0x00,0x24,0x12,0x00,0x80,0x00, 0x00,0x11,0x00,0x24,0x12,0x00,0x80,0x00,0x00,0x09,0x00,0xe4,0x11,0x00,0x80, 0x00,0x00,0x09,0x00,0x24,0x12,0x00,0x80,0x00,0x00,0x09,0x00,0x24,0x12,0x00, 0x80,0x00,0x00,0x09,0x00,0xe8,0x09,0x00,0x80,0x00,0x00,0x09,0x00,0x10,0x04, 0x00,0x00,0x01,0x80,0x08,0x00,0xe0,0x03,0x00,0x00,0x01,0x80,0x08,0x00,0x00, 0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00, 0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x78,0x80,0x00,0x0f,0x00,0x01,0x80,0x04, 0x18,0x80,0x00,0x0c,0x00,0x01,0x80,0x04,0x28,0x80,0x00,0x0a,0x00,0x02,0x40, 0x04,0x48,0x80,0x00,0x09,0x00,0x02,0x40,0x02,0x80,0x80,0x80,0x00,0x00,0x02, 0x40,0x02,0x00,0x81,0x40,0x00,0x00,0x02,0x40,0x02,0x00,0x82,0x20,0x00,0x00, 0x02,0x40,0x02,0x00,0x84,0x10,0x00,0x00,0x02,0x40,0x02,0x00,0x88,0x08,0x00, 0x00,0x04,0x20,0x02,0x00,0x90,0x04,0x00,0x00,0x04,0x20,0x02,0x00,0xa0,0x02, 0x00,0x00,0x04,0x20,0x01,0x00,0xc0,0x01,0x00,0x00,0x04,0x20,0x01,0xf8,0xff, 0xff,0x0f,0x00,0x04,0x20,0x01,0x00,0xc0,0x01,0x00,0x00,0x04,0x20,0x01,0x00, 0xa0,0x02,0x00,0x00,0x08,0x20,0x01,0x00,0x90,0x04,0x00,0x00,0x08,0x10,0x01, 0x00,0x88,0x08,0x00,0x00,0x08,0x10,0x01,0x00,0x84,0x10,0x00,0x00,0x08,0x90, 0x00,0x00,0x82,0x20,0x00,0x00,0x08,0x90,0x00,0x00,0x81,0x40,0x00,0x00,0x08, 0x90,0x00,0x80,0x80,0x80,0x00,0x00,0x10,0x90,0x00,0x48,0x80,0x00,0x09,0x00, 0x10,0x90,0x00,0x28,0x80,0x00,0x0a,0x00,0x10,0x88,0x00,0x18,0x80,0x00,0x0c, 0x00,0x10,0x48,0x00,0x78,0x80,0x00,0x0f,0x00,0x10,0x48,0x00,0x00,0x00,0x00, 0x00,0x00,0x10,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00, 0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00, 0x00,0x00,0x00,0x00,0x20,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24, 0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x40, 0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x30,0x00,0x00,0x00,0x00,0x00,0x00, 0x60,0xe0,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/goldRW.xbm0000644000175000017500000000523712274270516015071 00000000000000#define goldRW_width 64 #define goldRW_height 64 static unsigned char goldRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x06,0x00,0x00,0x00,0x00,0x00, 0x00,0x08,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x12,0x00,0x00,0x00,0x00, 0x00,0x00,0x20,0xe4,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x24,0x00,0x00,0x00, 0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00, 0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x44, 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x20, 0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x01,0x00,0x00, 0x20,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x01,0x00, 0x00,0x10,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x10,0x88,0x00,0x00,0x00,0x01, 0x00,0x00,0x10,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x10,0x90,0x00,0x00,0x00, 0x01,0x00,0x00,0x10,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x10,0x90,0x00,0x00, 0x00,0x01,0x00,0x00,0x08,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x08,0x10,0x01, 0xf0,0xff,0xff,0x1f,0x00,0x08,0x10,0x01,0x00,0x80,0x03,0x00,0x00,0x08,0x20, 0x01,0x00,0x40,0x05,0x00,0x00,0x08,0x20,0x01,0x00,0x20,0x09,0x00,0x00,0x08, 0x20,0x01,0x00,0x10,0x11,0x00,0x00,0x04,0x20,0x01,0x00,0x08,0x21,0x00,0x00, 0x04,0x20,0x01,0x00,0x04,0x41,0x00,0x00,0x04,0x20,0x02,0x00,0x02,0x81,0x00, 0x00,0x04,0x20,0x02,0x00,0x01,0x01,0x01,0x00,0x04,0x40,0x02,0x80,0x00,0x01, 0x02,0x00,0x04,0x40,0x02,0x40,0x00,0x01,0x04,0x00,0x02,0x40,0x02,0x20,0x00, 0x01,0x08,0x00,0x02,0x40,0x02,0x10,0x00,0x01,0x10,0x00,0x02,0x40,0x02,0x00, 0x00,0x00,0x00,0x00,0x02,0x40,0x04,0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04, 0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80, 0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00,0xc0,0x03,0x00,0x00,0x01, 0x80,0x04,0x00,0x40,0x04,0x00,0x00,0x01,0x80,0x08,0x00,0x40,0x04,0x00,0x00, 0x01,0x80,0x08,0x00,0xc0,0x05,0x00,0x00,0x01,0x00,0x09,0x00,0x00,0x04,0x00, 0x00,0x01,0x00,0x09,0x00,0x00,0x04,0x00,0x80,0x00,0x00,0x09,0x00,0xc0,0x03, 0x00,0x80,0x00,0x00,0x09,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x09,0x00,0x00, 0x00,0x00,0x80,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x14,0x00, 0x00,0x00,0x00,0x80,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x10, 0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x0f,0x00,0x00, 0x80,0x07,0x00,0x00,0xf0,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x0e,0x00,0x00, 0x00,0x00,0xc0,0x03,0xe0,0x01,0x00,0x00,0x00,0x00,0x00,0x3c,0x1e,0x00,0x00, 0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/knightRW.xbm0000644000175000017500000000634112274270516015425 00000000000000#define knightRW_width 64 #define knightRW_height 64 static unsigned char knightRW_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x01, 0x00, 0x80, 0x00, 0x20, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x20, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x08, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x80, 0x10, 0x00, 0x00, 0x01, 0x00, 0x10, 0x00, 0x80, 0x10, 0x00, 0x80, 0x02, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x80, 0x02, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x40, 0x04, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x20, 0x08, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x10, 0x10, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x0f, 0xe0, 0x00, 0x10, 0x00, 0x00, 0x21, 0xf0, 0x00, 0x00, 0x0f, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x28, 0x00, 0x40, 0x04, 0x00, 0x08, 0x00, 0x00, 0x48, 0x00, 0xc0, 0x04, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0xc0, 0x05, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0x40, 0x05, 0x00, 0x04, 0x00, 0x00, 0x60, 0x00, 0x40, 0x07, 0x00, 0x04, 0x00, 0x00, 0xc0, 0x00, 0x40, 0x06, 0x00, 0x06, 0x00, 0x00, 0x00, 0x07, 0x40, 0x04, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; xshogi-1.4.2/western_bitmaps/kingRW.xbm0000644000175000017500000000523712274270516015074 00000000000000#define kingRW_width 64 #define kingRW_height 64 static unsigned char kingRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x06,0x00,0x00,0x00,0x00,0x00, 0x00,0x08,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x12,0x00,0x00,0x00,0x00, 0x00,0x00,0x20,0xe4,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x24,0x00,0x00,0x00, 0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00, 0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x44, 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x10,0x00,0x01,0x10,0x00,0x20, 0x48,0x00,0x20,0x00,0x01,0x08,0x00,0x20,0x48,0x00,0x40,0x00,0x01,0x04,0x00, 0x20,0x48,0x00,0x80,0x00,0x01,0x02,0x00,0x20,0x48,0x00,0x00,0x01,0x01,0x01, 0x00,0x10,0x48,0x00,0x00,0x02,0x81,0x00,0x00,0x10,0x88,0x00,0x00,0x04,0x41, 0x00,0x00,0x10,0x90,0x00,0x00,0x08,0x21,0x00,0x00,0x10,0x90,0x00,0x00,0x10, 0x11,0x00,0x00,0x10,0x90,0x00,0x00,0x20,0x09,0x00,0x00,0x10,0x90,0x00,0x00, 0x40,0x05,0x00,0x00,0x08,0x90,0x00,0x00,0x80,0x03,0x00,0x00,0x08,0x10,0x01, 0xf0,0xff,0xff,0x1f,0x00,0x08,0x10,0x01,0x00,0x80,0x03,0x00,0x00,0x08,0x20, 0x01,0x00,0x40,0x05,0x00,0x00,0x08,0x20,0x01,0x00,0x20,0x09,0x00,0x00,0x08, 0x20,0x01,0x00,0x10,0x11,0x00,0x00,0x04,0x20,0x01,0x00,0x08,0x21,0x00,0x00, 0x04,0x20,0x01,0x00,0x04,0x41,0x00,0x00,0x04,0x20,0x02,0x00,0x02,0x81,0x00, 0x00,0x04,0x20,0x02,0x00,0x01,0x01,0x01,0x00,0x04,0x40,0x02,0x80,0x00,0x01, 0x02,0x00,0x04,0x40,0x02,0x40,0x00,0x01,0x04,0x00,0x02,0x40,0x02,0x20,0x00, 0x01,0x08,0x00,0x02,0x40,0x02,0x10,0x00,0x01,0x10,0x00,0x02,0x40,0x02,0x00, 0x00,0x00,0x00,0x00,0x02,0x40,0x04,0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04, 0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80, 0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x40,0x04,0x00,0x00,0x01, 0x80,0x04,0x00,0x80,0x04,0x00,0x00,0x01,0x80,0x08,0x00,0x00,0x05,0x00,0x00, 0x01,0x80,0x08,0x00,0x00,0x06,0x00,0x00,0x01,0x00,0x09,0x00,0x00,0x05,0x00, 0x00,0x01,0x00,0x09,0x00,0x80,0x04,0x00,0x80,0x00,0x00,0x09,0x00,0x40,0x04, 0x00,0x80,0x00,0x00,0x09,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x09,0x00,0x00, 0x00,0x00,0x80,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x14,0x00, 0x00,0x00,0x00,0x80,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x10, 0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x0f,0x00,0x00, 0x80,0x07,0x00,0x00,0xf0,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x0e,0x00,0x00, 0x00,0x00,0xc0,0x03,0xe0,0x01,0x00,0x00,0x00,0x00,0x00,0x3c,0x1e,0x00,0x00, 0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/knightPRW.xbm0000644000175000017500000000634412274270516015550 00000000000000#define knightPRW_width 64 #define knightPRW_height 64 static unsigned char knightPRW_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x01, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x01, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x01, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x01, 0x00, 0x80, 0x00, 0x20, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x20, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x08, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x80, 0x08, 0xf0, 0xff, 0xff, 0x1f, 0x20, 0x00, 0x80, 0x08, 0x00, 0x80, 0x03, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x40, 0x05, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x20, 0x09, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x10, 0x11, 0x00, 0x20, 0x00, 0x80, 0x10, 0x00, 0x08, 0x21, 0x00, 0x10, 0x00, 0x80, 0x10, 0x00, 0x04, 0x41, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x02, 0x81, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x01, 0x01, 0x01, 0x10, 0x00, 0x00, 0x11, 0x80, 0x00, 0x01, 0x02, 0x10, 0x00, 0x00, 0x11, 0x40, 0x00, 0x01, 0x04, 0x10, 0x00, 0x00, 0x11, 0x20, 0x00, 0x01, 0x08, 0x10, 0x00, 0x00, 0x21, 0x10, 0x00, 0x01, 0x10, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0xc0, 0x07, 0x00, 0x08, 0x00, 0x00, 0x24, 0x00, 0x20, 0x08, 0x00, 0x08, 0x00, 0x00, 0x28, 0x00, 0x50, 0x14, 0x00, 0x08, 0x00, 0x00, 0x48, 0x00, 0xc8, 0x24, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0xc8, 0x25, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0x48, 0x25, 0x00, 0x04, 0x00, 0x00, 0x60, 0x00, 0x48, 0x27, 0x00, 0x04, 0x00, 0x00, 0xc0, 0x00, 0x48, 0x26, 0x00, 0x06, 0x00, 0x00, 0x00, 0x07, 0x50, 0x14, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x38, 0x20, 0x08, 0x38, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xc1, 0x07, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; xshogi-1.4.2/western_bitmaps/bishopRW.xbm0000644000175000017500000000524512274270516015427 00000000000000#define bishopRW_width 64 #define bishopRW_height 64 static unsigned char bishopRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x06,0x00,0x00,0x00,0x00,0x00, 0x00,0x08,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x12,0x00,0x00,0x00,0x00, 0x00,0x00,0x20,0xe4,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x24,0x00,0x00,0x00, 0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00, 0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x44, 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0xf0,0x00,0x00,0x1e,0x00,0x20, 0x48,0x00,0x30,0x00,0x00,0x18,0x00,0x20,0x48,0x00,0x50,0x00,0x00,0x14,0x00, 0x20,0x48,0x00,0x90,0x00,0x00,0x12,0x00,0x20,0x48,0x00,0x00,0x01,0x00,0x01, 0x00,0x10,0x48,0x00,0x00,0x02,0x80,0x00,0x00,0x10,0x88,0x00,0x00,0x04,0x40, 0x00,0x00,0x10,0x90,0x00,0x00,0x08,0x20,0x00,0x00,0x10,0x90,0x00,0x00,0x10, 0x10,0x00,0x00,0x10,0x90,0x00,0x00,0x20,0x08,0x00,0x00,0x10,0x90,0x00,0x00, 0x40,0x04,0x00,0x00,0x08,0x90,0x00,0x00,0x80,0x02,0x00,0x00,0x08,0x10,0x01, 0x00,0x00,0x01,0x00,0x00,0x08,0x10,0x01,0x00,0x80,0x02,0x00,0x00,0x08,0x20, 0x01,0x00,0x40,0x04,0x00,0x00,0x08,0x20,0x01,0x00,0x20,0x08,0x00,0x00,0x08, 0x20,0x01,0x00,0x10,0x10,0x00,0x00,0x04,0x20,0x01,0x00,0x08,0x20,0x00,0x00, 0x04,0x20,0x01,0x00,0x04,0x40,0x00,0x00,0x04,0x20,0x02,0x00,0x02,0x80,0x00, 0x00,0x04,0x20,0x02,0x00,0x01,0x00,0x01,0x00,0x04,0x40,0x02,0x90,0x00,0x00, 0x12,0x00,0x04,0x40,0x02,0x50,0x00,0x00,0x14,0x00,0x02,0x40,0x02,0x30,0x00, 0x00,0x18,0x00,0x02,0x40,0x02,0xf0,0x00,0x00,0x1e,0x00,0x02,0x40,0x02,0x00, 0x00,0x00,0x00,0x00,0x02,0x40,0x04,0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04, 0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80, 0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x80,0x07,0x00,0x00,0x01, 0x80,0x04,0x00,0x40,0x04,0x00,0x00,0x01,0x80,0x08,0x00,0x40,0x04,0x00,0x00, 0x01,0x80,0x08,0x00,0x80,0x07,0x00,0x00,0x01,0x00,0x09,0x00,0x40,0x04,0x00, 0x00,0x01,0x00,0x09,0x00,0x40,0x04,0x00,0x80,0x00,0x00,0x09,0x00,0x80,0x07, 0x00,0x80,0x00,0x00,0x09,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x09,0x00,0x00, 0x00,0x00,0x80,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x14,0x00, 0x00,0x00,0x00,0x80,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x10, 0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x0f,0x00,0x00, 0x80,0x07,0x00,0x00,0xf0,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x0e,0x00,0x00, 0x00,0x00,0xc0,0x03,0xe0,0x01,0x00,0x00,0x00,0x00,0x00,0x3c,0x1e,0x00,0x00, 0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/knightW.xbm0000644000175000017500000000633612274270516015307 00000000000000#define knightW_width 64 #define knightW_height 64 static unsigned char knightW_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4f, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x80, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xc0, 0x81, 0x03, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x38, 0x0e, 0x1c, 0x00, 0x00, 0x00, 0x08, 0x00, 0x07, 0x70, 0x60, 0x00, 0x00, 0x00, 0x0c, 0xe0, 0x00, 0x80, 0x83, 0x00, 0x00, 0x00, 0x14, 0x1c, 0x00, 0x00, 0x1c, 0x01, 0x00, 0x00, 0x94, 0x03, 0x20, 0x02, 0xe0, 0x01, 0x00, 0x00, 0x64, 0x00, 0x60, 0x02, 0x00, 0x03, 0x00, 0x00, 0x22, 0x00, 0xe0, 0x02, 0x00, 0x02, 0x00, 0x00, 0x22, 0x00, 0xa0, 0x02, 0x00, 0x02, 0x00, 0x00, 0x22, 0x00, 0xa0, 0x03, 0x00, 0x02, 0x00, 0x00, 0x22, 0x00, 0x20, 0x03, 0x00, 0x02, 0x00, 0x00, 0x12, 0x00, 0x20, 0x02, 0x00, 0x04, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x11, 0xf0, 0x00, 0x00, 0x0f, 0x04, 0x00, 0x00, 0x09, 0x00, 0x07, 0xf0, 0x00, 0x08, 0x00, 0x80, 0x08, 0x00, 0x08, 0x08, 0x00, 0x08, 0x00, 0x80, 0x08, 0x00, 0x10, 0x04, 0x00, 0x08, 0x00, 0x80, 0x08, 0x00, 0x20, 0x02, 0x00, 0x08, 0x00, 0x80, 0x08, 0x00, 0x40, 0x01, 0x00, 0x08, 0x00, 0x80, 0x08, 0x00, 0x40, 0x01, 0x00, 0x08, 0x00, 0x80, 0x08, 0x00, 0x80, 0x00, 0x00, 0x08, 0x00, 0x40, 0x04, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x40, 0x04, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x40, 0x04, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x40, 0x04, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x40, 0x04, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x40, 0x04, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x10, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x10, 0x01, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x10, 0x01, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x10, 0x01, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x10, 0x01, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; xshogi-1.4.2/western_bitmaps/goldW.xbm0000644000175000017500000000523412274270516014744 00000000000000#define goldW_width 64 #define goldW_height 64 static unsigned char goldW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xf0,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x8e,0x3c,0x00, 0x00,0x00,0x00,0x00,0xe0,0x81,0xc0,0x03,0x00,0x00,0x00,0x00,0x1e,0x00,0x01, 0x3c,0x00,0x00,0x00,0xe0,0x01,0xc0,0x01,0xc0,0x03,0x00,0x00,0x1c,0x00,0x3c, 0x1e,0x00,0x1c,0x00,0x00,0x04,0xc0,0x03,0xe0,0x01,0x10,0x00,0x00,0x06,0x38, 0x00,0x00,0x0e,0x60,0x00,0x00,0x8a,0x07,0x00,0x00,0xf0,0x40,0x00,0x00,0x7a, 0x00,0x00,0x00,0x00,0x4f,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x70,0x00,0x00, 0x12,0x00,0xc0,0x03,0x00,0x80,0x00,0x00,0x11,0x00,0x20,0x00,0x00,0x80,0x00, 0x00,0x11,0x00,0x20,0x00,0x00,0x80,0x00,0x00,0x09,0x00,0xa0,0x03,0x00,0x80, 0x00,0x00,0x09,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x09,0x00,0x20,0x02,0x00, 0x80,0x00,0x00,0x09,0x00,0xc0,0x03,0x00,0x80,0x00,0x00,0x09,0x00,0x00,0x00, 0x00,0x00,0x01,0x80,0x08,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x08,0x00,0x00, 0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00, 0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x08,0x80,0x00,0x08,0x00,0x01,0x80,0x04, 0x10,0x80,0x00,0x04,0x00,0x01,0x80,0x04,0x20,0x80,0x00,0x02,0x00,0x02,0x40, 0x04,0x40,0x80,0x00,0x01,0x00,0x02,0x40,0x02,0x80,0x80,0x80,0x00,0x00,0x02, 0x40,0x02,0x00,0x81,0x40,0x00,0x00,0x02,0x40,0x02,0x00,0x82,0x20,0x00,0x00, 0x02,0x40,0x02,0x00,0x84,0x10,0x00,0x00,0x02,0x40,0x02,0x00,0x88,0x08,0x00, 0x00,0x04,0x20,0x02,0x00,0x90,0x04,0x00,0x00,0x04,0x20,0x02,0x00,0xa0,0x02, 0x00,0x00,0x04,0x20,0x01,0x00,0xc0,0x01,0x00,0x00,0x04,0x20,0x01,0xf8,0xff, 0xff,0x0f,0x00,0x04,0x20,0x01,0x00,0x80,0x00,0x00,0x00,0x04,0x20,0x01,0x00, 0x80,0x00,0x00,0x00,0x08,0x20,0x01,0x00,0x80,0x00,0x00,0x00,0x08,0x10,0x01, 0x00,0x80,0x00,0x00,0x00,0x08,0x10,0x01,0x00,0x80,0x00,0x00,0x00,0x08,0x90, 0x00,0x00,0x80,0x00,0x00,0x00,0x08,0x90,0x00,0x00,0x80,0x00,0x00,0x00,0x08, 0x90,0x00,0x00,0x80,0x00,0x00,0x00,0x10,0x90,0x00,0x00,0x80,0x00,0x00,0x00, 0x10,0x90,0x00,0x00,0x80,0x00,0x00,0x00,0x10,0x88,0x00,0x00,0x80,0x00,0x00, 0x00,0x10,0x48,0x00,0x00,0x80,0x00,0x00,0x00,0x10,0x48,0x00,0x00,0x00,0x00, 0x00,0x00,0x10,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00, 0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00, 0x00,0x00,0x00,0x00,0x20,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24, 0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x40, 0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x30,0x00,0x00,0x00,0x00,0x00,0x00, 0x60,0xe0,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/pawnRW.xbm0000644000175000017500000000523712274270516015111 00000000000000#define pawnRW_width 64 #define pawnRW_height 64 static unsigned char pawnRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf8,0xff,0xff,0xff,0xff,0xff, 0x3f,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x28,0x00,0x00,0x00,0x00, 0x00,0x80,0x00,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x90,0xff,0xff,0xff, 0xff,0xff,0xff,0x01,0x10,0x01,0x00,0x00,0x00,0x00,0x00,0x01,0x10,0x01,0x00, 0x00,0x00,0x00,0x00,0x01,0x10,0x01,0x00,0x00,0x00,0x00,0x00,0x01,0x10,0x02, 0x00,0x00,0x00,0x00,0x80,0x00,0x10,0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20, 0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x80,0x00, 0x20,0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x80, 0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20,0x04,0x00,0x00,0x00,0x00, 0x40,0x00,0x20,0x04,0x00,0x00,0x00,0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x00, 0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x00,0x00,0x40,0x00,0x40,0x04,0x00,0x00, 0x00,0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x00,0x00,0x40,0x00,0x40,0x04,0x00, 0x00,0x00,0x00,0x40,0x00,0x40,0x08,0x00,0x00,0x00,0x00,0x20,0x00,0x80,0x08, 0x00,0x00,0x01,0x00,0x20,0x00,0x80,0x08,0x00,0x00,0x01,0x00,0x20,0x00,0x80, 0x08,0x00,0x00,0x01,0x00,0x20,0x00,0x80,0x08,0x00,0x00,0x01,0x00,0x20,0x00, 0x80,0x08,0x00,0x00,0x01,0x00,0x20,0x00,0x80,0x10,0x00,0x00,0x01,0x00,0x10, 0x00,0x80,0x10,0x00,0x00,0x01,0x00,0x10,0x00,0x00,0x11,0x00,0x00,0x01,0x00, 0x10,0x00,0x00,0x11,0x00,0x00,0x01,0x00,0x10,0x00,0x00,0x11,0x00,0x00,0x01, 0x00,0x10,0x00,0x00,0x11,0x00,0x00,0x01,0x00,0x10,0x00,0x00,0x11,0x00,0x00, 0x01,0x00,0x10,0x00,0x00,0x21,0x00,0x00,0x01,0x00,0x08,0x00,0x00,0x22,0x00, 0x00,0x00,0x00,0x08,0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x22, 0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x08,0x00,0x00, 0x24,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x28,0x00,0x00,0x04,0x00,0x08,0x00, 0x00,0x48,0x00,0x00,0x04,0x00,0x04,0x00,0x00,0x50,0x00,0x00,0x04,0x00,0x04, 0x00,0x00,0x50,0x00,0x80,0x07,0x00,0x04,0x00,0x00,0x60,0x00,0x40,0x04,0x00, 0x04,0x00,0x00,0xc0,0x00,0x40,0x04,0x00,0x06,0x00,0x00,0x00,0x07,0x80,0x07, 0xc0,0x01,0x00,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0xc0,0x01, 0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0e,0xe0,0x00,0x00,0x00,0x00,0x00,0x00, 0x70,0x1c,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x03,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/lancePW.xbm0000644000175000017500000000524212274270516015220 00000000000000#define lancePW_width 64 #define lancePW_height 64 static unsigned char lancePW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x0e,0x00,0x00,0x00,0x00,0x00,0xf0,0x80, 0x70,0x00,0x00,0x00,0x00,0x00,0x0f,0xc0,0x81,0x03,0x00,0x00,0x00,0xf0,0x00, 0x38,0x0e,0x1c,0x00,0x00,0x00,0x08,0x00,0x07,0x70,0x60,0x00,0x00,0x00,0x0c, 0xe0,0xe0,0x83,0x83,0x00,0x00,0x00,0x14,0x1c,0x10,0x04,0x1c,0x01,0x00,0x00, 0x94,0x03,0x28,0x08,0xe0,0x01,0x00,0x00,0x64,0x00,0x24,0x10,0x00,0x03,0x00, 0x00,0x22,0x00,0x24,0x10,0x00,0x02,0x00,0x00,0x22,0x00,0x24,0x10,0x00,0x02, 0x00,0x00,0x22,0x00,0x24,0x10,0x00,0x02,0x00,0x00,0x22,0x00,0x24,0x10,0x00, 0x02,0x00,0x00,0x12,0x00,0xe8,0x0b,0x00,0x04,0x00,0x00,0x12,0x00,0x10,0x04, 0x00,0x04,0x00,0x00,0x11,0x00,0xe0,0x03,0x00,0x04,0x00,0x00,0x11,0x00,0x00, 0x00,0x00,0x04,0x00,0x00,0x11,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00, 0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x08,0x80,0x00,0x08,0x04,0x00,0x00,0x09, 0x10,0x80,0x00,0x04,0x08,0x00,0x80,0x08,0x20,0x80,0x00,0x02,0x08,0x00,0x80, 0x08,0x40,0x80,0x00,0x01,0x08,0x00,0x80,0x08,0x80,0x80,0x80,0x00,0x08,0x00, 0x80,0x08,0x00,0x81,0x40,0x00,0x08,0x00,0x80,0x08,0x00,0x82,0x20,0x00,0x08, 0x00,0x80,0x08,0x00,0x84,0x10,0x00,0x08,0x00,0x40,0x04,0x00,0x88,0x08,0x00, 0x10,0x00,0x40,0x04,0x00,0x90,0x04,0x00,0x10,0x00,0x40,0x04,0x00,0xa0,0x02, 0x00,0x10,0x00,0x40,0x04,0x00,0xc0,0x01,0x00,0x10,0x00,0x40,0x04,0xf8,0xff, 0xff,0x0f,0x10,0x00,0x40,0x04,0x00,0x80,0x00,0x00,0x10,0x00,0x20,0x02,0x00, 0x80,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x20,0x00,0x20,0x02, 0x00,0x80,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x20,0x00,0x20, 0x02,0x00,0x80,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x20,0x00, 0x10,0x02,0x00,0x80,0x00,0x00,0x20,0x00,0x10,0x01,0x00,0x80,0x00,0x00,0x40, 0x00,0x10,0x01,0x00,0x80,0x00,0x00,0x40,0x00,0x10,0x01,0x00,0x80,0x00,0x00, 0x40,0x00,0x10,0x01,0x00,0x80,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00, 0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00, 0x00,0x00,0x40,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00, 0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0xc0,0x00,0x80,0xff, 0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/rookW.xbm0000644000175000017500000000523412274270516014771 00000000000000#define rookW_width 64 #define rookW_height 64 static unsigned char rookW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xf0,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x8e,0x3c,0x00, 0x00,0x00,0x00,0x00,0xe0,0x81,0xc0,0x03,0x00,0x00,0x00,0x00,0x1e,0x00,0x01, 0x3c,0x00,0x00,0x00,0xe0,0x01,0xc0,0x01,0xc0,0x03,0x00,0x00,0x1c,0x00,0x3c, 0x1e,0x00,0x1c,0x00,0x00,0x04,0xc0,0x03,0xe0,0x01,0x10,0x00,0x00,0x06,0x38, 0x00,0x00,0x0e,0x60,0x00,0x00,0x8a,0x07,0x00,0x00,0xf0,0x40,0x00,0x00,0x7a, 0x00,0x00,0x00,0x00,0x4f,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x70,0x00,0x00, 0x12,0x00,0xe0,0x01,0x00,0x80,0x00,0x00,0x11,0x00,0x20,0x02,0x00,0x80,0x00, 0x00,0x11,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x09,0x00,0xe0,0x01,0x00,0x80, 0x00,0x00,0x09,0x00,0x20,0x01,0x00,0x80,0x00,0x00,0x09,0x00,0x20,0x02,0x00, 0x80,0x00,0x00,0x09,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x09,0x00,0x00,0x00, 0x00,0x00,0x01,0x80,0x08,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x08,0x00,0x00, 0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00, 0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x80,0x00,0x00,0x00,0x01,0x80,0x04, 0x00,0xc0,0x01,0x00,0x00,0x01,0x80,0x04,0x00,0xe0,0x03,0x00,0x00,0x02,0x40, 0x04,0x00,0x90,0x04,0x00,0x00,0x02,0x40,0x02,0x00,0x80,0x00,0x00,0x00,0x02, 0x40,0x02,0x00,0x80,0x00,0x00,0x00,0x02,0x40,0x02,0x00,0x80,0x00,0x00,0x00, 0x02,0x40,0x02,0x00,0x80,0x00,0x00,0x00,0x02,0x40,0x02,0x00,0x80,0x00,0x00, 0x00,0x04,0x20,0x02,0x40,0x80,0x00,0x01,0x00,0x04,0x20,0x02,0x20,0x80,0x00, 0x02,0x00,0x04,0x20,0x01,0x30,0x80,0x00,0x06,0x00,0x04,0x20,0x01,0xf8,0xff, 0xff,0x0f,0x00,0x04,0x20,0x01,0x30,0x80,0x00,0x06,0x00,0x04,0x20,0x01,0x20, 0x80,0x00,0x02,0x00,0x08,0x20,0x01,0x40,0x80,0x00,0x01,0x00,0x08,0x10,0x01, 0x00,0x80,0x00,0x00,0x00,0x08,0x10,0x01,0x00,0x80,0x00,0x00,0x00,0x08,0x90, 0x00,0x00,0x80,0x00,0x00,0x00,0x08,0x90,0x00,0x00,0x80,0x00,0x00,0x00,0x08, 0x90,0x00,0x00,0x80,0x00,0x00,0x00,0x10,0x90,0x00,0x00,0x90,0x04,0x00,0x00, 0x10,0x90,0x00,0x00,0xe0,0x03,0x00,0x00,0x10,0x88,0x00,0x00,0xc0,0x01,0x00, 0x00,0x10,0x48,0x00,0x00,0x80,0x00,0x00,0x00,0x10,0x48,0x00,0x00,0x00,0x00, 0x00,0x00,0x10,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00, 0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00, 0x00,0x00,0x00,0x00,0x20,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24, 0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x40, 0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x30,0x00,0x00,0x00,0x00,0x00,0x00, 0x60,0xe0,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/pawnW.xbm0000644000175000017500000000523412274270516014764 00000000000000#define pawnW_width 64 #define pawnW_height 64 static unsigned char pawnW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x0e,0x00,0x00,0x00,0x00,0x00,0xf0,0x80, 0x70,0x00,0x00,0x00,0x00,0x00,0x0f,0xc0,0x81,0x03,0x00,0x00,0x00,0xf0,0x00, 0x38,0x0e,0x1c,0x00,0x00,0x00,0x08,0x00,0x07,0x70,0x60,0x00,0x00,0x00,0x0c, 0xe0,0x00,0x80,0x83,0x00,0x00,0x00,0x14,0x1c,0x00,0x00,0x1c,0x01,0x00,0x00, 0x94,0x03,0xe0,0x01,0xe0,0x01,0x00,0x00,0x64,0x00,0x20,0x02,0x00,0x03,0x00, 0x00,0x22,0x00,0x20,0x02,0x00,0x02,0x00,0x00,0x22,0x00,0xe0,0x01,0x00,0x02, 0x00,0x00,0x22,0x00,0x20,0x00,0x00,0x02,0x00,0x00,0x22,0x00,0x20,0x00,0x00, 0x02,0x00,0x00,0x12,0x00,0x20,0x00,0x00,0x04,0x00,0x00,0x12,0x00,0x00,0x00, 0x00,0x04,0x00,0x00,0x11,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00,0x00, 0x00,0x00,0x04,0x00,0x00,0x11,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00, 0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00,0x80,0x00,0x00,0x04,0x00,0x00,0x09, 0x00,0x80,0x00,0x00,0x08,0x00,0x80,0x08,0x00,0x80,0x00,0x00,0x08,0x00,0x80, 0x08,0x00,0x80,0x00,0x00,0x08,0x00,0x80,0x08,0x00,0x80,0x00,0x00,0x08,0x00, 0x80,0x08,0x00,0x80,0x00,0x00,0x08,0x00,0x80,0x08,0x00,0x80,0x00,0x00,0x08, 0x00,0x80,0x08,0x00,0x80,0x00,0x00,0x08,0x00,0x40,0x04,0x00,0x80,0x00,0x00, 0x10,0x00,0x40,0x04,0x00,0x80,0x00,0x00,0x10,0x00,0x40,0x04,0x00,0x80,0x00, 0x00,0x10,0x00,0x40,0x04,0x00,0x80,0x00,0x00,0x10,0x00,0x40,0x04,0x00,0x80, 0x00,0x00,0x10,0x00,0x40,0x04,0x00,0x00,0x00,0x00,0x10,0x00,0x20,0x02,0x00, 0x00,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x20,0x00,0x20,0x02, 0x00,0x00,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x20,0x00,0x20, 0x02,0x00,0x00,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x20,0x00, 0x10,0x02,0x00,0x00,0x00,0x00,0x20,0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40, 0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x00, 0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00, 0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00, 0x00,0x00,0x40,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00, 0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0xc0,0x00,0x80,0xff, 0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/rookPW.xbm0000644000175000017500000000523712274270516015114 00000000000000#define rookPW_width 64 #define rookPW_height 64 static unsigned char rookPW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xf0,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x8e,0x3c,0x00, 0x00,0x00,0x00,0x00,0xe0,0x81,0xc0,0x03,0x00,0x00,0x00,0x00,0x1e,0x00,0x01, 0x3c,0x00,0x00,0x00,0xe0,0x01,0xc0,0x01,0xc0,0x03,0x00,0x00,0x1c,0x00,0x3c, 0x1e,0x00,0x1c,0x00,0x00,0x04,0xc0,0x03,0xe0,0x01,0x10,0x00,0x00,0x06,0x38, 0x00,0x00,0x0e,0x60,0x00,0x00,0x8a,0x07,0x00,0x00,0xf0,0x40,0x00,0x00,0x7a, 0x00,0xe0,0x03,0x00,0x4f,0x00,0x00,0x12,0x00,0x10,0x04,0x00,0x70,0x00,0x00, 0x12,0x00,0xe8,0x09,0x00,0x80,0x00,0x00,0x11,0x00,0x24,0x12,0x00,0x80,0x00, 0x00,0x11,0x00,0x24,0x12,0x00,0x80,0x00,0x00,0x09,0x00,0xe4,0x11,0x00,0x80, 0x00,0x00,0x09,0x00,0x24,0x11,0x00,0x80,0x00,0x00,0x09,0x00,0x24,0x12,0x00, 0x80,0x00,0x00,0x09,0x00,0x28,0x0a,0x00,0x80,0x00,0x00,0x09,0x00,0x10,0x04, 0x00,0x00,0x01,0x80,0x08,0x00,0xe0,0x03,0x00,0x00,0x01,0x80,0x08,0x00,0x00, 0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00, 0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x08,0x80,0x00,0x08,0x00,0x01,0x80,0x04, 0x10,0xc0,0x01,0x04,0x00,0x01,0x80,0x04,0x20,0xe0,0x03,0x02,0x00,0x02,0x40, 0x04,0x40,0x90,0x04,0x01,0x00,0x02,0x40,0x02,0x80,0x80,0x80,0x00,0x00,0x02, 0x40,0x02,0x00,0x81,0x40,0x00,0x00,0x02,0x40,0x02,0x00,0x82,0x20,0x00,0x00, 0x02,0x40,0x02,0x00,0x84,0x10,0x00,0x00,0x02,0x40,0x02,0x00,0x88,0x08,0x00, 0x00,0x04,0x20,0x02,0x40,0x90,0x04,0x01,0x00,0x04,0x20,0x02,0x20,0xa0,0x02, 0x02,0x00,0x04,0x20,0x01,0x30,0xc0,0x01,0x06,0x00,0x04,0x20,0x01,0xf8,0xff, 0xff,0x0f,0x00,0x04,0x20,0x01,0x30,0xc0,0x01,0x06,0x00,0x04,0x20,0x01,0x20, 0xa0,0x02,0x02,0x00,0x08,0x20,0x01,0x40,0x90,0x04,0x01,0x00,0x08,0x10,0x01, 0x00,0x88,0x08,0x00,0x00,0x08,0x10,0x01,0x00,0x84,0x10,0x00,0x00,0x08,0x90, 0x00,0x00,0x82,0x20,0x00,0x00,0x08,0x90,0x00,0x00,0x81,0x40,0x00,0x00,0x08, 0x90,0x00,0x80,0x80,0x80,0x00,0x00,0x10,0x90,0x00,0x40,0x90,0x04,0x01,0x00, 0x10,0x90,0x00,0x20,0xe0,0x03,0x02,0x00,0x10,0x88,0x00,0x10,0xc0,0x01,0x04, 0x00,0x10,0x48,0x00,0x08,0x80,0x00,0x08,0x00,0x10,0x48,0x00,0x00,0x00,0x00, 0x00,0x00,0x10,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00, 0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00, 0x00,0x00,0x00,0x00,0x20,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24, 0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x40, 0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x30,0x00,0x00,0x00,0x00,0x00,0x00, 0x60,0xe0,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/noneW.xbm0000644000175000017500000000523412274270516014756 00000000000000#define noneW_width 64 #define noneW_height 64 static unsigned char noneW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/lanceRW.xbm0000644000175000017500000000524212274270516015222 00000000000000#define lanceRW_width 64 #define lanceRW_height 64 static unsigned char lanceRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf8,0xff,0xff,0xff,0xff,0xff, 0x3f,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x28,0x00,0x00,0x00,0x00, 0x00,0x80,0x00,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x90,0xff,0xff,0xff, 0xff,0xff,0xff,0x01,0x10,0x01,0x00,0x00,0x00,0x00,0x00,0x01,0x10,0x01,0x00, 0x00,0x00,0x00,0x00,0x01,0x10,0x01,0x00,0x00,0x00,0x00,0x00,0x01,0x10,0x02, 0x00,0x00,0x00,0x00,0x80,0x00,0x10,0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20, 0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x80,0x00, 0x20,0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x80, 0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20,0x04,0x00,0x00,0x00,0x00, 0x40,0x00,0x20,0x04,0x00,0x00,0x00,0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x00, 0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x00,0x00,0x40,0x00,0x40,0x04,0x00,0x00, 0x00,0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x00,0x00,0x40,0x00,0x40,0x04,0x00, 0x00,0x00,0x00,0x40,0x00,0x40,0x08,0x00,0x00,0x00,0x00,0x20,0x00,0x80,0x08, 0x00,0x00,0x01,0x00,0x20,0x00,0x80,0x08,0x00,0x00,0x01,0x00,0x20,0x00,0x80, 0x08,0x00,0x00,0x01,0x00,0x20,0x00,0x80,0x08,0x00,0x00,0x01,0x00,0x20,0x00, 0x80,0x08,0x00,0x00,0x01,0x00,0x20,0x00,0x80,0x10,0x00,0x00,0x01,0x00,0x10, 0x00,0x80,0x10,0x00,0x00,0x01,0x00,0x10,0x00,0x00,0x11,0x00,0x00,0x01,0x00, 0x10,0x00,0x00,0x11,0x00,0x00,0x01,0x00,0x10,0x00,0x00,0x11,0x00,0x20,0x09, 0x00,0x10,0x00,0x00,0x11,0x00,0xc0,0x07,0x00,0x10,0x00,0x00,0x11,0x00,0x80, 0x03,0x00,0x10,0x00,0x00,0x21,0x00,0x00,0x01,0x00,0x08,0x00,0x00,0x22,0x00, 0x00,0x00,0x00,0x08,0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x22, 0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x08,0x00,0x00, 0x24,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x28,0x00,0xc0,0x07,0x00,0x08,0x00, 0x00,0x48,0x00,0x00,0x04,0x00,0x04,0x00,0x00,0x50,0x00,0x00,0x04,0x00,0x04, 0x00,0x00,0x50,0x00,0x00,0x04,0x00,0x04,0x00,0x00,0x60,0x00,0x00,0x04,0x00, 0x04,0x00,0x00,0xc0,0x00,0x00,0x04,0x00,0x06,0x00,0x00,0x00,0x07,0x00,0x04, 0xc0,0x01,0x00,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0xc0,0x01, 0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0e,0xe0,0x00,0x00,0x00,0x00,0x00,0x00, 0x70,0x1c,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x03,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/rookRW.xbm0000644000175000017500000000523712274270516015116 00000000000000#define rookRW_width 64 #define rookRW_height 64 static unsigned char rookRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x06,0x00,0x00,0x00,0x00,0x00, 0x00,0x08,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x12,0x00,0x00,0x00,0x00, 0x00,0x00,0x20,0xe4,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x24,0x00,0x00,0x00, 0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00, 0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x44, 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x20, 0x48,0x00,0x00,0x80,0x03,0x00,0x00,0x20,0x48,0x00,0x00,0xc0,0x07,0x00,0x00, 0x20,0x48,0x00,0x00,0x20,0x09,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x01,0x00, 0x00,0x10,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x10,0x88,0x00,0x00,0x00,0x01, 0x00,0x00,0x10,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x10,0x90,0x00,0x00,0x00, 0x01,0x00,0x00,0x10,0x90,0x00,0x80,0x00,0x01,0x02,0x00,0x10,0x90,0x00,0x40, 0x00,0x01,0x04,0x00,0x08,0x90,0x00,0x60,0x00,0x01,0x0c,0x00,0x08,0x10,0x01, 0xf0,0xff,0xff,0x1f,0x00,0x08,0x10,0x01,0x60,0x00,0x01,0x0c,0x00,0x08,0x20, 0x01,0x40,0x00,0x01,0x04,0x00,0x08,0x20,0x01,0x80,0x00,0x01,0x02,0x00,0x08, 0x20,0x01,0x00,0x00,0x01,0x00,0x00,0x04,0x20,0x01,0x00,0x00,0x01,0x00,0x00, 0x04,0x20,0x01,0x00,0x00,0x01,0x00,0x00,0x04,0x20,0x02,0x00,0x00,0x01,0x00, 0x00,0x04,0x20,0x02,0x00,0x00,0x01,0x00,0x00,0x04,0x40,0x02,0x00,0x20,0x09, 0x00,0x00,0x04,0x40,0x02,0x00,0xc0,0x07,0x00,0x00,0x02,0x40,0x02,0x00,0x80, 0x03,0x00,0x00,0x02,0x40,0x02,0x00,0x00,0x01,0x00,0x00,0x02,0x40,0x02,0x00, 0x00,0x00,0x00,0x00,0x02,0x40,0x04,0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04, 0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80, 0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x40,0x04,0x00,0x00,0x01, 0x80,0x04,0x00,0x40,0x04,0x00,0x00,0x01,0x80,0x08,0x00,0x80,0x04,0x00,0x00, 0x01,0x80,0x08,0x00,0x80,0x07,0x00,0x00,0x01,0x00,0x09,0x00,0x40,0x04,0x00, 0x00,0x01,0x00,0x09,0x00,0x40,0x04,0x00,0x80,0x00,0x00,0x09,0x00,0x80,0x07, 0x00,0x80,0x00,0x00,0x09,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x09,0x00,0x00, 0x00,0x00,0x80,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x14,0x00, 0x00,0x00,0x00,0x80,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x10, 0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x0f,0x00,0x00, 0x80,0x07,0x00,0x00,0xf0,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x0e,0x00,0x00, 0x00,0x00,0xc0,0x03,0xe0,0x01,0x00,0x00,0x00,0x00,0x00,0x3c,0x1e,0x00,0x00, 0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/lanceW.xbm0000644000175000017500000000523712274270516015104 00000000000000#define lanceW_width 64 #define lanceW_height 64 static unsigned char lanceW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x0e,0x00,0x00,0x00,0x00,0x00,0xf0,0x80, 0x70,0x00,0x00,0x00,0x00,0x00,0x0f,0xc0,0x81,0x03,0x00,0x00,0x00,0xf0,0x00, 0x38,0x0e,0x1c,0x00,0x00,0x00,0x08,0x00,0x07,0x70,0x60,0x00,0x00,0x00,0x0c, 0xe0,0x00,0x80,0x83,0x00,0x00,0x00,0x14,0x1c,0x00,0x00,0x1c,0x01,0x00,0x00, 0x94,0x03,0x20,0x00,0xe0,0x01,0x00,0x00,0x64,0x00,0x20,0x00,0x00,0x03,0x00, 0x00,0x22,0x00,0x20,0x00,0x00,0x02,0x00,0x00,0x22,0x00,0x20,0x00,0x00,0x02, 0x00,0x00,0x22,0x00,0x20,0x00,0x00,0x02,0x00,0x00,0x22,0x00,0x20,0x00,0x00, 0x02,0x00,0x00,0x12,0x00,0xe0,0x03,0x00,0x04,0x00,0x00,0x12,0x00,0x00,0x00, 0x00,0x04,0x00,0x00,0x11,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00,0x00, 0x00,0x00,0x04,0x00,0x00,0x11,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00, 0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00,0x80,0x00,0x00,0x04,0x00,0x00,0x09, 0x00,0xc0,0x01,0x00,0x08,0x00,0x80,0x08,0x00,0xe0,0x03,0x00,0x08,0x00,0x80, 0x08,0x00,0x90,0x04,0x00,0x08,0x00,0x80,0x08,0x00,0x80,0x00,0x00,0x08,0x00, 0x80,0x08,0x00,0x80,0x00,0x00,0x08,0x00,0x80,0x08,0x00,0x80,0x00,0x00,0x08, 0x00,0x80,0x08,0x00,0x80,0x00,0x00,0x08,0x00,0x40,0x04,0x00,0x80,0x00,0x00, 0x10,0x00,0x40,0x04,0x00,0x80,0x00,0x00,0x10,0x00,0x40,0x04,0x00,0x80,0x00, 0x00,0x10,0x00,0x40,0x04,0x00,0x80,0x00,0x00,0x10,0x00,0x40,0x04,0x00,0x80, 0x00,0x00,0x10,0x00,0x40,0x04,0x00,0x00,0x00,0x00,0x10,0x00,0x20,0x02,0x00, 0x00,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x20,0x00,0x20,0x02, 0x00,0x00,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x20,0x00,0x20, 0x02,0x00,0x00,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x20,0x00, 0x10,0x02,0x00,0x00,0x00,0x00,0x20,0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40, 0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x00, 0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00, 0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00, 0x00,0x00,0x40,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00, 0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0xc0,0x00,0x80,0xff, 0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/silverPW.xbm0000644000175000017500000000524512274270516015445 00000000000000#define silverPW_width 64 #define silverPW_height 64 static unsigned char silverPW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xf0,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x8e,0x3c,0x00, 0x00,0x00,0x00,0x00,0xe0,0x81,0xc0,0x03,0x00,0x00,0x00,0x00,0x1e,0x00,0x01, 0x3c,0x00,0x00,0x00,0xe0,0x01,0xc0,0x01,0xc0,0x03,0x00,0x00,0x1c,0x00,0x3c, 0x1e,0x00,0x1c,0x00,0x00,0x04,0xc0,0x03,0xe0,0x01,0x10,0x00,0x00,0x06,0x38, 0x00,0x00,0x0e,0x60,0x00,0x00,0x8a,0x07,0x00,0x00,0xf0,0x40,0x00,0x00,0x7a, 0x00,0xe0,0x03,0x00,0x4f,0x00,0x00,0x12,0x00,0x10,0x04,0x00,0x70,0x00,0x00, 0x12,0x00,0xc8,0x0b,0x00,0x80,0x00,0x00,0x11,0x00,0x24,0x10,0x00,0x80,0x00, 0x00,0x11,0x00,0x24,0x10,0x00,0x80,0x00,0x00,0x09,0x00,0xc4,0x11,0x00,0x80, 0x00,0x00,0x09,0x00,0x04,0x12,0x00,0x80,0x00,0x00,0x09,0x00,0x04,0x12,0x00, 0x80,0x00,0x00,0x09,0x00,0xe8,0x09,0x00,0x80,0x00,0x00,0x09,0x00,0x10,0x04, 0x00,0x00,0x01,0x80,0x08,0x00,0xe0,0x03,0x00,0x00,0x01,0x80,0x08,0x00,0x00, 0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00, 0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x08,0x80,0x00,0x08,0x00,0x01,0x80,0x04, 0x10,0x80,0x00,0x04,0x00,0x01,0x80,0x04,0x20,0x80,0x00,0x02,0x00,0x02,0x40, 0x04,0x40,0x80,0x00,0x01,0x00,0x02,0x40,0x02,0x80,0x80,0x80,0x00,0x00,0x02, 0x40,0x02,0x00,0x81,0x40,0x00,0x00,0x02,0x40,0x02,0x00,0x82,0x20,0x00,0x00, 0x02,0x40,0x02,0x00,0x84,0x10,0x00,0x00,0x02,0x40,0x02,0x00,0x88,0x08,0x00, 0x00,0x04,0x20,0x02,0x00,0x90,0x04,0x00,0x00,0x04,0x20,0x02,0x00,0xa0,0x02, 0x00,0x00,0x04,0x20,0x01,0x00,0xc0,0x01,0x00,0x00,0x04,0x20,0x01,0xf8,0xff, 0xff,0x0f,0x00,0x04,0x20,0x01,0x00,0x80,0x00,0x00,0x00,0x04,0x20,0x01,0x00, 0x80,0x00,0x00,0x00,0x08,0x20,0x01,0x00,0x80,0x00,0x00,0x00,0x08,0x10,0x01, 0x00,0x80,0x00,0x00,0x00,0x08,0x10,0x01,0x00,0x80,0x00,0x00,0x00,0x08,0x90, 0x00,0x00,0x80,0x00,0x00,0x00,0x08,0x90,0x00,0x00,0x80,0x00,0x00,0x00,0x08, 0x90,0x00,0x00,0x80,0x00,0x00,0x00,0x10,0x90,0x00,0x00,0x80,0x00,0x00,0x00, 0x10,0x90,0x00,0x00,0x80,0x00,0x00,0x00,0x10,0x88,0x00,0x00,0x80,0x00,0x00, 0x00,0x10,0x48,0x00,0x00,0x80,0x00,0x00,0x00,0x10,0x48,0x00,0x00,0x00,0x00, 0x00,0x00,0x10,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00, 0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00, 0x00,0x00,0x00,0x00,0x20,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24, 0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x40, 0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x30,0x00,0x00,0x00,0x00,0x00,0x00, 0x60,0xe0,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/rookPRW.xbm0000644000175000017500000000524212274270516015232 00000000000000#define rookPRW_width 64 #define rookPRW_height 64 static unsigned char rookPRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x06,0x00,0x00,0x00,0x00,0x00, 0x00,0x08,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x12,0x00,0x00,0x00,0x00, 0x00,0x00,0x20,0xe4,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x24,0x00,0x00,0x00, 0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00, 0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x44, 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x10,0x00,0x01,0x10,0x00,0x20, 0x48,0x00,0x20,0x80,0x03,0x08,0x00,0x20,0x48,0x00,0x40,0xc0,0x07,0x04,0x00, 0x20,0x48,0x00,0x80,0x20,0x09,0x02,0x00,0x20,0x48,0x00,0x00,0x01,0x01,0x01, 0x00,0x10,0x48,0x00,0x00,0x02,0x81,0x00,0x00,0x10,0x88,0x00,0x00,0x04,0x41, 0x00,0x00,0x10,0x90,0x00,0x00,0x08,0x21,0x00,0x00,0x10,0x90,0x00,0x00,0x10, 0x11,0x00,0x00,0x10,0x90,0x00,0x80,0x20,0x09,0x02,0x00,0x10,0x90,0x00,0x40, 0x40,0x05,0x04,0x00,0x08,0x90,0x00,0x60,0x80,0x03,0x0c,0x00,0x08,0x10,0x01, 0xf0,0xff,0xff,0x1f,0x00,0x08,0x10,0x01,0x60,0x80,0x03,0x0c,0x00,0x08,0x20, 0x01,0x40,0x40,0x05,0x04,0x00,0x08,0x20,0x01,0x80,0x20,0x09,0x02,0x00,0x08, 0x20,0x01,0x00,0x10,0x11,0x00,0x00,0x04,0x20,0x01,0x00,0x08,0x21,0x00,0x00, 0x04,0x20,0x01,0x00,0x04,0x41,0x00,0x00,0x04,0x20,0x02,0x00,0x02,0x81,0x00, 0x00,0x04,0x20,0x02,0x00,0x01,0x01,0x01,0x00,0x04,0x40,0x02,0x80,0x20,0x09, 0x02,0x00,0x04,0x40,0x02,0x40,0xc0,0x07,0x04,0x00,0x02,0x40,0x02,0x20,0x80, 0x03,0x08,0x00,0x02,0x40,0x02,0x10,0x00,0x01,0x10,0x00,0x02,0x40,0x02,0x00, 0x00,0x00,0x00,0x00,0x02,0x40,0x04,0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04, 0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04,0x00,0xc0,0x07,0x00,0x00,0x01,0x80, 0x04,0x00,0x20,0x08,0x00,0x00,0x01,0x80,0x04,0x00,0x50,0x14,0x00,0x00,0x01, 0x80,0x04,0x00,0x48,0x24,0x00,0x00,0x01,0x80,0x08,0x00,0x88,0x24,0x00,0x00, 0x01,0x80,0x08,0x00,0x88,0x27,0x00,0x00,0x01,0x00,0x09,0x00,0x48,0x24,0x00, 0x00,0x01,0x00,0x09,0x00,0x48,0x24,0x00,0x80,0x00,0x00,0x09,0x00,0x90,0x17, 0x00,0x80,0x00,0x00,0x09,0x00,0x20,0x08,0x00,0x80,0x00,0x00,0x09,0x00,0xc0, 0x07,0x00,0x80,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x14,0x00, 0x00,0x00,0x00,0x80,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x10, 0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x0f,0x00,0x00, 0x80,0x07,0x00,0x00,0xf0,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x0e,0x00,0x00, 0x00,0x00,0xc0,0x03,0xe0,0x01,0x00,0x00,0x00,0x00,0x00,0x3c,0x1e,0x00,0x00, 0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/kingW.xbm0000644000175000017500000000523412274270516014747 00000000000000#define kingW_width 64 #define kingW_height 64 static unsigned char kingW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xf0,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x8e,0x3c,0x00, 0x00,0x00,0x00,0x00,0xe0,0x81,0xc0,0x03,0x00,0x00,0x00,0x00,0x1e,0x00,0x01, 0x3c,0x00,0x00,0x00,0xe0,0x01,0xc0,0x01,0xc0,0x03,0x00,0x00,0x1c,0x00,0x3c, 0x1e,0x00,0x1c,0x00,0x00,0x04,0xc0,0x03,0xe0,0x01,0x10,0x00,0x00,0x06,0x38, 0x00,0x00,0x0e,0x60,0x00,0x00,0x8a,0x07,0x00,0x00,0xf0,0x40,0x00,0x00,0x7a, 0x00,0x00,0x00,0x00,0x4f,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x70,0x00,0x00, 0x12,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x11,0x00,0x20,0x01,0x00,0x80,0x00, 0x00,0x11,0x00,0xa0,0x00,0x00,0x80,0x00,0x00,0x09,0x00,0x60,0x00,0x00,0x80, 0x00,0x00,0x09,0x00,0xa0,0x00,0x00,0x80,0x00,0x00,0x09,0x00,0x20,0x01,0x00, 0x80,0x00,0x00,0x09,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x09,0x00,0x00,0x00, 0x00,0x00,0x01,0x80,0x08,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x08,0x00,0x00, 0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00, 0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x08,0x80,0x00,0x08,0x00,0x01,0x80,0x04, 0x10,0x80,0x00,0x04,0x00,0x01,0x80,0x04,0x20,0x80,0x00,0x02,0x00,0x02,0x40, 0x04,0x40,0x80,0x00,0x01,0x00,0x02,0x40,0x02,0x80,0x80,0x80,0x00,0x00,0x02, 0x40,0x02,0x00,0x81,0x40,0x00,0x00,0x02,0x40,0x02,0x00,0x82,0x20,0x00,0x00, 0x02,0x40,0x02,0x00,0x84,0x10,0x00,0x00,0x02,0x40,0x02,0x00,0x88,0x08,0x00, 0x00,0x04,0x20,0x02,0x00,0x90,0x04,0x00,0x00,0x04,0x20,0x02,0x00,0xa0,0x02, 0x00,0x00,0x04,0x20,0x01,0x00,0xc0,0x01,0x00,0x00,0x04,0x20,0x01,0xf8,0xff, 0xff,0x0f,0x00,0x04,0x20,0x01,0x00,0xc0,0x01,0x00,0x00,0x04,0x20,0x01,0x00, 0xa0,0x02,0x00,0x00,0x08,0x20,0x01,0x00,0x90,0x04,0x00,0x00,0x08,0x10,0x01, 0x00,0x88,0x08,0x00,0x00,0x08,0x10,0x01,0x00,0x84,0x10,0x00,0x00,0x08,0x90, 0x00,0x00,0x82,0x20,0x00,0x00,0x08,0x90,0x00,0x00,0x81,0x40,0x00,0x00,0x08, 0x90,0x00,0x80,0x80,0x80,0x00,0x00,0x10,0x90,0x00,0x40,0x80,0x00,0x01,0x00, 0x10,0x90,0x00,0x20,0x80,0x00,0x02,0x00,0x10,0x88,0x00,0x10,0x80,0x00,0x04, 0x00,0x10,0x48,0x00,0x08,0x80,0x00,0x08,0x00,0x10,0x48,0x00,0x00,0x00,0x00, 0x00,0x00,0x10,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00, 0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00, 0x00,0x00,0x00,0x00,0x20,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24, 0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x40, 0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x30,0x00,0x00,0x00,0x00,0x00,0x00, 0x60,0xe0,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/bishopW.xbm0000644000175000017500000000524212274270516015302 00000000000000#define bishopW_width 64 #define bishopW_height 64 static unsigned char bishopW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xf0,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x8e,0x3c,0x00, 0x00,0x00,0x00,0x00,0xe0,0x81,0xc0,0x03,0x00,0x00,0x00,0x00,0x1e,0x00,0x01, 0x3c,0x00,0x00,0x00,0xe0,0x01,0xc0,0x01,0xc0,0x03,0x00,0x00,0x1c,0x00,0x3c, 0x1e,0x00,0x1c,0x00,0x00,0x04,0xc0,0x03,0xe0,0x01,0x10,0x00,0x00,0x06,0x38, 0x00,0x00,0x0e,0x60,0x00,0x00,0x8a,0x07,0x00,0x00,0xf0,0x40,0x00,0x00,0x7a, 0x00,0x00,0x00,0x00,0x4f,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x70,0x00,0x00, 0x12,0x00,0xe0,0x01,0x00,0x80,0x00,0x00,0x11,0x00,0x20,0x02,0x00,0x80,0x00, 0x00,0x11,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x09,0x00,0xe0,0x01,0x00,0x80, 0x00,0x00,0x09,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x09,0x00,0x20,0x02,0x00, 0x80,0x00,0x00,0x09,0x00,0xe0,0x01,0x00,0x80,0x00,0x00,0x09,0x00,0x00,0x00, 0x00,0x00,0x01,0x80,0x08,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x08,0x00,0x00, 0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00, 0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x78,0x00,0x00,0x0f,0x00,0x01,0x80,0x04, 0x18,0x00,0x00,0x0c,0x00,0x01,0x80,0x04,0x28,0x00,0x00,0x0a,0x00,0x02,0x40, 0x04,0x48,0x00,0x00,0x09,0x00,0x02,0x40,0x02,0x80,0x00,0x80,0x00,0x00,0x02, 0x40,0x02,0x00,0x01,0x40,0x00,0x00,0x02,0x40,0x02,0x00,0x02,0x20,0x00,0x00, 0x02,0x40,0x02,0x00,0x04,0x10,0x00,0x00,0x02,0x40,0x02,0x00,0x08,0x08,0x00, 0x00,0x04,0x20,0x02,0x00,0x10,0x04,0x00,0x00,0x04,0x20,0x02,0x00,0x20,0x02, 0x00,0x00,0x04,0x20,0x01,0x00,0x40,0x01,0x00,0x00,0x04,0x20,0x01,0x00,0x80, 0x00,0x00,0x00,0x04,0x20,0x01,0x00,0x40,0x01,0x00,0x00,0x04,0x20,0x01,0x00, 0x20,0x02,0x00,0x00,0x08,0x20,0x01,0x00,0x10,0x04,0x00,0x00,0x08,0x10,0x01, 0x00,0x08,0x08,0x00,0x00,0x08,0x10,0x01,0x00,0x04,0x10,0x00,0x00,0x08,0x90, 0x00,0x00,0x02,0x20,0x00,0x00,0x08,0x90,0x00,0x00,0x01,0x40,0x00,0x00,0x08, 0x90,0x00,0x80,0x00,0x80,0x00,0x00,0x10,0x90,0x00,0x48,0x00,0x00,0x09,0x00, 0x10,0x90,0x00,0x28,0x00,0x00,0x0a,0x00,0x10,0x88,0x00,0x18,0x00,0x00,0x0c, 0x00,0x10,0x48,0x00,0x78,0x00,0x00,0x0f,0x00,0x10,0x48,0x00,0x00,0x00,0x00, 0x00,0x00,0x10,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00, 0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00, 0x00,0x00,0x00,0x00,0x20,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24, 0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x40, 0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x30,0x00,0x00,0x00,0x00,0x00,0x00, 0x60,0xe0,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/bishopPRW.xbm0000644000175000017500000000525012274270516015543 00000000000000#define bishopPRW_width 64 #define bishopPRW_height 64 static unsigned char bishopPRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x06,0x00,0x00,0x00,0x00,0x00, 0x00,0x08,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x12,0x00,0x00,0x00,0x00, 0x00,0x00,0x20,0xe4,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x24,0x00,0x00,0x00, 0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00, 0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x44, 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0xf0,0x00,0x01,0x1e,0x00,0x20, 0x48,0x00,0x30,0x00,0x01,0x18,0x00,0x20,0x48,0x00,0x50,0x00,0x01,0x14,0x00, 0x20,0x48,0x00,0x90,0x00,0x01,0x12,0x00,0x20,0x48,0x00,0x00,0x01,0x01,0x01, 0x00,0x10,0x48,0x00,0x00,0x02,0x81,0x00,0x00,0x10,0x88,0x00,0x00,0x04,0x41, 0x00,0x00,0x10,0x90,0x00,0x00,0x08,0x21,0x00,0x00,0x10,0x90,0x00,0x00,0x10, 0x11,0x00,0x00,0x10,0x90,0x00,0x00,0x20,0x09,0x00,0x00,0x10,0x90,0x00,0x00, 0x40,0x05,0x00,0x00,0x08,0x90,0x00,0x00,0x80,0x03,0x00,0x00,0x08,0x10,0x01, 0xf0,0xff,0xff,0x1f,0x00,0x08,0x10,0x01,0x00,0x80,0x03,0x00,0x00,0x08,0x20, 0x01,0x00,0x40,0x05,0x00,0x00,0x08,0x20,0x01,0x00,0x20,0x09,0x00,0x00,0x08, 0x20,0x01,0x00,0x10,0x11,0x00,0x00,0x04,0x20,0x01,0x00,0x08,0x21,0x00,0x00, 0x04,0x20,0x01,0x00,0x04,0x41,0x00,0x00,0x04,0x20,0x02,0x00,0x02,0x81,0x00, 0x00,0x04,0x20,0x02,0x00,0x01,0x01,0x01,0x00,0x04,0x40,0x02,0x90,0x00,0x01, 0x12,0x00,0x04,0x40,0x02,0x50,0x00,0x01,0x14,0x00,0x02,0x40,0x02,0x30,0x00, 0x01,0x18,0x00,0x02,0x40,0x02,0xf0,0x00,0x01,0x1e,0x00,0x02,0x40,0x02,0x00, 0x00,0x00,0x00,0x00,0x02,0x40,0x04,0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04, 0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04,0x00,0xc0,0x07,0x00,0x00,0x01,0x80, 0x04,0x00,0x20,0x08,0x00,0x00,0x01,0x80,0x04,0x00,0x90,0x17,0x00,0x00,0x01, 0x80,0x04,0x00,0x48,0x24,0x00,0x00,0x01,0x80,0x08,0x00,0x48,0x24,0x00,0x00, 0x01,0x80,0x08,0x00,0x88,0x27,0x00,0x00,0x01,0x00,0x09,0x00,0x48,0x24,0x00, 0x00,0x01,0x00,0x09,0x00,0x48,0x24,0x00,0x80,0x00,0x00,0x09,0x00,0x90,0x17, 0x00,0x80,0x00,0x00,0x09,0x00,0x20,0x08,0x00,0x80,0x00,0x00,0x09,0x00,0xc0, 0x07,0x00,0x80,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x14,0x00, 0x00,0x00,0x00,0x80,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x10, 0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x0f,0x00,0x00, 0x80,0x07,0x00,0x00,0xf0,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x0e,0x00,0x00, 0x00,0x00,0xc0,0x03,0xe0,0x01,0x00,0x00,0x00,0x00,0x00,0x3c,0x1e,0x00,0x00, 0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/lancePRW.xbm0000644000175000017500000000524512274270516015345 00000000000000#define lancePRW_width 64 #define lancePRW_height 64 static unsigned char lancePRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf8,0xff,0xff,0xff,0xff,0xff, 0x3f,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x28,0x00,0x00,0x00,0x00, 0x00,0x80,0x00,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x90,0xff,0xff,0xff, 0xff,0xff,0xff,0x01,0x10,0x01,0x00,0x00,0x00,0x00,0x00,0x01,0x10,0x01,0x00, 0x00,0x00,0x00,0x00,0x01,0x10,0x01,0x00,0x00,0x00,0x00,0x00,0x01,0x10,0x02, 0x00,0x00,0x00,0x00,0x80,0x00,0x10,0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20, 0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20,0x02,0x00,0x00,0x01,0x00,0x80,0x00, 0x20,0x02,0x00,0x00,0x01,0x00,0x80,0x00,0x20,0x02,0x00,0x00,0x01,0x00,0x80, 0x00,0x20,0x02,0x00,0x00,0x01,0x00,0x80,0x00,0x20,0x04,0x00,0x00,0x01,0x00, 0x40,0x00,0x20,0x04,0x00,0x00,0x01,0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x01, 0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x01,0x00,0x40,0x00,0x40,0x04,0x00,0x00, 0x01,0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x01,0x00,0x40,0x00,0x40,0x04,0x00, 0x00,0x01,0x00,0x40,0x00,0x40,0x08,0x00,0x00,0x01,0x00,0x20,0x00,0x80,0x08, 0xf0,0xff,0xff,0x1f,0x20,0x00,0x80,0x08,0x00,0x80,0x03,0x00,0x20,0x00,0x80, 0x08,0x00,0x40,0x05,0x00,0x20,0x00,0x80,0x08,0x00,0x20,0x09,0x00,0x20,0x00, 0x80,0x08,0x00,0x10,0x11,0x00,0x20,0x00,0x80,0x10,0x00,0x08,0x21,0x00,0x10, 0x00,0x80,0x10,0x00,0x04,0x41,0x00,0x10,0x00,0x00,0x11,0x00,0x02,0x81,0x00, 0x10,0x00,0x00,0x11,0x00,0x01,0x01,0x01,0x10,0x00,0x00,0x11,0x80,0x00,0x01, 0x02,0x10,0x00,0x00,0x11,0x40,0x00,0x01,0x04,0x10,0x00,0x00,0x11,0x20,0x00, 0x01,0x08,0x10,0x00,0x00,0x21,0x10,0x00,0x01,0x10,0x08,0x00,0x00,0x22,0x00, 0x00,0x00,0x00,0x08,0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x22, 0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x22,0x00,0xc0,0x07,0x00,0x08,0x00,0x00, 0x24,0x00,0x20,0x08,0x00,0x08,0x00,0x00,0x28,0x00,0xd0,0x17,0x00,0x08,0x00, 0x00,0x48,0x00,0x08,0x24,0x00,0x04,0x00,0x00,0x50,0x00,0x08,0x24,0x00,0x04, 0x00,0x00,0x50,0x00,0x08,0x24,0x00,0x04,0x00,0x00,0x60,0x00,0x08,0x24,0x00, 0x04,0x00,0x00,0xc0,0x00,0x08,0x24,0x00,0x06,0x00,0x00,0x00,0x07,0x10,0x14, 0xc0,0x01,0x00,0x00,0x00,0x38,0x20,0x08,0x38,0x00,0x00,0x00,0x00,0xc0,0xc1, 0x07,0x07,0x00,0x00,0x00,0x00,0x00,0x0e,0xe0,0x00,0x00,0x00,0x00,0x00,0x00, 0x70,0x1c,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x03,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/silverPRW.xbm0000644000175000017500000000525012274270516015563 00000000000000#define silverPRW_width 64 #define silverPRW_height 64 static unsigned char silverPRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x06,0x00,0x00,0x00,0x00,0x00, 0x00,0x08,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x12,0x00,0x00,0x00,0x00, 0x00,0x00,0x20,0xe4,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x24,0x00,0x00,0x00, 0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00, 0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x44, 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x20, 0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x01,0x00,0x00, 0x20,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x01,0x00, 0x00,0x10,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x10,0x88,0x00,0x00,0x00,0x01, 0x00,0x00,0x10,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x10,0x90,0x00,0x00,0x00, 0x01,0x00,0x00,0x10,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x10,0x90,0x00,0x00, 0x00,0x01,0x00,0x00,0x08,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x08,0x10,0x01, 0xf0,0xff,0xff,0x1f,0x00,0x08,0x10,0x01,0x00,0x80,0x03,0x00,0x00,0x08,0x20, 0x01,0x00,0x40,0x05,0x00,0x00,0x08,0x20,0x01,0x00,0x20,0x09,0x00,0x00,0x08, 0x20,0x01,0x00,0x10,0x11,0x00,0x00,0x04,0x20,0x01,0x00,0x08,0x21,0x00,0x00, 0x04,0x20,0x01,0x00,0x04,0x41,0x00,0x00,0x04,0x20,0x02,0x00,0x02,0x81,0x00, 0x00,0x04,0x20,0x02,0x00,0x01,0x01,0x01,0x00,0x04,0x40,0x02,0x80,0x00,0x01, 0x02,0x00,0x04,0x40,0x02,0x40,0x00,0x01,0x04,0x00,0x02,0x40,0x02,0x20,0x00, 0x01,0x08,0x00,0x02,0x40,0x02,0x10,0x00,0x01,0x10,0x00,0x02,0x40,0x02,0x00, 0x00,0x00,0x00,0x00,0x02,0x40,0x04,0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04, 0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04,0x00,0xc0,0x07,0x00,0x00,0x01,0x80, 0x04,0x00,0x20,0x08,0x00,0x00,0x01,0x80,0x04,0x00,0x90,0x17,0x00,0x00,0x01, 0x80,0x04,0x00,0x48,0x20,0x00,0x00,0x01,0x80,0x08,0x00,0x48,0x20,0x00,0x00, 0x01,0x80,0x08,0x00,0x88,0x23,0x00,0x00,0x01,0x00,0x09,0x00,0x08,0x24,0x00, 0x00,0x01,0x00,0x09,0x00,0x08,0x24,0x00,0x80,0x00,0x00,0x09,0x00,0xd0,0x13, 0x00,0x80,0x00,0x00,0x09,0x00,0x20,0x08,0x00,0x80,0x00,0x00,0x09,0x00,0xc0, 0x07,0x00,0x80,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x14,0x00, 0x00,0x00,0x00,0x80,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x10, 0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x0f,0x00,0x00, 0x80,0x07,0x00,0x00,0xf0,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x0e,0x00,0x00, 0x00,0x00,0xc0,0x03,0xe0,0x01,0x00,0x00,0x00,0x00,0x00,0x3c,0x1e,0x00,0x00, 0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/pawnPW.xbm0000644000175000017500000000523712274270516015107 00000000000000#define pawnPW_width 64 #define pawnPW_height 64 static unsigned char pawnPW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x0e,0x00,0x00,0x00,0x00,0x00,0xf0,0x80, 0x70,0x00,0x00,0x00,0x00,0x00,0x0f,0xc0,0x81,0x03,0x00,0x00,0x00,0xf0,0x00, 0x38,0x0e,0x1c,0x00,0x00,0x00,0x08,0x00,0x07,0x70,0x60,0x00,0x00,0x00,0x0c, 0xe0,0xe0,0x83,0x83,0x00,0x00,0x00,0x14,0x1c,0x10,0x04,0x1c,0x01,0x00,0x00, 0x94,0x03,0xe8,0x09,0xe0,0x01,0x00,0x00,0x64,0x00,0x24,0x12,0x00,0x03,0x00, 0x00,0x22,0x00,0x24,0x12,0x00,0x02,0x00,0x00,0x22,0x00,0xe4,0x11,0x00,0x02, 0x00,0x00,0x22,0x00,0x24,0x10,0x00,0x02,0x00,0x00,0x22,0x00,0x24,0x10,0x00, 0x02,0x00,0x00,0x12,0x00,0x28,0x08,0x00,0x04,0x00,0x00,0x12,0x00,0x10,0x04, 0x00,0x04,0x00,0x00,0x11,0x00,0xe0,0x03,0x00,0x04,0x00,0x00,0x11,0x00,0x00, 0x00,0x00,0x04,0x00,0x00,0x11,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00, 0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x08,0x80,0x00,0x08,0x04,0x00,0x00,0x09, 0x10,0x80,0x00,0x04,0x08,0x00,0x80,0x08,0x20,0x80,0x00,0x02,0x08,0x00,0x80, 0x08,0x40,0x80,0x00,0x01,0x08,0x00,0x80,0x08,0x80,0x80,0x80,0x00,0x08,0x00, 0x80,0x08,0x00,0x81,0x40,0x00,0x08,0x00,0x80,0x08,0x00,0x82,0x20,0x00,0x08, 0x00,0x80,0x08,0x00,0x84,0x10,0x00,0x08,0x00,0x40,0x04,0x00,0x88,0x08,0x00, 0x10,0x00,0x40,0x04,0x00,0x90,0x04,0x00,0x10,0x00,0x40,0x04,0x00,0xa0,0x02, 0x00,0x10,0x00,0x40,0x04,0x00,0xc0,0x01,0x00,0x10,0x00,0x40,0x04,0xf8,0xff, 0xff,0x0f,0x10,0x00,0x40,0x04,0x00,0x80,0x00,0x00,0x10,0x00,0x20,0x02,0x00, 0x80,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x20,0x00,0x20,0x02, 0x00,0x80,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x20,0x00,0x20, 0x02,0x00,0x80,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x20,0x00, 0x10,0x02,0x00,0x80,0x00,0x00,0x20,0x00,0x10,0x01,0x00,0x80,0x00,0x00,0x40, 0x00,0x10,0x01,0x00,0x80,0x00,0x00,0x40,0x00,0x10,0x01,0x00,0x80,0x00,0x00, 0x40,0x00,0x10,0x01,0x00,0x80,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00, 0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00, 0x00,0x00,0x40,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00, 0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0xc0,0x00,0x80,0xff, 0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/pawnPRW.xbm0000644000175000017500000000524212274270516015225 00000000000000#define pawnPRW_width 64 #define pawnPRW_height 64 static unsigned char pawnPRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf8,0xff,0xff,0xff,0xff,0xff, 0x3f,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x28,0x00,0x00,0x00,0x00, 0x00,0x80,0x00,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x90,0xff,0xff,0xff, 0xff,0xff,0xff,0x01,0x10,0x01,0x00,0x00,0x00,0x00,0x00,0x01,0x10,0x01,0x00, 0x00,0x00,0x00,0x00,0x01,0x10,0x01,0x00,0x00,0x00,0x00,0x00,0x01,0x10,0x02, 0x00,0x00,0x00,0x00,0x80,0x00,0x10,0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20, 0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20,0x02,0x00,0x00,0x01,0x00,0x80,0x00, 0x20,0x02,0x00,0x00,0x01,0x00,0x80,0x00,0x20,0x02,0x00,0x00,0x01,0x00,0x80, 0x00,0x20,0x02,0x00,0x00,0x01,0x00,0x80,0x00,0x20,0x04,0x00,0x00,0x01,0x00, 0x40,0x00,0x20,0x04,0x00,0x00,0x01,0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x01, 0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x01,0x00,0x40,0x00,0x40,0x04,0x00,0x00, 0x01,0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x01,0x00,0x40,0x00,0x40,0x04,0x00, 0x00,0x01,0x00,0x40,0x00,0x40,0x08,0x00,0x00,0x01,0x00,0x20,0x00,0x80,0x08, 0xf0,0xff,0xff,0x1f,0x20,0x00,0x80,0x08,0x00,0x80,0x03,0x00,0x20,0x00,0x80, 0x08,0x00,0x40,0x05,0x00,0x20,0x00,0x80,0x08,0x00,0x20,0x09,0x00,0x20,0x00, 0x80,0x08,0x00,0x10,0x11,0x00,0x20,0x00,0x80,0x10,0x00,0x08,0x21,0x00,0x10, 0x00,0x80,0x10,0x00,0x04,0x41,0x00,0x10,0x00,0x00,0x11,0x00,0x02,0x81,0x00, 0x10,0x00,0x00,0x11,0x00,0x01,0x01,0x01,0x10,0x00,0x00,0x11,0x80,0x00,0x01, 0x02,0x10,0x00,0x00,0x11,0x40,0x00,0x01,0x04,0x10,0x00,0x00,0x11,0x20,0x00, 0x01,0x08,0x10,0x00,0x00,0x21,0x10,0x00,0x01,0x10,0x08,0x00,0x00,0x22,0x00, 0x00,0x00,0x00,0x08,0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x22, 0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x22,0x00,0xc0,0x07,0x00,0x08,0x00,0x00, 0x24,0x00,0x20,0x08,0x00,0x08,0x00,0x00,0x28,0x00,0x10,0x14,0x00,0x08,0x00, 0x00,0x48,0x00,0x08,0x24,0x00,0x04,0x00,0x00,0x50,0x00,0x08,0x24,0x00,0x04, 0x00,0x00,0x50,0x00,0x88,0x27,0x00,0x04,0x00,0x00,0x60,0x00,0x48,0x24,0x00, 0x04,0x00,0x00,0xc0,0x00,0x48,0x24,0x00,0x06,0x00,0x00,0x00,0x07,0x90,0x17, 0xc0,0x01,0x00,0x00,0x00,0x38,0x20,0x08,0x38,0x00,0x00,0x00,0x00,0xc0,0xc1, 0x07,0x07,0x00,0x00,0x00,0x00,0x00,0x0e,0xe0,0x00,0x00,0x00,0x00,0x00,0x00, 0x70,0x1c,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x03,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/western_bitmaps/knightPW.xbm0000644000175000017500000000634112274270516015423 00000000000000#define knightPW_width 64 #define knightPW_height 64 static unsigned char knightPW_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4f, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x80, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xc0, 0x81, 0x03, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x38, 0x0e, 0x1c, 0x00, 0x00, 0x00, 0x08, 0x00, 0x07, 0x70, 0x60, 0x00, 0x00, 0x00, 0x0c, 0xe0, 0xe0, 0x83, 0x83, 0x00, 0x00, 0x00, 0x14, 0x1c, 0x10, 0x04, 0x1c, 0x01, 0x00, 0x00, 0x94, 0x03, 0x28, 0x0a, 0xe0, 0x01, 0x00, 0x00, 0x64, 0x00, 0x64, 0x12, 0x00, 0x03, 0x00, 0x00, 0x22, 0x00, 0xe4, 0x12, 0x00, 0x02, 0x00, 0x00, 0x22, 0x00, 0xa4, 0x12, 0x00, 0x02, 0x00, 0x00, 0x22, 0x00, 0xa4, 0x13, 0x00, 0x02, 0x00, 0x00, 0x22, 0x00, 0x24, 0x13, 0x00, 0x02, 0x00, 0x00, 0x12, 0x00, 0x28, 0x0a, 0x00, 0x04, 0x00, 0x00, 0x12, 0x00, 0x10, 0x04, 0x00, 0x04, 0x00, 0x00, 0x11, 0x00, 0xe0, 0x03, 0x00, 0x04, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x11, 0x08, 0x80, 0x00, 0x08, 0x04, 0x00, 0x00, 0x09, 0x10, 0x80, 0x00, 0x04, 0x08, 0x00, 0x80, 0x08, 0x20, 0x80, 0x00, 0x02, 0x08, 0x00, 0x80, 0x08, 0x40, 0x80, 0x00, 0x01, 0x08, 0x00, 0x80, 0x08, 0x80, 0x80, 0x80, 0x00, 0x08, 0x00, 0x80, 0x08, 0x00, 0x81, 0x40, 0x00, 0x08, 0x00, 0x80, 0x08, 0x00, 0x82, 0x20, 0x00, 0x08, 0x00, 0x80, 0x08, 0x00, 0x84, 0x10, 0x00, 0x08, 0x00, 0x40, 0x04, 0x00, 0x88, 0x08, 0x00, 0x10, 0x00, 0x40, 0x04, 0x00, 0x90, 0x04, 0x00, 0x10, 0x00, 0x40, 0x04, 0x00, 0xa0, 0x02, 0x00, 0x10, 0x00, 0x40, 0x04, 0x00, 0xc0, 0x01, 0x00, 0x10, 0x00, 0x40, 0x04, 0xf8, 0xff, 0xff, 0x0f, 0x10, 0x00, 0x40, 0x04, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x10, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x10, 0x01, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x10, 0x01, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x10, 0x01, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x10, 0x01, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; xshogi-1.4.2/bitmaps.h0000644000175000017500000002260212274270516011560 00000000000000/* * FILE: bitmaps.h * * Piece bitmaps for xshogi. * * ------------------------------------------------------------------------ * xshogi is based on XBoard -- an Xt/Athena user interface for GNU Chess. * * Original authors: Dan Sears, Chris Sears * Enhancements (Version 2.0 and following): Tim Mann * Modifications to XShogi (Version 1.0): Matthias Mutz * Enhancements to XShogi (Version 1.1): Matthias Mutz * Modified implementation of ISS mode for XShogi: Matthias Mutz * Current maintainer: Michael C. Vanier * * XShogi borrows some of its piece bitmaps from CRANES Shogi. * * Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts. * Enhancements Copyright 1992 Free Software Foundation, Inc. * Enhancements for XShogi Copyright 1993, 1994, 1995 Matthias Mutz * Copyright (c) 1999 Michael Vanier and the Free Software Foundation * * The following terms apply to Digital Equipment Corporation's copyright * interest in XBoard: * ------------------------------------------------------------------------ * All Rights Reserved * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, * provided that the above copyright notice appear in all copies and that * both that copyright notice and this permission notice appear in * supporting documentation, and that the name of Digital not be * used in advertising or publicity pertaining to distribution of the * software without specific, written prior permission. * * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS * SOFTWARE. * ------------------------------------------------------------------------ * * This file is part of GNU shogi. * * GNU shogi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation. * * GNU shogi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GNU shogi; see the file COPYING. If not, write to * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. * * ------------------------------------------------------------------------ * */ #ifndef _BITMAPS_H_ #define _BITMAPS_H_ /* * Naming conventions: * * R -- reverse orientation * P -- promoted piece * W -- westernized bitmap * _l -- large-sized piece (64x64) * _m -- medium-sized piece (49x49) * (default name: small-sized piece) (32x32) * */ #include "eastern_bitmaps/icon.xbm" #include "eastern_bitmaps/bigsolid.xbm" #include "eastern_bitmaps/smallsolid.xbm" #include "eastern_bitmaps/bigsolidR.xbm" #include "eastern_bitmaps/smallsolidR.xbm" /*** Westernized piece bitmaps. ***/ /* * Thanks to Bernhard Maerz for the new westernized bitmaps. * These are only available in the large size. */ #include "western_bitmaps/kingW.xbm" #include "western_bitmaps/rookW.xbm" #include "western_bitmaps/rookPW.xbm" #include "western_bitmaps/bishopW.xbm" #include "western_bitmaps/bishopPW.xbm" #include "western_bitmaps/goldW.xbm" #include "western_bitmaps/silverW.xbm" #include "western_bitmaps/silverPW.xbm" #include "western_bitmaps/knightW.xbm" #include "western_bitmaps/knightPW.xbm" #include "western_bitmaps/lanceW.xbm" #include "western_bitmaps/lancePW.xbm" #include "western_bitmaps/pawnW.xbm" #include "western_bitmaps/pawnPW.xbm" #include "western_bitmaps/kingRW.xbm" #include "western_bitmaps/rookRW.xbm" #include "western_bitmaps/rookPRW.xbm" #include "western_bitmaps/bishopRW.xbm" #include "western_bitmaps/bishopPRW.xbm" #include "western_bitmaps/goldRW.xbm" #include "western_bitmaps/silverRW.xbm" #include "western_bitmaps/silverPRW.xbm" #include "western_bitmaps/knightRW.xbm" #include "western_bitmaps/knightPRW.xbm" #include "western_bitmaps/lanceRW.xbm" #include "western_bitmaps/lancePRW.xbm" #include "western_bitmaps/pawnRW.xbm" #include "western_bitmaps/pawnPRW.xbm" /*** Eastern piece bitmaps. ***/ /* Small sized bitmaps. */ #include "eastern_bitmaps/king.xbm" #include "eastern_bitmaps/rook.xbm" #include "eastern_bitmaps/bishop.xbm" #include "eastern_bitmaps/gold.xbm" #include "eastern_bitmaps/silver.xbm" #include "eastern_bitmaps/silverP.xbm" #include "eastern_bitmaps/knight.xbm" #include "eastern_bitmaps/knightP.xbm" #include "eastern_bitmaps/lance.xbm" #include "eastern_bitmaps/lanceP.xbm" #include "eastern_bitmaps/pawn.xbm" #include "eastern_bitmaps/pawnP.xbm" #include "eastern_bitmaps/kingR.xbm" #include "eastern_bitmaps/rookR.xbm" #include "eastern_bitmaps/bishopR.xbm" #include "eastern_bitmaps/goldR.xbm" #include "eastern_bitmaps/silverR.xbm" #include "eastern_bitmaps/silverPR.xbm" #include "eastern_bitmaps/knightR.xbm" #include "eastern_bitmaps/knightPR.xbm" #include "eastern_bitmaps/lanceR.xbm" #include "eastern_bitmaps/lancePR.xbm" #include "eastern_bitmaps/pawnR.xbm" #include "eastern_bitmaps/pawnPR.xbm" /* * Alternative top bitmaps for eastern pieces (promoted rook and bishop * only). Thanks to Ken'ichi Nakayama for providing these bitmaps. * Similar comments apply for medium and large-sized bitmaps. */ #if defined(TOP_PART_BITMAPS) #include "eastern_bitmaps/rookP.top.xbm" #include "eastern_bitmaps/bishopP.top.xbm" #include "eastern_bitmaps/rookPR.top.xbm" #include "eastern_bitmaps/bishopPR.top.xbm" #else /* !TOP_PART_BITMAPS */ #include "eastern_bitmaps/rookP.xbm" #include "eastern_bitmaps/bishopP.xbm" #include "eastern_bitmaps/rookPR.xbm" #include "eastern_bitmaps/bishopPR.xbm" #endif /* TOP_PART_BITMAPS */ /*** Medium-sized bitmaps. ***/ #include "eastern_bitmaps/bigsolid_m.xbm" #include "eastern_bitmaps/smallsolid_m.xbm" #include "eastern_bitmaps/bigsolidR_m.xbm" #include "eastern_bitmaps/smallsolidR_m.xbm" #include "eastern_bitmaps/king_m.xbm" #include "eastern_bitmaps/rook_m.xbm" #include "eastern_bitmaps/bishop_m.xbm" #include "eastern_bitmaps/gold_m.xbm" #include "eastern_bitmaps/silver_m.xbm" #include "eastern_bitmaps/silverP_m.xbm" #include "eastern_bitmaps/knight_m.xbm" #include "eastern_bitmaps/knightP_m.xbm" #include "eastern_bitmaps/lance_m.xbm" #include "eastern_bitmaps/lanceP_m.xbm" #include "eastern_bitmaps/pawn_m.xbm" #include "eastern_bitmaps/pawnP_m.xbm" #include "eastern_bitmaps/kingR_m.xbm" #include "eastern_bitmaps/rookR_m.xbm" #include "eastern_bitmaps/bishopR_m.xbm" #include "eastern_bitmaps/goldR_m.xbm" #include "eastern_bitmaps/silverR_m.xbm" #include "eastern_bitmaps/silverPR_m.xbm" #include "eastern_bitmaps/knightR_m.xbm" #include "eastern_bitmaps/knightPR_m.xbm" #include "eastern_bitmaps/lanceR_m.xbm" #include "eastern_bitmaps/lancePR_m.xbm" #include "eastern_bitmaps/pawnR_m.xbm" #include "eastern_bitmaps/pawnPR_m.xbm" #if defined(TOP_PART_BITMAPS) #include "eastern_bitmaps/rookP_m.top.xbm" #include "eastern_bitmaps/bishopP_m.top.xbm" #include "eastern_bitmaps/rookPR_m.top.xbm" #include "eastern_bitmaps/bishopPR_m.top.xbm" #else /* !TOP_PART_BITMAPS */ #include "eastern_bitmaps/rookP_m.xbm" #include "eastern_bitmaps/bishopP_m.xbm" #include "eastern_bitmaps/rookPR_m.xbm" #include "eastern_bitmaps/bishopPR_m.xbm" #endif /* TOP_PART_BITMAPS */ /*** Large bitmaps. ***/ /* * The new large eastern bitmaps were kindly provided by Bernhard Maerz. * Thanks Bernhard! */ #include "eastern_bitmaps/bigsolid_l.xbm" #include "eastern_bitmaps/smallsolid_l.xbm" #include "eastern_bitmaps/bigsolidR_l.xbm" #include "eastern_bitmaps/smallsolidR_l.xbm" #include "eastern_bitmaps/king_l.xbm" #include "eastern_bitmaps/rook_l.xbm" #include "eastern_bitmaps/bishop_l.xbm" #include "eastern_bitmaps/gold_l.xbm" #include "eastern_bitmaps/silver_l.xbm" #include "eastern_bitmaps/silverP_l.xbm" #include "eastern_bitmaps/knight_l.xbm" #include "eastern_bitmaps/knightP_l.xbm" #include "eastern_bitmaps/lance_l.xbm" #include "eastern_bitmaps/lanceP_l.xbm" #include "eastern_bitmaps/pawn_l.xbm" #include "eastern_bitmaps/pawnP_l.xbm" #include "eastern_bitmaps/kingR_l.xbm" #include "eastern_bitmaps/rookR_l.xbm" #include "eastern_bitmaps/bishopR_l.xbm" #include "eastern_bitmaps/goldR_l.xbm" #include "eastern_bitmaps/silverR_l.xbm" #include "eastern_bitmaps/silverPR_l.xbm" #include "eastern_bitmaps/knightR_l.xbm" #include "eastern_bitmaps/knightPR_l.xbm" #include "eastern_bitmaps/lanceR_l.xbm" #include "eastern_bitmaps/lancePR_l.xbm" #include "eastern_bitmaps/pawnR_l.xbm" #include "eastern_bitmaps/pawnPR_l.xbm" #if defined(TOP_PART_BITMAPS) #include "eastern_bitmaps/rookP_l.top.xbm" #include "eastern_bitmaps/bishopP_l.top.xbm" #include "eastern_bitmaps/rookPR_l.top.xbm" #include "eastern_bitmaps/bishopPR_l.top.xbm" #else /* !TOP_PART_BITMAPS */ #include "eastern_bitmaps/rookP_l.xbm" #include "eastern_bitmaps/bishopP_l.xbm" #include "eastern_bitmaps/rookPR_l.xbm" #include "eastern_bitmaps/bishopPR_l.xbm" #endif /* TOP_PART_BITMAPS */ #endif /* _BITMAPS_H_ */ xshogi-1.4.2/depcomp0000755000175000017500000005601612274272444011335 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2013-05-30.07; # UTC # Copyright (C) 1999-2013 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by 'PROGRAMS ARGS'. object Object file output by 'PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputting dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac # Get the directory component of the given path, and save it in the # global variables '$dir'. Note that this directory component will # be either empty or ending with a '/' character. This is deliberate. set_dir_from () { case $1 in */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; *) dir=;; esac } # Get the suffix-stripped basename of the given path, and save it the # global variable '$base'. set_base_from () { base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` } # If no dependency file was actually created by the compiler invocation, # we still have to create a dummy depfile, to avoid errors with the # Makefile "include basename.Plo" scheme. make_dummy_depfile () { echo "#dummy" > "$depfile" } # Factor out some common post-processing of the generated depfile. # Requires the auxiliary global variable '$tmpdepfile' to be set. aix_post_process_depfile () { # If the compiler actually managed to produce a dependency file, # post-process it. if test -f "$tmpdepfile"; then # Each line is of the form 'foo.o: dependency.h'. # Do two passes, one to just change these to # $object: dependency.h # and one to simply output # dependency.h: # which is needed to avoid the deleted-header problem. { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" } > "$depfile" rm -f "$tmpdepfile" else make_dummy_depfile fi } # A tabulation character. tab=' ' # A newline character. nl=' ' # Character ranges might be problematic outside the C locale. # These definitions help. upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ lower=abcdefghijklmnopqrstuvwxyz digits=0123456789 alpha=${upper}${lower} if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Avoid interferences from the environment. gccflag= dashmflag= # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvisualcpp fi if test "$depmode" = msvc7msys; then # This is just like msvc7 but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvc7 fi if test "$depmode" = xlc; then # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. gccflag=-qmakedep=gcc,-MF depmode=gcc fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. ## (see the conditional assignment to $gccflag above). ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). Also, it might not be ## supported by the other compilers which use the 'gcc' depmode. ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The second -e expression handles DOS-style file names with drive # letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the "deleted header file" problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. ## Some versions of gcc put a space before the ':'. On the theory ## that the space means something, we add a space to the output as ## well. hp depmode also adds that space, but also prefixes the VPATH ## to the object. Take care to not repeat it in the output. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like '#:fec' to the end of the # dependency line. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ | tr "$nl" ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" ;; xlc) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts '$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done aix_post_process_depfile ;; tcc) # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 # FIXME: That version still under development at the moment of writing. # Make that this statement remains true also for stable, released # versions. # It will wrap lines (doesn't matter whether long or short) with a # trailing '\', as in: # # foo.o : \ # foo.c \ # foo.h \ # # It will put a trailing '\' even on the last line, and will use leading # spaces rather than leading tabs (at least since its commit 0394caf7 # "Emit spaces for -MD"). "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. # We have to change lines of the first kind to '$object: \'. sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" # And for each line of the second kind, we have to emit a 'dep.h:' # dummy dependency, to avoid the deleted-header problem. sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" rm -f "$tmpdepfile" ;; ## The order of this option in the case statement is important, since the ## shell code in configure will try each of these formats in the order ## listed in this file. A plain '-MD' option would be understood by many ## compilers, so we must ensure this comes after the gcc and icc options. pgcc) # Portland's C compiler understands '-MD'. # Will always output deps to 'file.d' where file is the root name of the # source file under compilation, even if file resides in a subdirectory. # The object file name does not affect the name of the '.d' file. # pgcc 10.2 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using '\' : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... set_dir_from "$object" # Use the source, not the object, to determine the base name, since # that's sadly what pgcc will do too. set_base_from "$source" tmpdepfile=$base.d # For projects that build the same source file twice into different object # files, the pgcc approach of using the *source* file root name can cause # problems in parallel builds. Use a locking strategy to avoid stomping on # the same $tmpdepfile. lockdir=$base.d-lock trap " echo '$0: caught signal, cleaning up...' >&2 rmdir '$lockdir' exit 1 " 1 2 13 15 numtries=100 i=$numtries while test $i -gt 0; do # mkdir is a portable test-and-set. if mkdir "$lockdir" 2>/dev/null; then # This process acquired the lock. "$@" -MD stat=$? # Release the lock. rmdir "$lockdir" break else # If the lock is being held by a different process, wait # until the winning process is done or we timeout. while test -d "$lockdir" && test $i -gt 0; do sleep 1 i=`expr $i - 1` done fi i=`expr $i - 1` done trap - 1 2 13 15 if test $i -le 0; then echo "$0: failed to acquire lock after $numtries attempts" >&2 echo "$0: check lockdir '$lockdir'" >&2 exit 1 fi if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" # Add 'dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in 'foo.d' instead, so we check for that too. # Subdirectories are respected. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then # Libtool generates 2 separate objects for the 2 libraries. These # two compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir$base.o.d # libtool 1.5 tmpdepfile2=$dir.libs/$base.o.d # Likewise. tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d "$@" -MD fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done # Same post-processing that is required for AIX mode. aix_post_process_depfile ;; msvc7) if test "$libtool" = yes; then showIncludes=-Wc,-showIncludes else showIncludes=-showIncludes fi "$@" $showIncludes > "$tmpdepfile" stat=$? grep -v '^Note: including file: ' "$tmpdepfile" if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The first sed program below extracts the file names and escapes # backslashes for cygpath. The second sed program outputs the file # name when reading, but also accumulates all include files in the # hold buffer in order to output them again at the end. This only # works with sed implementations that can handle large buffers. sed < "$tmpdepfile" -n ' /^Note: including file: *\(.*\)/ { s//\1/ s/\\/\\\\/g p }' | $cygpath_u | sort -u | sed -n ' s/ /\\ /g s/\(.*\)/'"$tab"'\1 \\/p s/.\(.*\) \\/\1:/ H $ { s/.*/'"$tab"'/ G p }' >> "$depfile" echo >> "$depfile" # make sure the fragment doesn't end with a backslash rm -f "$tmpdepfile" ;; msvc7msys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for ':' # in the target name. This is to cope with DOS-style filenames: # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. "$@" $dashmflag | sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this sed invocation # correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" # makedepend may prepend the VPATH from the source file name to the object. # No need to regex-escape $object, excess matching of '.' is harmless. sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process the last invocation # correctly. Breaking it into two sed invocations is a workaround. sed '1,2d' "$tmpdepfile" \ | tr ' ' "$nl" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E \ | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" echo "$tab" >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: xshogi-1.4.2/Makefile.in0000644000175000017500000012441712274274132012022 00000000000000# Makefile.in generated by automake 1.14a from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # # Makefile for XShogi # # Copyright (c) 2013 Yann Dirson and the Free Software Foundation # # This file is part of GNU Shogi. # # GNU Shogi is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 1, or (at your option) # any later version. # # GNU Shogi is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Shogi; see the file COPYING. If not, write to # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. # VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : bin_PROGRAMS = xshogi$(EXEEXT) EXTRA_PROGRAMS = xshogi$(EXEEXT) subdir = . DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \ $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/configure $(am__configure_deps) \ $(srcdir)/config.h.in parser.h parser.c scanner.c depcomp \ ylwrap $(dist_man_MANS) $(dist_noinst_DATA) $(dist_xdoc_DATA) \ $(noinst_HEADERS) COPYING compile install-sh missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man6dir)" \ "$(DESTDIR)$(xdocdir)" PROGRAMS = $(bin_PROGRAMS) am_xshogi_OBJECTS = xshogi-xshogi.$(OBJEXT) xshogi-parser.$(OBJEXT) \ xshogi-scanner.$(OBJEXT) xshogi_OBJECTS = $(am_xshogi_OBJECTS) xshogi_DEPENDENCIES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ BUILD_LINK = $(BUILD_CCLD) $(AM_BUILD_CFLAGS) $(BUILD_CFLAGS) \ $(AM_BUILD_LDFLAGS) $(BUILD_LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = LEXCOMPILE = $(LEX) $(AM_LFLAGS) $(LFLAGS) AM_V_LEX = $(am__v_LEX_@AM_V@) am__v_LEX_ = $(am__v_LEX_@AM_DEFAULT_V@) am__v_LEX_0 = @echo " LEX " $@; am__v_LEX_1 = YLWRAP = $(top_srcdir)/ylwrap am__yacc_c2h = sed -e s/cc$$/hh/ -e s/cpp$$/hpp/ -e s/cxx$$/hxx/ \ -e s/c++$$/h++/ -e s/c$$/h/ YACCCOMPILE = $(YACC) $(AM_YFLAGS) $(YFLAGS) AM_V_YACC = $(am__v_YACC_@AM_V@) am__v_YACC_ = $(am__v_YACC_@AM_DEFAULT_V@) am__v_YACC_0 = @echo " YACC " $@; am__v_YACC_1 = SOURCES = $(xshogi_SOURCES) DIST_SOURCES = $(xshogi_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } man6dir = $(mandir)/man6 NROFF = nroff MANS = $(dist_man_MANS) DATA = $(dist_noinst_DATA) $(dist_xdoc_DATA) HEADERS = $(noinst_HEADERS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ $(LISP)config.h.in # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags CSCOPE = cscope AM_RECURSIVE_TARGETS = cscope DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CEXTRAFLAGS = @CEXTRAFLAGS@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FIRST_HOST = @FIRST_HOST@ FIRST_SHOGI_PROGRAM = @FIRST_SHOGI_PROGRAM@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXLIB = @LEXLIB@ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ OPT = @OPT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SECOND_HOST = @SECOND_HOST@ SECOND_SHOGI_PROGRAM = @SECOND_SHOGI_PROGRAM@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WARNINGS = @WARNINGS@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ xdocdir = ${datarootdir}/doc/xshogi xshogi_SOURCES = \ xshogi.c \ parser.y \ scanner.l xshogi_CPPFLAGS = \ @OPT@ \ -DFIRST_SHOGI_PROGRAM=\"@FIRST_SHOGI_PROGRAM@\" \ -DSECOND_SHOGI_PROGRAM=\"@SECOND_SHOGI_PROGRAM@\" \ -DFIRST_HOST=\"@FIRST_HOST@\" \ -DSECOND_HOST=\"@SECOND_HOST@\" AM_CFLAGS = @CEXTRAFLAGS@ @WARNINGS@ xshogi_LDADD = @X_LIBS@ -lXaw -lXmu -lXt -lXext -lX11 BUILT_SOURCES = parser.h AM_YFLAGS = -d dist_xdoc_DATA = \ README.xboard \ BUGS dist_man_MANS = xshogi.6 dist_noinst_DATA = \ REMOTEHOSTS noinst_HEADERS = \ bitmaps.h \ sysdeps.h \ xshogi.h \ xshogifn.h \ \ eastern_bitmaps/bigblank.xbm \ eastern_bitmaps/bigblankR.xbm \ eastern_bitmaps/biglight.xbm \ eastern_bitmaps/bigsolid.xbm \ eastern_bitmaps/bigsolidR.xbm \ eastern_bitmaps/bigsolidR_l.xbm \ eastern_bitmaps/bigsolidR_m.xbm \ eastern_bitmaps/bigsolid_l.xbm \ eastern_bitmaps/bigsolid_m.xbm \ eastern_bitmaps/bishop.xbm \ eastern_bitmaps/bishopP.top.xbm \ eastern_bitmaps/bishopP.xbm \ eastern_bitmaps/bishopPR.top.xbm \ eastern_bitmaps/bishopPR.xbm \ eastern_bitmaps/bishopPR_l.top.xbm \ eastern_bitmaps/bishopPR_l.xbm \ eastern_bitmaps/bishopPR_m.top.xbm \ eastern_bitmaps/bishopPR_m.xbm \ eastern_bitmaps/bishopP_l.top.xbm \ eastern_bitmaps/bishopP_l.xbm \ eastern_bitmaps/bishopP_m.top.xbm \ eastern_bitmaps/bishopP_m.xbm \ eastern_bitmaps/bishopR.xbm \ eastern_bitmaps/bishopR_l.xbm \ eastern_bitmaps/bishopR_m.xbm \ eastern_bitmaps/bishop_l.xbm \ eastern_bitmaps/bishop_m.xbm \ eastern_bitmaps/gold.xbm \ eastern_bitmaps/goldR.xbm \ eastern_bitmaps/goldR_l.xbm \ eastern_bitmaps/goldR_m.xbm \ eastern_bitmaps/gold_l.xbm \ eastern_bitmaps/gold_m.xbm \ eastern_bitmaps/icon.xbm \ eastern_bitmaps/king.xbm \ eastern_bitmaps/kingR.xbm \ eastern_bitmaps/kingR_l.xbm \ eastern_bitmaps/kingR_m.xbm \ eastern_bitmaps/king_l.xbm \ eastern_bitmaps/king_m.xbm \ eastern_bitmaps/knight.xbm \ eastern_bitmaps/knightP.xbm \ eastern_bitmaps/knightPR.xbm \ eastern_bitmaps/knightPR_l.xbm \ eastern_bitmaps/knightPR_m.xbm \ eastern_bitmaps/knightP_l.xbm \ eastern_bitmaps/knightP_m.xbm \ eastern_bitmaps/knightR.xbm \ eastern_bitmaps/knightR_l.xbm \ eastern_bitmaps/knightR_m.xbm \ eastern_bitmaps/knight_l.xbm \ eastern_bitmaps/knight_m.xbm \ eastern_bitmaps/lance.xbm \ eastern_bitmaps/lanceP.xbm \ eastern_bitmaps/lancePR.xbm \ eastern_bitmaps/lancePR_l.xbm \ eastern_bitmaps/lancePR_m.xbm \ eastern_bitmaps/lanceP_l.xbm \ eastern_bitmaps/lanceP_m.xbm \ eastern_bitmaps/lanceR.xbm \ eastern_bitmaps/lanceR_l.xbm \ eastern_bitmaps/lanceR_m.xbm \ eastern_bitmaps/lance_l.xbm \ eastern_bitmaps/lance_m.xbm \ eastern_bitmaps/none.xbm \ eastern_bitmaps/none_l.xbm \ eastern_bitmaps/none_m.xbm \ eastern_bitmaps/pawn.xbm \ eastern_bitmaps/pawnP.xbm \ eastern_bitmaps/pawnPR.xbm \ eastern_bitmaps/pawnPR_l.xbm \ eastern_bitmaps/pawnPR_m.xbm \ eastern_bitmaps/pawnP_l.xbm \ eastern_bitmaps/pawnP_m.xbm \ eastern_bitmaps/pawnR.xbm \ eastern_bitmaps/pawnR_l.xbm \ eastern_bitmaps/pawnR_m.xbm \ eastern_bitmaps/pawn_l.xbm \ eastern_bitmaps/pawn_m.xbm \ eastern_bitmaps/rook.xbm \ eastern_bitmaps/rookP.top.xbm \ eastern_bitmaps/rookP.xbm \ eastern_bitmaps/rookPR.top.xbm \ eastern_bitmaps/rookPR.xbm \ eastern_bitmaps/rookPR_l.top.xbm \ eastern_bitmaps/rookPR_l.xbm \ eastern_bitmaps/rookPR_m.top.xbm \ eastern_bitmaps/rookPR_m.xbm \ eastern_bitmaps/rookP_l.top.xbm \ eastern_bitmaps/rookP_l.xbm \ eastern_bitmaps/rookP_m.top.xbm \ eastern_bitmaps/rookP_m.xbm \ eastern_bitmaps/rookR.xbm \ eastern_bitmaps/rookR_l.xbm \ eastern_bitmaps/rookR_m.xbm \ eastern_bitmaps/rook_l.xbm \ eastern_bitmaps/rook_m.xbm \ eastern_bitmaps/silver.xbm \ eastern_bitmaps/silverP.xbm \ eastern_bitmaps/silverPR.xbm \ eastern_bitmaps/silverPR_l.xbm \ eastern_bitmaps/silverPR_m.xbm \ eastern_bitmaps/silverP_l.xbm \ eastern_bitmaps/silverP_m.xbm \ eastern_bitmaps/silverR.xbm \ eastern_bitmaps/silverR_l.xbm \ eastern_bitmaps/silverR_m.xbm \ eastern_bitmaps/silver_l.xbm \ eastern_bitmaps/silver_m.xbm \ eastern_bitmaps/smallblank.xbm \ eastern_bitmaps/smallblankR.xbm \ eastern_bitmaps/smalllight.xbm \ eastern_bitmaps/smallsolid.xbm \ eastern_bitmaps/smallsolidR.xbm \ eastern_bitmaps/smallsolidR_l.xbm \ eastern_bitmaps/smallsolidR_m.xbm \ eastern_bitmaps/smallsolid_l.xbm \ eastern_bitmaps/smallsolid_m.xbm \ \ western_bitmaps/bishopPRW.xbm \ western_bitmaps/bishopPW.xbm \ western_bitmaps/bishopRW.xbm \ western_bitmaps/bishopW.xbm \ western_bitmaps/goldRW.xbm \ western_bitmaps/goldW.xbm \ western_bitmaps/kingRW.xbm \ western_bitmaps/kingW.xbm \ western_bitmaps/knightPRW.xbm \ western_bitmaps/knightPW.xbm \ western_bitmaps/knightRW.xbm \ western_bitmaps/knightW.xbm \ western_bitmaps/lancePRW.xbm \ western_bitmaps/lancePW.xbm \ western_bitmaps/lanceRW.xbm \ western_bitmaps/lanceW.xbm \ western_bitmaps/noneW.xbm \ western_bitmaps/pawnPRW.xbm \ western_bitmaps/pawnPW.xbm \ western_bitmaps/pawnRW.xbm \ western_bitmaps/pawnW.xbm \ western_bitmaps/rookPRW.xbm \ western_bitmaps/rookPW.xbm \ western_bitmaps/rookRW.xbm \ western_bitmaps/rookW.xbm \ western_bitmaps/silverPRW.xbm \ western_bitmaps/silverPW.xbm \ western_bitmaps/silverRW.xbm \ western_bitmaps/silverW.xbm \ \ new_eastern_bitmaps/bigsolidR_l.xbm \ new_eastern_bitmaps/bigsolid_l.xbm \ new_eastern_bitmaps/bishopPR_l.xbm \ new_eastern_bitmaps/bishopP_l.xbm \ new_eastern_bitmaps/bishopR_l.xbm \ new_eastern_bitmaps/bishop_l.xbm \ new_eastern_bitmaps/goldR_l.xbm \ new_eastern_bitmaps/gold_l.xbm \ new_eastern_bitmaps/kingR_l.xbm \ new_eastern_bitmaps/king_l.xbm \ new_eastern_bitmaps/knightPR_l.xbm \ new_eastern_bitmaps/knightP_l.xbm \ new_eastern_bitmaps/knightR_l.xbm \ new_eastern_bitmaps/knight_l.xbm \ new_eastern_bitmaps/lancePR_l.xbm \ new_eastern_bitmaps/lanceP_l.xbm \ new_eastern_bitmaps/lanceR_l.xbm \ new_eastern_bitmaps/lance_l.xbm \ new_eastern_bitmaps/none_l.xbm \ new_eastern_bitmaps/pawnPR_l.xbm \ new_eastern_bitmaps/pawnP_l.xbm \ new_eastern_bitmaps/pawnR_l.xbm \ new_eastern_bitmaps/pawn_l.xbm \ new_eastern_bitmaps/rookPR_l.xbm \ new_eastern_bitmaps/rookP_l.xbm \ new_eastern_bitmaps/rookR_l.xbm \ new_eastern_bitmaps/rook_l.xbm \ new_eastern_bitmaps/silverPR_l.xbm \ new_eastern_bitmaps/silverP_l.xbm \ new_eastern_bitmaps/silverR_l.xbm \ new_eastern_bitmaps/silver_l.xbm \ new_eastern_bitmaps/smallsolidR_l.xbm \ new_eastern_bitmaps/smallsolid_l.xbm \ \ new_western_bitmaps/bishopPRW.xbm \ new_western_bitmaps/bishopPW.xbm \ new_western_bitmaps/bishopRW.xbm \ new_western_bitmaps/bishopW.xbm \ new_western_bitmaps/goldRW.xbm \ new_western_bitmaps/goldW.xbm \ new_western_bitmaps/kingRW.xbm \ new_western_bitmaps/kingW.xbm \ new_western_bitmaps/knightPRW.xbm \ new_western_bitmaps/knightPW.xbm \ new_western_bitmaps/knightRW.xbm \ new_western_bitmaps/knightW.xbm \ new_western_bitmaps/lancePRW.xbm \ new_western_bitmaps/lancePW.xbm \ new_western_bitmaps/lanceRW.xbm \ new_western_bitmaps/lanceW.xbm \ new_western_bitmaps/noneW.xbm \ new_western_bitmaps/pawnPRW.xbm \ new_western_bitmaps/pawnPW.xbm \ new_western_bitmaps/pawnRW.xbm \ new_western_bitmaps/pawnW.xbm \ new_western_bitmaps/rookPRW.xbm \ new_western_bitmaps/rookPW.xbm \ new_western_bitmaps/rookRW.xbm \ new_western_bitmaps/rookW.xbm \ new_western_bitmaps/silverPRW.xbm \ new_western_bitmaps/silverPW.xbm \ new_western_bitmaps/silverRW.xbm \ new_western_bitmaps/silverW.xbm all: $(BUILT_SOURCES) config.h $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .c .l .o .obj .y am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @test -f $@ || rm -f stamp-h1 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) parser.h: parser.c @if test ! -f $@; then rm -f parser.c; else :; fi @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) parser.c; else :; fi xshogi$(EXEEXT): $(xshogi_OBJECTS) $(xshogi_DEPENDENCIES) $(EXTRA_xshogi_DEPENDENCIES) @rm -f xshogi$(EXEEXT) $(AM_V_CCLD)$(LINK) $(xshogi_OBJECTS) $(xshogi_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xshogi-parser.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xshogi-scanner.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xshogi-xshogi.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` xshogi-xshogi.o: xshogi.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xshogi_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xshogi-xshogi.o -MD -MP -MF $(DEPDIR)/xshogi-xshogi.Tpo -c -o xshogi-xshogi.o `test -f 'xshogi.c' || echo '$(srcdir)/'`xshogi.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/xshogi-xshogi.Tpo $(DEPDIR)/xshogi-xshogi.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xshogi.c' object='xshogi-xshogi.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xshogi_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xshogi-xshogi.o `test -f 'xshogi.c' || echo '$(srcdir)/'`xshogi.c xshogi-xshogi.obj: xshogi.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xshogi_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xshogi-xshogi.obj -MD -MP -MF $(DEPDIR)/xshogi-xshogi.Tpo -c -o xshogi-xshogi.obj `if test -f 'xshogi.c'; then $(CYGPATH_W) 'xshogi.c'; else $(CYGPATH_W) '$(srcdir)/xshogi.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/xshogi-xshogi.Tpo $(DEPDIR)/xshogi-xshogi.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xshogi.c' object='xshogi-xshogi.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xshogi_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xshogi-xshogi.obj `if test -f 'xshogi.c'; then $(CYGPATH_W) 'xshogi.c'; else $(CYGPATH_W) '$(srcdir)/xshogi.c'; fi` xshogi-parser.o: parser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xshogi_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xshogi-parser.o -MD -MP -MF $(DEPDIR)/xshogi-parser.Tpo -c -o xshogi-parser.o `test -f 'parser.c' || echo '$(srcdir)/'`parser.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/xshogi-parser.Tpo $(DEPDIR)/xshogi-parser.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='parser.c' object='xshogi-parser.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xshogi_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xshogi-parser.o `test -f 'parser.c' || echo '$(srcdir)/'`parser.c xshogi-parser.obj: parser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xshogi_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xshogi-parser.obj -MD -MP -MF $(DEPDIR)/xshogi-parser.Tpo -c -o xshogi-parser.obj `if test -f 'parser.c'; then $(CYGPATH_W) 'parser.c'; else $(CYGPATH_W) '$(srcdir)/parser.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/xshogi-parser.Tpo $(DEPDIR)/xshogi-parser.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='parser.c' object='xshogi-parser.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xshogi_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xshogi-parser.obj `if test -f 'parser.c'; then $(CYGPATH_W) 'parser.c'; else $(CYGPATH_W) '$(srcdir)/parser.c'; fi` xshogi-scanner.o: scanner.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xshogi_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xshogi-scanner.o -MD -MP -MF $(DEPDIR)/xshogi-scanner.Tpo -c -o xshogi-scanner.o `test -f 'scanner.c' || echo '$(srcdir)/'`scanner.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/xshogi-scanner.Tpo $(DEPDIR)/xshogi-scanner.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='scanner.c' object='xshogi-scanner.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xshogi_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xshogi-scanner.o `test -f 'scanner.c' || echo '$(srcdir)/'`scanner.c xshogi-scanner.obj: scanner.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xshogi_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xshogi-scanner.obj -MD -MP -MF $(DEPDIR)/xshogi-scanner.Tpo -c -o xshogi-scanner.obj `if test -f 'scanner.c'; then $(CYGPATH_W) 'scanner.c'; else $(CYGPATH_W) '$(srcdir)/scanner.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/xshogi-scanner.Tpo $(DEPDIR)/xshogi-scanner.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='scanner.c' object='xshogi-scanner.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xshogi_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xshogi-scanner.obj `if test -f 'scanner.c'; then $(CYGPATH_W) 'scanner.c'; else $(CYGPATH_W) '$(srcdir)/scanner.c'; fi` .l.c: $(AM_V_LEX)$(am__skiplex) $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@ -- $(LEXCOMPILE) .y.c: $(AM_V_YACC)$(am__skipyacc) $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h `echo $@ | $(am__yacc_c2h)` y.output $*.output -- $(YACCCOMPILE) install-man6: $(dist_man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(dist_man_MANS)'; \ test -n "$(man6dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man6dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man6dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.6[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^6][0-9a-z]*$$,6,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man6dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man6dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man6dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man6dir)" || exit $$?; }; \ done; } uninstall-man6: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man6dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.6[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^6][0-9a-z]*$$,6,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man6dir)'; $(am__uninstall_files_from_dir) install-dist_xdocDATA: $(dist_xdoc_DATA) @$(NORMAL_INSTALL) @list='$(dist_xdoc_DATA)'; test -n "$(xdocdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xdocdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xdocdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(xdocdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(xdocdir)" || exit $$?; \ done uninstall-dist_xdocDATA: @$(NORMAL_UNINSTALL) @list='$(dist_xdoc_DATA)'; test -n "$(xdocdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xdocdir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ --srcdir=.. --prefix="$$dc_install_base" \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(PROGRAMS) $(MANS) $(DATA) $(HEADERS) config.h installdirs: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man6dir)" "$(DESTDIR)$(xdocdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -rm -f parser.c -rm -f parser.h -rm -f scanner.c -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-am clean-am: clean-binPROGRAMS clean-generic mostlyclean-am distclean: distclean-am -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-hdr distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dist_xdocDATA install-man install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-man6 install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-dist_xdocDATA \ uninstall-man uninstall-man: uninstall-man6 .MAKE: all check install install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-am clean \ clean-binPROGRAMS clean-cscope clean-generic cscope \ cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \ distcheck distclean distclean-compile distclean-generic \ distclean-hdr distclean-tags distcleancheck distdir \ distuninstallcheck dvi dvi-am html html-am info info-am \ install install-am install-binPROGRAMS install-data \ install-data-am install-dist_xdocDATA install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-man6 install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \ ps ps-am tags tags-am uninstall uninstall-am \ uninstall-binPROGRAMS uninstall-dist_xdocDATA uninstall-man \ uninstall-man6 # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: xshogi-1.4.2/Makefile.am0000644000175000017500000002025212274271436012005 00000000000000# # Makefile for XShogi # # Copyright (c) 2013 Yann Dirson and the Free Software Foundation # # This file is part of GNU Shogi. # # GNU Shogi is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 1, or (at your option) # any later version. # # GNU Shogi is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Shogi; see the file COPYING. If not, write to # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. # bin_PROGRAMS = xshogi EXTRA_PROGRAMS = xshogi xdocdir = ${datarootdir}/doc/xshogi xshogi_SOURCES = \ xshogi.c \ parser.y \ scanner.l xshogi_CPPFLAGS = \ @OPT@ \ -DFIRST_SHOGI_PROGRAM=\"@FIRST_SHOGI_PROGRAM@\" \ -DSECOND_SHOGI_PROGRAM=\"@SECOND_SHOGI_PROGRAM@\" \ -DFIRST_HOST=\"@FIRST_HOST@\" \ -DSECOND_HOST=\"@SECOND_HOST@\" AM_CFLAGS = @CEXTRAFLAGS@ @WARNINGS@ xshogi_LDADD = @X_LIBS@ -lXaw -lXmu -lXt -lXext -lX11 BUILT_SOURCES = parser.h AM_YFLAGS = -d dist_xdoc_DATA = \ README.xboard \ BUGS dist_man_MANS = xshogi.6 dist_noinst_DATA = \ REMOTEHOSTS noinst_HEADERS = \ bitmaps.h \ sysdeps.h \ xshogi.h \ xshogifn.h \ \ eastern_bitmaps/bigblank.xbm \ eastern_bitmaps/bigblankR.xbm \ eastern_bitmaps/biglight.xbm \ eastern_bitmaps/bigsolid.xbm \ eastern_bitmaps/bigsolidR.xbm \ eastern_bitmaps/bigsolidR_l.xbm \ eastern_bitmaps/bigsolidR_m.xbm \ eastern_bitmaps/bigsolid_l.xbm \ eastern_bitmaps/bigsolid_m.xbm \ eastern_bitmaps/bishop.xbm \ eastern_bitmaps/bishopP.top.xbm \ eastern_bitmaps/bishopP.xbm \ eastern_bitmaps/bishopPR.top.xbm \ eastern_bitmaps/bishopPR.xbm \ eastern_bitmaps/bishopPR_l.top.xbm \ eastern_bitmaps/bishopPR_l.xbm \ eastern_bitmaps/bishopPR_m.top.xbm \ eastern_bitmaps/bishopPR_m.xbm \ eastern_bitmaps/bishopP_l.top.xbm \ eastern_bitmaps/bishopP_l.xbm \ eastern_bitmaps/bishopP_m.top.xbm \ eastern_bitmaps/bishopP_m.xbm \ eastern_bitmaps/bishopR.xbm \ eastern_bitmaps/bishopR_l.xbm \ eastern_bitmaps/bishopR_m.xbm \ eastern_bitmaps/bishop_l.xbm \ eastern_bitmaps/bishop_m.xbm \ eastern_bitmaps/gold.xbm \ eastern_bitmaps/goldR.xbm \ eastern_bitmaps/goldR_l.xbm \ eastern_bitmaps/goldR_m.xbm \ eastern_bitmaps/gold_l.xbm \ eastern_bitmaps/gold_m.xbm \ eastern_bitmaps/icon.xbm \ eastern_bitmaps/king.xbm \ eastern_bitmaps/kingR.xbm \ eastern_bitmaps/kingR_l.xbm \ eastern_bitmaps/kingR_m.xbm \ eastern_bitmaps/king_l.xbm \ eastern_bitmaps/king_m.xbm \ eastern_bitmaps/knight.xbm \ eastern_bitmaps/knightP.xbm \ eastern_bitmaps/knightPR.xbm \ eastern_bitmaps/knightPR_l.xbm \ eastern_bitmaps/knightPR_m.xbm \ eastern_bitmaps/knightP_l.xbm \ eastern_bitmaps/knightP_m.xbm \ eastern_bitmaps/knightR.xbm \ eastern_bitmaps/knightR_l.xbm \ eastern_bitmaps/knightR_m.xbm \ eastern_bitmaps/knight_l.xbm \ eastern_bitmaps/knight_m.xbm \ eastern_bitmaps/lance.xbm \ eastern_bitmaps/lanceP.xbm \ eastern_bitmaps/lancePR.xbm \ eastern_bitmaps/lancePR_l.xbm \ eastern_bitmaps/lancePR_m.xbm \ eastern_bitmaps/lanceP_l.xbm \ eastern_bitmaps/lanceP_m.xbm \ eastern_bitmaps/lanceR.xbm \ eastern_bitmaps/lanceR_l.xbm \ eastern_bitmaps/lanceR_m.xbm \ eastern_bitmaps/lance_l.xbm \ eastern_bitmaps/lance_m.xbm \ eastern_bitmaps/none.xbm \ eastern_bitmaps/none_l.xbm \ eastern_bitmaps/none_m.xbm \ eastern_bitmaps/pawn.xbm \ eastern_bitmaps/pawnP.xbm \ eastern_bitmaps/pawnPR.xbm \ eastern_bitmaps/pawnPR_l.xbm \ eastern_bitmaps/pawnPR_m.xbm \ eastern_bitmaps/pawnP_l.xbm \ eastern_bitmaps/pawnP_m.xbm \ eastern_bitmaps/pawnR.xbm \ eastern_bitmaps/pawnR_l.xbm \ eastern_bitmaps/pawnR_m.xbm \ eastern_bitmaps/pawn_l.xbm \ eastern_bitmaps/pawn_m.xbm \ eastern_bitmaps/rook.xbm \ eastern_bitmaps/rookP.top.xbm \ eastern_bitmaps/rookP.xbm \ eastern_bitmaps/rookPR.top.xbm \ eastern_bitmaps/rookPR.xbm \ eastern_bitmaps/rookPR_l.top.xbm \ eastern_bitmaps/rookPR_l.xbm \ eastern_bitmaps/rookPR_m.top.xbm \ eastern_bitmaps/rookPR_m.xbm \ eastern_bitmaps/rookP_l.top.xbm \ eastern_bitmaps/rookP_l.xbm \ eastern_bitmaps/rookP_m.top.xbm \ eastern_bitmaps/rookP_m.xbm \ eastern_bitmaps/rookR.xbm \ eastern_bitmaps/rookR_l.xbm \ eastern_bitmaps/rookR_m.xbm \ eastern_bitmaps/rook_l.xbm \ eastern_bitmaps/rook_m.xbm \ eastern_bitmaps/silver.xbm \ eastern_bitmaps/silverP.xbm \ eastern_bitmaps/silverPR.xbm \ eastern_bitmaps/silverPR_l.xbm \ eastern_bitmaps/silverPR_m.xbm \ eastern_bitmaps/silverP_l.xbm \ eastern_bitmaps/silverP_m.xbm \ eastern_bitmaps/silverR.xbm \ eastern_bitmaps/silverR_l.xbm \ eastern_bitmaps/silverR_m.xbm \ eastern_bitmaps/silver_l.xbm \ eastern_bitmaps/silver_m.xbm \ eastern_bitmaps/smallblank.xbm \ eastern_bitmaps/smallblankR.xbm \ eastern_bitmaps/smalllight.xbm \ eastern_bitmaps/smallsolid.xbm \ eastern_bitmaps/smallsolidR.xbm \ eastern_bitmaps/smallsolidR_l.xbm \ eastern_bitmaps/smallsolidR_m.xbm \ eastern_bitmaps/smallsolid_l.xbm \ eastern_bitmaps/smallsolid_m.xbm \ \ western_bitmaps/bishopPRW.xbm \ western_bitmaps/bishopPW.xbm \ western_bitmaps/bishopRW.xbm \ western_bitmaps/bishopW.xbm \ western_bitmaps/goldRW.xbm \ western_bitmaps/goldW.xbm \ western_bitmaps/kingRW.xbm \ western_bitmaps/kingW.xbm \ western_bitmaps/knightPRW.xbm \ western_bitmaps/knightPW.xbm \ western_bitmaps/knightRW.xbm \ western_bitmaps/knightW.xbm \ western_bitmaps/lancePRW.xbm \ western_bitmaps/lancePW.xbm \ western_bitmaps/lanceRW.xbm \ western_bitmaps/lanceW.xbm \ western_bitmaps/noneW.xbm \ western_bitmaps/pawnPRW.xbm \ western_bitmaps/pawnPW.xbm \ western_bitmaps/pawnRW.xbm \ western_bitmaps/pawnW.xbm \ western_bitmaps/rookPRW.xbm \ western_bitmaps/rookPW.xbm \ western_bitmaps/rookRW.xbm \ western_bitmaps/rookW.xbm \ western_bitmaps/silverPRW.xbm \ western_bitmaps/silverPW.xbm \ western_bitmaps/silverRW.xbm \ western_bitmaps/silverW.xbm \ \ new_eastern_bitmaps/bigsolidR_l.xbm \ new_eastern_bitmaps/bigsolid_l.xbm \ new_eastern_bitmaps/bishopPR_l.xbm \ new_eastern_bitmaps/bishopP_l.xbm \ new_eastern_bitmaps/bishopR_l.xbm \ new_eastern_bitmaps/bishop_l.xbm \ new_eastern_bitmaps/goldR_l.xbm \ new_eastern_bitmaps/gold_l.xbm \ new_eastern_bitmaps/kingR_l.xbm \ new_eastern_bitmaps/king_l.xbm \ new_eastern_bitmaps/knightPR_l.xbm \ new_eastern_bitmaps/knightP_l.xbm \ new_eastern_bitmaps/knightR_l.xbm \ new_eastern_bitmaps/knight_l.xbm \ new_eastern_bitmaps/lancePR_l.xbm \ new_eastern_bitmaps/lanceP_l.xbm \ new_eastern_bitmaps/lanceR_l.xbm \ new_eastern_bitmaps/lance_l.xbm \ new_eastern_bitmaps/none_l.xbm \ new_eastern_bitmaps/pawnPR_l.xbm \ new_eastern_bitmaps/pawnP_l.xbm \ new_eastern_bitmaps/pawnR_l.xbm \ new_eastern_bitmaps/pawn_l.xbm \ new_eastern_bitmaps/rookPR_l.xbm \ new_eastern_bitmaps/rookP_l.xbm \ new_eastern_bitmaps/rookR_l.xbm \ new_eastern_bitmaps/rook_l.xbm \ new_eastern_bitmaps/silverPR_l.xbm \ new_eastern_bitmaps/silverP_l.xbm \ new_eastern_bitmaps/silverR_l.xbm \ new_eastern_bitmaps/silver_l.xbm \ new_eastern_bitmaps/smallsolidR_l.xbm \ new_eastern_bitmaps/smallsolid_l.xbm \ \ new_western_bitmaps/bishopPRW.xbm \ new_western_bitmaps/bishopPW.xbm \ new_western_bitmaps/bishopRW.xbm \ new_western_bitmaps/bishopW.xbm \ new_western_bitmaps/goldRW.xbm \ new_western_bitmaps/goldW.xbm \ new_western_bitmaps/kingRW.xbm \ new_western_bitmaps/kingW.xbm \ new_western_bitmaps/knightPRW.xbm \ new_western_bitmaps/knightPW.xbm \ new_western_bitmaps/knightRW.xbm \ new_western_bitmaps/knightW.xbm \ new_western_bitmaps/lancePRW.xbm \ new_western_bitmaps/lancePW.xbm \ new_western_bitmaps/lanceRW.xbm \ new_western_bitmaps/lanceW.xbm \ new_western_bitmaps/noneW.xbm \ new_western_bitmaps/pawnPRW.xbm \ new_western_bitmaps/pawnPW.xbm \ new_western_bitmaps/pawnRW.xbm \ new_western_bitmaps/pawnW.xbm \ new_western_bitmaps/rookPRW.xbm \ new_western_bitmaps/rookPW.xbm \ new_western_bitmaps/rookRW.xbm \ new_western_bitmaps/rookW.xbm \ new_western_bitmaps/silverPRW.xbm \ new_western_bitmaps/silverPW.xbm \ new_western_bitmaps/silverRW.xbm \ new_western_bitmaps/silverW.xbm xshogi-1.4.2/aclocal.m40000644000175000017500000012174312274274131011613 00000000000000# generated automatically by aclocal 1.14a -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, [m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) # Copyright (C) 2002-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.14a' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.14a], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.14a])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to # '$srcdir', '$srcdir/..', or '$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is '.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], [$1], [CXX], [depcc="$CXX" am_compiler_list=], [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], [$1], [UPC], [depcc="$UPC" am_compiler_list=], [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES. AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE([dependency-tracking], [dnl AS_HELP_STRING( [--enable-dependency-tracking], [do not reject slow dependency extractors]) AS_HELP_STRING( [--disable-dependency-tracking], [speeds up one-time build])]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl AC_SUBST([am__nodep])dnl _AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each '.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC]) [_AM_PROG_CC_C_O ]) # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [AC_DIAGNOSE([obsolete], [$0: two- and three-arguments forms are deprecated.]) m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) AM_MISSING_PROG([AUTOCONF], [autoconf]) AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) AM_MISSING_PROG([AUTOHEADER], [autoheader]) AM_MISSING_PROG([MAKEINFO], [makeinfo]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi fi]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST([install_sh])]) # Copyright (C) 2003-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it is modern enough. # If it is, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= AC_MSG_WARN(['missing' script is too old or missing]) fi ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Copyright (C) 1999-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_CC_C_O # --------------- # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC # to automatically call this. AC_DEFUN([_AM_PROG_CC_C_O], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl AC_LANG_PUSH([C])dnl AC_CACHE_CHECK( [whether $CC understands -c and -o together], [am_cv_prog_cc_c_o], [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i]) if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi AC_LANG_POP([C])]) # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_RUN_LOG(COMMAND) # ------------------- # Run COMMAND, save the exit status in ac_status, and log it. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD (exit $ac_status); }]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi if test "$[2]" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT([yes]) # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi AC_CONFIG_COMMANDS_PRE( [AC_MSG_CHECKING([that generated files are newer than configure]) if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi AC_MSG_RESULT([done])]) rm -f conftest.file ]) # Copyright (C) 2009-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SILENT_RULES([DEFAULT]) # -------------------------- # Enable less verbose build rules; with the default set to DEFAULT # ("yes" being less verbose, "no" or empty being verbose). AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl AS_HELP_STRING( [--enable-silent-rules], [less verbose build output (undo: "make V=1")]) AS_HELP_STRING( [--disable-silent-rules], [verbose build output (undo: "make V=0")])dnl ]) case $enable_silent_rules in @%:@ ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; esac dnl dnl A few 'make' implementations (e.g., NonStop OS and NextStep) dnl do not support nested variable expansions. dnl See automake bug#9928 and bug#10237. am_make=${MAKE-make} AC_CACHE_CHECK([whether $am_make supports nested variables], [am_cv_make_support_nested_variables], [if AS_ECHO([['TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi]) if test $am_cv_make_support_nested_variables = yes; then dnl Using '$V' instead of '$(V)' breaks IRIX make. AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AC_SUBST([AM_V])dnl AM_SUBST_NOTMAKE([AM_V])dnl AC_SUBST([AM_DEFAULT_V])dnl AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor 'install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in "make install-strip", and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar # AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar], [# The POSIX 1988 'ustar' format is defined with fixed-size fields. # There is notably a 21 bits limit for the UID and the GID. In fact, # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 # and bug#13588). am_max_uid=2097151 # 2^21 - 1 am_max_gid=$am_max_uid # The $UID and $GID variables are not portable, so we need to resort # to the POSIX-mandated id(1) utility. Errors in the 'id' calls # below are definitely unexpected, so allow the users to see them # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) if test $am_uid -le $am_max_uid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) if test $am_gid -le $am_max_gid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi], [pax], [], [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_$1-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR xshogi-1.4.2/xshogi.c0000644000175000017500000062611412274270516011425 00000000000000/* * FILE: xshogi.c * * Implementation of the X interface for GNU shogi (xshogi). * * ------------------------------------------------------------------------ * xshogi is based on XBoard -- an Xt/Athena user interface for GNU Chess. * * Original authors: Dan Sears, Chris Sears * Enhancements (Version 2.0 and following): Tim Mann * Modifications to XShogi (Version 1.0): Matthias Mutz * Enhancements to XShogi (Version 1.1): Matthias Mutz * Modified implementation of ISS mode for XShogi: Matthias Mutz * Current maintainer: Michael C. Vanier * * XShogi borrows some of its piece bitmaps from CRANES Shogi. * * Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts. * Enhancements Copyright 1992 Free Software Foundation, Inc. * Enhancements for XShogi Copyright 1993, 1994, 1995 Matthias Mutz * Copyright (c) 1999 Michael Vanier and the Free Software Foundation * * The following terms apply to Digital Equipment Corporation's copyright * interest in XBoard: * ------------------------------------------------------------------------ * All Rights Reserved * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, * provided that the above copyright notice appear in all copies and that * both that copyright notice and this permission notice appear in * supporting documentation, and that the name of Digital not be * used in advertising or publicity pertaining to distribution of the * software without specific, written prior permission. * * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS * SOFTWARE. * ------------------------------------------------------------------------ * * This file is part of GNU shogi. * * GNU shogi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation. * * GNU shogi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GNU shogi; see the file COPYING. If not, write to * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. * * ------------------------------------------------------------------------ * */ #include "config.h" #ifdef X_DISPLAY_MISSING #error You cannot compile xshogi if X windows is unavailable! #endif #include "sysdeps.h" #define XBOARD_VERSION "2.0/2.1" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "xshogi.h" #define BUF_SIZE 1024 #define BOARD 1 #define MOVES 2 #include "bitmaps.h" /* Piece bitmaps. */ #include "xshogifn.h" /* Forward declarations. */ #define off_board(x) ((x < 2) || (x > BOARD_SIZE + 1)) /********************************************************************** * * Global variables, structs etc. * **********************************************************************/ /* * NOTE: XShogi depends on Xt R4 or higher */ int xtVersion = XtSpecificationRelease; XtIntervalId firstProgramXID = 0, secondProgramXID = 0, readGameXID = 0, timerXID = 0, blinkSquareXID = 0; XtAppContext appContext; Boolean (*fileProc) (char *name); FILE *fromFirstProgFP, *toFirstProgFP, *fromSecondProgFP, *toSecondProgFP, *gameFileFP, *lastMsgFP; int currentMove = 0, forwardMostMove = 0, backwardMostMove = 0, firstProgramPID = 0, secondProgramPID = 0, fromX = -1, fromY = -1, firstMove = True, flipView = False, xshogiDebug = True, commentUp = False, filenameUp = False, whitePlaysFirst = False, startedFromSetupPosition = False, searchTime = 0, pmFromX = -1, pmFromY = -1, blackFlag = False, whiteFlag = False, maybeThinking = False, filemodeUp = False; int at_least_gnushogi_1_2p03 = False; int firstSendTime = 2, secondSendTime = 2; /* 0 = don't, 1 = do, 2 = test first */ MatchMode matchMode = MatchFalse; GameMode gameMode = BeginningOfGame; GameMode lastGameMode = BeginningOfGame; GameMode pausePreviousMode = BeginningOfGame; char moveList[MAX_MOVES][MOVE_LEN], parseList[MAX_MOVES][MOVE_LEN * 2], ptyname[24], *shogiDir, *programName; char endMessage[MOVE_LEN * 4]; long blackTimeRemaining, whiteTimeRemaining, timeControl; long timeRemaining[2][MAX_MOVES]; extern char currentMoveString[]; int updateRemotePlayer = False; Catched catches[MAX_MOVES]; #define DIMENSION 100 Widget blackPieceMenu, whitePieceMenu, commentShell; XSetWindowAttributes attr; #define pawn 0 #define lance 1 #define knight 2 #define silver 3 #define gold 4 #define bishop 5 #define rook 6 #define king 7 #define no_piece 8 #define ppawn 9 #define plance 10 #define pknight 11 #define psilver 12 #define pbishop 13 #define NO_PIECES 15 #define NO_SQUARES 81 #define NO_COLS 9 #define NO_ROWS 9 char catchedIndexToChar[8] = { 'P', 'L', 'N', 'S', 'G', 'B', 'R', 'K' }; ShogiSquare catchedIndexToPiece[2][8] = { { BlackPawn, BlackLance, BlackKnight, BlackSilver, BlackGold, BlackBishop, BlackRook, BlackKing }, { WhitePawn, WhiteLance, WhiteKnight, WhiteSilver, WhiteGold, WhiteBishop, WhiteRook, WhiteKing } }; int pieceToCatchedIndex[] = { pawn, lance, knight, silver, gold, bishop, rook, pawn, lance, knight, silver, bishop, rook, king, pawn, lance, knight, silver, gold, bishop, rook, pawn, lance, knight, silver, bishop, rook, king, no_piece }; Board boards[MAX_MOVES]; Board initialPosition = { { BlackLance, BlackKnight, BlackSilver, BlackGold, BlackKing, BlackGold, BlackSilver, BlackKnight, BlackLance }, { EmptySquare, BlackBishop, EmptySquare, EmptySquare, EmptySquare, EmptySquare, EmptySquare, BlackRook, EmptySquare }, { BlackPawn, BlackPawn, BlackPawn, BlackPawn, BlackPawn, BlackPawn, BlackPawn, BlackPawn, BlackPawn }, { EmptySquare, EmptySquare, EmptySquare, EmptySquare, EmptySquare, EmptySquare, EmptySquare, EmptySquare, EmptySquare } , { EmptySquare, EmptySquare, EmptySquare, EmptySquare, EmptySquare, EmptySquare, EmptySquare, EmptySquare, EmptySquare } , { EmptySquare, EmptySquare, EmptySquare, EmptySquare, EmptySquare, EmptySquare, EmptySquare, EmptySquare, EmptySquare } , { WhitePawn, WhitePawn, WhitePawn, WhitePawn, WhitePawn, WhitePawn, WhitePawn, WhitePawn, WhitePawn }, { EmptySquare, WhiteRook, EmptySquare, EmptySquare, EmptySquare, EmptySquare, EmptySquare, WhiteBishop, EmptySquare }, { WhiteLance, WhiteKnight, WhiteSilver, WhiteGold, WhiteKing, WhiteGold, WhiteSilver, WhiteKnight, WhiteLance } }; String gnuButtonStrings[] = { "Quit", "Load Game", "Machine White", "Forward", "Reset", "Load Position", "Machine Black", "Backward", "Flip View", "Save Game", "Force Moves", "Pause", "Hint", "Save Position", "Two Machines", "Edit Position", "Challenge", "Select Level", "Move NOW", }; /* must be in same order as buttonStrings! */ XtActionProc gnuButtonProcs[] = { QuitProc, LoadGameProc, MachineWhiteProc, ForwardProc, ResetProc, LoadPositionProc, MachineBlackProc, BackwardProc, FlipViewProc, SaveGameProc, ForceProc, PauseProc, HintProc, SavePositionProc, TwoMachinesProc, EditPositionProc, ChallengeProc, SelectLevelProc, MoveNowProc, NULL }; String *buttonStrings; XtActionProc *buttonProcs; int buttonCount; #define PIECE_MENU_SIZE 18 String pieceMenuStrings[PIECE_MENU_SIZE] = { "----", "Pawn", "Lance", "Knight", "Silver", "Gold", "Bishop", "Rook", "PPawn", "PLance", "PKnight", "PSilver", "PBishop", "PRook", "King", "----", "Empty square", "Clear board" }; /* must be in same order as PieceMenuStrings! */ ShogiSquare pieceMenuTranslation[2][PIECE_MENU_SIZE] = { { (ShogiSquare) 0, BlackPawn, BlackLance, BlackKnight, BlackSilver, BlackGold, BlackBishop, BlackRook, BlackPPawn, BlackPLance, BlackPKnight, BlackPSilver, BlackPBishop, BlackPRook, BlackKing, (ShogiSquare) 0, EmptySquare, ClearBoard }, { (ShogiSquare) 0, WhitePawn, WhiteLance, WhiteKnight, WhiteSilver, WhiteGold, WhiteBishop, WhiteRook, WhitePPawn, WhitePLance, WhitePKnight, WhitePSilver, WhitePBishop, WhitePRook, WhiteKing, (ShogiSquare) 0, EmptySquare, ClearBoard }, }; typedef struct { Pixel pieceColor; Pixel squareColor; Pixel charPieceColor; Pixel zeroColor; Pixel oneColor; Boolean westernPieceSet; int movesPerSession; String initString; String blackString; String whiteString; String firstShogiProgram; String secondShogiProgram; Boolean noShogiProgram; String firstHost; String secondHost; String reverseBigSolidBitmap; String reverseSmallSolidBitmap; String normalBigSolidBitmap; String normalSmallSolidBitmap; String reversePawnBitmap; String reverseLanceBitmap; String reverseKnightBitmap; String reverseSilverBitmap; String reverseGoldBitmap; String reverseRookBitmap; String reverseBishopBitmap; String reversePPawnBitmap; String reversePLanceBitmap; String reversePKnightBitmap; String reversePSilverBitmap; String reversePBishopBitmap; String reversePRookBitmap; String reverseKingBitmap; String normalPawnBitmap; String normalLanceBitmap; String normalKnightBitmap; String normalSilverBitmap; String normalGoldBitmap; String normalRookBitmap; String normalBishopBitmap; String normalPPawnBitmap; String normalPLanceBitmap; String normalPKnightBitmap; String normalPSilverBitmap; String normalPBishopBitmap; String normalPRookBitmap; String normalKingBitmap; String remoteShell; float timeDelay; String timeControl; String gameIn; Boolean autoSaveGames; String loadGameFile; String loadPositionFile; String saveGameFile; String savePositionFile; String matchMode; String challengeDisplay; Boolean monoMode; Boolean debugMode; Boolean clockMode; String boardSize; Boolean Iconic; String searchTime; int searchDepth; Boolean showCoords; String mainFont; String coordFont; Boolean ringBellAfterMoves; Boolean autoCallFlag; int borderXoffset; int borderYoffset; } AppData, *AppDataPtr; XtResource clientResources[] = { { "pieceColor", "pieceColor", XtRPixel, sizeof(Pixel), XtOffset(AppDataPtr, pieceColor), XtRString, PIECE_COLOR }, { "charPieceColor", "CharPieceColor", XtRPixel, sizeof(Pixel), XtOffset(AppDataPtr, charPieceColor), XtRString, CHAR_PIECE_COLOR }, { "oneColor", "OneColor", XtRPixel, sizeof(Pixel), XtOffset(AppDataPtr, oneColor), XtRString, ONE_COLOR }, { "zeroColor", "ZeroColor", XtRPixel, sizeof(Pixel), XtOffset(AppDataPtr, zeroColor), XtRString, ZERO_COLOR }, { "squareColor", "squareColor", XtRPixel, sizeof(Pixel), XtOffset(AppDataPtr, squareColor), XtRString, SQUARE_COLOR }, { "westernPieceSet", "WesternPieceSet", XtRBoolean, sizeof(Boolean), XtOffset(AppDataPtr, westernPieceSet), XtRString, (XtPointer) False }, { "movesPerSession", "movesPerSession", XtRInt, sizeof(int), XtOffset(AppDataPtr, movesPerSession), XtRImmediate, (XtPointer) MOVES_PER_SESSION }, { "initString", "initString", XtRString, sizeof(String), XtOffset(AppDataPtr, initString), XtRString, INIT_STRING }, { "blackString", "blackString", XtRString, sizeof(String), XtOffset(AppDataPtr, blackString), XtRString, BLACK_STRING }, { "whiteString", "whiteString", XtRString, sizeof(String), XtOffset(AppDataPtr, whiteString), XtRString, WHITE_STRING }, { "firstShogiProgram", "firstShogiProgram", XtRString, sizeof(String), XtOffset(AppDataPtr, firstShogiProgram), XtRString, FIRST_SHOGI_PROGRAM }, { "secondShogiProgram", "secondShogiProgram", XtRString, sizeof(String), XtOffset(AppDataPtr, secondShogiProgram), XtRString, SECOND_SHOGI_PROGRAM }, { "noShogiProgram", "noShogiProgram", XtRBoolean, sizeof(Boolean), XtOffset(AppDataPtr, noShogiProgram), XtRImmediate, (XtPointer) False }, { "firstHost", "firstHost", XtRString, sizeof(String), XtOffset(AppDataPtr, firstHost), XtRString, FIRST_HOST }, { "secondHost", "secondHost", XtRString, sizeof(String), XtOffset(AppDataPtr, secondHost), XtRString, SECOND_HOST }, { "reversePawnBitmap", "reversePawnBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, reversePawnBitmap), XtRString, NULL }, { "reverseLanceBitmap", "reverseLanceBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, reverseLanceBitmap), XtRString, NULL }, { "reverseKnightBitmap", "reverseKnightBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, reverseKnightBitmap), XtRString, NULL }, { "reverseSilverBitmap", "reverseSilverBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, reverseSilverBitmap), XtRString, NULL }, { "reverseGoldBitmap", "reverseGoldBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, reverseGoldBitmap), XtRString, NULL }, { "reverseRookBitmap", "reverseRookBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, reverseRookBitmap), XtRString, NULL }, { "reverseBishopBitmap", "reverseBishopBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, reverseBishopBitmap), XtRString, NULL }, { "reversePPawnBitmap", "reversePPawnBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, reversePPawnBitmap), XtRString, NULL }, { "reversePLanceBitmap", "reversePLanceBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, reversePLanceBitmap), XtRString, NULL }, { "reversePKnightBitmap", "reversePKnightBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, reversePKnightBitmap), XtRString, NULL }, { "reversePSilverBitmap", "reversePSilverBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, reversePSilverBitmap), XtRString, NULL }, { "reversePRookBitmap", "reversePRookBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, reversePRookBitmap), XtRString, NULL }, { "reversePBishopBitmap", "reversePBishopBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, reversePBishopBitmap), XtRString, NULL }, { "reverseKingBitmap", "reverseKingBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, reverseKingBitmap), XtRString, NULL }, { "normalPawnBitmap", "normalPawnBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, normalPawnBitmap), XtRString, NULL }, { "normalLanceBitmap", "normalLanceBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, normalLanceBitmap), XtRString, NULL }, { "normalKnightBitmap", "normalKnightBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, normalKnightBitmap), XtRString, NULL }, { "normalSilverBitmap", "normalSilverBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, normalSilverBitmap), XtRString, NULL }, { "normalGoldBitmap", "normalGoldBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, normalGoldBitmap), XtRString, NULL }, { "normalBishopBitmap", "normalBishopBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, normalBishopBitmap), XtRString, NULL }, { "normalRookBitmap", "normalRookBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, normalRookBitmap), XtRString, NULL }, { "normalPPawnBitmap", "normalPPawnBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, normalPPawnBitmap), XtRString, NULL }, { "normalPLanceBitmap", "normalPLanceBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, normalPLanceBitmap), XtRString, NULL }, { "normalPKnightBitmap", "normalPKnightBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, normalPKnightBitmap), XtRString, NULL }, { "normalPSilverBitmap", "normalPSilverBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, normalPSilverBitmap), XtRString, NULL }, { "normalPBishopBitmap", "normalPBishopBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, normalPBishopBitmap), XtRString, NULL }, { "normalPRookBitmap", "normalPRookBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, normalPRookBitmap), XtRString, NULL }, { "normalKingBitmap", "normalKingBitmap", XtRString, sizeof(String), XtOffset(AppDataPtr, normalKingBitmap), XtRString, NULL }, { "remoteShell", "remoteShell", XtRString, sizeof(String), XtOffset(AppDataPtr, remoteShell), XtRString, "rsh" }, { "timeDelay", "timeDelay", XtRFloat, sizeof(float), XtOffset(AppDataPtr, timeDelay), XtRString, (XtPointer) TIME_DELAY }, { "timeControl", "timeControl", XtRString, sizeof(String), XtOffset(AppDataPtr, timeControl), XtRString, (XtPointer) TIME_CONTROL }, { "gameIn", "gameIn", XtRBoolean, sizeof(Boolean), XtOffset(AppDataPtr, gameIn), XtRImmediate, (XtPointer) False }, { "autoSaveGames", "autoSaveGames", XtRBoolean, sizeof(Boolean), XtOffset(AppDataPtr, autoSaveGames), XtRImmediate, (XtPointer) False }, { "loadGameFile", "loadGameFile", XtRString, sizeof(String), XtOffset(AppDataPtr, loadGameFile), XtRString, NULL }, { "loadPositionFile", "loadPositionFile", XtRString, sizeof(String), XtOffset(AppDataPtr, loadPositionFile), XtRString, NULL }, { "saveGameFile", "saveGameFile", XtRString, sizeof(String), XtOffset(AppDataPtr, saveGameFile), XtRString, "" }, { "savePositionFile", "savePositionFile", XtRString, sizeof(String), XtOffset(AppDataPtr, savePositionFile), XtRString, "" }, { "challengeDisplay", "challengeDisplay", XtRString, sizeof(String), XtOffset(AppDataPtr, challengeDisplay), XtRString, NULL }, { "matchMode", "matchMode", XtRString, sizeof(String), XtOffset(AppDataPtr, matchMode), XtRString, MATCH_MODE }, { "monoMode", "monoMode", XtRBoolean, sizeof(Boolean), XtOffset(AppDataPtr, monoMode), XtRImmediate, (XtPointer) False }, { "debugMode", "debugMode", XtRBoolean, sizeof(Boolean), XtOffset(AppDataPtr, debugMode), XtRImmediate, (XtPointer) False }, { "Iconic", "Iconic", XtRBoolean, sizeof(Boolean), XtOffset(AppDataPtr, Iconic), XtRImmediate, (XtPointer) False }, { "clockMode", "clockMode", XtRBoolean, sizeof(Boolean), XtOffset(AppDataPtr, clockMode), XtRImmediate, (XtPointer) True }, { "autoCallFlag", "autoCallFlag", XtRBoolean, sizeof(Boolean), XtOffset(AppDataPtr, autoCallFlag), XtRImmediate, (XtPointer) False }, { "boardSize", "boardSize", XtRString, sizeof(String), XtOffset(AppDataPtr, boardSize), XtRString, DEFAULT_SIZE }, { "searchTime", "searchTime", XtRString, sizeof(String), XtOffset(AppDataPtr, searchTime), XtRString, (XtPointer) NULL }, { "searchDepth", "searchDepth", XtRInt, sizeof(int), XtOffset(AppDataPtr, searchDepth), XtRImmediate, (XtPointer) 0 }, { "showCoords", "showCoords", XtRBoolean, sizeof(Boolean), XtOffset(AppDataPtr, showCoords), XtRImmediate, (XtPointer) False }, { "mainFont", "mainFont", XtRString, sizeof(String), XtOffset(AppDataPtr, mainFont), XtRString, MAIN_FONT }, { "coordFont", "coordFont", XtRString, sizeof(String), XtOffset(AppDataPtr, coordFont), XtRString, COORD_FONT }, { "ringBellAfterMoves", "ringBellAfterMoves", XtRBoolean, sizeof(Boolean), XtOffset(AppDataPtr, ringBellAfterMoves), XtRImmediate, (XtPointer) False }, { "borderXoffset", "borderXoffset", XtRInt, sizeof(int), XtOffset(AppDataPtr, borderXoffset), XtRImmediate, (XtPointer) BORDER_X_OFFSET }, { "borderYoffset", "borderYOffset", XtRInt, sizeof(int), XtOffset(AppDataPtr, borderYoffset), XtRImmediate, (XtPointer) BORDER_Y_OFFSET } }; struct DisplayData { AppData appData; Arg shellArgs[6]; Arg boardArgs[3]; Arg commandsArgs[7]; Arg messageArgs[3]; Arg timerArgs[2]; Arg titleArgs[2]; Pixmap reversePawnBitmap, reverseLanceBitmap, reverseKnightBitmap, reverseSilverBitmap, reverseGoldBitmap, reverseBishopBitmap, reverseRookBitmap, reversePPawnBitmap, reversePLanceBitmap, reversePKnightBitmap, reversePSilverBitmap, reversePBishopBitmap, reversePRookBitmap, reverseKingBitmap, reverseBigSolidBitmap, reverseSmallSolidBitmap, normalBigSolidBitmap, normalSmallSolidBitmap, normalPawnBitmap, normalLanceBitmap, normalKnightBitmap, normalSilverBitmap, normalGoldBitmap, normalBishopBitmap, normalRookBitmap, normalPPawnBitmap, normalPLanceBitmap, normalPKnightBitmap, normalPSilverBitmap, normalPBishopBitmap, normalPRookBitmap, normalKingBitmap, iconPixmap; Display *xDisplay; int xScreen; Window xBoardWindow; GC squareGC, lineGC, pieceGC, oPieceGC, charPieceGC, squareOffBoardGC, coordGC, dropPiece; Font mainFontID, coordFontID; XFontStruct *mainFontStruct, *coordFontStruct; Widget shellWidget, formWidget, boardWidget, commandsWidget, messageWidget, blackTimerWidget, whiteTimerWidget, titleWidget, widgetList[6], promotionShell, filemodeShell, challengeWidget; XSegment gridSegments[(BOARD_SIZE + 1) * 2]; Pixel timerForegroundPixel, timerBackgroundPixel; BoardSize boardSize; int squareSize; int black_pixel_is_zero; int flipView; int promotionUp; Boolean monoMode, showCoords, Iconic; }; struct DisplayData localPlayer, remotePlayer; typedef struct { ShogiSquare piece; int to_x, to_y; } PromotionMoveInfo; static PromotionMoveInfo pmi; /* making this global is gross */ Pixmap *pieceToReverse[2][28] = { { &localPlayer.reversePawnBitmap, &localPlayer.reverseLanceBitmap, &localPlayer.reverseKnightBitmap, &localPlayer.reverseSilverBitmap, &localPlayer.reverseGoldBitmap, &localPlayer.reverseBishopBitmap, &localPlayer.reverseRookBitmap, &localPlayer.reversePPawnBitmap, &localPlayer.reversePLanceBitmap, &localPlayer.reversePKnightBitmap, &localPlayer.reversePSilverBitmap, &localPlayer.reversePBishopBitmap, &localPlayer.reversePRookBitmap, &localPlayer.reverseKingBitmap, &localPlayer.reversePawnBitmap, &localPlayer.reverseLanceBitmap, &localPlayer.reverseKnightBitmap, &localPlayer.reverseSilverBitmap, &localPlayer.reverseGoldBitmap, &localPlayer.reverseBishopBitmap, &localPlayer.reverseRookBitmap, &localPlayer.reversePPawnBitmap, &localPlayer.reversePLanceBitmap, &localPlayer.reversePKnightBitmap, &localPlayer.reversePSilverBitmap, &localPlayer.reversePBishopBitmap, &localPlayer.reversePRookBitmap, &localPlayer.reverseKingBitmap }, { &remotePlayer.reversePawnBitmap, &remotePlayer.reverseLanceBitmap, &remotePlayer.reverseKnightBitmap, &remotePlayer.reverseSilverBitmap, &remotePlayer.reverseGoldBitmap, &remotePlayer.reverseBishopBitmap, &remotePlayer.reverseRookBitmap, &remotePlayer.reversePPawnBitmap, &remotePlayer.reversePLanceBitmap, &remotePlayer.reversePKnightBitmap, &remotePlayer.reversePSilverBitmap, &remotePlayer.reversePBishopBitmap, &remotePlayer.reversePRookBitmap, &remotePlayer.reverseKingBitmap, &remotePlayer.reversePawnBitmap, &remotePlayer.reverseLanceBitmap, &remotePlayer.reverseKnightBitmap, &remotePlayer.reverseSilverBitmap, &remotePlayer.reverseGoldBitmap, &remotePlayer.reverseBishopBitmap, &remotePlayer.reverseRookBitmap, &remotePlayer.reversePPawnBitmap, &remotePlayer.reversePLanceBitmap, &remotePlayer.reversePKnightBitmap, &remotePlayer.reversePSilverBitmap, &remotePlayer.reversePBishopBitmap, &remotePlayer.reversePRookBitmap, &remotePlayer.reverseKingBitmap } }; Pixmap *pieceToNormal[2][28] = { { &localPlayer.normalPawnBitmap, &localPlayer.normalLanceBitmap, &localPlayer.normalKnightBitmap, &localPlayer.normalSilverBitmap, &localPlayer.normalGoldBitmap, &localPlayer.normalBishopBitmap, &localPlayer.normalRookBitmap, &localPlayer.normalPPawnBitmap, &localPlayer.normalPLanceBitmap, &localPlayer.normalPKnightBitmap, &localPlayer.normalPSilverBitmap, &localPlayer.normalPBishopBitmap, &localPlayer.normalPRookBitmap, &localPlayer.normalKingBitmap, &localPlayer.normalPawnBitmap, &localPlayer.normalLanceBitmap, &localPlayer.normalKnightBitmap, &localPlayer.normalSilverBitmap, &localPlayer.normalGoldBitmap, &localPlayer.normalBishopBitmap, &localPlayer.normalRookBitmap, &localPlayer.normalPPawnBitmap, &localPlayer.normalPLanceBitmap, &localPlayer.normalPKnightBitmap, &localPlayer.normalPSilverBitmap, &localPlayer.normalPBishopBitmap, &localPlayer.normalPRookBitmap, &localPlayer.normalKingBitmap }, { &remotePlayer.normalPawnBitmap, &remotePlayer.normalLanceBitmap, &remotePlayer.normalKnightBitmap, &remotePlayer.normalSilverBitmap, &remotePlayer.normalGoldBitmap, &remotePlayer.normalBishopBitmap, &remotePlayer.normalRookBitmap, &remotePlayer.normalPPawnBitmap, &remotePlayer.normalPLanceBitmap, &remotePlayer.normalPKnightBitmap, &remotePlayer.normalPSilverBitmap, &remotePlayer.normalPBishopBitmap, &remotePlayer.normalPRookBitmap, &remotePlayer.normalKingBitmap, &remotePlayer.normalPawnBitmap, &remotePlayer.normalLanceBitmap, &remotePlayer.normalKnightBitmap, &remotePlayer.normalSilverBitmap, &remotePlayer.normalGoldBitmap, &remotePlayer.normalBishopBitmap, &remotePlayer.normalRookBitmap, &remotePlayer.normalPPawnBitmap, &remotePlayer.normalPLanceBitmap, &remotePlayer.normalPKnightBitmap, &remotePlayer.normalPSilverBitmap, &remotePlayer.normalPBishopBitmap, &remotePlayer.normalPRookBitmap, &remotePlayer.normalKingBitmap } }; Pixmap *pieceToReverseSolid[2][28] = { { &localPlayer.reverseSmallSolidBitmap, &localPlayer.reverseSmallSolidBitmap, &localPlayer.reverseSmallSolidBitmap, &localPlayer.reverseBigSolidBitmap, &localPlayer.reverseBigSolidBitmap, &localPlayer.reverseBigSolidBitmap, &localPlayer.reverseBigSolidBitmap, &localPlayer.reverseSmallSolidBitmap, &localPlayer.reverseSmallSolidBitmap, &localPlayer.reverseSmallSolidBitmap, &localPlayer.reverseBigSolidBitmap, &localPlayer.reverseBigSolidBitmap, &localPlayer.reverseBigSolidBitmap, &localPlayer.reverseBigSolidBitmap, &localPlayer.reverseSmallSolidBitmap, &localPlayer.reverseSmallSolidBitmap, &localPlayer.reverseSmallSolidBitmap, &localPlayer.reverseBigSolidBitmap, &localPlayer.reverseBigSolidBitmap, &localPlayer.reverseBigSolidBitmap, &localPlayer.reverseBigSolidBitmap, &localPlayer.reverseSmallSolidBitmap, &localPlayer.reverseSmallSolidBitmap, &localPlayer.reverseSmallSolidBitmap, &localPlayer.reverseBigSolidBitmap, &localPlayer.reverseBigSolidBitmap, &localPlayer.reverseBigSolidBitmap, &localPlayer.reverseBigSolidBitmap }, { &remotePlayer.reverseSmallSolidBitmap, &remotePlayer.reverseSmallSolidBitmap, &remotePlayer.reverseSmallSolidBitmap, &remotePlayer.reverseBigSolidBitmap, &remotePlayer.reverseBigSolidBitmap, &remotePlayer.reverseBigSolidBitmap, &remotePlayer.reverseBigSolidBitmap, &remotePlayer.reverseSmallSolidBitmap, &remotePlayer.reverseSmallSolidBitmap, &remotePlayer.reverseSmallSolidBitmap, &remotePlayer.reverseBigSolidBitmap, &remotePlayer.reverseBigSolidBitmap, &remotePlayer.reverseBigSolidBitmap, &remotePlayer.reverseBigSolidBitmap, &remotePlayer.reverseSmallSolidBitmap, &remotePlayer.reverseSmallSolidBitmap, &remotePlayer.reverseSmallSolidBitmap, &remotePlayer.reverseBigSolidBitmap, &remotePlayer.reverseBigSolidBitmap, &remotePlayer.reverseBigSolidBitmap, &remotePlayer.reverseBigSolidBitmap, &remotePlayer.reverseSmallSolidBitmap, &remotePlayer.reverseSmallSolidBitmap, &remotePlayer.reverseSmallSolidBitmap, &remotePlayer.reverseBigSolidBitmap, &remotePlayer.reverseBigSolidBitmap, &remotePlayer.reverseBigSolidBitmap, &remotePlayer.reverseBigSolidBitmap } }; Pixmap *pieceToNormalSolid[2][28] = { { &localPlayer.normalSmallSolidBitmap, &localPlayer.normalSmallSolidBitmap, &localPlayer.normalSmallSolidBitmap, &localPlayer.normalBigSolidBitmap, &localPlayer.normalBigSolidBitmap, &localPlayer.normalBigSolidBitmap, &localPlayer.normalBigSolidBitmap, &localPlayer.normalSmallSolidBitmap, &localPlayer.normalSmallSolidBitmap, &localPlayer.normalSmallSolidBitmap, &localPlayer.normalBigSolidBitmap, &localPlayer.normalBigSolidBitmap, &localPlayer.normalBigSolidBitmap, &localPlayer.normalBigSolidBitmap, &localPlayer.normalSmallSolidBitmap, &localPlayer.normalSmallSolidBitmap, &localPlayer.normalSmallSolidBitmap, &localPlayer.normalBigSolidBitmap, &localPlayer.normalBigSolidBitmap, &localPlayer.normalBigSolidBitmap, &localPlayer.normalBigSolidBitmap, &localPlayer.normalSmallSolidBitmap, &localPlayer.normalSmallSolidBitmap, &localPlayer.normalSmallSolidBitmap, &localPlayer.normalBigSolidBitmap, &localPlayer.normalBigSolidBitmap, &localPlayer.normalBigSolidBitmap, &localPlayer.normalBigSolidBitmap }, { &remotePlayer.normalSmallSolidBitmap, &remotePlayer.normalSmallSolidBitmap, &remotePlayer.normalSmallSolidBitmap, &remotePlayer.normalBigSolidBitmap, &remotePlayer.normalBigSolidBitmap, &remotePlayer.normalBigSolidBitmap, &remotePlayer.normalBigSolidBitmap, &remotePlayer.normalSmallSolidBitmap, &remotePlayer.normalSmallSolidBitmap, &remotePlayer.normalSmallSolidBitmap, &remotePlayer.normalBigSolidBitmap, &remotePlayer.normalBigSolidBitmap, &remotePlayer.normalBigSolidBitmap, &remotePlayer.normalBigSolidBitmap, &remotePlayer.normalSmallSolidBitmap, &remotePlayer.normalSmallSolidBitmap, &remotePlayer.normalSmallSolidBitmap, &remotePlayer.normalBigSolidBitmap, &remotePlayer.normalBigSolidBitmap, &remotePlayer.normalBigSolidBitmap, &remotePlayer.normalBigSolidBitmap, &remotePlayer.normalSmallSolidBitmap, &remotePlayer.normalSmallSolidBitmap, &remotePlayer.normalSmallSolidBitmap, &remotePlayer.normalBigSolidBitmap, &remotePlayer.normalBigSolidBitmap, &remotePlayer.normalBigSolidBitmap, &remotePlayer.normalBigSolidBitmap } }; int pieceIsPromoted[] = { False, False, False, False, False, False, False, True, True, True, True, True, True, False, False, False, False, False, False, False, False, True, True, True, True, True, True, False, False }; int piecePromotable[] = { True, True, True, True, False, True, True, False, False, False, False, False, False, False, True, True, True, True, False, True, True, False, False, False, False, False, False, False, False }; char pieceToChar[] = { 'P', 'L', 'N', 'S', 'G', 'B', 'R', 'P', 'L', 'N', 'S', 'B', 'R', 'K', 'p', 'l', 'n', 's', 'g', 'b', 'r', 'p', 'l', 'n', 's', 'b', 'r', 'k', '.' }; ShogiSquare pieceToPromoted[] = { BlackPPawn, BlackPLance, BlackPKnight, BlackPSilver, BlackGold, BlackPBishop, BlackPRook, BlackPPawn, BlackPLance, BlackPKnight, BlackPSilver, BlackPBishop, BlackPRook, BlackKing, WhitePPawn, WhitePLance, WhitePKnight, WhitePSilver, WhiteGold, WhitePBishop, WhitePRook, WhitePPawn, WhitePLance, WhitePKnight, WhitePSilver, WhitePBishop, WhitePRook, WhiteKing }; XrmOptionDescRec shellOptions[] = { { "-pieceColor", "pieceColor", XrmoptionSepArg, NULL }, { "-pc", "pieceColor", XrmoptionSepArg, NULL }, { "-charPieceColor", "charPieceColor", XrmoptionSepArg, NULL }, { "-cpc", "charPieceColor", XrmoptionSepArg, NULL }, { "-zeroColor", "zeroColor", XrmoptionSepArg, NULL }, { "-zc", "zeroColor", XrmoptionSepArg, NULL }, { "-oneColor", "oneColor", XrmoptionSepArg, NULL }, { "-oc", "oneColor", XrmoptionSepArg, NULL }, { "-squareColor", "squareColor", XrmoptionSepArg, NULL }, { "-sc", "squareColor", XrmoptionSepArg, NULL }, { "-westernPieceSet", "westernPieceSet", XrmoptionSepArg, NULL }, { "-wps", "westernPieceSet", XrmoptionSepArg, NULL }, { "-movesPerSession", "movesPerSession", XrmoptionSepArg, NULL }, { "-mps", "movesPerSession", XrmoptionSepArg, NULL }, { "-firstShogiProgram", "firstShogiProgram", XrmoptionSepArg, NULL }, { "-fsp", "firstShogiProgram", XrmoptionSepArg, NULL }, { "-secondShogiProgram", "secondShogiProgram", XrmoptionSepArg, NULL }, { "-ssp", "secondShogiProgram", XrmoptionSepArg, NULL }, { "-noShogiProgram", "noShogiProgram", XrmoptionSepArg, NULL }, { "-nsp", "noShogiProgram", XrmoptionSepArg, NULL }, { "-firstHost", "firstHost", XrmoptionSepArg, NULL }, { "-fh", "firstHost", XrmoptionSepArg, NULL }, { "-secondHost", "secondHost", XrmoptionSepArg, NULL }, { "-sh", "secondHost", XrmoptionSepArg, NULL }, { "-reversePawnBitmap", "reversePawnBitmap", XrmoptionSepArg, NULL }, { "-rpb", "reversePawnBitmap", XrmoptionSepArg, NULL }, { "-reverseLanceBitmap", "reverseLanceBitmap", XrmoptionSepArg, NULL }, { "-rlb", "reverseLanceBitmap", XrmoptionSepArg, NULL }, { "-reverseKnightBitmap", "reverseKnightBitmap", XrmoptionSepArg, NULL }, { "-rnb", "reverseKnightBitmap", XrmoptionSepArg, NULL }, { "-reverseSilverBitmap", "reverseSilverBitmap", XrmoptionSepArg, NULL }, { "-rsb", "reverseSilverBitmap", XrmoptionSepArg, NULL }, { "-reverseGoldBitmap", "reverseGoldBitmap", XrmoptionSepArg, NULL }, { "-rgb", "reverseGoldBitmap", XrmoptionSepArg, NULL }, { "-reverseRookBitmap", "reverseRookBitmap", XrmoptionSepArg, NULL }, { "-rrb", "reverseRookBitmap", XrmoptionSepArg, NULL }, { "-reverseBishopBitmap", "reverseBishopBitmap", XrmoptionSepArg, NULL }, { "-rbb", "reverseBishopBitmap", XrmoptionSepArg, NULL }, { "-reversePPawnBitmap", "reversePPawnBitmap", XrmoptionSepArg, NULL }, { "-rppb", "reversePPawnBitmap", XrmoptionSepArg, NULL }, { "-reversePLanceBitmap", "reversePLanceBitmap", XrmoptionSepArg, NULL }, { "-rplb", "reversePLanceBitmap", XrmoptionSepArg, NULL }, { "-reversePKnightBitmap", "reversePKnightBitmap", XrmoptionSepArg, NULL }, { "-rpnb", "reversePKnightBitmap", XrmoptionSepArg, NULL }, { "-reversePSilverBitmap", "reversePSilverBitmap", XrmoptionSepArg, NULL }, { "-rpsb", "reversePSilverBitmap", XrmoptionSepArg, NULL }, { "-reversePRookBitmap", "reversePRookBitmap", XrmoptionSepArg, NULL }, { "-rprb", "reversePRookBitmap", XrmoptionSepArg, NULL }, { "-reversePBishopBitmap", "reversePBishopBitmap", XrmoptionSepArg, NULL }, { "-rpbb", "reversePBishopBitmap", XrmoptionSepArg, NULL }, { "-reverseKingBitmap", "reverseKingBitmap", XrmoptionSepArg, NULL }, { "-rkb", "reverseKingBitmap", XrmoptionSepArg, NULL }, { "-outlinePawnBitmap", "outlinePawnBitmap", XrmoptionSepArg, NULL }, { "-opb", "normalPawnBitmap", XrmoptionSepArg, NULL }, { "-normalLanceBitmap", "normalLanceBitmap", XrmoptionSepArg, NULL }, { "-olb", "normalLanceBitmap", XrmoptionSepArg, NULL }, { "-normalKnightBitmap", "normalKnightBitmap", XrmoptionSepArg, NULL }, { "-onb", "normalKnightBitmap", XrmoptionSepArg, NULL }, { "-normalSilverBitmap", "normalSilverBitmap", XrmoptionSepArg, NULL }, { "-osb", "normalSilverBitmap", XrmoptionSepArg, NULL }, { "-normalGoldBitmap", "normalGoldBitmap", XrmoptionSepArg, NULL }, { "-ogb", "normalGoldBitmap", XrmoptionSepArg, NULL }, { "-normalRookBitmap", "normalRookBitmap", XrmoptionSepArg, NULL }, { "-orb", "normalRookBitmap", XrmoptionSepArg, NULL }, { "-normalBishopBitmap", "normalBishopBitmap", XrmoptionSepArg, NULL }, { "-obb", "normalBishopBitmap", XrmoptionSepArg, NULL }, { "-normalPPawnBitmap", "normalPPawnBitmap", XrmoptionSepArg, NULL }, { "-oppb", "normalPPawnBitmap", XrmoptionSepArg, NULL }, { "-normalPLanceBitmap", "normalPLanceBitmap", XrmoptionSepArg, NULL }, { "-oplb", "normalPLanceBitmap", XrmoptionSepArg, NULL }, { "-normalPKnightBitmap", "normalPKnightBitmap", XrmoptionSepArg, NULL }, { "-opnb", "normalPKnightBitmap", XrmoptionSepArg, NULL }, { "-normalPSilverBitmap", "normalPSilverBitmap", XrmoptionSepArg, NULL }, { "-opsb", "normalPSilverBitmap", XrmoptionSepArg, NULL }, { "-normalPRookBitmap", "normalPRookBitmap", XrmoptionSepArg, NULL }, { "-oprb", "normalPRookBitmap", XrmoptionSepArg, NULL }, { "-normalPBishopBitmap", "normalPBishopBitmap", XrmoptionSepArg, NULL }, { "-opbb", "normalPBishopBitmap", XrmoptionSepArg, NULL }, { "-normalKingBitmap", "normalKingBitmap", XrmoptionSepArg, NULL }, { "-okb", "outlineKingBitmap", XrmoptionSepArg, NULL }, { "-remoteShell", "remoteShell", XrmoptionSepArg, NULL }, { "-rsh", "remoteShell", XrmoptionSepArg, NULL }, { "-timeDelay", "timeDelay", XrmoptionSepArg, NULL }, { "-td", "timeDelay", XrmoptionSepArg, NULL }, { "-timeControl", "timeControl", XrmoptionSepArg, NULL }, { "-tc", "timeControl", XrmoptionSepArg, NULL }, { "-gameIn", "gameIn", XrmoptionSepArg, NULL }, { "-gi", "gameIn", XrmoptionSepArg, NULL }, { "-loadGameFile", "loadGameFile", XrmoptionSepArg, NULL }, { "-lgf", "loadGameFile", XrmoptionSepArg, NULL }, { "-loadPositionFile", "loadPositionFile", XrmoptionSepArg, NULL }, { "-lpf", "loadPositionFile", XrmoptionSepArg, NULL }, { "-saveGameFile", "saveGameFile", XrmoptionSepArg, NULL }, { "-sgf", "saveGameFile", XrmoptionSepArg, NULL }, { "-savePositionFile", "savePositionFile", XrmoptionSepArg, NULL }, { "-spf", "savePositionFile", XrmoptionSepArg, NULL }, { "-challengeDisplay", "challengeDisplay", XrmoptionSepArg, NULL }, { "-cd", "challengeDisplay", XrmoptionSepArg, NULL }, { "-matchMode", "matchMode", XrmoptionSepArg, NULL }, { "-mm", "matchMode", XrmoptionSepArg, NULL }, { "-monoMode", "monoMode", XrmoptionSepArg, NULL }, { "-mono", "monoMode", XrmoptionSepArg, NULL }, { "-debugMode", "debugMode", XrmoptionSepArg, NULL }, { "-debug", "debugMode", XrmoptionSepArg, NULL }, { "-clockMode", "clockMode", XrmoptionSepArg, NULL }, { "-clock", "clockMode", XrmoptionSepArg, NULL }, { "-boardSize", "boardSize", XrmoptionSepArg, NULL }, { "-size", "boardSize", XrmoptionSepArg, NULL }, { "-searchTime", "searchTime", XrmoptionSepArg, NULL }, { "-st", "searchTime", XrmoptionSepArg, NULL }, { "-searchDepth", "searchDepth", XrmoptionSepArg, NULL }, { "-sd", "searchDepth", XrmoptionSepArg, NULL }, { "-showCoords", "showCoords", XrmoptionSepArg, NULL }, { "-coords", "showCoords", XrmoptionSepArg, NULL }, { "-iconic", "Iconic", XrmoptionNoArg, "True" } }; XtActionsRec boardActions[] = { { "DrawPosition", (XtActionProc) DrawPosition }, { "HandleUserMove", (XtActionProc) HandleUserMove }, { "ResetProc", (XtActionProc) ResetProc }, { "ResetFileProc", (XtActionProc) ResetFileProc }, { "LoadGameProc", (XtActionProc) LoadGameProc }, { "QuitProc", (XtActionProc) QuitProc }, { "ForwardProc", (XtActionProc) ForwardProc }, { "BackwardProc", (XtActionProc) BackwardProc }, { "PauseProc", (XtActionProc) PauseProc }, { "Iconify", (XtActionProc) Iconify }, { "FileNameAction", (XtActionProc) FileNameAction }, { "PieceMenuPopup", (XtActionProc) PieceMenuPopup }, { "SetBlackToPlay", (XtActionProc) SetBlackToPlay }, { "SetWhiteToPlay", (XtActionProc) SetWhiteToPlay } }; char translationsTable[] = ": DrawPosition() \n \ : HandleUserMove() \n \ : HandleUserMove() \n \ : XawPositionSimpleMenu(menuW) PieceMenuPopup(menuW) \n \ : XawPositionSimpleMenu(menuB) PieceMenuPopup(menuB) \n \ r: ResetFileProc() ResetProc() \n \ R: ResetFileProc() ResetProc() \n \ g: LoadGameProc() \n \ G: LoadGameProc() \n \ q: QuitProc() \n \ Q: QuitProc() \n \ WM_PROTOCOLS: QuitProc() \n \ f: ForwardProc() \n \ F: ForwardProc() \n \ b: BackwardProc() \n \ B: BackwardProc() \n \ p: PauseProc() \n \ P: PauseProc() \n \ i: Iconify() \n \ I: Iconify() \n \ c: Iconify() \n \ C: Iconify() \n"; char translationsTableReduced[] = ": DrawPosition() \n \ : HandleUserMove() \n \ : HandleUserMove() \n \ WM_PROTOCOLS: QuitProc() \n"; char blackTranslations[] = ": SetBlackToPlay()\n"; char whiteTranslations[] = ": SetWhiteToPlay()\n"; String xshogiResources[] = { DEFAULT_FONT, "*Dialog*value.translations: #override " "\\n Return: FileNameAction()", NULL }; int global_argc; /* number of command args */ char *global_argv[10]; /* pointers to up to 10 command args */ static struct DisplayData *player; typedef struct { char mode[2]; char name[100]; } FileModeInfo; static FileModeInfo fmi; /* * This is a hack that allows the parser to tell the program * that the game it's loading has ended. */ int loaded_game_finished = 0; /********************************************************************** * * End of globals. * **********************************************************************/ void CreatePlayerWindow(void) { int mainFontPxlSize, coordFontPxlSize; int min, sec, matched; XSetWindowAttributes window_attributes; char buf[MSG_SIZ]; Arg args[10]; Dimension timerWidth, boardWidth, commandsWidth, w, h; int local; int fromRemotePlayer = (player == &remotePlayer); player->monoMode = player->appData.monoMode; player->showCoords = player->appData.showCoords; /* * Parse timeControl resource. */ if (player->appData.timeControl != NULL) { matched = sscanf(player->appData.timeControl, "%d:%d", &min, &sec); if (matched == 1) { timeControl = min * 60 * 1000; } else if (matched == 2) { timeControl = (min * 60 + sec) * 1000; } else { fprintf(stderr, "%s: bad timeControl option %s\n", programName, player->appData.timeControl); Usage(); } } /* * Parse searchTime resource */ if (player->appData.searchTime != NULL) { matched = sscanf(player->appData.searchTime, "%d:%d", &min, &sec); if (matched == 1) { searchTime = min * 60; } else if (matched == 2) { searchTime = min * 60 + sec; } else { fprintf(stderr, "%s: bad searchTime option %s\n", programName, player->appData.searchTime); Usage(); } } if ((player->appData.searchTime != NULL) || (player->appData.searchDepth > 0) || player->appData.noShogiProgram) { player->appData.clockMode = False; } player->Iconic = False; player->boardSize = Small; player->squareSize = SMALL_SQUARE_SIZE; player->flipView = (player == &remotePlayer); player->promotionUp = False; /* * Determine boardSize. */ if (strcasecmp(player->appData.boardSize, "Large") == 0) { player->boardSize = Large; } else if (strcasecmp(player->appData.boardSize, "Medium") == 0) { player->boardSize = Medium; } else if (strcasecmp(player->appData.boardSize, "Small") == 0) { player->boardSize = Small; } else { fprintf(stderr, "%s: bad boardSize option %s\n", programName, player->appData.boardSize); Usage(); } if ((local = (player == &localPlayer))) { player->xDisplay = XtDisplay(player->shellWidget); player->xScreen = DefaultScreen(player->xDisplay); } #undef DONT_ADJUST_BOARDSIZE #ifndef DONT_ADJUST_BOARDSIZE if (((DisplayWidth(player->xDisplay, player->xScreen) < 800) || (DisplayHeight(player->xDisplay, player->xScreen) < 800)) && (player->boardSize == Large)) { player->boardSize = Medium; } #endif switch (player->boardSize) { case Small: player->squareSize = SMALL_SQUARE_SIZE; mainFontPxlSize = 11; coordFontPxlSize = 10; break; case Medium: player->squareSize = MEDIUM_SQUARE_SIZE; mainFontPxlSize = 17; coordFontPxlSize = 12; break; default: case Large: player->squareSize = LARGE_SQUARE_SIZE; mainFontPxlSize = 17; coordFontPxlSize = 14; break; } /* * Detect if there are not enough colors are available and adapt. */ if (DefaultDepth(player->xDisplay, player->xScreen) <= 2) player->monoMode = True; /* * Determine what fonts to use. */ player->appData.mainFont = FindFont(player->appData.mainFont, mainFontPxlSize); player->mainFontID = XLoadFont(player->xDisplay, player->appData.mainFont); player->mainFontStruct = XQueryFont(player->xDisplay, player->mainFontID); player->appData.coordFont = FindFont(player->appData.coordFont, coordFontPxlSize); player->coordFontID = XLoadFont(player->xDisplay, player->appData.coordFont); player->coordFontStruct = XQueryFont(player->xDisplay, player->coordFontID); /* * Set default arguments. */ XtSetArg(player->shellArgs[0], XtNwidth, 0); XtSetArg(player->shellArgs[1], XtNheight, 0); XtSetArg(player->shellArgs[2], XtNminWidth, 0); XtSetArg(player->shellArgs[3], XtNminHeight, 0); XtSetArg(player->shellArgs[4], XtNmaxWidth, 0); XtSetArg(player->shellArgs[5], XtNmaxHeight, 0); XtSetArg(player->boardArgs[0], XtNborderWidth, 0); XtSetArg(player->boardArgs[1], XtNwidth, LINE_GAP + (BOARD_SIZE + 4) * (SMALL_SQUARE_SIZE + LINE_GAP)); XtSetArg(player->boardArgs[2], XtNheight, LINE_GAP + BOARD_SIZE * (SMALL_SQUARE_SIZE + LINE_GAP)); XtSetArg(player->commandsArgs[0], XtNborderWidth, 0); XtSetArg(player->commandsArgs[1], XtNdefaultColumns, 4); XtSetArg(player->commandsArgs[2], XtNforceColumns, True); XtSetArg(player->commandsArgs[3], XtNcolumnSpacing, 12); XtSetArg(player->commandsArgs[4], XtNlist, (XtArgVal) buttonStrings); XtSetArg(player->commandsArgs[5], XtNnumberStrings, buttonCount); XtSetArg(player->commandsArgs[6], XtNfont, player->mainFontStruct); XtSetArg(player->messageArgs[0], XtNborderWidth, 0); XtSetArg(player->messageArgs[1], XtNjustify, (XtArgVal) XtJustifyLeft); XtSetArg(player->messageArgs[2], XtNlabel, (XtArgVal) "starting..."); XtSetArg(player->timerArgs[0], XtNborderWidth, 0); XtSetArg(player->timerArgs[1], XtNjustify, (XtArgVal) XtJustifyLeft); XtSetArg(player->titleArgs[0], XtNborderWidth, 0); XtSetArg(player->titleArgs[1], XtNjustify, (XtArgVal) XtJustifyLeft); boardWidth = LINE_GAP + (BOARD_SIZE + 4) * (player->squareSize + LINE_GAP); XtSetArg(player->boardArgs[1], XtNwidth, boardWidth); XtSetArg(player->boardArgs[2], XtNheight, LINE_GAP + BOARD_SIZE * (player->squareSize + LINE_GAP)); /* * widget hierarchy */ player->formWidget = XtCreateManagedWidget("form", formWidgetClass, player->shellWidget, NULL, 0); player->widgetList[0] = player->blackTimerWidget = XtCreateWidget((local ? "black time:" : "rblack time:"), labelWidgetClass, player->formWidget, player->timerArgs, XtNumber(player->timerArgs)); XtSetArg(args[0], XtNfont, player->mainFontStruct); XtSetValues(player->blackTimerWidget, args, 1); player->widgetList[1] = player->whiteTimerWidget = XtCreateWidget((local ? "white time:" : "rwhite time:"), labelWidgetClass, player->formWidget, player->timerArgs, XtNumber(player->timerArgs)); XtSetArg(args[0], XtNfont, player->mainFontStruct); XtSetValues(player->whiteTimerWidget, args, 1); player->widgetList[2] = player->titleWidget = XtCreateWidget((local ? "" : "r"), labelWidgetClass, player->formWidget, player->titleArgs, XtNumber(player->titleArgs)); XtSetArg(args[0], XtNfont, player->mainFontStruct); XtSetValues(player->titleWidget, args, 1); player->widgetList[3] = player->messageWidget = XtCreateWidget((local ? "message" : "rmessage"), labelWidgetClass, player->formWidget, player->messageArgs, XtNumber(player->messageArgs)); XtSetArg(args[0], XtNfont, player->mainFontStruct); XtSetValues(player->messageWidget, args, 1); player->widgetList[4] = player->commandsWidget = XtCreateWidget((local ? "commands" : "rcommand"), listWidgetClass, player->formWidget, player->commandsArgs, XtNumber(player->commandsArgs)); player->widgetList[5] = player->boardWidget = XtCreateWidget((local ? "board" : "rboard"), widgetClass, player->formWidget, player->boardArgs, XtNumber(player->boardArgs)); XtManageChildren(player->widgetList, XtNumber(player->widgetList)); /* * Calculate the width of the timer labels. */ XtSetArg(args[0], XtNfont, &player->mainFontStruct); XtGetValues(player->blackTimerWidget, args, 1); if (player->appData.clockMode) { timerWidth = XTextWidth(player->mainFontStruct, "Black: 8:88:88 ", 15); } else { timerWidth = XTextWidth(player->mainFontStruct, "Black ", 7); } XtSetArg(args[0], XtNwidth, timerWidth); XtSetValues(player->blackTimerWidget, args, 1); XtSetValues(player->whiteTimerWidget, args, 1); XtSetArg(args[0], XtNbackground, &player->timerForegroundPixel); XtSetArg(args[1], XtNforeground, &player->timerBackgroundPixel); XtGetValues(player->blackTimerWidget, args, 2); /* * Calculate the width of the name and message labels. */ XtSetArg(args[0], XtNwidth, &commandsWidth); XtGetValues(player->commandsWidget, args, 1); w = ((commandsWidth > boardWidth) ? commandsWidth : boardWidth); XtSetArg(args[0], XtNwidth, w - timerWidth * 2 - 12); XtSetValues(player->titleWidget, args, 1); XtSetArg(args[0], XtNwidth, w - 8); XtSetValues(player->messageWidget, args, 1); /* * 'formWidget' uses these constraints but they are stored * in the children. */ XtSetArg(args[0], XtNfromHoriz, player->blackTimerWidget); XtSetValues(player->whiteTimerWidget, args, 1); XtSetArg(args[0], XtNfromHoriz, player->whiteTimerWidget); XtSetValues(player->titleWidget, args, 1); XtSetArg(args[0], XtNfromVert, player->blackTimerWidget); XtSetValues(player->messageWidget, args, 1); XtSetArg(args[0], XtNfromVert, player->messageWidget); XtSetValues(player->commandsWidget, args, 1); XtSetArg(args[0], XtNfromVert, player->commandsWidget); XtSetValues(player->boardWidget, args, 1); XtRealizeWidget(player->shellWidget); player->xBoardWindow = XtWindow(player->boardWidget); /* * Create an icon. */ player->iconPixmap = XCreateBitmapFromData(player->xDisplay, XtWindow(player->shellWidget), (char *)icon_bits, icon_width, icon_height); XtSetArg(args[0], XtNiconPixmap, player->iconPixmap); XtSetValues(player->shellWidget, args, 1); /* * Create a cursor for the board widget. */ window_attributes.cursor = XCreateFontCursor(player->xDisplay, XC_hand2); XChangeWindowAttributes(player->xDisplay, player->xBoardWindow, CWCursor, &window_attributes); /* * Inhibit shell resizing. */ player->shellArgs[0].value = (XtArgVal) &w; player->shellArgs[1].value = (XtArgVal) &h; XtGetValues(player->shellWidget, player->shellArgs, 2); player->shellArgs[4].value = player->shellArgs[2].value = w; player->shellArgs[5].value = player->shellArgs[3].value = h; XtSetValues(player->shellWidget, &player->shellArgs[2], 4); /* * Determine value of black pixel. */ player->black_pixel_is_zero = (XBlackPixel(player->xDisplay, player->xScreen) == 0); CreateGCs(); CreateGrid(); CreatePieces(); if (!fromRemotePlayer) CreatePieceMenus(); XtAddCallback(player->commandsWidget, XtNcallback, SelectCommand, (XtPointer)fromRemotePlayer); if (!fromRemotePlayer) XtAppAddActions(appContext, boardActions, XtNumber(boardActions)); if (fromRemotePlayer) { XtSetArg(args[0], XtNtranslations, XtParseTranslationTable(translationsTableReduced)); /* Disable key commands because often keys are pressed in the board window if using another talk window. */ XtSetValues(player->boardWidget, &args[0], 1); XtSetValues(localPlayer.boardWidget, &args[0], 1); } else { XtSetArg(args[0], XtNtranslations, XtParseTranslationTable(translationsTable)); XtSetValues(player->boardWidget, &args[0], 1); XtSetArg(args[0], XtNtranslations, XtParseTranslationTable(blackTranslations)); XtSetValues(player->blackTimerWidget, &args[0], 1); XtSetArg(args[0], XtNtranslations, XtParseTranslationTable(whiteTranslations)); XtSetValues(player->whiteTimerWidget, &args[0], 1); } XtAddEventHandler(player->boardWidget, ExposureMask | ButtonPressMask | ButtonReleaseMask | Button1MotionMask | KeyPressMask, False, (XtEventHandler)EventProc, (XtPointer)(player == &remotePlayer)); sprintf(buf, "xshogi version %s based on " "xboard version %s", PACKAGE_VERSION, XBOARD_VERSION); /* * If there is to be a machine match, set it up. */ if (matchMode != MatchFalse && player != &remotePlayer) { if (player->appData.noShogiProgram) { fprintf(stderr, "%s: can't have a match with no shogi programs!\n", programName); exit(1); } DisplayMessage(buf, fromRemotePlayer); TwoMachinesProc(NULL, NULL, NULL, NULL); } else { Reset(True); DisplayMessage(buf, fromRemotePlayer); } } int main(int argc, char **argv) { setbuf(stdout, NULL); setbuf(stderr, NULL); /* * Copy pointers to command line arguments and number of such pointers. * (argc, argv will be destroyed by XtAppInitialize) */ for (global_argc = 0; global_argc < argc; global_argc++) global_argv[global_argc] = argv[global_argc]; programName = strrchr(argv[0], '/'); if (programName == NULL) programName = argv[0]; else programName++; localPlayer.shellWidget = XtAppInitialize(&appContext, "XShogi", shellOptions, XtNumber(shellOptions), &argc, argv, xshogiResources, NULL, 0); if (argc > 1) Usage(); if ((shogiDir = (char *)getenv("SHOGIDIR")) == NULL) { shogiDir = "."; } else { if (chdir(shogiDir) != 0) { fprintf(stderr, "%s: can't cd to SHOGIDIR\n", programName); perror(shogiDir); exit(1); } } XtGetApplicationResources(localPlayer.shellWidget, &localPlayer.appData, clientResources, XtNumber(clientResources), NULL, 0); xshogiDebug = localPlayer.appData.debugMode; /* * Determine matchMode state -- poor man's resource converter. */ if (strcasecmp(localPlayer.appData.matchMode, "Init") == 0) { matchMode = MatchInit; } else if (strcasecmp(localPlayer.appData.matchMode, "Position") == 0) { matchMode = MatchPosition; } else if (strcasecmp(localPlayer.appData.matchMode, "Opening") == 0) { matchMode = MatchOpening; } else if (strcasecmp(localPlayer.appData.matchMode, "False") == 0) { matchMode = MatchFalse; } else { fprintf(stderr, "%s: bad matchMode option %s\n", programName, localPlayer.appData.matchMode); Usage(); } buttonStrings = gnuButtonStrings; buttonProcs = gnuButtonProcs; buttonCount = XtNumber(gnuButtonStrings); player = &localPlayer; CreatePlayerWindow(); XtAppMainLoop(appContext); return 0; } /* * Find a font that matches "pattern" that is as close as * possible to the targetPxlSize. Prefer fonts that are k * pixels smaller to fonts that are k pixels larger. The * pattern must be in the X Consortium standard format, * e.g. "-*-helvetica-bold-r-normal--*-*-*-*-*-*-*-*". * The return value should be freed with XtFree when no * longer needed. */ char * FindFont(char *pattern, int targetPxlSize) { char **fonts, *p, *best; int i, j, nfonts, minerr, err, pxlSize; fonts = XListFonts(player->xDisplay, pattern, 999999, &nfonts); if (nfonts < 1) { fprintf(stderr, "%s: No fonts match pattern %s\n", programName, pattern); exit(1); } best = ""; minerr = 999999; for (i = 0; i < nfonts; i++) { j = 0; p = fonts[i]; if (*p != '-') continue; while (j < 7) { if (*p == NULLCHAR) break; if (*p++ == '-') j++; } if (j < 7) continue; pxlSize = atoi(p); if (pxlSize == targetPxlSize) { best = fonts[i]; break; } err = pxlSize - targetPxlSize; if (abs(err) < abs(minerr) || ((minerr > 0) && (err < 0) && (-err == minerr))) { best = fonts[i]; minerr = err; } } p = (char *)XtMalloc(strlen(best) + 1); strcpy(p, best); XFreeFontNames(fonts); return p; } void CreateGCs(void) { XtGCMask value_mask = GCLineWidth | GCLineStyle | GCForeground | GCBackground | GCFunction | GCPlaneMask; XGCValues gc_values; gc_values.plane_mask = AllPlanes; gc_values.line_width = LINE_GAP; gc_values.line_style = LineSolid; gc_values.function = GXcopy; gc_values.foreground = XBlackPixel(player->xDisplay, player->xScreen); gc_values.background = XBlackPixel(player->xDisplay, player->xScreen); player->lineGC = XtGetGC(player->shellWidget, value_mask, &gc_values); gc_values.background = XWhitePixel(player->xDisplay, player->xScreen); player->coordGC = XtGetGC(player->shellWidget, value_mask, &gc_values); XSetFont(player->xDisplay, player->coordGC, player->coordFontID); if (player->monoMode) { gc_values.foreground = XWhitePixel(player->xDisplay, player->xScreen); gc_values.background = XWhitePixel(player->xDisplay, player->xScreen); /* empty square off board */ player->squareOffBoardGC = XtGetGC(player->shellWidget, value_mask, &gc_values); /* empty square on board */ player->squareGC = XtGetGC(player->shellWidget, value_mask, &gc_values); } else { Pixel bg; /* background color */ Arg args[1]; /* Get background color. */ XtSetArg(args[0], XtNbackground, &bg); XtGetValues(player->shellWidget, args, 1); /* empty square off board */ gc_values.foreground = gc_values.background = bg; player->squareOffBoardGC = XtGetGC(player->shellWidget, value_mask, &gc_values); /* empty square on board */ gc_values.foreground = player->appData.squareColor; gc_values.background = player->appData.squareColor; player->squareGC = XtGetGC(player->shellWidget, value_mask, &gc_values); /* piece off board */ gc_values.foreground = player->appData.pieceColor; gc_values.background = bg; player->oPieceGC = XtGetGC(player->shellWidget, value_mask, &gc_values); /* piece on board */ gc_values.foreground = player->appData.pieceColor; gc_values.background = player->appData.squareColor; player->pieceGC = XtGetGC(player->shellWidget, value_mask, &gc_values); /* piece symbol */ /* * FIXME: charPieceColor seems to have no effect; * the bitmap is *always* black. */ gc_values.function = (player->black_pixel_is_zero ? GXand : GXor); gc_values.foreground = player->appData.charPieceColor; gc_values.background = player->appData.charPieceColor; player->charPieceGC = XtGetGC(player->shellWidget, value_mask, &gc_values); } } void CreatePieces(void) { XSynchronize(player->xDisplay, True); /* Work-around for xlib/xt buffering bug */ if (player->appData.westernPieceSet) { ReadBitmap(player->appData.reverseBigSolidBitmap, &player->reverseBigSolidBitmap, NULL, bigsolidR_bits, bigsolidR_m_bits, bigsolidR_l_bits); ReadBitmap(player->appData.reverseSmallSolidBitmap, &player->reverseSmallSolidBitmap, NULL, smallsolidR_bits, smallsolidR_m_bits, smallsolidR_l_bits); ReadBitmap(player->appData.normalBigSolidBitmap, &player->normalBigSolidBitmap, NULL, bigsolid_bits, bigsolid_m_bits, bigsolid_l_bits); ReadBitmap(player->appData.normalSmallSolidBitmap, &player->normalSmallSolidBitmap, NULL, smallsolid_bits, smallsolid_m_bits, smallsolid_l_bits); ReadBitmap(player->appData.reversePawnBitmap, &player->reversePawnBitmap, &player->reverseSmallSolidBitmap, pawnRW_bits, pawnRW_bits, pawnRW_bits); ReadBitmap(player->appData.reverseLanceBitmap, &player->reverseLanceBitmap, &player->reverseSmallSolidBitmap, lanceRW_bits, lanceRW_bits, lanceRW_bits); ReadBitmap(player->appData.reverseKnightBitmap, &player->reverseKnightBitmap, &player->reverseSmallSolidBitmap, knightRW_bits, knightRW_bits, knightRW_bits); ReadBitmap(player->appData.reverseSilverBitmap, &player->reverseSilverBitmap, &player->reverseBigSolidBitmap, silverRW_bits, silverRW_bits, silverRW_bits); ReadBitmap(player->appData.reverseGoldBitmap, &player->reverseGoldBitmap, &player->reverseBigSolidBitmap, goldRW_bits, goldRW_bits, goldRW_bits); ReadBitmap(player->appData.reverseRookBitmap, &player->reverseRookBitmap, &player->reverseBigSolidBitmap, rookRW_bits, rookRW_bits, rookRW_bits); ReadBitmap(player->appData.reverseBishopBitmap, &player->reverseBishopBitmap, &player->reverseBigSolidBitmap, bishopRW_bits, bishopRW_bits, bishopRW_bits); ReadBitmap(player->appData.reversePPawnBitmap, &player->reversePPawnBitmap, &player->reverseSmallSolidBitmap, pawnPRW_bits, pawnPRW_bits, pawnPRW_bits); ReadBitmap(player->appData.reversePLanceBitmap, &player->reversePLanceBitmap, &player->reverseSmallSolidBitmap, lancePRW_bits, lancePRW_bits, lancePRW_bits); ReadBitmap(player->appData.reversePKnightBitmap, &player->reversePKnightBitmap, &player->reverseSmallSolidBitmap, knightPRW_bits, knightPRW_bits, knightPRW_bits); ReadBitmap(player->appData.reversePSilverBitmap, &player->reversePSilverBitmap, &player->reverseBigSolidBitmap, silverPRW_bits, silverPRW_bits, silverPRW_bits); ReadBitmap(player->appData.reversePRookBitmap, &player->reversePRookBitmap, &player->reverseBigSolidBitmap, rookPRW_bits, rookPRW_bits, rookPRW_bits); ReadBitmap(player->appData.reversePBishopBitmap, &player->reversePBishopBitmap, &player->reverseBigSolidBitmap, bishopPRW_bits, bishopPRW_bits, bishopPRW_bits); ReadBitmap(player->appData.reverseKingBitmap, &player->reverseKingBitmap, &player->reverseBigSolidBitmap, kingRW_bits, kingRW_bits, kingRW_bits); ReadBitmap(player->appData.normalPawnBitmap, &player->normalPawnBitmap, &player->normalSmallSolidBitmap, pawnW_bits, pawnW_bits, pawnW_bits); ReadBitmap(player->appData.normalLanceBitmap, &player->normalLanceBitmap, &player->normalSmallSolidBitmap, lanceW_bits, lanceW_bits, lanceW_bits); ReadBitmap(player->appData.normalKnightBitmap, &player->normalKnightBitmap, &player->normalSmallSolidBitmap, knightW_bits, knightW_bits, knightW_bits); ReadBitmap(player->appData.normalSilverBitmap, &player->normalSilverBitmap, &player->normalBigSolidBitmap, silverW_bits, silverW_bits, silverW_bits); ReadBitmap(player->appData.normalGoldBitmap, &player->normalGoldBitmap, &player->normalBigSolidBitmap, goldW_bits, goldW_bits, goldW_bits); ReadBitmap(player->appData.normalRookBitmap, &player->normalRookBitmap, &player->normalBigSolidBitmap, rookW_bits, rookW_bits, rookW_bits); ReadBitmap(player->appData.normalBishopBitmap, &player->normalBishopBitmap, &player->normalBigSolidBitmap, bishopW_bits, bishopW_bits, bishopW_bits); ReadBitmap(player->appData.normalPPawnBitmap, &player->normalPPawnBitmap, &player->normalSmallSolidBitmap, pawnPW_bits, pawnPW_bits, pawnPW_bits); ReadBitmap(player->appData.normalPLanceBitmap, &player->normalPLanceBitmap, &player->normalSmallSolidBitmap, lancePW_bits, lancePW_bits, lancePW_bits); ReadBitmap(player->appData.normalPKnightBitmap, &player->normalPKnightBitmap, &player->normalSmallSolidBitmap, knightPW_bits, knightPW_bits, knightPW_bits); ReadBitmap(player->appData.normalPSilverBitmap, &player->normalPSilverBitmap, &player->normalBigSolidBitmap, silverPW_bits, silverPW_bits, silverPW_bits); ReadBitmap(player->appData.normalPRookBitmap, &player->normalPRookBitmap, &player->normalBigSolidBitmap, rookPW_bits, rookPW_bits, rookPW_bits); ReadBitmap(player->appData.normalPBishopBitmap, &player->normalPBishopBitmap, &player->normalBigSolidBitmap, bishopPW_bits, bishopPW_bits, bishopPW_bits); ReadBitmap(player->appData.normalKingBitmap, &player->normalKingBitmap, &player->normalBigSolidBitmap, kingW_bits, kingW_bits, kingW_bits); } else { ReadBitmap(player->appData.reverseBigSolidBitmap, &player->reverseBigSolidBitmap, NULL, bigsolidR_bits, bigsolidR_m_bits, bigsolidR_l_bits); ReadBitmap(player->appData.reverseSmallSolidBitmap, &player->reverseSmallSolidBitmap, NULL, smallsolidR_bits, smallsolidR_m_bits, smallsolidR_l_bits); ReadBitmap(player->appData.normalBigSolidBitmap, &player->normalBigSolidBitmap, NULL, bigsolid_bits, bigsolid_m_bits, bigsolid_l_bits); ReadBitmap(player->appData.normalSmallSolidBitmap, &player->normalSmallSolidBitmap, NULL, smallsolid_bits, smallsolid_m_bits, smallsolid_l_bits); ReadBitmap(player->appData.reversePawnBitmap, &player->reversePawnBitmap, &player->reverseSmallSolidBitmap, pawnR_bits, pawnR_m_bits, pawnR_l_bits); ReadBitmap(player->appData.reverseLanceBitmap, &player->reverseLanceBitmap, &player->reverseSmallSolidBitmap, lanceR_bits, lanceR_m_bits, lanceR_l_bits); ReadBitmap(player->appData.reverseKnightBitmap, &player->reverseKnightBitmap, &player->reverseSmallSolidBitmap, knightR_bits, knightR_m_bits, knightR_l_bits); ReadBitmap(player->appData.reverseSilverBitmap, &player->reverseSilverBitmap, &player->reverseBigSolidBitmap, silverR_bits, silverR_m_bits, silverR_l_bits); ReadBitmap(player->appData.reverseGoldBitmap, &player->reverseGoldBitmap, &player->reverseBigSolidBitmap, goldR_bits, goldR_m_bits, goldR_l_bits); ReadBitmap(player->appData.reverseRookBitmap, &player->reverseRookBitmap, &player->reverseBigSolidBitmap, rookR_bits, rookR_m_bits, rookR_l_bits); ReadBitmap(player->appData.reverseBishopBitmap, &player->reverseBishopBitmap, &player->reverseBigSolidBitmap, bishopR_bits, bishopR_m_bits, bishopR_l_bits); ReadBitmap(player->appData.reversePPawnBitmap, &player->reversePPawnBitmap, &player->reverseSmallSolidBitmap, pawnPR_bits, pawnPR_m_bits, pawnPR_l_bits); ReadBitmap(player->appData.reversePLanceBitmap, &player->reversePLanceBitmap, &player->reverseSmallSolidBitmap, lancePR_bits, lancePR_m_bits, lancePR_l_bits); ReadBitmap(player->appData.reversePKnightBitmap, &player->reversePKnightBitmap, &player->reverseSmallSolidBitmap, knightPR_bits, knightPR_m_bits, knightPR_l_bits); ReadBitmap(player->appData.reversePSilverBitmap, &player->reversePSilverBitmap, &player->reverseBigSolidBitmap, silverPR_bits, silverPR_m_bits, silverPR_l_bits); ReadBitmap(player->appData.reversePRookBitmap, &player->reversePRookBitmap, &player->reverseBigSolidBitmap, rookPR_bits, rookPR_m_bits, rookPR_l_bits); ReadBitmap(player->appData.reversePBishopBitmap, &player->reversePBishopBitmap, &player->reverseBigSolidBitmap, bishopPR_bits, bishopPR_m_bits, bishopPR_l_bits); ReadBitmap(player->appData.reverseKingBitmap, &player->reverseKingBitmap, &player->reverseBigSolidBitmap, kingR_bits, kingR_m_bits, kingR_l_bits); ReadBitmap(player->appData.normalPawnBitmap, &player->normalPawnBitmap, &player->normalSmallSolidBitmap, pawn_bits, pawn_m_bits, pawn_l_bits); ReadBitmap(player->appData.normalLanceBitmap, &player->normalLanceBitmap, &player->normalSmallSolidBitmap, lance_bits, lance_m_bits, lance_l_bits); ReadBitmap(player->appData.normalKnightBitmap, &player->normalKnightBitmap, &player->normalSmallSolidBitmap, knight_bits, knight_m_bits, knight_l_bits); ReadBitmap(player->appData.normalSilverBitmap, &player->normalSilverBitmap, &player->normalBigSolidBitmap, silver_bits, silver_m_bits, silver_l_bits); ReadBitmap(player->appData.normalGoldBitmap, &player->normalGoldBitmap, &player->normalBigSolidBitmap, gold_bits, gold_m_bits, gold_l_bits); ReadBitmap(player->appData.normalRookBitmap, &player->normalRookBitmap, &player->normalBigSolidBitmap, rook_bits, rook_m_bits, rook_l_bits); ReadBitmap(player->appData.normalBishopBitmap, &player->normalBishopBitmap, &player->normalBigSolidBitmap, bishop_bits, bishop_m_bits, bishop_l_bits); ReadBitmap(player->appData.normalPPawnBitmap, &player->normalPPawnBitmap, &player->normalSmallSolidBitmap, pawnP_bits, pawnP_m_bits, pawnP_l_bits); ReadBitmap(player->appData.normalPLanceBitmap, &player->normalPLanceBitmap, &player->normalSmallSolidBitmap, lanceP_bits, lanceP_m_bits, lanceP_l_bits); ReadBitmap(player->appData.normalPKnightBitmap, &player->normalPKnightBitmap, &player->normalSmallSolidBitmap, knightP_bits, knightP_m_bits, knightP_l_bits); ReadBitmap(player->appData.normalPSilverBitmap, &player->normalPSilverBitmap, &player->normalBigSolidBitmap, silverP_bits, silverP_m_bits, silverP_l_bits); ReadBitmap(player->appData.normalPRookBitmap, &player->normalPRookBitmap, &player->normalBigSolidBitmap, rookP_bits, rookP_m_bits, rookP_l_bits); ReadBitmap(player->appData.normalPBishopBitmap, &player->normalPBishopBitmap, &player->normalBigSolidBitmap, bishopP_bits, bishopP_m_bits, bishopP_l_bits); ReadBitmap(player->appData.normalKingBitmap, &player->normalKingBitmap, &player->normalBigSolidBitmap, king_bits, king_m_bits, king_l_bits); } XSynchronize(player->xDisplay, False); /* Work-around for xlib/xt buffering bug */ } int ReadBitmapFile(Display *display, Drawable d, char *filename, unsigned int *width_return, unsigned int *height_return, Pixmap *bitmap_return, int *x_hot_return, int *y_hot_return) { int n; if ((n = XReadBitmapFile(display, d, filename, width_return, height_return, bitmap_return, x_hot_return, y_hot_return)) != BitmapSuccess) { return n; } else { /* transform a 1 plane pixmap to a k plane pixmap */ return BitmapSuccess; } } /* * Create the X pixmap from .xbm file bitmap data. This may * have to be revised considerably. */ void ReadBitmap(String name, Pixmap *pm, Pixmap *qm, unsigned char *small_bits, unsigned char *medium_bits, unsigned char *large_bits) { int x_hot, y_hot; unsigned int w, h; if ((name == NULL) || (ReadBitmapFile(player->xDisplay, player->xBoardWindow, name, &w, &h, pm, &x_hot, &y_hot) != BitmapSuccess) || (w != player->squareSize) || (h != player->squareSize)) { unsigned long fg, bg; unsigned int depth; depth = DisplayPlanes(player->xDisplay, player->xScreen); if (player->monoMode) { fg = XBlackPixel(player->xDisplay, player->xScreen); bg = XWhitePixel(player->xDisplay, player->xScreen); } else if (qm == NULL) { fg = player->appData.oneColor; bg = player->appData.zeroColor; } else { fg = (player->black_pixel_is_zero ? 0 : ~0); bg = (player->black_pixel_is_zero ? ~0 : 0); } switch (player->boardSize) { case Large: *pm = XCreatePixmapFromBitmapData(player->xDisplay, player->xBoardWindow, (char *)large_bits, player->squareSize, player->squareSize, fg, bg, depth); break; case Medium: *pm = XCreatePixmapFromBitmapData(player->xDisplay, player->xBoardWindow, (char *)medium_bits, player->squareSize, player->squareSize, fg, bg, depth); break; case Small: *pm = XCreatePixmapFromBitmapData(player->xDisplay, player->xBoardWindow, (char *)small_bits, player->squareSize, player->squareSize, fg, bg, depth); break; } } } void CreateGrid(void) { int i, offset; offset = 2 * (player->squareSize + LINE_GAP); for (i = 0; i < BOARD_SIZE + 1; i++) { player->gridSegments[i].x1 = offset; player->gridSegments[i + BOARD_SIZE + 1].y1 = 0; player->gridSegments[i].y1 = player->gridSegments[i].y2 = LINE_GAP / 2 + (i * (player->squareSize + LINE_GAP)); player->gridSegments[i].x2 = LINE_GAP + BOARD_SIZE * (player->squareSize + LINE_GAP) + offset; player->gridSegments[i + BOARD_SIZE + 1].x1 = player->gridSegments[i + BOARD_SIZE + 1].x2 = LINE_GAP / 2 + (i * (player->squareSize + LINE_GAP)) + offset; player->gridSegments[i + BOARD_SIZE + 1].y2 = BOARD_SIZE * (player->squareSize + LINE_GAP); } } void CreatePieceMenus(void) { int i; Widget entry; Arg args[1]; ShogiSquare selection; XtSetArg(args[0], XtNlabel, "Black"); blackPieceMenu = XtCreatePopupShell("menuW", simpleMenuWidgetClass, localPlayer.boardWidget, args, 1); for (i = 0; i < PIECE_MENU_SIZE; i++) { String item = pieceMenuStrings[i]; if (strcmp(item, "----") == 0) { entry = XtCreateManagedWidget(item, smeLineObjectClass, blackPieceMenu, NULL, 0); } else { entry = XtCreateManagedWidget(item, smeBSBObjectClass, blackPieceMenu, NULL, 0); selection = pieceMenuTranslation[0][i]; XtAddCallback(entry, XtNcallback, (XtCallbackProc)PieceMenuSelect, (XtPointer)selection); if (selection == BlackPawn) { XtSetArg(args[0], XtNpopupOnEntry, entry); XtSetValues(blackPieceMenu, args, 1); } } } XtSetArg(args[0], XtNlabel, "White"); whitePieceMenu = XtCreatePopupShell("menuB", simpleMenuWidgetClass, localPlayer.boardWidget, args, 1); for (i = 0; i < PIECE_MENU_SIZE; i++) { String item = pieceMenuStrings[i]; if (strcmp(item, "----") == 0) { entry = XtCreateManagedWidget(item, smeLineObjectClass, whitePieceMenu, NULL, 0); } else { entry = XtCreateManagedWidget(item, smeBSBObjectClass, whitePieceMenu, NULL, 0); selection = pieceMenuTranslation[1][i]; XtAddCallback(entry, XtNcallback, (XtCallbackProc)PieceMenuSelect, (XtPointer)selection); if (selection == WhitePawn) { XtSetArg(args[0], XtNpopupOnEntry, entry); XtSetValues(whitePieceMenu, args, 1); } } } XtRegisterGrabAction(PieceMenuPopup, True, (unsigned)(ButtonPressMask|ButtonReleaseMask), GrabModeAsync, GrabModeAsync); } void PieceMenuPopup(Widget w, XEvent *event, String *params, Cardinal *num_params) { if (event->type != ButtonPress) return; if (gameMode != EditPosition) return; if (((pmFromX = EventToXSquare(event->xbutton.x)) < 1) || (pmFromX > BOARD_SIZE + 2) || ((pmFromY = EventToSquare(event->xbutton.y)) < 0)) { pmFromX = pmFromY = -1; return; } if (localPlayer.flipView) pmFromX = BOARD_SIZE + 3 - pmFromX; else pmFromY = BOARD_SIZE - 1 - pmFromY; XtPopupSpringLoaded(XtNameToWidget(localPlayer.boardWidget, params[0])); } static void PieceMenuSelect(Widget w, ShogiSquare piece, char *junk) { if ((pmFromX < 0) || (pmFromY < 0)) return; if (off_board(pmFromX)) { int i, c; switch (piece) { case ClearBoard: break; case BlackPlay: break; case WhitePlay: break; default: i = pieceToCatchedIndex[piece]; c = (piece >= WhitePawn); catches[0][c][i]++; DrawPosition(localPlayer.boardWidget, NULL, NULL, NULL); XSync(localPlayer.xDisplay, False); return; } } pmFromX -= 2; switch (piece) { case ClearBoard: for (pmFromY = 0; pmFromY < BOARD_SIZE; pmFromY++) for (pmFromX = 0; pmFromX < BOARD_SIZE; pmFromX++) boards[0][pmFromY][pmFromX] = EmptySquare; ClearCatches(catches[0]); DrawPosition(localPlayer.boardWidget, NULL, NULL, NULL); break; case BlackPlay: /* not currently on menu */ SetBlackToPlay(); break; case WhitePlay: /* not currently on menu */ SetWhiteToPlay(); break; default: boards[0][pmFromY][pmFromX] = piece; DrawPosition(localPlayer.boardWidget, NULL, NULL, NULL); break; } XSync(localPlayer.xDisplay, False); } static void SetBlackToPlay(void) { int saveCM; if (gameMode != EditPosition) return; whitePlaysFirst = False; saveCM = currentMove; currentMove = 0; /* kludge */ DisplayClocks(ReDisplayTimers); currentMove = saveCM; } static void SetWhiteToPlay(void) { int saveCM; if (gameMode != EditPosition) return; whitePlaysFirst = True; saveCM = currentMove; currentMove = 1; /* kludge */ DisplayClocks(ReDisplayTimers); currentMove = saveCM; } /* * If the user selects on a border boundary or off the board, return failure. * Otherwise map the event coordinate to the square. */ int EventToSquare(int x) { if (x < LINE_GAP) return -1; x -= LINE_GAP; if ((x % (player->squareSize + LINE_GAP)) >= player->squareSize) return -1; x /= (player->squareSize + LINE_GAP); if (x >= BOARD_SIZE) return -1; return x; } int EventToXSquare(int x) { if (x < LINE_GAP) return -1; x -= LINE_GAP; if ((x % (player->squareSize + LINE_GAP)) >= player->squareSize) return -1; x /= (player->squareSize + LINE_GAP); if (x >= BOARD_SIZE + 4) return -1; return x; } ShogiSquare CharToPiece(int c, int p) { if (p) { switch (c) { default: case '.': return EmptySquare; case 'P': return BlackPPawn; case 'L': return BlackPLance; case 'N': return BlackPKnight; case 'S': return BlackPSilver; case 'G': return BlackGold; case 'R': return BlackPRook; case 'B': return BlackPBishop; case 'K': return BlackKing; case 'p': return WhitePPawn; case 'l': return WhitePLance; case 'n': return WhitePKnight; case 's': return WhitePSilver; case 'g': return WhiteGold; case 'r': return WhitePRook; case 'b': return WhitePBishop; case 'k': return WhiteKing; } } else { switch (c) { default: case '.': return EmptySquare; case 'P': return BlackPawn; case 'L': return BlackLance; case 'N': return BlackKnight; case 'S': return BlackSilver; case 'G': return BlackGold; case 'R': return BlackRook; case 'B': return BlackBishop; case 'K': return BlackKing; case 'p': return WhitePawn; case 'l': return WhiteLance; case 'n': return WhiteKnight; case 's': return WhiteSilver; case 'g': return WhiteGold; case 'r': return WhiteRook; case 'b': return WhiteBishop; case 'k': return WhiteKing; } } } /* * Convert coordinates to normal algebraic notation. * promoPiece must be NULLCHAR if not a promotion. */ ShogiMove MakeAlg(int fromX, int fromY, int toX, int toY, char promoPiece, int currentBoardIndex, char *out) { ShogiSquare piece; char *outp = out; if (fromX > 80) { piece = (fromX - 81); *outp++ = catchedIndexToChar[piece]; *outp++ = '*'; *outp++ = '9' - toX; *outp++ = 'i' - toY; *outp++ = NULLCHAR; return (BlackOnMove(forwardMostMove) ? BlackDrop : WhiteDrop); } else { *outp++ = '9' - fromX; *outp++ = 'i' - fromY; *outp++ = '9' - toX; *outp++ = 'i' - toY; *outp++ = promoPiece; *outp++ = NULLCHAR; if (promoPiece == NULLCHAR) { return NormalMove; } else { return (BlackOnMove(forwardMostMove) ? BlackPromotion : WhitePromotion); } } } void DrawSquare(int row, int column, ShogiSquare piece) { int square_color, x, y, direction, font_ascent, font_descent; char string[2]; XCharStruct overall; struct DisplayData *player; for (player = &localPlayer; True; player = &remotePlayer) { int offset, remote; remote = (player == &remotePlayer); offset = 2 * (player->squareSize + LINE_GAP); if (player->flipView) { x = LINE_GAP + ((BOARD_SIZE - 1) - column) * (player->squareSize + LINE_GAP) + offset; y = LINE_GAP + row * (player->squareSize + LINE_GAP); } else { x = LINE_GAP + column * (player->squareSize + LINE_GAP) + offset; y = LINE_GAP + ((BOARD_SIZE - 1) - row) * (player->squareSize + LINE_GAP); } square_color = (((column + row) % 2) ? LIGHT : DARK); if (piece == EmptySquare) { if (column < 0 || column >= BOARD_SIZE) { /* empty square off board */ XFillRectangle(player->xDisplay, player->xBoardWindow, player->squareOffBoardGC, x, y, player->squareSize, player->squareSize); } else { /* empty square on board */ XFillRectangle(player->xDisplay, player->xBoardWindow, player->squareGC, x, y, player->squareSize, player->squareSize); } } else if (player->monoMode) /* Draw a piece in mono mode. */ { XCopyArea(player->xDisplay, ((((((int)piece) < ((int)WhitePawn))) ^ player->flipView) ? *pieceToNormal[remote][(int)piece] : *pieceToReverse[remote][(int)piece]), player->xBoardWindow, (player->monoMode ? player->squareOffBoardGC /* ??? FIXME? */ : player->pieceGC), 0, 0, player->squareSize, player->squareSize, x, y); } else /* Draw a piece in color mode. */ { if ((column < 0) || (column >= BOARD_SIZE)) /* off board */ { /* draw piece background */ XCopyPlane(player->xDisplay, ((((((int)piece) < ((int)WhitePawn))) ^ player->flipView) ? *pieceToNormalSolid[remote][(int)piece] : *pieceToReverseSolid[remote][(int)piece]), player->xBoardWindow, player->oPieceGC, 0, 0, player->squareSize, player->squareSize, x, y, 1); /* draw piece bitmap */ XCopyArea(player->xDisplay, ((((((int)piece) < ((int)WhitePawn))) ^ player->flipView) ? *pieceToNormal[remote][(int)piece] : *pieceToReverse[remote][(int)piece]), player->xBoardWindow, player->charPieceGC, 0, 0, player->squareSize, player->squareSize, x, y); } else /* on board */ { /* draw piece background */ XCopyPlane(player->xDisplay, ((((((int)piece) < ((int)WhitePawn))) ^ player->flipView) ? *pieceToNormalSolid[remote][(int)piece] : *pieceToReverseSolid[remote][(int)piece]), player->xBoardWindow, player->pieceGC, 0, 0, player->squareSize, player->squareSize, x, y, 1); /* draw piece bitmap */ XCopyArea(player->xDisplay, ((((((int)piece) < ((int)WhitePawn))) ^ player->flipView) ? *pieceToNormal[remote][(int)piece] : *pieceToReverse[remote][(int)piece]), player->xBoardWindow, player->charPieceGC, 0, 0, player->squareSize, player->squareSize, x, y); } } string[1] = NULLCHAR; if (player->showCoords && (column >= 0) && (column < 9) && (row == (player->flipView ? 8 : 0))) { string[0] = '9' - column; XTextExtents(player->coordFontStruct, string, 1, &direction, &font_ascent, &font_descent, &overall); if (player->monoMode) { XDrawImageString(player->xDisplay, player->xBoardWindow, player->coordGC, x + player->squareSize - overall.width - 2, y + player->squareSize - font_descent - 1, string, 1); } else { XDrawString(player->xDisplay, player->xBoardWindow, player->coordGC, x + player->squareSize - overall.width - 2, y + player->squareSize - font_descent - 1, string, 1); } } if (player->showCoords && (row >= 0) && (row < 9) && (column == (player->flipView ? 8 : 0))) { string[0] = 'i' - row; XTextExtents(player->coordFontStruct, string, 1, &direction, &font_ascent, &font_descent, &overall); if (player->monoMode) { XDrawImageString(player->xDisplay, player->xBoardWindow, player->coordGC, x + 2, y + font_ascent + 1, string, 1); } else { XDrawString(player->xDisplay, player->xBoardWindow, player->coordGC, x + 2, y + font_ascent + 1, string, 1); } } if (!updateRemotePlayer || (player == &remotePlayer)) break; } } void EventProc(Widget widget, XtPointer client_data, XEvent *event) { if (event->type == MappingNotify) { XRefreshKeyboardMapping((XMappingEvent *) event); return; } if (!XtIsRealized(widget)) return; if ((event->type == ButtonPress) || (event->type == ButtonRelease)) { if (event->xbutton.button != Button1) return; } switch (event->type) { case Expose: DrawPosition(widget, event, NULL, NULL); break; default: return; } } /* * event handler for redrawing the board */ void DrawPosition(Widget w, XEvent *event, String *prms, Cardinal *nprms) { Arg args[1]; int i, j; static Board lastBoard; static Catched lastCatches; static int lastBoardValid = 0; static int lastFlipView = 0, lastRemoteFlipView = 1; if (!player->Iconic) { XtSetArg(args[0], XtNiconic, False); XtSetValues(localPlayer.shellWidget, args, 1); } /* * It would be simpler to clear the window with XClearWindow() * but this causes a very distracting flicker. */ if ((w == localPlayer.boardWidget) && (event == NULL) && lastBoardValid && (lastFlipView == localPlayer.flipView) && (!updateRemotePlayer || (lastRemoteFlipView == remotePlayer.flipView))) { for (i = 0; i < BOARD_SIZE; i++) { for (j = 0; j < BOARD_SIZE; j++) { if (boards[currentMove][i][j] != lastBoard[i][j]) DrawSquare(i, j, boards[currentMove][i][j]); } } for (i = 0; i < 2; i++) { for (j = 0; j < 8; j++) { if (catches[currentMove][i][j] != lastCatches[i][j]) { UpdateCatched(i, 0, False, True, currentMove); break; } } } } else { XDrawSegments(localPlayer.xDisplay, localPlayer.xBoardWindow, localPlayer.lineGC, localPlayer.gridSegments, (BOARD_SIZE + 1) * 2); if (updateRemotePlayer) { XDrawSegments(remotePlayer.xDisplay, remotePlayer.xBoardWindow, remotePlayer.lineGC, remotePlayer.gridSegments, (BOARD_SIZE + 1) * 2); } for (i = 0; i < BOARD_SIZE; i++) for (j = 0; j < BOARD_SIZE; j++) DrawSquare(i, j, boards[currentMove][i][j]); UpdateCatched(0, 0, False, True, currentMove); UpdateCatched(1, 0, False, True, currentMove); } CopyBoard(lastBoard, boards[currentMove]); CopyCatches(lastCatches, catches[currentMove]); lastBoardValid = 1; lastFlipView = localPlayer.flipView; if (updateRemotePlayer) lastRemoteFlipView = remotePlayer.flipView; XSync(localPlayer.xDisplay, False); if (updateRemotePlayer) XSync(remotePlayer.xDisplay, False); } void InitPosition(int redraw) { currentMove = forwardMostMove = backwardMostMove = 0; CopyBoard(boards[0], initialPosition); ClearCatches(catches[0]); if (redraw) DrawPosition(localPlayer.boardWidget, NULL, NULL, NULL); } void CopyBoard(Board to, Board from) { int i, j; for (i = 0; i < BOARD_SIZE; i++) for (j = 0; j < BOARD_SIZE; j++) to[i][j] = from[i][j]; } void CopyCatches(Catched to, Catched from) { int i, j; for (i = 0; i < 2; i++) for (j = 0; j < 8; j++) to[i][j] = from[i][j]; } void SendCurrentBoard(FILE *fp) { SendBoard(fp, boards[currentMove], catches[currentMove]); } void SendBoard(FILE *fp, Board board, Catched catches) { char message[MSG_SIZ]; ShogiSquare *bp; int i, j; SendToProgram("edit\n", fp); SendToProgram("#\n", fp); for (i = BOARD_SIZE - 1; i >= 0; i--) { bp = &board[i][0]; for (j = 0; j < BOARD_SIZE; j++, bp++) { if (((int) *bp) < (int)WhitePawn) { sprintf(message, "%c%c%c%s\n", pieceToChar[(int) *bp], '9' - j, 'i' - i, (pieceIsPromoted[(int) *bp] ? "+" : "")); SendToProgram(message, fp); } } } for (i = 0; i <= 7; i++) { int n; for (n = catches[0][i]; n > 0; n--) { sprintf(message, "%c*\n", catchedIndexToChar[i]); SendToProgram(message, fp); } } SendToProgram("c\n", fp); for (i = BOARD_SIZE - 1; i >= 0; i--) { bp = &board[i][0]; for (j = 0; j < BOARD_SIZE; j++, bp++) { if ((((int) *bp) != ((int)EmptySquare)) && (((int) *bp) >= ((int)WhitePawn))) { sprintf(message, "%c%c%c%s\n", pieceToChar[((int) *bp) - ((int)WhitePawn)], '9' - j, 'i' - i, (pieceIsPromoted[(int) *bp] ? "+" : "")); SendToProgram(message, fp); } } } for (i = 0; i <= 7; i++) { int n; for (n = catches[1][i]; n > 0; n--) { sprintf(message, "%c*\n", catchedIndexToChar[i]); SendToProgram(message, fp); } } SendToProgram(".\n", fp); } static int PromotionPossible(int fromY, int toY, ShogiSquare piece) { if (((int)piece) < ((int)WhitePawn)) { if ((fromY < 6) && (toY < 6)) return False; } else { if ((fromY > 2) && (toY > 2)) return False; } return piecePromotable[(int)piece]; } static void ShowCount(int row, int column, int n) { int offset = 2 * (player->squareSize + LINE_GAP); int x, y, direction, font_ascent, font_descent; char string[2]; XCharStruct overall; struct DisplayData *player; DrawSquare(row, column, EmptySquare); if (n <= 1) return; for (player = &localPlayer; True; player = &remotePlayer) { if (player->flipView) { x = LINE_GAP + ((BOARD_SIZE - 1) - column) * (player->squareSize + LINE_GAP) + offset; y = LINE_GAP + row * (player->squareSize + LINE_GAP); } else { x = LINE_GAP + column * (player->squareSize + LINE_GAP) + offset; y = LINE_GAP + ((BOARD_SIZE - 1) - row) * (player->squareSize + LINE_GAP); } x -= player->squareSize / 2; string[1] = NULLCHAR; if (n > 9) string[0] = '*'; else string[0] = '0' + n; XTextExtents(player->coordFontStruct, string, 1, &direction, &font_ascent, &font_descent, &overall); if (player->monoMode) { XDrawImageString(player->xDisplay, player->xBoardWindow, player->coordGC, x + player->squareSize - overall.width - 2, y + player->squareSize - font_descent - 1, string, 1); } else { XDrawString(player->xDisplay, player->xBoardWindow, player->coordGC, x + player->squareSize - overall.width - 2, y + player->squareSize - font_descent - 1, string, 1); } if (!updateRemotePlayer || (player == &remotePlayer)) break; } } void UpdateCatched(int Color, int Figure, int Drop, int DropAll, int currentMove) { int n, F; int x, y; /* Determine first row and column. */ if (Color) { x = -1; y = BOARD_SIZE - 1; } else { x = BOARD_SIZE; y = 0; } if (DropAll) n = 0; else n = catches[currentMove][Color][Figure]; /* Update the display for captured pieces if no piece of the dropped type is there (Drop && n==1) or if a piece type is removed (NOT Drop && n==0). In the other cases update only the count. */ if (DropAll || (Drop && (n == 1)) || (!Drop && (n == 0))) { /* show all captured pieces */ n = 0; for (F = pawn; F <= king; F++) { int c; if ((c = catches[currentMove][Color][F]) > 0) { n++; DrawSquare(y, x, catchedIndexToPiece[Color][F]); ShowCount(y, (Color ? (x - 1) : (x + 1)), c); if (Color) y--; else y++; } } if (DropAll) { for (; n < 9; n++) { DrawSquare(y, x, EmptySquare); ShowCount(y, (Color ? (x - 1) : (x + 1)), 0); if (Color) y--; else y++; } } else if (!Drop) { /* remove one line! */ DrawSquare(y, x, EmptySquare); ShowCount(y, (Color ? (x - 1) : (x + 1)), 0); } } else { /* show the actual count */ for (F = pawn; F <= Figure - 1; F++) { if (catches[currentMove][Color][F] > 0) { if (Color) y--; else y++; } } ShowCount(y, (Color ? (x - 1) : (x + 1)), n); } } #ifdef BLINK_COUNT static int BlinkCount = 0; static int BlinkRow, BlinkCol; static ShogiSquare BlinkPiece; void BlinkSquareProc(void) { if (BlinkCount > 0) { BlinkCount--; DrawSquare (BlinkRow, BlinkCol, ((BlinkCount & 1) ? EmptySquare : BlinkPiece)); if (BlinkCount > 0) { blinkSquareXID = XtAppAddTimeOut(appContext, 150, (XtTimerCallbackProc)BlinkSquareProc, NULL); } } else { BlinkCount = 0; } } void BlinkSquare(int row, int col, ShogiSquare piece) { BlinkCount = 2 * BLINK_COUNT + 1; BlinkRow = row; BlinkCol = col; BlinkPiece = piece; BlinkSquareProc(); } #endif /* BLINK_COUNT */ static int PieceOfCatched(int color, int x, int y, int currentMove) { int F, n; if (color) { if (x != 1) return (no_piece); y = 8 - y; } else { if (x != 11) return no_piece; } for (F = pawn, n = 0; F <= king; F++) { if (catches[currentMove][color][F] > 0) { if (n == y) return F; n++; } } return no_piece; } /* * event handler for parsing user moves */ void HandleUserMove(Widget w, XEvent *event) { ShogiMove move_type; ShogiSquare from_piece; int to_x, to_y, fromRemotePlayer; if (updateRemotePlayer) { if (((w != localPlayer.boardWidget) && (w != remotePlayer.boardWidget)) || (matchMode != MatchFalse)) { return; } fromRemotePlayer = (w == remotePlayer.boardWidget); } else { if ((w != localPlayer.boardWidget) || (matchMode != MatchFalse)) return; fromRemotePlayer = False; } player = (fromRemotePlayer ? &remotePlayer : &localPlayer); if (player->promotionUp) { XtPopdown(player->promotionShell); XtDestroyWidget(player->promotionShell); player->promotionUp = False; fromX = fromY = -1; } switch (gameMode) { case EndOfGame: case PlayFromGameFile: case TwoMachinesPlay: return; case MachinePlaysBlack: if (BlackOnMove(forwardMostMove)) { DisplayMessage("It is not your turn", fromRemotePlayer); return; } break; case MachinePlaysWhite: if (!BlackOnMove(forwardMostMove)) { DisplayMessage("It is not your turn", fromRemotePlayer); return; } break; case ForceMoves: forwardMostMove = currentMove; break; default: break; } if (currentMove != forwardMostMove) { DisplayMessage("Displayed position is not current", fromRemotePlayer); return; } switch (event->type) { case ButtonPress: if ((fromX >= 0) || (fromY >= 0)) return; if (((fromX = EventToXSquare(event->xbutton.x)) < 1) || (fromX > BOARD_SIZE + 2) || ((fromY = EventToSquare(event->xbutton.y)) < 0)) { fromX = fromY = -1; return; } if (player->flipView) fromX = BOARD_SIZE + 3 - fromX; else fromY = BOARD_SIZE - 1 - fromY; break; case ButtonRelease: if ((fromX < 0) || (fromY < 0)) return; if (((to_x = EventToXSquare(event->xbutton.x)) < 1) || (to_x > BOARD_SIZE + 2) || ((to_y = EventToSquare(event->xbutton.y)) < 0)) { if (gameMode == EditPosition && !off_board(fromX)) { fromX -= 2; boards[0][fromY][fromX] = EmptySquare; DrawPosition(localPlayer.boardWidget, NULL, NULL, NULL); XSync(localPlayer.xDisplay, False); if (updateRemotePlayer) XSync(remotePlayer.xDisplay, False); } fromX = fromY = -1; return; } if (player->flipView) to_x = BOARD_SIZE + 3 - to_x; else to_y = BOARD_SIZE - 1 - to_y; if ((fromX == to_x) && (fromY == to_y)) { fromX = fromY = -1; return; } if (gameMode == EditPosition) { ShogiSquare piece; if (off_board(fromX)) { /* Remove a catched piece */ int i, c; c = ((fromX < 5) ^ player->flipView); i = PieceOfCatched(c, fromX, fromY, 0); if (i == no_piece) { fromX = fromY = -1; return; } else { piece = catchedIndexToPiece[c][i]; catches[0][c][i]--; } } else { /* remove piece from board field */ fromX -= 2; piece = boards[0][fromY][fromX]; boards[0][fromY][fromX] = EmptySquare; } if (!off_board(to_x)) { /* drop piece to board field */ ShogiSquare catched_piece; to_x -= 2; catched_piece = boards[0][to_y][to_x]; if (catched_piece != EmptySquare) { /* put piece to catched pieces */ int i = pieceToCatchedIndex[catched_piece]; int c = (catched_piece < WhitePawn); catches[0][c][i]++; } /* place moved piece */ boards[0][to_y][to_x] = piece; } fromX = fromY = -1; DrawPosition(localPlayer.boardWidget, NULL, NULL, NULL); XSync(localPlayer.xDisplay, False); if (updateRemotePlayer) XSync(remotePlayer.xDisplay, False); return; } if (off_board(fromX)) { int c = (BlackOnMove(forwardMostMove) ? 0 : 1); int piece = PieceOfCatched(c, fromX, fromY, currentMove); if (piece == no_piece) { fromX = fromY = -1; return; } else { if (updateRemotePlayer && (BlackOnMove(forwardMostMove) == fromRemotePlayer)) { DisplayMessage("Do not try to drop your opponent's pieces!", fromRemotePlayer); fromX = fromY = -1; return; } fromX = fromY = piece + 81; to_x -= 2; move_type = (BlackOnMove(forwardMostMove) ? BlackDrop : WhiteDrop); MakeMove(&move_type, fromX, fromY, to_x, to_y); #ifdef BLINK_COUNT if (updateRemotePlayer) BlinkSquare(to_y, to_x, boards[currentMove][to_y][to_x]); #endif FinishUserMove(move_type, to_x, to_y); break; } } else if (off_board(to_x)) { fromX = fromY = -1; return; } else { fromX -= 2; to_x -= 2; from_piece = boards[currentMove][fromY][fromX]; if ((from_piece != EmptySquare) && updateRemotePlayer && ((from_piece < WhitePawn) == fromRemotePlayer)) { DisplayMessage("Do not try to move your opponent's pieces!", fromRemotePlayer); fromX = fromY = -1; return; } if (PromotionPossible(fromY, to_y, from_piece)) { PromotionPopUp(from_piece, to_x, to_y, fromRemotePlayer); return; } move_type = NormalMove; MakeMove(&move_type, fromX, fromY, to_x, to_y); #ifdef BLINK_COUNT if (updateRemotePlayer) BlinkSquare(to_y, to_x, boards[currentMove][to_y][to_x]); #endif FinishUserMove(move_type, to_x, to_y); break; } } } void FinishUserMove(ShogiMove move_type, int to_x, int to_y) { char user_move[MSG_SIZ]; /* output move for gnushogi */ switch (move_type) { case BlackPromotion: case WhitePromotion: sprintf(user_move, "%c%c%c%c+\n", '9' - fromX, 'i' - fromY, '9' - to_x, 'i' - to_y); break; case BlackDrop: case WhiteDrop: sprintf(user_move, "%c*%c%c\n", catchedIndexToChar[fromX - 81], '9' - to_x, 'i' - to_y); break; case NormalMove: sprintf(user_move, "%c%c%c%c\n", '9' - fromX, 'i' - fromY, '9' - to_x, 'i' - to_y); break; default: fprintf(stderr, "%s: internal error; bad move_type\n", (char *)programName); break; } Attention(firstProgramPID); if (firstSendTime) SendTimeRemaining(toFirstProgFP); SendToProgram(user_move, toFirstProgFP); strcpy(moveList[currentMove - 1], user_move); fromX = fromY = -1; if (gameMode == PauseGame) { /* a user move restarts a paused game*/ PauseProc(NULL, NULL, NULL, NULL); } switch (gameMode) { case ForceMoves: break; case BeginningOfGame: if (localPlayer.appData.noShogiProgram) lastGameMode = gameMode = ForceMoves; else lastGameMode = gameMode = MachinePlaysWhite; ModeHighlight(); break; case MachinePlaysWhite: case MachinePlaysBlack: default: break; } } /* Simple parser for moves from gnushogi. */ void ParseMachineMove(char *machine_move, ShogiMove *move_type, int *from_x, int *from_y, int *to_x, int *to_y) { #define no_digit(c) (c < '0' || c > '9') { if (no_digit(machine_move[0])) { switch (machine_move[0]) { case 'P': *from_x = 81; break; case 'L': *from_x = 82; break; case 'N': *from_x = 83; break; case 'S': *from_x = 84; break; case 'G': *from_x = 85; break; case 'B': *from_x = 86; break; case 'R': *from_x = 87; break; case 'K': *from_x = 88; break; default: *from_x = -1; } *from_y = *from_x; *to_x = '9' - machine_move[2]; *to_y = 'i' - machine_move[3]; } else { *from_x = '9' - machine_move[0] ; *from_y = 'i' - machine_move[1]; *to_x = '9' - machine_move[2]; *to_y = 'i' - machine_move[3]; switch (machine_move[4]) { case '+': *move_type = (BlackOnMove(forwardMostMove) ? BlackPromotion : WhitePromotion); break; default: *move_type = NormalMove; break; } } } } void SkipString(char **mpr) { while (**mpr == ' ') (*mpr)++; while ((**mpr != ' ') && (**mpr != NULLCHAR) && (**mpr != '\n')) (*mpr)++; while (**mpr == ' ') (*mpr)++; } void HandleMachineMove(char *message, FILE *fp) { char machine_move[MSG_SIZ], buf1[MSG_SIZ], buf2[MSG_SIZ]; int from_x, from_y, to_x, to_y; ShogiMove move_type; char *mpr; #ifdef SYNCHTIME long time_remaining; #endif maybeThinking = False; if (strncmp(message, "warning:", 8) == 0) { DisplayMessage(message, False); if (updateRemotePlayer) DisplayMessage(message, True); return; } /* * If shogi program startup fails, exit with an error message. * Attempts to recover here are futile. */ if ((strstr(message, "unknown host") != NULL) || (strstr(message, "No remote directory") != NULL) || (strstr(message, "not found") != NULL) || (strstr(message, "No such file") != NULL) || (strstr(message, "Permission denied") != NULL)) { fprintf(stderr, "%s: failed to start shogi program %s on %s: %s\n", programName, ((fp == fromFirstProgFP) ? localPlayer.appData.firstShogiProgram : localPlayer.appData.secondShogiProgram), ((fp == fromFirstProgFP) ? localPlayer.appData.firstHost : localPlayer.appData.secondHost), message); ShutdownShogiPrograms(message); exit(1); } /* * If the move is illegal, cancel it and redraw the board. */ if (strncmp(message, "Illegal move", 12) == 0) { if (fp == fromFirstProgFP && firstSendTime == 2) { /* First program doesn't have the "time" command */ firstSendTime = 0; return; } else if (fp == fromSecondProgFP && secondSendTime == 2) { /* Second program doesn't have the "time" command */ secondSendTime = 0; return; } if (forwardMostMove <= backwardMostMove) return; if (gameMode == PauseGame) PauseProc(NULL, NULL, NULL, NULL); if (gameMode == PlayFromGameFile) { /* Stop reading this game file */ gameMode = ForceMoves; ModeHighlight(); } currentMove = --forwardMostMove; if ((gameMode == PlayFromGameFile) || (gameMode == ForceMoves)) DisplayClocks(ReDisplayTimers); else DisplayClocks(SwitchTimers); sprintf(buf1, "Illegal move: %s", parseList[currentMove]); DisplayMessage(buf1, False); if (updateRemotePlayer) DisplayMessage(buf1, True); #ifdef BLINK_COUNT /* * Disable blinking of the target square. */ if (BlinkCount > 0) { /* If BlinkCount is even, the piece is currently displayed. */ if (!(BlinkCount & 1)) DrawSquare (BlinkRow, BlinkCol, EmptySquare); /* BlinkCount = 0 will force the next blink timeout * to do nothing. */ BlinkCount = 0; } #endif DrawPosition(localPlayer.boardWidget, NULL, NULL, NULL); XSync(localPlayer.xDisplay, False); if (updateRemotePlayer) XSync(remotePlayer.xDisplay, False); return; } if (strstr(message, "GNU Shogi") != NULL) { at_least_gnushogi_1_2p03 = True; return; } if (strncmp(message, "Hint:", 5) == 0) { char promoPiece; sscanf(message, "Hint: %s", machine_move); ParseMachineMove(machine_move, &move_type, &from_x, &from_y, &to_x, &to_y); if (move_type == WhitePromotion || move_type == BlackPromotion) promoPiece = '+'; else promoPiece = NULLCHAR; move_type = MakeAlg(from_x, from_y, to_x, to_y, promoPiece, currentMove, buf1); sprintf(buf2, "Hint: %s", buf1); DisplayMessage(buf2, False); if (updateRemotePlayer) DisplayMessage(buf2, True); return; } if (strncmp(message, "Clocks:", 7) == 0) { sscanf(message, "Clocks: %ld %ld", &blackTimeRemaining, &whiteTimeRemaining); DisplayClocks(ReDisplayTimers); return; } /* * win, lose or draw */ if (strncmp(message, "Black", 5) == 0) { ShutdownShogiPrograms("Black wins"); return; } else if (strncmp(message, "White", 5) == 0) { ShutdownShogiPrograms("White wins"); return; } else if (strncmp(message, "Repetition", 10) == 0) { ShutdownShogiPrograms("Repetition"); return; } else if (strncmp(message, "opponent mates!", 15) == 0) { switch ((gameMode == PauseGame) ? pausePreviousMode : gameMode) { case MachinePlaysWhite: ShutdownShogiPrograms("Black wins"); break; case MachinePlaysBlack: ShutdownShogiPrograms("White wins"); break; case TwoMachinesPlay: ShutdownShogiPrograms((fp == fromFirstProgFP) ? "Black wins" : "White wins"); break; default: /* can't happen */ break; } return; } else if (strncmp(message, "computer mates!", 15) == 0) { switch ((gameMode == PauseGame) ? pausePreviousMode : gameMode) { case MachinePlaysWhite: ShutdownShogiPrograms("White wins"); break; case MachinePlaysBlack: ShutdownShogiPrograms("Black wins"); break; case TwoMachinesPlay: ShutdownShogiPrograms((fp == fromFirstProgFP) ? "White wins" : "Black wins"); break; default: /* can't happen */ break; } return; } else if (strncmp(message, "Draw", 4) == 0) { ShutdownShogiPrograms("Draw"); return; } /* * normal machine reply move */ maybeThinking = True; if (strstr(message, "...") != NULL) { sscanf(message, "%s %s %s", buf1, buf2, machine_move); #ifdef SYNCHTIME mpr = message; SkipString(&mpr); /* skip move number */ SkipString(&mpr); /* skip ... */ SkipString(&mpr); /* skip move */ if ((gameMode != TwoMachinesPlay) && (gameMode != ForceMoves) && ((*mpr == '-') || ((*mpr >= '0') && (*mpr <= '9')))) { /* synchronize with shogi program clock */ sscanf(mpr, "%ld", &time_remaining); if (xshogiDebug) { printf("from '%s' synchronize %s clock %ld\n", message, (BlackOnMove(forwardMostMove) ? "Black's" : "White's"), time_remaining); } if (BlackOnMove(forwardMostMove)) blackTimeRemaining = time_remaining; else whiteTimeRemaining = time_remaining; } #endif if (machine_move[0] == NULLCHAR) return; } else { mpr = message; #ifdef SYNCHTIME if (strstr(message, "time") == NULL) { /* remaining time will be determined from move */ SkipString(&mpr); /* skip move number */ SkipString(&mpr); /* skip move */ } if ((gameMode != TwoMachinesPlay) && (gameMode != ForceMoves) && ((*mpr == '-') || ((*mpr >= '0') && (*mpr <= '9')))) { /* synchronize with shogi program clock */ sscanf(mpr, "%ld", &time_remaining); if (xshogiDebug) { printf("from '%s' synchronize %s clock %ld\n", message, ((!BlackOnMove(forwardMostMove)) ? "Black's" : "White's"), time_remaining); } if (!BlackOnMove(forwardMostMove)) blackTimeRemaining = time_remaining; else whiteTimeRemaining = time_remaining; } else #endif if (xshogiDebug) printf("ignore noise: '%s'\n", message); return; /* ignore noise */ } strcpy(moveList[forwardMostMove], machine_move); ParseMachineMove(machine_move, &move_type, &from_x, &from_y, &to_x, &to_y); if (gameMode != PauseGame) currentMove = forwardMostMove; /* display latest move */ MakeMove(&move_type, from_x, from_y, to_x, to_y); #ifdef BLINK_COUNT if (gameMode != TwoMachinesPlay) BlinkSquare(to_y, to_x, boards[currentMove][to_y][to_x]); #endif if ((gameMode != PauseGame) && localPlayer.appData.ringBellAfterMoves) putc(BELLCHAR, stderr); if ((gameMode == TwoMachinesPlay) || ((gameMode == PauseGame) && (pausePreviousMode == TwoMachinesPlay))) { strcat(machine_move, "\n"); if (BlackOnMove(forwardMostMove)) { Attention(secondProgramPID); if (secondSendTime) SendTimeRemaining(toSecondProgFP); SendToProgram(machine_move, toSecondProgFP); if (firstMove) { firstMove = False; SendToProgram(localPlayer.appData.blackString, toSecondProgFP); } } else { Attention(firstProgramPID); if (firstSendTime) SendTimeRemaining(toFirstProgFP); SendToProgram(machine_move, toFirstProgFP); if (firstMove) { firstMove = False; SendToProgram(localPlayer.appData.blackString, toFirstProgFP); } } } } void ReadGameFile(void) { for (;;) { if (!ReadGameFileProc()) return; if (matchMode == MatchOpening) continue; readGameXID = XtAppAddTimeOut(appContext, (int)(1000 * localPlayer.appData.timeDelay), (XtTimerCallbackProc) ReadGameFile, NULL); break; } } /* * FIXME: there is a naming inconsistency: here ReadGameFileProc() is * called by ReadGameFile() while in other places XXXProc() calls XXX(). */ int ReadGameFileProc(void) { ShogiMove move_type; char move[MSG_SIZ], buf[MSG_SIZ]; if (gameFileFP == NULL) return (int)False; if (gameMode == PauseGame) return True; if (gameMode != PlayFromGameFile) { fclose(gameFileFP); gameFileFP = NULL; return (int)False; } if (commentUp) { XtPopdown(commentShell); XtDestroyWidget(commentShell); commentUp = False; } fgets(move, MSG_SIZ, gameFileFP); move[strlen(move) - 1] = NULLCHAR; sprintf(buf, "# %s game file", programName); if (strncmp(move, buf, strlen(buf))) { strcat(move, ": no xshogi game file"); DisplayMessage(move, False); return (int)False; } DisplayName(move); rewind(gameFileFP); parseGameFile(); move_type = (ShogiMove)0; lastGameMode = gameMode; gameMode = ForceMoves; ModeHighlight(); if (!loaded_game_finished) DisplayMessage("End of game file", False); if (readGameXID != 0) { XtRemoveTimeOut(readGameXID); readGameXID = 0; } fclose(gameFileFP); gameFileFP = NULL; return (int)False; } /* * Apply a move to the given board. Oddity: move_type is ignored on input * unless the move is seen to be a pawn promotion, in which case move_type * tells us what to promote to. */ void ApplyMove(ShogiMove *move_type, int from_x, int from_y, int to_x, int to_y, int currentMove) { ShogiSquare piece, cpiece; char pieceChar; int i, c; if (from_x > 80) { i = from_x - 81; c = (BlackOnMove(currentMove) ? 1 : 0); cpiece = catchedIndexToPiece[c][i]; boards[currentMove][to_y][to_x] = cpiece; catches[currentMove][c][i]--; } else if (PromotionPossible(from_y, to_y, piece = boards[currentMove][from_y][from_x])) { cpiece = boards[currentMove][to_y][to_x]; if (cpiece != EmptySquare) { i = pieceToCatchedIndex[cpiece]; c = (cpiece < WhitePawn); catches[currentMove][c][i]++; } if (*move_type == NormalMove) { boards[currentMove][to_y][to_x] = piece; } else { boards[currentMove][to_y][to_x] = piece = pieceToPromoted[piece]; pieceChar = '+'; } boards[currentMove][from_y][from_x] = EmptySquare; } else { ShogiSquare piece = boards[currentMove][to_y][to_x]; if (piece != EmptySquare) { i = pieceToCatchedIndex[piece]; c = (piece < WhitePawn); catches[currentMove][c][i]++; } *move_type = NormalMove; boards[currentMove][to_y][to_x] = boards[currentMove][from_y][from_x]; boards[currentMove][from_y][from_x] = EmptySquare; } } /* * MakeMove() displays moves. If they are illegal, GNU shogi will detect * this and send an Illegal move message. XShogi will then retract the move. * The clockMode False case is tricky because it displays the player on move. */ void MakeMove(ShogiMove *move_type, int from_x, int from_y, int to_x, int to_y) { char message[MSG_SIZ], movestr[MSG_SIZ]; char promoPiece = NULLCHAR; forwardMostMove++; CopyBoard(boards[forwardMostMove], boards[forwardMostMove - 1]); CopyCatches(catches[forwardMostMove], catches[forwardMostMove - 1]); ApplyMove(move_type, from_x, from_y, to_x, to_y, forwardMostMove); endMessage[0] = NULLCHAR; timeRemaining[0][forwardMostMove] = blackTimeRemaining; timeRemaining[1][forwardMostMove] = whiteTimeRemaining; if ((gameMode == PauseGame) && (pausePreviousMode != PlayFromGameFile)) return; currentMove = forwardMostMove; if (gameMode == PlayFromGameFile) { sprintf(message, "%d. %s%s", ((currentMove + 1) / 2), (BlackOnMove(currentMove) ? "... " : ""), currentMoveString); strcpy(parseList[currentMove - 1], currentMoveString); } else { if ((*move_type == WhitePromotion) || (*move_type == BlackPromotion)) promoPiece = '+'; else promoPiece = NULLCHAR; MakeAlg(from_x, from_y, to_x, to_y, promoPiece, currentMove - 1, movestr); sprintf(message, "%d. %s%s", ((currentMove + 1) / 2), (BlackOnMove(currentMove) ? "... " : ""), movestr); strcpy(parseList[currentMove - 1], movestr); } DisplayMessage(message, False); if ((gameMode == PlayFromGameFile) || (gameMode == ForceMoves) || ((gameMode == PauseGame) && (pausePreviousMode == PlayFromGameFile))) { DisplayClocks(ReDisplayTimers); } else { DisplayClocks(SwitchTimers); } DrawPosition(localPlayer.boardWidget, NULL, NULL, NULL); XSync(localPlayer.xDisplay, False); if (updateRemotePlayer) { DisplayMessage(message, True); XSync(remotePlayer.xDisplay, False); } } void InitShogiProgram(char *host_name, char *program_name, int *pid, FILE **to, FILE **from, XtIntervalId *xid, int *sendTime) { char arg_buf[10]; char *arg1, *arg2; int to_prog[2], from_prog[2]; FILE *from_fp, *to_fp; int dummy_source; XtInputId dummy_id; if (localPlayer.appData.noShogiProgram) return; signal(SIGPIPE, CatchPipeSignal); pipe(to_prog); pipe(from_prog); if ((*pid = fork()) == 0) { signal(SIGPIPE, CatchPipeSignal); dup2(to_prog[0], 0); dup2(from_prog[1], 1); close(to_prog[0]); close(to_prog[1]); close(from_prog[0]); close(from_prog[1]); dup2(1, fileno(stderr)); /* force stderr to the pipe */ if (localPlayer.appData.searchTime != NULL) { sprintf(arg_buf, "%d", searchTime); arg1 = arg_buf; arg2 = (char *)NULL; } else if (localPlayer.appData.searchDepth > 0) { sprintf(arg_buf, "%d", localPlayer.appData.searchDepth); arg1 = "1"; arg2 = "9999"; } else { sprintf(arg_buf, "%d", localPlayer.appData.movesPerSession); arg1 = arg_buf; arg2 = localPlayer.appData.timeControl; } if (strcmp(host_name, "localhost") == 0) { execlp(program_name, program_name, arg1, arg2, (char *)NULL); } else { execlp(localPlayer.appData.remoteShell, localPlayer.appData.remoteShell, host_name, program_name, arg1, arg2, (char *)NULL); } perror(program_name); exit(1); } close(to_prog[0]); close(from_prog[1]); *from = from_fp = fdopen(from_prog[0], "r"); *to = to_fp = fdopen(to_prog[1], "w"); setbuf(from_fp, NULL); setbuf(to_fp, NULL); ReceiveFromProgram(from_fp, &dummy_source, &dummy_id); /* "GNU Shogi"*/ if (!at_least_gnushogi_1_2p03) { fprintf(stderr, "you must have at least gnushogi-1.2p03\n"); exit(1); } if (*pid == 0) return; *xid = XtAppAddInput(appContext, fileno(from_fp), (XtPointer)XtInputReadMask, (XtInputCallbackProc)ReceiveFromProgram, (XtPointer)from_fp); SendToProgram(localPlayer.appData.initString, *to); if (localPlayer.appData.gameIn) SendToProgram("gamein\n", *to); SendSearchDepth(*to); if (*sendTime == 2) { /* Does program have "time" command? */ char buf[MSG_SIZ]; sprintf(buf, "time %ld\n", blackTimeRemaining / 10); SendToProgram(buf, to_fp); ReceiveFromProgram(from_fp, &dummy_source, &dummy_id); if (*sendTime == 2) { *sendTime = 1; /* yes! */ sprintf(buf, "otime %ld\n", whiteTimeRemaining / 10); SendToProgram(buf, to_fp); ReceiveFromProgram(from_fp, &dummy_source, &dummy_id); } } } void ShutdownShogiPrograms(char *why) { lastGameMode = gameMode; gameMode = EndOfGame; ModeHighlight(); CopyBoard(boards[currentMove + 1], boards[currentMove]); CopyCatches(catches[currentMove + 1], catches[currentMove]); strncpy(parseList[currentMove], why, MOVE_LEN); parseList[currentMove][MOVE_LEN - 1] = NULLCHAR; currentMove++; DisplayMessage(why, False); if (readGameXID != 0) XtRemoveTimeOut(readGameXID); readGameXID = 0; if (firstProgramPID != 0) { fclose(fromFirstProgFP); fclose(toFirstProgFP); fromFirstProgFP = toFirstProgFP = NULL; if (kill(firstProgramPID, SIGTERM) == 0) WAIT0; } firstProgramPID = 0; if (firstProgramXID != 0) XtRemoveInput(firstProgramXID); firstProgramXID = 0; if (secondProgramPID != 0) { fclose(fromSecondProgFP); fclose(toSecondProgFP); fromSecondProgFP = toSecondProgFP = NULL; if (kill(secondProgramPID, SIGTERM) == 0) WAIT0; } secondProgramPID = 0; if (secondProgramXID != 0) XtRemoveInput(secondProgramXID); secondProgramXID = 0; DisplayClocks(StopTimers); if (matchMode != MatchFalse) { if (localPlayer.appData.saveGameFile[0] != NULLCHAR) SaveGame(localPlayer.appData.saveGameFile); exit(0); } } void CommentPopUp(char *label) { Arg args[2]; Position x, y; Dimension bw_width, pw_width; if (commentUp) { XtPopdown(commentShell); XtDestroyWidget(commentShell); commentUp = False; } DisplayMessage("Comment", False); XtSetArg(args[0], XtNwidth, &bw_width); XtGetValues(localPlayer.formWidget, args, 1); XtSetArg(args[0], XtNresizable, True); XtSetArg(args[1], XtNwidth, bw_width - 8); commentShell = XtCreatePopupShell("Comment", transientShellWidgetClass, localPlayer.commandsWidget, args, 2); XtSetArg(args[0], XtNlabel, label); (void)XtCreateManagedWidget("commentLabel", labelWidgetClass, commentShell, args, 1); XtRealizeWidget(commentShell); XtSetArg(args[0], XtNwidth, &pw_width); XtGetValues(commentShell, args, 1); XtTranslateCoords(localPlayer.shellWidget, (bw_width - pw_width) / 2, -50, &x, &y); XtSetArg(args[0], XtNx, x); XtSetArg(args[1], XtNy, y); XtSetValues(commentShell, args, 2); XtPopup(commentShell, XtGrabNone); commentUp = True; } void FileNamePopUp(char *label, Boolean (*proc) (char *)) { Arg args[2]; Widget popup, dialog; Position x, y; Dimension bw_width, pw_width; fileProc = proc; XtSetArg(args[0], XtNwidth, &bw_width); XtGetValues(localPlayer.boardWidget, args, 1); XtSetArg(args[0], XtNresizable, True); XtSetArg(args[1], XtNwidth, DIALOG_SIZE); popup = XtCreatePopupShell("File Name Prompt", transientShellWidgetClass, localPlayer.commandsWidget, args, 2); XtSetArg(args[0], XtNlabel, label); XtSetArg(args[1], XtNvalue, ""); dialog = XtCreateManagedWidget("dialog", dialogWidgetClass, popup, args, 2); XawDialogAddButton(dialog, "ok", FileNameCallback, (XtPointer) dialog); XawDialogAddButton(dialog, "cancel", FileNameCallback, (XtPointer) dialog); XtRealizeWidget(popup); XtSetArg(args[0], XtNwidth, &pw_width); XtGetValues(popup, args, 1); XtTranslateCoords(localPlayer.boardWidget, (bw_width - pw_width) / 2, 10, &x, &y); XtSetArg(args[0], XtNx, x); XtSetArg(args[1], XtNy, y); XtSetValues(popup, args, 2); XtPopup(popup, XtGrabExclusive); filenameUp = True; XtSetKeyboardFocus(localPlayer.shellWidget, popup); } void FileNameCallback(Widget w, XtPointer client_data, XtPointer call_data) { String name; Arg args[1]; XtSetArg(args[0], XtNlabel, &name); XtGetValues(w, args, 1); if (strcmp(name, "cancel") == 0) { XtPopdown(w = XtParent(XtParent(w))); XtDestroyWidget(w); filenameUp = False; ModeHighlight(); return; } FileNameAction(w, NULL, NULL, NULL); } void FileNameAction(Widget w, XEvent *event, String *prms, Cardinal *nprms) { char buf[MSG_SIZ]; String name; name = XawDialogGetValueString(w = XtParent(w)); if ((name != NULL) && (*name != NULLCHAR)) { strcpy(buf, name); XtPopdown(w = XtParent(w)); XtDestroyWidget(w); filenameUp = False; (*fileProc)(buf); /* I can't see a way not to use a global here */ ModeHighlight(); return; } XtPopdown(w = XtParent(w)); XtDestroyWidget(w); filenameUp = False; ModeHighlight(); } void PromotionPopUp(ShogiSquare piece, int to_x, int to_y, int fromRemotePlayer) { Arg args[2]; Widget dialog; Position x, y; Dimension bw_width, bw_height, pw_width, pw_height; player = (fromRemotePlayer ? &remotePlayer : &localPlayer); pmi.piece = piece; pmi.to_x = to_x; pmi.to_y = to_y; XtSetArg(args[0], XtNwidth, &bw_width); XtSetArg(args[1], XtNheight, &bw_height); XtGetValues(player->boardWidget, args, 2); XtSetArg(args[0], XtNresizable, True); player->promotionShell = XtCreatePopupShell("Promotion", transientShellWidgetClass, player->commandsWidget, args, 1); XtSetArg(args[0], XtNlabel, "Promote piece?"); dialog = XtCreateManagedWidget("promotion", dialogWidgetClass, player->promotionShell, args, 1); XawDialogAddButton(dialog, "Yes", PromotionCallback, (XtPointer) dialog); XawDialogAddButton(dialog, "No", PromotionCallback, (XtPointer) dialog); XawDialogAddButton(dialog, "cancel", PromotionCallback, (XtPointer) dialog); XtRealizeWidget(player->promotionShell); XtSetArg(args[0], XtNwidth, &pw_width); XtSetArg(args[1], XtNheight, &pw_height); XtGetValues(player->promotionShell, args, 2); XtTranslateCoords(player->boardWidget, ((bw_width - pw_width) / 2), (LINE_GAP + player->squareSize / 3 + (((piece == BlackPawn) ^ (player->flipView)) ? 0 : (6 * (player->squareSize + LINE_GAP)))), &x, &y); XtSetArg(args[0], XtNx, x); XtSetArg(args[1], XtNy, y); XtSetValues(player->promotionShell, args, 2); XtPopup(player->promotionShell, XtGrabNone); player->promotionUp = True; } void PromotionCallback(Widget w, XtPointer client_data, XtPointer call_data) { String name; Arg args[1]; ShogiMove move_type; struct DisplayData *player; XtSetArg(args[0], XtNlabel, &name); XtGetValues(w, args, 1); w = XtParent(XtParent(w)); player = ((w == remotePlayer.promotionShell) ? &remotePlayer : &localPlayer); XtPopdown(w); XtDestroyWidget(w); player->promotionUp = False; if (fromX == -1) return; if (strcmp(name, "Yes") == 0) { if ((int)pmi.piece < (int)WhitePawn) move_type = BlackPromotion; else move_type = WhitePromotion; } else if (strcmp(name, "No") == 0) { move_type = NormalMove; } else /* strcmp(name, "cancel") == 0 */ { fromX = fromY = -1; return; } MakeMove(&move_type, fromX, fromY, pmi.to_x, pmi.to_y); #ifdef BLINK_COUNT if (updateRemotePlayer) { BlinkSquare(pmi.to_y, pmi.to_x, boards[currentMove][pmi.to_y][pmi.to_x]); } #endif FinishUserMove(move_type, pmi.to_x, pmi.to_y); } void FileModePopUp(char *name) { Arg args[2]; Widget dialog; Position x, y; Dimension bw_width, bw_height, pw_width, pw_height; struct DisplayData *player = &localPlayer; strcpy(fmi.name, name); XtSetArg(args[0], XtNwidth, &bw_width); XtSetArg(args[1], XtNheight, &bw_height); XtGetValues(player->boardWidget, args, 2); XtSetArg(args[0], XtNresizable, True); player->filemodeShell = XtCreatePopupShell("FileMode", transientShellWidgetClass, player->commandsWidget, args, 1); XtSetArg(args[0], XtNlabel, "Append to existing file?"); dialog = XtCreateManagedWidget("filemode", dialogWidgetClass, player->filemodeShell, args, 1); XawDialogAddButton(dialog, "Yes", FileModeCallback, (XtPointer) dialog); XawDialogAddButton(dialog, "No", FileModeCallback, (XtPointer) dialog); XawDialogAddButton(dialog, "cancel", FileModeCallback, (XtPointer) dialog); XtRealizeWidget(player->filemodeShell); XtSetArg(args[0], XtNwidth, &pw_width); XtSetArg(args[1], XtNheight, &pw_height); XtGetValues(player->filemodeShell, args, 2); XtTranslateCoords(player->boardWidget, (bw_width - pw_width) / 2, LINE_GAP + player->squareSize/3 + (6*(player->squareSize + LINE_GAP)), &x, &y); XtSetArg(args[0], XtNx, x); XtSetArg(args[1], XtNy, y); XtSetValues(player->filemodeShell, args, 2); XtPopup(player->filemodeShell, XtGrabNone); filemodeUp = True; } void FileModeCallback(Widget w, XtPointer client_data, XtPointer call_data) { String name; Arg args[1]; XtSetArg(args[0], XtNlabel, &name); XtGetValues(w, args, 1); XtPopdown(w = XtParent(XtParent(w))); XtDestroyWidget(w); if (strcmp(name, "Yes") == 0) { strcpy(fmi.mode, "a"); } else if (strcmp(name, "No") == 0) { strcpy(fmi.mode, "w"); } else /* strcmp(name, "cancel") == 0 */ { filemodeUp = False; return; } XtPopdown(localPlayer.filemodeShell); XtDestroyWidget(localPlayer.filemodeShell); SaveGame(fmi.name); filemodeUp = False; } void SelectCommand(Widget w, XtPointer client_data, XtPointer call_data) { Cardinal fromRemotePlayer = (Cardinal)client_data; XawListReturnStruct *list_return = XawListShowCurrent(w); player = fromRemotePlayer ? &remotePlayer : &localPlayer; fromX = fromY = -1; if (player->promotionUp) { XtPopdown(player->promotionShell); XtDestroyWidget(player->promotionShell); player->promotionUp = False; } (*buttonProcs[list_return->list_index]) (w, NULL, NULL, &fromRemotePlayer); if (!filenameUp) ModeHighlight(); } void HighlightProcButton(XtActionProc proc) { int i = 0; if (proc == NULL) { XawListUnhighlight(localPlayer.commandsWidget); if (updateRemotePlayer) XawListUnhighlight(remotePlayer.commandsWidget); return; } for (;;) { if (buttonProcs[i] == NULL) { XawListUnhighlight(localPlayer.commandsWidget); if (updateRemotePlayer) XawListUnhighlight(remotePlayer.commandsWidget); return; } if (buttonProcs[i] == proc) { XawListHighlight(localPlayer.commandsWidget, i); if (updateRemotePlayer) XawListHighlight(remotePlayer.commandsWidget, i); return; } i++; } } void ModeHighlight(void) { switch (gameMode) { case BeginningOfGame: if (localPlayer.appData.noShogiProgram) HighlightProcButton(ForceProc); else HighlightProcButton(MachineBlackProc); break; case MachinePlaysBlack: HighlightProcButton(MachineBlackProc); break; case MachinePlaysWhite: HighlightProcButton(MachineWhiteProc); break; case TwoMachinesPlay: HighlightProcButton(TwoMachinesProc); break; case ForceMoves: HighlightProcButton(ForceProc); break; case PlayFromGameFile: HighlightProcButton(LoadGameProc); break; case PauseGame: HighlightProcButton(PauseProc); break; case EditPosition: HighlightProcButton(EditPositionProc); break; case EndOfGame: default: HighlightProcButton(NULL); break; } } /* * Button procedures */ void QuitRemotePlayerProc(void) { /* This should be modified... */ XCloseDisplay(remotePlayer.xDisplay); /* XtDestroyWidget(remotePlayer.shellWidget); */ updateRemotePlayer = False; DisplayMessage("Remote player has pressed Quit", False); fromX = fromY = -1; } void QuitProc(Widget w, XEvent *event, String *prms, Cardinal *nprms) { if (updateRemotePlayer) QuitRemotePlayerProc(); ShutdownShogiPrograms("Quitting"); exit(0); } void LoadGameProc(Widget w, XEvent *event, String *prms, Cardinal *nprms) { int fromRemotePlayer = *nprms; if (fromRemotePlayer) { DisplayMessage("only opponent may load game", fromRemotePlayer); return; } if (gameMode != BeginningOfGame) { DisplayMessage("Press Reset first.", False); return; } if (localPlayer.appData.loadGameFile == NULL) FileNamePopUp("Game file name?", LoadGame); else (void) LoadGame(localPlayer.appData.loadGameFile); } Boolean LoadGame(char *name) { char buf[MSG_SIZ]; loaded_game_finished = 0; if (gameMode != BeginningOfGame) { DisplayMessage("Press Reset first", False); return (int)False; } if (localPlayer.appData.loadGameFile != name) { if (localPlayer.appData.loadGameFile) XtFree(localPlayer.appData.loadGameFile); localPlayer.appData.loadGameFile = XtMalloc(strlen(name) + 1); strcpy(localPlayer.appData.loadGameFile, name); } if ((gameFileFP = fopen(name, "r")) == NULL) { sprintf(buf, "Can't open %s", name); DisplayMessage(buf, False); XtFree(localPlayer.appData.loadGameFile); localPlayer.appData.loadGameFile = NULL; return (int)False; } lastGameMode = gameMode = PlayFromGameFile; ModeHighlight(); InitPosition(True); DisplayClocks(StopTimers); if (firstProgramXID == 0) { InitShogiProgram(localPlayer.appData.firstHost, localPlayer.appData.firstShogiProgram, &firstProgramPID, &toFirstProgFP, &fromFirstProgFP, &firstProgramXID, &firstSendTime); } SendToProgram(localPlayer.appData.initString, toFirstProgFP); SendSearchDepth(toFirstProgFP); SendToProgram("force\n", toFirstProgFP); currentMove = forwardMostMove = backwardMostMove = 0; ReadGameFile(); return True; } /* * Restart the shogi program and feed it all the moves made so far. * Used when the user wants to back up from end of game, when gnushogi * has already exited. Assumes gameMode == EndOfGame. */ void ResurrectShogiProgram(void) { char buf[MSG_SIZ]; int i; if (currentMove > 0) currentMove--; /* delete "Black wins" or the like */ InitShogiProgram(localPlayer.appData.firstHost, localPlayer.appData.firstShogiProgram, &firstProgramPID, &toFirstProgFP, &fromFirstProgFP, &firstProgramXID, &firstSendTime); SendToProgram(localPlayer.appData.initString, toFirstProgFP); SendSearchDepth(toFirstProgFP); SendToProgram("force\n", toFirstProgFP); gameMode = lastGameMode = ForceMoves; ModeHighlight(); i = (whitePlaysFirst ? 1 : 0); if (startedFromSetupPosition) SendBoard(toFirstProgFP, boards[i], catches[i]); for (; i < currentMove; i++) { strcpy(buf, moveList[i]); SendToProgram(buf, toFirstProgFP); } if (!firstSendTime) { /* can't tell gnushogi what its clock should read, so we bow to its notion. */ DisplayClocks(ResetTimers); timeRemaining[0][currentMove] = blackTimeRemaining; timeRemaining[1][currentMove] = whiteTimeRemaining; } } void MachineWhiteProc(Widget w, XEvent *event, String *prms, Cardinal *nprms) { int fromRemotePlayer = *nprms; if (updateRemotePlayer) { DisplayMessage("no machine moves in challenge mode", fromRemotePlayer); return; } if (gameMode == PauseGame) PauseProc(w, event, prms, nprms); if (gameMode == PlayFromGameFile) ForceProc(w, event, prms, nprms); if (gameMode == EditPosition) EditPositionDone(); if ((gameMode == EndOfGame) || (gameMode == PlayFromGameFile) || (gameMode == TwoMachinesPlay) || localPlayer.appData.noShogiProgram || (gameMode == MachinePlaysWhite)) { return; } if (BlackOnMove((gameMode == ForceMoves) ? currentMove : forwardMostMove)) { DisplayMessage("It is not White's turn.", False); return; } if (gameMode == ForceMoves) forwardMostMove = currentMove; lastGameMode = gameMode = MachinePlaysWhite; ModeHighlight(); SendToProgram(localPlayer.appData.whiteString, toFirstProgFP); DisplayClocks(StartTimers); } void MachineBlackProc(Widget w, XEvent *event, String *prms, Cardinal *nprms) { int fromRemotePlayer = *nprms; if (updateRemotePlayer) { DisplayMessage("no machine moves in challenge mode", fromRemotePlayer); return; } if (gameMode == PauseGame) PauseProc(w, event, prms, nprms); if (gameMode == PlayFromGameFile) ForceProc(w, event, prms, nprms); if (gameMode == EditPosition) EditPositionDone(); if ((gameMode == EndOfGame) || (gameMode == PlayFromGameFile) || (gameMode == TwoMachinesPlay) || localPlayer.appData.noShogiProgram || (gameMode == MachinePlaysBlack)) { return; } if (!BlackOnMove((gameMode == ForceMoves) ? currentMove : forwardMostMove)) { DisplayMessage("It is not Black's turn.", False); return; } if (gameMode == ForceMoves) forwardMostMove = currentMove; lastGameMode = gameMode = MachinePlaysBlack; ModeHighlight(); SendToProgram(localPlayer.appData.blackString, toFirstProgFP); DisplayClocks(StartTimers); } void ForwardProc(Widget w, XEvent *event, String *prms, Cardinal *nprms) { char buf[MSG_SIZ]; int target; unsigned int state; int fromRemotePlayer = *nprms; if (updateRemotePlayer) { DisplayMessage("Forward button disabled.", fromRemotePlayer); return; } if ((gameMode == EndOfGame) || (gameMode == EditPosition)) return; if (gameMode == PlayFromGameFile) PauseProc(w, event, prms, nprms); if (currentMove >= forwardMostMove) return; if (event == NULL) { /* Kludge */ Window root, child; int root_x, root_y; int win_x, win_y; XQueryPointer(localPlayer.xDisplay, localPlayer.xBoardWindow, &root, &child, &root_x, &root_y, &win_x, &win_y, &state); } else { state = event->xkey.state; } if (state & ShiftMask) target = forwardMostMove; else target = currentMove + 1; if (gameMode == ForceMoves) { while (currentMove < target) { strcpy(buf, moveList[currentMove++]); SendToProgram(buf, toFirstProgFP); } } else { currentMove = target; } if (gameMode == ForceMoves) { blackTimeRemaining = timeRemaining[0][currentMove]; whiteTimeRemaining = timeRemaining[1][currentMove]; } DisplayClocks(ReDisplayTimers); DisplayMove(currentMove - 1); DrawPosition(localPlayer.boardWidget, NULL, NULL, NULL); } void ResetFileProc(void) { char *buf = ""; if (updateRemotePlayer) return; if (localPlayer.appData.loadGameFile) XtFree(localPlayer.appData.loadGameFile); if (localPlayer.appData.loadPositionFile) XtFree(localPlayer.appData.loadPositionFile); localPlayer.appData.loadGameFile = localPlayer.appData.loadPositionFile = NULL; DisplayName(buf); if (gameFileFP != NULL) { fclose(gameFileFP); gameFileFP = NULL; } } void ResetChallenge(void) { char *buf = ""; if (localPlayer.appData.challengeDisplay) XtFree(localPlayer.appData.challengeDisplay); localPlayer.appData.challengeDisplay = NULL; DisplayName(buf); } void ResetProc(Widget w, XEvent *event, String *prms, Cardinal *nprms) { int fromRemotePlayer = *nprms; if (fromRemotePlayer) { DisplayMessage("Only your opponent may reset the game.", fromRemotePlayer); return; } Reset(True); } void Reset(int redraw) /* Boolean */ { ResetFileProc(); ResetChallenge(); localPlayer.flipView = False; remotePlayer.flipView = True; startedFromSetupPosition = whitePlaysFirst = False; matchMode = MatchFalse; firstMove = True; blackFlag = whiteFlag = False; maybeThinking = False; endMessage[0] = NULLCHAR; ShutdownShogiPrograms(""); lastGameMode = gameMode = BeginningOfGame; ModeHighlight(); InitPosition(redraw); DisplayClocks(ResetTimers); timeRemaining[0][0] = blackTimeRemaining; timeRemaining[1][0] = whiteTimeRemaining; InitShogiProgram(localPlayer.appData.firstHost, localPlayer.appData.firstShogiProgram, &firstProgramPID, &toFirstProgFP, &fromFirstProgFP, &firstProgramXID, &firstSendTime); if (commentUp) { XtPopdown(commentShell); XtDestroyWidget(commentShell); commentUp = False; } if (localPlayer.promotionUp) { XtPopdown(localPlayer.promotionShell); XtDestroyWidget(localPlayer.promotionShell); localPlayer.promotionUp = False; } if (updateRemotePlayer && remotePlayer.promotionUp) { XtPopdown(remotePlayer.promotionShell); XtDestroyWidget(remotePlayer.promotionShell); remotePlayer.promotionUp = False; } } void ClearCatches(int (*catches)[8]) { int c, p; for (c = 0; c <= 1; c++) for (p = 0; p <= 7; p++) catches[c][p] = 0; } Boolean Challenge(char *name) { char buf[MSG_SIZ]; int argc; char **argv; XrmDatabase database; if (gameMode != BeginningOfGame) { DisplayMessage("Press Reset first.", False); return (int)False; } if (localPlayer.appData.challengeDisplay != name) { if (localPlayer.appData.challengeDisplay) XtFree(localPlayer.appData.challengeDisplay); localPlayer.appData.challengeDisplay = XtMalloc(strlen(name) + 1); strcpy(localPlayer.appData.challengeDisplay, name); } sprintf(buf, "trying to connect to %s.....", name); DisplayMessage(buf, False); argc = global_argc; argv = global_argv; if ((remotePlayer.xDisplay = XtOpenDisplay(appContext, name, "XShogi", "XShogi", 0, 0, &argc, argv)) == NULL) { sprintf(buf, "Can't open display %s", name); DisplayMessage(buf, False); XtFree(localPlayer.appData.challengeDisplay); localPlayer.appData.challengeDisplay = NULL; return (int)False; } DisplayMessage("connected! creating remote window...", False); remotePlayer.xScreen = DefaultScreen(remotePlayer.xDisplay); remotePlayer.shellWidget = XtAppCreateShell(NULL, "XShogi", applicationShellWidgetClass, remotePlayer.xDisplay, NULL, 0); database = XtDatabase(remotePlayer.xDisplay); XrmParseCommand(&database, shellOptions, XtNumber(shellOptions), "XShogi", &argc, argv); XtGetApplicationResources(remotePlayer.shellWidget, &remotePlayer.appData, clientResources, XtNumber(clientResources), NULL, 0); player = &remotePlayer; CreatePlayerWindow(); updateRemotePlayer = True; DisplayName("REMOTE"); DrawPosition(remotePlayer.boardWidget, NULL, NULL, NULL); DisplayClocks(ReDisplayTimers); DisplayMessage("ready to play", False); DisplayMessage("ready to play", True); return True; } void ChallengeProc(Widget w, XEvent *event, String *prms, Cardinal *nprms) { int fromRemotePlayer = *nprms; if (updateRemotePlayer) { DisplayMessage("You are already in challenge mode.", fromRemotePlayer); return; } if (gameMode != BeginningOfGame) { DisplayMessage("Press Reset first.", False); return; } if (localPlayer.appData.challengeDisplay == NULL) FileNamePopUp("Challenge display?", Challenge); else (void) Challenge(localPlayer.appData.challengeDisplay); } Boolean SelectLevel(char *command) { char buf[MSG_SIZ]; sprintf(buf, "level %s\n", command); SendToProgram(buf, toFirstProgFP); return True; } void SelectLevelProc(Widget w, XEvent *event, String *prms, Cardinal *nprms) { if ((BlackOnMove(forwardMostMove) && (gameMode == MachinePlaysBlack)) || (!BlackOnMove(forwardMostMove) && (gameMode == MachinePlaysWhite))) { DisplayMessage("Wait until your turn.", False); } else { FileNamePopUp("#moves #minutes", SelectLevel); } } void MoveNowProc(Widget w, XEvent *event, String *prms, Cardinal *nprms) { if ((!BlackOnMove(forwardMostMove) && (gameMode == MachinePlaysBlack)) || (BlackOnMove(forwardMostMove) && (gameMode == MachinePlaysWhite))) { DisplayMessage("Wait until machine's turn.", False); } else { Attention(firstProgramPID); } } void LoadPositionProc(Widget w, XEvent *event, String *prms, Cardinal *nprms) { int fromRemotePlayer = *nprms; if (fromRemotePlayer) { DisplayMessage("only opponent may load position", fromRemotePlayer); return; } if (gameMode != BeginningOfGame) { DisplayMessage("Press Reset first.", False); return; } FileNamePopUp("Position file name?", LoadPosition); } Boolean LoadPosition(char *name) { char *p, line[MSG_SIZ], buf[MSG_SIZ]; Board initial_position; Catched initial_catches; FILE *fp; int i, j; if (gameMode != BeginningOfGame) { DisplayMessage("Press Reset first.", False); return False; } if (localPlayer.appData.loadPositionFile != name) { if (localPlayer.appData.loadPositionFile) XtFree(localPlayer.appData.loadPositionFile); localPlayer.appData.loadPositionFile = XtMalloc(strlen(name) + 1); strcpy(localPlayer.appData.loadPositionFile, name); } if ((fp = fopen(name, "r")) == NULL) { sprintf(buf, "Can't open %s", name); DisplayMessage(buf, False); XtFree(localPlayer.appData.loadPositionFile); localPlayer.appData.loadPositionFile = NULL; return False; } lastGameMode = gameMode = ForceMoves; ModeHighlight(); startedFromSetupPosition = True; if (firstProgramXID == 0) { InitShogiProgram(localPlayer.appData.firstHost, localPlayer.appData.firstShogiProgram, &firstProgramPID, &toFirstProgFP, &fromFirstProgFP, &firstProgramXID, &firstSendTime); } /* * Check and skip header information in position file. */ fgets(line, MSG_SIZ, fp); line[strlen(line) - 1] = NULLCHAR; sprintf(buf, "# %s position file", programName); if (strncmp(line, buf, strlen(buf))) { strcat(line, ": no xshogi position file"); DisplayMessage(line, False); return False; } DisplayName(line); fgets(line, MSG_SIZ, fp); /* skip opponents */ for (i = BOARD_SIZE - 1; i >= 0; i--) { fgets(line, MSG_SIZ, fp); for (p = line, j = 0; j < BOARD_SIZE; p++) { int promoted = False; /* CHECKME: is this valid? */ if (*p == '+') promoted = True; if (*p == ' ') promoted = False; p++; initial_position[i][j++] = CharToPiece(*p, promoted); } } { int color; for (color = 0; color <= 1; color++) { fscanf(fp, "%i%i%i%i%i%i%i%i\n", &initial_catches[color][pawn], &initial_catches[color][lance], &initial_catches[color][knight], &initial_catches[color][silver], &initial_catches[color][gold], &initial_catches[color][bishop], &initial_catches[color][rook], &initial_catches[color][king]); } } whitePlaysFirst = False; if (!feof(fp)) { fgets(line, MSG_SIZ, fp); if (strncmp(line, "white", strlen("white")) == 0) whitePlaysFirst = True; } fclose(fp); if (whitePlaysFirst) { CopyBoard(boards[0], initial_position); CopyCatches(catches[0], initial_catches); strcpy(moveList[0], " ...\n"); strcpy(parseList[0], " ...\n"); currentMove = forwardMostMove = backwardMostMove = 1; CopyBoard(boards[1], initial_position); CopyCatches(catches[1], initial_catches); SendToProgram("white\n", toFirstProgFP); SendToProgram("force\n", toFirstProgFP); SendCurrentBoard(toFirstProgFP); DisplayMessage("White to play", False); } else { currentMove = forwardMostMove = backwardMostMove = 0; CopyBoard(boards[0], initial_position); CopyCatches(catches[0], initial_catches); SendCurrentBoard(toFirstProgFP); SendToProgram("force\n", toFirstProgFP); DisplayMessage("Black to play", False); } DisplayClocks(ResetTimers); timeRemaining[0][1] = blackTimeRemaining; timeRemaining[1][1] = whiteTimeRemaining; DrawPosition(localPlayer.boardWidget, NULL, NULL, NULL); return True; } void EditPositionProc(Widget w, XEvent *event, String *prms, Cardinal *nprms) { int fromRemotePlayer = *nprms; if (updateRemotePlayer) { DisplayMessage("Edit button disabled", fromRemotePlayer); return; } if (gameMode == EditPosition) return; ForceProc(w, event, prms, nprms); if (gameMode != ForceMoves) return; DisplayName("<-- Press to set side to play next"); DisplayMessage("Mouse: 1=drag, 2=black, 3=white", False); lastGameMode = gameMode = EditPosition; ModeHighlight(); if (currentMove > 0) CopyBoard(boards[0], boards[currentMove]); whitePlaysFirst = !BlackOnMove(forwardMostMove); currentMove = forwardMostMove = backwardMostMove = 0; } void EditPositionDone(void) { startedFromSetupPosition = True; SendToProgram(localPlayer.appData.initString, toFirstProgFP); SendSearchDepth(toFirstProgFP); if (whitePlaysFirst) { strcpy(moveList[0], " ...\n"); strcpy(parseList[0], " ...\n"); currentMove = forwardMostMove = backwardMostMove = 1; CopyBoard(boards[1], boards[0]); CopyCatches(catches[1], catches[0]); SendToProgram("force\n", toFirstProgFP); SendCurrentBoard(toFirstProgFP); DisplayName(" "); DisplayMessage("White to play", False); } else { currentMove = forwardMostMove = backwardMostMove = 0; SendCurrentBoard(toFirstProgFP); SendToProgram("force\n", toFirstProgFP); DisplayName(" "); DisplayMessage("Black to play", False); } lastGameMode = gameMode = ForceMoves; } /* * FUNCTION * BackwardProc * * DESCRIPTION * This function executes when undoing a move. * FIXME: this function is totally hosed!!! * * ARGUMENTS * Widget w * XEvent *event * String *prms * Cardinal *nprms * * RETURN VALUE * void * */ void BackwardProc(Widget w, XEvent *event, String *prms, Cardinal *nprms) { int target; unsigned int state; int fromRemotePlayer = *nprms; if (updateRemotePlayer) { DisplayMessage("Backward button disabled", fromRemotePlayer); return; } /* * Why do we need this here? */ ForceProc(w, event, prms, nprms); if ((currentMove <= backwardMostMove) || (gameMode == EditPosition)) return; if (gameMode == EndOfGame) ResurrectShogiProgram(); if (gameMode == PlayFromGameFile) PauseProc(w, event, prms, nprms); if (event == NULL) { /* Kludge */ Window root, child; int root_x, root_y; int win_x, win_y; XQueryPointer(localPlayer.xDisplay, localPlayer.xBoardWindow, &root, &child, &root_x, &root_y, &win_x, &win_y, &state); } else { state = event->xkey.state; } if (state & ShiftMask) { target = backwardMostMove; } else { target = currentMove - 1; } if (gameMode == ForceMoves) { Attention(firstProgramPID); while (currentMove > target) { SendToProgram("undo\n", toFirstProgFP); currentMove--; } } else { currentMove = target; } if (gameMode == ForceMoves) { whiteTimeRemaining = timeRemaining[0][currentMove]; blackTimeRemaining = timeRemaining[1][currentMove]; } DisplayClocks(ReDisplayTimers); DisplayMove(currentMove - 1); DrawPosition(localPlayer.boardWidget, NULL, NULL, NULL); } void FlipViewProc(Widget w, XEvent *event, String *prms, Cardinal *nprms) { struct DisplayData *player = (*nprms ? &remotePlayer : &localPlayer); player->flipView = !player->flipView; DrawPosition(localPlayer.boardWidget, NULL, NULL, NULL); } void SaveGameProc(Widget w, XEvent *event, String *prms, Cardinal *nprms) { char def[MSG_SIZ]; int fromRemotePlayer = *nprms; if (fromRemotePlayer) { DisplayMessage("only opponent may save game", fromRemotePlayer); return; } def[0] = NULLCHAR; FileNamePopUp("Filename for saved game?", SaveGame); } Boolean SaveGame(char *name) { char buf[MSG_SIZ]; int i, len, move = 0; time_t tm; if (!filemodeUp) /* if called via FileModeCallback avoid recursion */ { if ((gameFileFP = fopen(name, "r")) == NULL) { strcpy(fmi.mode, "w"); } else { fclose(gameFileFP); FileModePopUp(name); return False; /* CHECKME: what should the return value be? */ } } if ((gameFileFP = fopen(name, fmi.mode)) == NULL) { sprintf(buf, "Can't open %s (mode %s)", name, fmi.mode); DisplayMessage(buf, False); return False; } tm = time((time_t *) NULL); fprintf(gameFileFP, "# %s game file -- %s", programName, ctime(&tm)); PrintOpponents(gameFileFP); for (i = 0; i < currentMove;) { if ((i % 5) == 0) fprintf(gameFileFP, "\n"); fprintf(gameFileFP, "%d. %s ", ++move, parseList[i++]); if (i >= currentMove) { fprintf(gameFileFP, "\n"); break; } if ((len = strlen(parseList[i])) == 0) break; fprintf(gameFileFP, "%s ", parseList[i++]); } fprintf(gameFileFP, "\n"); fclose(gameFileFP); gameFileFP = NULL; return True; } void SwitchProc(Widget w, XEvent *event, String *prms, Cardinal *nprms) { if (localPlayer.appData.noShogiProgram) return; switch (gameMode) { default: return; case MachinePlaysBlack: if (BlackOnMove(forwardMostMove)) { DisplayMessage("Wait until your turn", False); return; } lastGameMode = gameMode = MachinePlaysWhite; ModeHighlight(); break; case BeginningOfGame: case MachinePlaysWhite: if (!BlackOnMove(forwardMostMove)) { DisplayMessage("Wait until your turn", False); return; } if (forwardMostMove == 0) { MachineBlackProc(w, event, prms, nprms); return; } lastGameMode = gameMode = MachinePlaysBlack; ModeHighlight(); break; } Attention(firstProgramPID); SendToProgram("switch\n", toFirstProgFP); } void ForceProc(Widget w, XEvent *event, String *prms, Cardinal *nprms) { int i; switch (gameMode) { case MachinePlaysBlack: if (BlackOnMove(forwardMostMove)) { DisplayMessage("Wait until your turn", False); return; } Attention(firstProgramPID); SendToProgram("force\n", toFirstProgFP); break; case MachinePlaysWhite: if (!BlackOnMove(forwardMostMove)) { DisplayMessage("Wait until your turn", False); return; } Attention(firstProgramPID); SendToProgram("force\n", toFirstProgFP); break; case BeginningOfGame: SendToProgram("force\n", toFirstProgFP); break; case PlayFromGameFile: if (readGameXID != 0) { XtRemoveTimeOut(readGameXID); readGameXID = 0; } if (gameFileFP != NULL) { fclose(gameFileFP); gameFileFP = NULL; } break; case EndOfGame: ResurrectShogiProgram(); break; case EditPosition: EditPositionDone(); break; case TwoMachinesPlay: ShutdownShogiPrograms(""); ResurrectShogiProgram(); return; default: return; } if ((gameMode == MachinePlaysWhite) || (gameMode == MachinePlaysBlack) || (gameMode == TwoMachinesPlay) || (gameMode == PlayFromGameFile)) { i = forwardMostMove; while (i > currentMove) { SendToProgram("undo\n", toFirstProgFP); i--; } blackTimeRemaining = timeRemaining[0][currentMove]; whiteTimeRemaining = timeRemaining[1][currentMove]; if (whiteFlag || blackFlag) { whiteFlag = blackFlag = 0; } DisplayTitle(""); } lastGameMode = gameMode = ForceMoves; ModeHighlight(); DisplayClocks(StopTimers); } void HintProc(Widget w, XEvent *event, String *prms, Cardinal *nprms) { int fromRemotePlayer = *nprms; if (updateRemotePlayer) { DisplayMessage("no hints in challenge mode", fromRemotePlayer); return; } if (localPlayer.appData.noShogiProgram) return; switch (gameMode) { case MachinePlaysBlack: if (BlackOnMove(forwardMostMove)) { DisplayMessage("Wait until your turn", False); return; } break; case BeginningOfGame: case MachinePlaysWhite: if (!BlackOnMove(forwardMostMove)) { DisplayMessage("Wait until your turn", False); return; } break; default: DisplayMessage("No hint available", False); return; } Attention(firstProgramPID); SendToProgram("hint\n", toFirstProgFP); } void PrintPosition(FILE *fp, int move) { int i, j, color; for (i = BOARD_SIZE - 1; i >= 0; i--) { for (j = 0; j < BOARD_SIZE; j++) { if (pieceIsPromoted[(int)boards[currentMove][i][j]]) fprintf(fp, "%c", '+'); else fprintf(fp, "%c", ' '); fprintf(fp, "%c", pieceToChar[(int)boards[currentMove][i][j]]); if (j == BOARD_SIZE - 1) fputc('\n', fp); } } for (color = 0; color <= 1; color++) { fprintf(fp, "%i %i %i %i %i %i %i %i\n", catches[currentMove][color][pawn], catches[currentMove][color][lance], catches[currentMove][color][knight], catches[currentMove][color][silver], catches[currentMove][color][gold], catches[currentMove][color][bishop], catches[currentMove][color][rook], catches[currentMove][color][king]); } if ((gameMode == EditPosition) ? !whitePlaysFirst : BlackOnMove(forwardMostMove)) { fprintf(fp, "black to play\n"); } else { fprintf(fp, "white to play\n"); } } void PrintOpponents(FILE *fp) { char host_name[MSG_SIZ]; #ifdef HAVE_GETHOSTNAME gethostname(host_name, MSG_SIZ); #else strncpy(host_name, "hostname not available", MSG_SIZ); #endif switch (lastGameMode) { case MachinePlaysWhite: fprintf(fp, "# %s@%s vs. %s@%s\n", localPlayer.appData.firstShogiProgram, localPlayer.appData.firstHost, getpwuid(getuid())->pw_name, host_name); break; case MachinePlaysBlack: fprintf(fp, "# %s@%s vs. %s@%s\n", getpwuid(getuid())->pw_name, host_name, localPlayer.appData.firstShogiProgram, localPlayer.appData.firstHost); break; case TwoMachinesPlay: fprintf(fp, "# %s@%s vs. %s@%s\n", localPlayer.appData.secondShogiProgram, localPlayer.appData.secondHost, localPlayer.appData.firstShogiProgram, localPlayer.appData.firstHost); break; default: fprintf(fp, "#\n"); break; } } void SavePositionProc(Widget w, XEvent *event, String *prms, Cardinal *nprms) { char def[MSG_SIZ]; int fromRemotePlayer = *nprms; if (fromRemotePlayer) { DisplayMessage("only opponent may save game", fromRemotePlayer); return; } def[0] = NULLCHAR; FileNamePopUp("Filename for saved position?", SavePosition); } Boolean SavePosition(char *name) { char buf[MSG_SIZ]; FILE *fp; time_t tm; if ((fp = fopen(name, "w")) == NULL) { sprintf(buf, "Can't open %s", name); DisplayMessage(buf, False); return False; } tm = time((time_t *) NULL); fprintf(fp, "# %s position file -- %s", programName, ctime(&tm)); PrintOpponents(fp); PrintPosition(fp, currentMove); fclose(fp); return True; } void TwoMachinesProc(Widget w, XEvent *event, String *prms, Cardinal *nprms) { int i; MatchMode matchKind; int fromRemotePlayer = *nprms; if (updateRemotePlayer) { DisplayMessage("no machine moves in challenge mode", fromRemotePlayer); return; } if (gameMode == PauseGame) PauseProc(w, event, prms, nprms); if (gameMode == PlayFromGameFile) ForceProc(w, event, prms, nprms); if ((gameMode == EndOfGame) || (gameMode == TwoMachinesPlay) || localPlayer.appData.noShogiProgram) { return; } if (matchMode == MatchFalse) { switch (gameMode) { case PauseGame: case PlayFromGameFile: return; case MachinePlaysBlack: case MachinePlaysWhite: ForceProc(w, event, prms, nprms); if (gameMode != ForceMoves) return; matchKind = MatchOpening; break; case ForceMoves: matchKind = MatchOpening; break; case EditPosition: EditPositionDone(); matchKind = MatchPosition; break; case BeginningOfGame: default: matchKind = MatchInit; break; } } else { matchKind = matchMode; } forwardMostMove = currentMove; localPlayer.flipView = False; remotePlayer.flipView = True; firstMove = False; DisplayClocks(ResetTimers); DisplayClocks(StartTimers); switch (matchKind) { case MatchOpening: if (firstProgramXID == 0) { if (localPlayer.appData.loadGameFile == NULL) { DisplayMessage("Select game file first", False); return; } InitShogiProgram(localPlayer.appData.firstHost, localPlayer.appData.firstShogiProgram, &firstProgramPID, &toFirstProgFP, &fromFirstProgFP, &firstProgramXID, &firstSendTime); if (!LoadGame(localPlayer.appData.loadGameFile)) { ShutdownShogiPrograms("Bad game file"); return; } DrawPosition(localPlayer.boardWidget, NULL, NULL, NULL); } InitShogiProgram(localPlayer.appData.secondHost, localPlayer.appData.secondShogiProgram, &secondProgramPID, &toSecondProgFP, &fromSecondProgFP, &secondProgramXID, &secondSendTime); if (startedFromSetupPosition) { if (whitePlaysFirst) { i = 1; SendToProgram("force\n", toSecondProgFP); SendBoard(toSecondProgFP, boards[i], catches[i]); } else { i = 0; SendBoard(toSecondProgFP, boards[i], catches[i]); SendToProgram("force\n", toSecondProgFP); } } else { i = 0; SendToProgram("force\n", toSecondProgFP); } for (i = backwardMostMove; i < forwardMostMove; i++) SendToProgram(moveList[i], toSecondProgFP); lastGameMode = gameMode = TwoMachinesPlay; ModeHighlight(); firstMove = True; if (BlackOnMove(forwardMostMove)) SendToProgram(localPlayer.appData.blackString, toSecondProgFP); else SendToProgram(localPlayer.appData.whiteString, toFirstProgFP); break; case MatchPosition: if (firstProgramXID == 0) { if (localPlayer.appData.loadPositionFile == NULL) { DisplayMessage("Select position file first", False); return; } InitShogiProgram(localPlayer.appData.firstHost, localPlayer.appData.firstShogiProgram, &firstProgramPID, &toFirstProgFP, &fromFirstProgFP, &firstProgramXID, &firstSendTime); if (!LoadPosition(localPlayer.appData.loadPositionFile)) return; } InitShogiProgram(localPlayer.appData.secondHost, localPlayer.appData.secondShogiProgram, &secondProgramPID, &toSecondProgFP, &fromSecondProgFP, &secondProgramXID, &secondSendTime); if (whitePlaysFirst) SendToProgram("force\n", toSecondProgFP); SendCurrentBoard(toSecondProgFP); lastGameMode = gameMode = TwoMachinesPlay; ModeHighlight(); firstMove = True; if (BlackOnMove(forwardMostMove)) SendToProgram(localPlayer.appData.blackString, toSecondProgFP); else SendToProgram(localPlayer.appData.whiteString, toFirstProgFP); break; case MatchInit: InitPosition(True); if (firstProgramXID == 0) { InitShogiProgram(localPlayer.appData.firstHost, localPlayer.appData.firstShogiProgram, &firstProgramPID, &toFirstProgFP, &fromFirstProgFP, &firstProgramXID, &firstSendTime); } InitShogiProgram(localPlayer.appData.secondHost, localPlayer.appData.secondShogiProgram, &secondProgramPID, &toSecondProgFP, &fromSecondProgFP, &secondProgramXID, &secondSendTime); lastGameMode = gameMode = TwoMachinesPlay; ModeHighlight(); SendToProgram(localPlayer.appData.blackString, toSecondProgFP); default: break; } if (!firstSendTime || !secondSendTime) { DisplayClocks(ResetTimers); timeRemaining[0][forwardMostMove] = blackTimeRemaining; timeRemaining[1][forwardMostMove] = whiteTimeRemaining; } DisplayClocks(StartTimers); } void PauseProc(Widget w, XEvent *event, String *prms, Cardinal *nprms) { static GameMode previous_mode = PauseGame; switch (gameMode) { case ForceMoves: case EndOfGame: case EditPosition: default: return; case PauseGame: gameMode = previous_mode; ModeHighlight(); previous_mode = PauseGame; DisplayClocks(StartTimers); DisplayMessage("", False); if (updateRemotePlayer) DisplayMessage("", True); break; case PlayFromGameFile: if (readGameXID == 0) { readGameXID = XtAppAddTimeOut(appContext, (int)(1000 * localPlayer.appData.timeDelay), (XtTimerCallbackProc) ReadGameFile, NULL); } else { XtRemoveTimeOut(readGameXID); readGameXID = 0; } DisplayMessage("Pausing", False); if (updateRemotePlayer) DisplayMessage("Pausing", True); break; case BeginningOfGame: case MachinePlaysBlack: case MachinePlaysWhite: case TwoMachinesPlay: if (forwardMostMove == 0) /* Don't pause if no one has moved. */ return; if (((gameMode == MachinePlaysWhite) && !BlackOnMove(forwardMostMove)) || ((gameMode == MachinePlaysBlack) && BlackOnMove(forwardMostMove))) { DisplayClocks(StopTimers); } previous_mode = gameMode; gameMode = PauseGame; ModeHighlight(); DisplayClocks(StopTimers); DisplayMessage("Pausing", False); if (updateRemotePlayer) DisplayMessage("Pausing", True); break; } } void Iconify(Widget w, XEvent *event, String *prms, Cardinal *nprms) { Arg args[1]; fromX = fromY = -1; XtSetArg(args[0], XtNiconic, True); XtSetValues(localPlayer.shellWidget, args, 1); } void SendToProgram(char *message, FILE *fp) { if (fp == NULL) return; lastMsgFP = fp; if (xshogiDebug) { fprintf(stderr, "Sending to %s: %s\n", ((fp == toFirstProgFP) ? "first" : "second"), message); } if (message[strlen(message) - 1] != '\n') fprintf(fp, "\n%s\n", message); else fputs(message, fp); fflush(fp); } void ReceiveFromProgram(FILE *fp, int *source, XtInputId *id) { char message[MSG_SIZ], *end_str, *number, *name; if (fgets(message, MSG_SIZ, fp) == NULL) { if (fp == fromFirstProgFP) { number = "first"; name = localPlayer.appData.firstShogiProgram; } else if (fp == fromSecondProgFP) { number = "second"; name = localPlayer.appData.secondShogiProgram; } else { return; } if (ferror(fp) == 0) { sprintf(message, "%s shogi program (%s) exited unexpectedly", number, name); fprintf(stderr, "%s: %s\n", programName, message); } else { sprintf(message, "error reading from %s shogi program (%s): %s", number, name, strerror(ferror(fp))); fprintf(stderr, "%s: %s\n", programName, message); } return; } if ((end_str = (char *)strchr(message, '\r')) != NULL) *end_str = NULLCHAR; if ((end_str = (char *)strchr(message, '\n')) != NULL) *end_str = NULLCHAR; if (xshogiDebug || localPlayer.appData.debugMode) { fprintf(stderr, "Received from %s: %s\n", ((fp == fromFirstProgFP) ? "first" : "second"), message); } HandleMachineMove(message, fp); } void SendSearchDepth(FILE *fp) { char message[MSG_SIZ]; if (localPlayer.appData.searchDepth <= 0) return; sprintf(message, "depth\n%d\nhelp\n", localPlayer.appData.searchDepth); /* Note kludge: "help" command forces gnushogi to print * out something that ends with a newline. */ SendToProgram(message, fp); } void DisplayMessage(char *message, int toRemotePlayer) { Arg arg; XtSetArg(arg, XtNlabel, message); if (!toRemotePlayer) XtSetValues(localPlayer.messageWidget, &arg, 1); if (updateRemotePlayer && toRemotePlayer) XtSetValues(remotePlayer.messageWidget, &arg, 1); } void DisplayName(char *name) { Arg arg; XtSetArg(arg, XtNlabel, name); XtSetValues(localPlayer.titleWidget, &arg, 1); if (updateRemotePlayer) XtSetValues(remotePlayer.titleWidget, &arg, 1); } void SendTimeRemaining(FILE *fp) { char message[MSG_SIZ]; long comtime, opptime; if (BlackOnMove(forwardMostMove) == (fp == toFirstProgFP)) { comtime = blackTimeRemaining; opptime = whiteTimeRemaining; } else { comtime = whiteTimeRemaining; opptime = blackTimeRemaining; } if (comtime <= 0) comtime = 1000; if (opptime <= 0) opptime = 1000; sprintf(message, "time %ld\n", comtime / 10); SendToProgram(message, fp); sprintf(message, "otime %ld\n", opptime / 10); SendToProgram(message, fp); } void DisplayMove(int moveNumber) { char message[MSG_SIZ]; if (moveNumber < 0) { if (moveNumber == forwardMostMove - 1) DisplayMessage(endMessage, False); else DisplayMessage("", False); } else { sprintf(message, "%d. %s%s %s", (moveNumber / 2 + 1), (BlackOnMove(moveNumber) ? "" : "... "), parseList[moveNumber], (moveNumber == (forwardMostMove - 1)) ? endMessage : ""); DisplayMessage(message, False); } } void DisplayTitle(char *title) { Arg arg; XtSetArg(arg, XtNlabel, title); XtSetValues(localPlayer.titleWidget, &arg, 1); } /* * This routine used to send a SIGINT (^C interrupt) to gnushogi to awaken it * if it might be busy thinking on our time. This normally isn't needed, * but is useful on systems where the FIONREAD ioctl doesn't work since * on those systems the gnushogi feature that lets you interrupt its thinking * just by typing a command does not work. * * Now gnushogi periodically checks for user input without a need for * this hack. */ void Attention(int pid) { #if 0 if (localPlayer.appData.noShogiProgram || (pid == 0)) return; switch (gameMode) { case MachinePlaysBlack: case MachinePlaysWhite: case TwoMachinesPlay: if ((forwardMostMove > backwardMostMove + 1) && maybeThinking) { if (xshogiDebug || localPlayer.appData.debugMode) { fprintf(stderr, "Sending SIGINT to %s\n", ((pid == firstProgramPID) ? "first" : "second")); } (void)kill(pid, SIGINT); /* stop it thinking */ } break; default: break; /* CHECKME: is this OK? */ } #endif /* !defined(FIONREAD) */ } void CheckFlags(void) { if (blackTimeRemaining <= 0) { if (!blackFlag) { blackFlag = True; if (whiteFlag) DisplayName(" Both flags have fallen"); else DisplayName(" Black's flag has fallen"); } } if (whiteTimeRemaining <= 0) { if (!whiteFlag) { whiteFlag = True; if (blackFlag) DisplayName(" Both flags have fallen"); else DisplayName(" White's flag has fallen"); } } } void CheckTimeControl(void) { if (!localPlayer.appData.clockMode) return; if (forwardMostMove == 0) return; /* * Add time to clocks when time control is achieved. */ if ((forwardMostMove % (localPlayer.appData.movesPerSession * 2)) == 0) { blackTimeRemaining += timeControl; whiteTimeRemaining += timeControl; } } void DisplayLabels(void) { DisplayTimerLabel(localPlayer.blackTimerWidget, "Black", blackTimeRemaining); DisplayTimerLabel(localPlayer.whiteTimerWidget, "White", whiteTimeRemaining); if (updateRemotePlayer) { DisplayTimerLabel(remotePlayer.blackTimerWidget, "Black", blackTimeRemaining); DisplayTimerLabel(remotePlayer.whiteTimerWidget, "White", whiteTimeRemaining); } } #ifdef HAVE_GETTIMEOFDAY static struct timeval tickStartTV; static int tickLength; int PartialTickLength(void) { struct timeval tv; int ptl; gettimeofday(&tv, NULL); ptl = ((tv.tv_sec - tickStartTV.tv_sec) * 1000000 + (tv.tv_usec - tickStartTV.tv_usec) + 500) / 1000; if (ptl > tickLength) ptl = tickLength; return ptl; } #else /* !HAVE_GETTIMEOFDAY */ #define tickLength 1000 #endif /* HAVE_GETTIMEOFDAY */ /* * DisplayClocks manages the game clocks. * * In tournament play, white starts the clock and then black makes a move. * We give the human user a slight advantage if he is playing black---the * clocks don't run until he makes his first move, so it takes zero time. * Also, DisplayClocks doesn't account for network lag so it could get out * of sync with GNU Shogi's clock -- but then, referees are always right. */ void DisplayClocks(int clock_mode) { long timeRemaining; switch (clock_mode) { case ResetTimers: /* Stop clocks and reset to a fresh time control */ if (timerXID != 0) { XtRemoveTimeOut(timerXID); timerXID = 0; } blackTimeRemaining = timeControl; whiteTimeRemaining = timeControl; if (blackFlag || whiteFlag) { DisplayName(""); blackFlag = whiteFlag = False; } DisplayLabels(); break; case DecrementTimers: /* Decrement running clock to next 1-second boundary */ if (gameMode == PauseGame) return; timerXID = 0; if (!localPlayer.appData.clockMode) return; if (BlackOnMove(forwardMostMove)) { timeRemaining = (blackTimeRemaining -= tickLength); } else { timeRemaining = (whiteTimeRemaining -= tickLength); } DisplayLabels(); CheckFlags(); #ifdef HAVE_GETTIMEOFDAY tickLength = (((timeRemaining <= 1000) && (timeRemaining > 0)) ? 100 : 1000); gettimeofday(&tickStartTV, NULL); #endif /* HAVE_GETTIMEOFDAY */ timerXID = XtAppAddTimeOut(appContext, tickLength, (XtTimerCallbackProc) DisplayClocks, (XtPointer) DecrementTimers); break; case SwitchTimers: /* A player has just moved, so stop the previously running clock and start the other one. */ if (timerXID != 0) { XtRemoveTimeOut(timerXID); timerXID = 0; #ifdef HAVE_GETTIMEOFDAY if (localPlayer.appData.clockMode) { if (BlackOnMove(forwardMostMove)) whiteTimeRemaining -= PartialTickLength(); else blackTimeRemaining -= PartialTickLength(); CheckFlags(); } #endif /* HAVE_GETTIMEOFDAY */ } CheckTimeControl(); DisplayLabels(); if (!localPlayer.appData.clockMode) return; if ((gameMode == PauseGame) && ((pausePreviousMode == MachinePlaysBlack) || (pausePreviousMode == MachinePlaysWhite))) { return; } timeRemaining = (BlackOnMove(forwardMostMove) ? blackTimeRemaining : whiteTimeRemaining); #ifdef HAVE_GETTIMEOFDAY tickLength = (((timeRemaining <= 1000) && (timeRemaining > 0)) ? (((timeRemaining - 1) % 100) + 1) : (((timeRemaining - 1) % 1000) + 1)); if (tickLength <= 0) tickLength += 1000; gettimeofday(&tickStartTV, NULL); #endif /* HAVE_GETTIMEOFDAY */ timerXID = XtAppAddTimeOut(appContext, tickLength, (XtTimerCallbackProc) DisplayClocks, (XtPointer) DecrementTimers); break; case ReDisplayTimers: /* Display current clock values */ DisplayLabels(); break; case StopTimers: /* Stop both clocks */ if (timerXID == 0) return; XtRemoveTimeOut(timerXID); timerXID = 0; if (!localPlayer.appData.clockMode) return; #ifdef HAVE_GETTIMEOFDAY if (BlackOnMove(forwardMostMove)) blackTimeRemaining -= PartialTickLength(); else whiteTimeRemaining -= PartialTickLength(); CheckFlags(); DisplayLabels(); #endif /* HAVE_GETTIMEOFDAY */ break; case StartTimers: /* Start clock of player on move, if not already running. */ if (timerXID != 0) return; DisplayLabels(); if (!localPlayer.appData.clockMode) return; timeRemaining = (BlackOnMove(forwardMostMove) ? blackTimeRemaining : whiteTimeRemaining); if (timeRemaining == 0) return; #ifdef HAVE_GETTIMEOFDAY tickLength = (((timeRemaining <= 1000) && (timeRemaining > 0)) ? (((timeRemaining - 1) % 100) + 1) : (((timeRemaining - 1) % 1000) + 1)); if (tickLength <= 0) tickLength += 1000; gettimeofday(&tickStartTV, NULL); #endif /* HAVE_GETTIMEOFDAY */ timerXID = XtAppAddTimeOut(appContext, tickLength, (XtTimerCallbackProc) DisplayClocks, (XtPointer)DecrementTimers); break; } } void DisplayTimerLabel(Widget w, char *color, long int timer) { char buf[MSG_SIZ]; Arg args[3]; struct DisplayData *player; player = (((w == localPlayer.blackTimerWidget) || (w == localPlayer.whiteTimerWidget)) ? &localPlayer : &remotePlayer); if (localPlayer.appData.clockMode) { sprintf(buf, "%s: %s", color, TimeString(timer)); XtSetArg(args[0], XtNlabel, buf); } else { XtSetArg(args[0], XtNlabel, color); } if (((color[0] == 'W') && BlackOnMove(forwardMostMove)) || ((color[0] == 'B') && !BlackOnMove(forwardMostMove))) { XtSetArg(args[1], XtNbackground, player->timerForegroundPixel); XtSetArg(args[2], XtNforeground, player->timerBackgroundPixel); } else { XtSetArg(args[1], XtNbackground, player->timerBackgroundPixel); XtSetArg(args[2], XtNforeground, player->timerForegroundPixel); } XtSetValues(w, args, 3); } char * TimeString(long tm) { int second, minute, hour, day; char *sign = ""; static char buf[32]; if ((tm > 0) && (tm <= 900)) { /* convert milliseconds to tenths, rounding up */ sprintf(buf, " 0.%1ld ", (tm + 99) / 100); return buf; } /* convert milliseconds to seconds, rounding up */ tm = (tm + 999) / 1000; if (tm < 0) { sign = "-"; tm = -tm; } if (tm >= (60 * 60 * 24)) { day = (int)(tm / (60 * 60 * 24)); tm -= day * 60 * 60 * 24; } else { day = 0; } if (tm >= (60 * 60)) { hour = (int)(tm / (60 * 60)); tm -= hour * 60 * 60; } else { hour = 0; } if (tm >= 60) { minute = (int)(tm / 60); tm -= minute * 60; } else { minute = 0; } second = tm % 60; if (day > 0) { sprintf(buf, " %s%d:%02d:%02d:%02d ", sign, day, hour, minute, second); } else if (hour > 0) { sprintf(buf, " %s%d:%02d:%02d ", sign, hour, minute, second); } else { sprintf(buf, " %s%2d:%02d ", sign, minute, second); } return buf; } void Usage(void) { fprintf(stderr, "Usage: %s\n", programName); fprintf(stderr, "\tstandard Xt options\n"); fprintf(stderr, "\t-iconic\n"); fprintf(stderr, "\t-tc or -timeControl minutes[:seconds]\n"); fprintf(stderr, "\t-gi or -gameIn (True | False)\n"); fprintf(stderr, "\t-mps or -movesPerSession moves\n"); fprintf(stderr, "\t-st or -searchTime minutes[:seconds]\n"); fprintf(stderr, "\t-sd or -searchDepth number\n"); fprintf(stderr, "\t-clock or -clockMode (True | False)\n"); fprintf(stderr, "\t-td or -timeDelay seconds\n"); fprintf(stderr, "\t-nsp or -noShogiProgram (True | False)\n"); fprintf(stderr, "\t-fsp or -firstShogiProgram program_name\n"); fprintf(stderr, "\t-ssp or -secondShogiProgram program_name\n"); fprintf(stderr, "\t-fh or -firstHost host_name\n"); fprintf(stderr, "\t-sh or -secondHost host_name\n"); fprintf(stderr, "\t-rsh or -remoteShell shell_name\n"); fprintf(stderr, "\t-mm or -matchMode (False | Init | Position | Opening)\n"); fprintf(stderr, "\t-lgf or -loadGameFile file_name\n"); fprintf(stderr, "\t-lpf or -loadPositionFile file_name\n"); fprintf(stderr, "\t-sgf or -saveGameFile file_name\n"); fprintf(stderr, "\t-spf or -savePositionFile file_name\n"); fprintf(stderr, "\t-size or -boardSize (Large | Medium | Small)\n"); fprintf(stderr, "\t-coords or -showCoords (True | False)\n"); fprintf(stderr, "\t-mono or -monoMode (True | False)\n"); fprintf(stderr, "\t-pc or -pieceColor color\n"); fprintf(stderr, "\t-sc or -squareColor color\n"); fprintf(stderr, "\t-wps or -westernPieceSet (True | False)\n"); fprintf(stderr, "\t-debug or -debugMode (True | False)\n"); exit(2); } void CatchPipeSignal(int dummy) { char message[MSG_SIZ]; sprintf(message, "%s shogi program (%s) exited unexpectedly", ((lastMsgFP == toFirstProgFP) ? "first" : "second"), ((lastMsgFP == toFirstProgFP) ? localPlayer.appData.firstShogiProgram : localPlayer.appData.secondShogiProgram)); fprintf(stderr, "%s: %s\n", programName, message); ShutdownShogiPrograms(message); return; } xshogi-1.4.2/scanner.c0000644000175000017500000014202612274272607011553 00000000000000 #line 3 "scanner.c" #define YY_INT_ALIGNED short int /* A lexical scanner generated by flex */ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 #define YY_FLEX_SUBMINOR_VERSION 35 #if YY_FLEX_SUBMINOR_VERSION > 0 #define FLEX_BETA #endif /* First, we deal with platform-specific or compiler-specific issues. */ /* begin standard C headers. */ #include #include #include #include /* end standard C headers. */ /* flex integer type definitions */ #ifndef FLEXINT_H #define FLEXINT_H /* C99 systems have . Non-C99 systems may or may not. */ #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, * if you want the limit (max/min) macros for int types. */ #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS 1 #endif #include typedef int8_t flex_int8_t; typedef uint8_t flex_uint8_t; typedef int16_t flex_int16_t; typedef uint16_t flex_uint16_t; typedef int32_t flex_int32_t; typedef uint32_t flex_uint32_t; #else typedef signed char flex_int8_t; typedef short int flex_int16_t; typedef int flex_int32_t; typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; /* Limits of integral types. */ #ifndef INT8_MIN #define INT8_MIN (-128) #endif #ifndef INT16_MIN #define INT16_MIN (-32767-1) #endif #ifndef INT32_MIN #define INT32_MIN (-2147483647-1) #endif #ifndef INT8_MAX #define INT8_MAX (127) #endif #ifndef INT16_MAX #define INT16_MAX (32767) #endif #ifndef INT32_MAX #define INT32_MAX (2147483647) #endif #ifndef UINT8_MAX #define UINT8_MAX (255U) #endif #ifndef UINT16_MAX #define UINT16_MAX (65535U) #endif #ifndef UINT32_MAX #define UINT32_MAX (4294967295U) #endif #endif /* ! C99 */ #endif /* ! FLEXINT_H */ #ifdef __cplusplus /* The "const" storage-class-modifier is valid. */ #define YY_USE_CONST #else /* ! __cplusplus */ /* C99 requires __STDC__ to be defined as 1. */ #if defined (__STDC__) #define YY_USE_CONST #endif /* defined (__STDC__) */ #endif /* ! __cplusplus */ #ifdef YY_USE_CONST #define yyconst const #else #define yyconst #endif /* Returned upon end-of-file. */ #define YY_NULL 0 /* Promotes a possibly negative, possibly signed char to an unsigned * integer for use as an array index. If the signed char is negative, * we want to instead treat it as an 8-bit unsigned char, hence the * double cast. */ #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) /* Enter a start condition. This macro really ought to take a parameter, * but we do it the disgusting crufty way forced on us by the ()-less * definition of BEGIN. */ #define BEGIN (yy_start) = 1 + 2 * /* Translate the current start state into a value that can be later handed * to BEGIN to return to the state. The YYSTATE alias is for lex * compatibility. */ #define YY_START (((yy_start) - 1) / 2) #define YYSTATE YY_START /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ #define YY_NEW_FILE yyrestart(yyin ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #ifndef YY_BUF_SIZE #ifdef __ia64__ /* On IA-64, the buffer size is 16k, not 8k. * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. * Ditto for the __ia64__ case accordingly. */ #define YY_BUF_SIZE 32768 #else #define YY_BUF_SIZE 16384 #endif /* __ia64__ */ #endif /* The state buf must be large enough to hold one state per character in the main buffer. */ #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) #ifndef YY_TYPEDEF_YY_BUFFER_STATE #define YY_TYPEDEF_YY_BUFFER_STATE typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif extern int yyleng; extern FILE *yyin, *yyout; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 #define YY_LESS_LINENO(n) /* Return all but the first "n" matched characters back to the input stream. */ #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ *yy_cp = (yy_hold_char); \ YY_RESTORE_YY_MORE_OFFSET \ (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up yytext again */ \ } \ while ( 0 ) #define unput(c) yyunput( c, (yytext_ptr) ) #ifndef YY_TYPEDEF_YY_SIZE_T #define YY_TYPEDEF_YY_SIZE_T typedef size_t yy_size_t; #endif #ifndef YY_STRUCT_YY_BUFFER_STATE #define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state { FILE *yy_input_file; char *yy_ch_buf; /* input buffer */ char *yy_buf_pos; /* current position in input buffer */ /* Size of input buffer in bytes, not including room for EOB * characters. */ yy_size_t yy_buf_size; /* Number of characters read into yy_ch_buf, not including EOB * characters. */ int yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to * delete it. */ int yy_is_our_buffer; /* Whether this is an "interactive" input source; if so, and * if we're using stdio for input, then we want to use getc() * instead of fread(), to make sure we stop fetching input after * each newline. */ int yy_is_interactive; /* Whether we're considered to be at the beginning of a line. * If so, '^' rules will be active on the next match, otherwise * not. */ int yy_at_bol; int yy_bs_lineno; /**< The line count. */ int yy_bs_column; /**< The column count. */ /* Whether to try to fill the input buffer when we reach the * end of it. */ int yy_fill_buffer; int yy_buffer_status; #define YY_BUFFER_NEW 0 #define YY_BUFFER_NORMAL 1 /* When an EOF's been seen but there's still some text to process * then we mark the buffer as YY_EOF_PENDING, to indicate that we * shouldn't try reading from the input source any more. We might * still have a bunch of tokens to match, though, because of * possible backing-up. * * When we actually see the EOF, we change the status to "new" * (via yyrestart()), so that the user can continue scanning by * just pointing yyin at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 }; #endif /* !YY_STRUCT_YY_BUFFER_STATE */ /* Stack of input buffers. */ static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ /* We provide macros for accessing buffer states in case in the * future we want to put the buffer states in a more general * "scanner state". * * Returns the top of the stack, or NULL. */ #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ : NULL) /* Same as previous macro, but useful when we know that the buffer stack is not * NULL or when we need an lvalue. For internal use only. */ #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] /* yy_hold_char holds the character lost when yytext is formed. */ static char yy_hold_char; static int yy_n_chars; /* number of characters read into yy_ch_buf */ int yyleng; /* Points to current character in buffer. */ static char *yy_c_buf_p = (char *) 0; static int yy_init = 0; /* whether we need to initialize */ static int yy_start = 0; /* start state number */ /* Flag which is used to allow yywrap()'s to do buffer switches * instead of setting up a fresh yyin. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; void yyrestart (FILE *input_file ); void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ); void yy_delete_buffer (YY_BUFFER_STATE b ); void yy_flush_buffer (YY_BUFFER_STATE b ); void yypush_buffer_state (YY_BUFFER_STATE new_buffer ); void yypop_buffer_state (void ); static void yyensure_buffer_stack (void ); static void yy_load_buffer_state (void ); static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ); void *yyalloc (yy_size_t ); void *yyrealloc (void *,yy_size_t ); void yyfree (void * ); #define yy_new_buffer yy_create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! YY_CURRENT_BUFFER ){ \ yyensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ yy_create_buffer(yyin,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ if ( ! YY_CURRENT_BUFFER ){\ yyensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ yy_create_buffer(yyin,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ } #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) /* Begin user sect3 */ typedef unsigned char YY_CHAR; FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; typedef int yy_state_type; extern int yylineno; int yylineno = 1; extern char *yytext; #define yytext_ptr yytext static yy_state_type yy_get_previous_state (void ); static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); static int yy_get_next_buffer (void ); static void yy_fatal_error (yyconst char msg[] ); /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */ #define YY_DO_BEFORE_ACTION \ (yytext_ptr) = yy_bp; \ yyleng = (size_t) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; #define YY_NUM_RULES 14 #define YY_END_OF_BUFFER 15 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info { flex_int32_t yy_verify; flex_int32_t yy_nxt; }; static yyconst flex_int16_t yy_accept[41] = { 0, 0, 0, 15, 13, 4, 12, 7, 6, 5, 8, 11, 9, 13, 9, 13, 12, 11, 10, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 0 } ; static yyconst flex_int32_t yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 4, 4, 1, 1, 1, 5, 1, 1, 6, 7, 1, 1, 8, 1, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 12, 1, 1, 13, 1, 1, 1, 13, 13, 1, 13, 1, 13, 1, 13, 13, 1, 1, 1, 14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 15, 16, 17, 16, 18, 16, 16, 19, 20, 1, 21, 22, 1, 23, 1, 1, 1, 24, 25, 26, 1, 1, 27, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } ; static yyconst flex_int32_t yy_meta[28] = { 0, 1, 2, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1 } ; static yyconst flex_int16_t yy_base[43] = { 0, 0, 0, 56, 57, 57, 0, 57, 57, 57, 57, 19, 33, 30, 57, 34, 0, 21, 57, 37, 36, 30, 32, 21, 21, 25, 57, 27, 41, 40, 15, 14, 20, 19, 15, 14, 11, 10, 57, 57, 57, 31, 30 } ; static yyconst flex_int16_t yy_def[43] = { 0, 40, 1, 40, 40, 40, 41, 40, 40, 40, 40, 42, 40, 40, 40, 40, 41, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 0, 40, 40 } ; static yyconst flex_int16_t yy_nxt[85] = { 0, 4, 5, 4, 6, 7, 8, 9, 10, 4, 11, 12, 13, 14, 15, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 17, 17, 17, 17, 16, 18, 16, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 40, 3, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40 } ; static yyconst flex_int16_t yy_chk[85] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 17, 17, 41, 42, 41, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 25, 24, 23, 22, 21, 20, 19, 15, 13, 12, 3, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40 } ; static yy_state_type yy_last_accepting_state; static char *yy_last_accepting_cpos; extern int yy_flex_debug; int yy_flex_debug = 0; /* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */ #define REJECT reject_used_but_not_detected #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET char *yytext; #line 1 "scanner.l" #line 2 "scanner.l" /* * FILE: scanner.l * * Lexer for xshogi. * * ------------------------------------------------------------------------ * xshogi is based on XBoard -- an Xt/Athena user interface for GNU Chess. * * Original authors: Dan Sears, Chris Sears * Enhancements (Version 2.0 and following): Tim Mann * Modifications to XShogi (Version 1.0): Matthias Mutz * Enhancements to XShogi (Version 1.1): Matthias Mutz * Modified implementation of ISS mode for XShogi: Matthias Mutz * Current maintainer: Michael C. Vanier * * XShogi borrows some of its piece bitmaps from CRANES Shogi. * * Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts. * Enhancements Copyright 1992 Free Software Foundation, Inc. * Enhancements for XShogi Copyright 1993, 1994, 1995 Matthias Mutz * Copyright (c) 1999 Michael Vanier and the Free Software Foundation * * The following terms apply to Digital Equipment Corporation's copyright * interest in XBoard: * ------------------------------------------------------------------------ * All Rights Reserved * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, * provided that the above copyright notice appear in all copies and that * both that copyright notice and this permission notice appear in * supporting documentation, and that the name of Digital not be * used in advertising or publicity pertaining to distribution of the * software without specific, written prior permission. * * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS * SOFTWARE. * ------------------------------------------------------------------------ * * This file is part of GNU shogi. * * GNU shogi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation. * * GNU shogi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GNU shogi; see the file COPYING. If not, write to * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. * * ------------------------------------------------------------------------ * */ #include "parser.h" extern int lines, cols; #line 555 "scanner.c" #define INITIAL 0 #ifndef YY_NO_UNISTD_H /* Special case for "unistd.h", since it is non-ANSI. We include it way * down here because we want the user's section 1 to have been scanned first. * The user has a chance to override it with an option. */ #include #endif #ifndef YY_EXTRA_TYPE #define YY_EXTRA_TYPE void * #endif static int yy_init_globals (void ); /* Accessor methods to globals. These are made visible to non-reentrant scanners for convenience. */ int yylex_destroy (void ); int yyget_debug (void ); void yyset_debug (int debug_flag ); YY_EXTRA_TYPE yyget_extra (void ); void yyset_extra (YY_EXTRA_TYPE user_defined ); FILE *yyget_in (void ); void yyset_in (FILE * in_str ); FILE *yyget_out (void ); void yyset_out (FILE * out_str ); int yyget_leng (void ); char *yyget_text (void ); int yyget_lineno (void ); void yyset_lineno (int line_number ); /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus extern "C" int yywrap (void ); #else extern int yywrap (void ); #endif #endif static void yyunput (int c,char *buf_ptr ); #ifndef yytext_ptr static void yy_flex_strncpy (char *,yyconst char *,int ); #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * ); #endif #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (void ); #else static int input (void ); #endif #endif /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE #ifdef __ia64__ /* On IA-64, the buffer size is 16k, not 8k */ #define YY_READ_BUF_SIZE 16384 #else #define YY_READ_BUF_SIZE 8192 #endif /* __ia64__ */ #endif /* Copy whatever the last rule matched to the standard output. */ #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ { \ int c = '*'; \ size_t n; \ for ( n = 0; n < max_size && \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ if ( c == EOF && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else \ { \ errno=0; \ while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ { \ if( errno != EINTR) \ { \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ break; \ } \ errno=0; \ clearerr(yyin); \ } \ }\ \ #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */ #ifndef yyterminate #define yyterminate() return YY_NULL #endif /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR #define YY_START_STACK_INCR 25 #endif /* Report a fatal error. */ #ifndef YY_FATAL_ERROR #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) #endif /* end tables serialization structures and prototypes */ /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL #define YY_DECL_IS_OURS 1 extern int yylex (void); #define YY_DECL int yylex (void) #endif /* !YY_DECL */ /* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. */ #ifndef YY_USER_ACTION #define YY_USER_ACTION #endif /* Code executed at the end of each rule. */ #ifndef YY_BREAK #define YY_BREAK break; #endif #define YY_RULE_SETUP \ YY_USER_ACTION /** The main scanner function which does all the work. */ YY_DECL { register yy_state_type yy_current_state; register char *yy_cp, *yy_bp; register int yy_act; #line 76 "scanner.l" #line 745 "scanner.c" if ( !(yy_init) ) { (yy_init) = 1; #ifdef YY_USER_INIT YY_USER_INIT; #endif if ( ! (yy_start) ) (yy_start) = 1; /* first start state */ if ( ! yyin ) yyin = stdin; if ( ! yyout ) yyout = stdout; if ( ! YY_CURRENT_BUFFER ) { yyensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin,YY_BUF_SIZE ); } yy_load_buffer_state( ); } while ( 1 ) /* loops until end-of-file is reached */ { yy_cp = (yy_c_buf_p); /* Support of yytext. */ *yy_cp = (yy_hold_char); /* yy_bp points to the position in yy_ch_buf of the start of * the current run. */ yy_bp = yy_cp; yy_current_state = (yy_start); yy_match: do { register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 41 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; ++yy_cp; } while ( yy_base[yy_current_state] != 57 ); yy_find_action: yy_act = yy_accept[yy_current_state]; if ( yy_act == 0 ) { /* have to back up */ yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); yy_act = yy_accept[yy_current_state]; } YY_DO_BEFORE_ACTION; do_action: /* This label is used only to access EOF actions. */ switch ( yy_act ) { /* beginning of action switch */ case 0: /* must back up */ /* undo the effects of YY_DO_BEFORE_ACTION */ *yy_cp = (yy_hold_char); yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); goto yy_find_action; case 1: YY_RULE_SETUP #line 78 "scanner.l" { return WHITE_WINS; } YY_BREAK case 2: YY_RULE_SETUP #line 79 "scanner.l" { return BLACK_WINS; } YY_BREAK case 3: YY_RULE_SETUP #line 80 "scanner.l" { return DRAW; } YY_BREAK case 4: /* rule 4 can match eol */ YY_RULE_SETUP #line 82 "scanner.l" { lines++; cols = 1; } YY_BREAK case 5: YY_RULE_SETUP #line 83 "scanner.l" { cols++; return PROMOTE; } YY_BREAK case 6: YY_RULE_SETUP #line 84 "scanner.l" { cols++; return DROPS; } YY_BREAK case 7: YY_RULE_SETUP #line 85 "scanner.l" { cols++; return DROPS; } YY_BREAK case 8: YY_RULE_SETUP #line 86 "scanner.l" { cols++; return COLON; } YY_BREAK case 9: YY_RULE_SETUP #line 87 "scanner.l" { yylval.string = yytext; cols += strlen(yytext); return PIECE; } YY_BREAK case 10: YY_RULE_SETUP #line 88 "scanner.l" { yylval.string = yytext; cols += strlen(yytext); return SQUARE; } YY_BREAK case 11: YY_RULE_SETUP #line 89 "scanner.l" { yylval.string = yytext; cols += strlen(yytext); return NUMBER; } YY_BREAK case 12: YY_RULE_SETUP #line 90 "scanner.l" { yylval.string = yytext; lines++; cols = 1; return COMMENT; } YY_BREAK case 13: YY_RULE_SETUP #line 91 "scanner.l" { cols++; } YY_BREAK case 14: YY_RULE_SETUP #line 93 "scanner.l" ECHO; YY_BREAK #line 899 "scanner.c" case YY_STATE_EOF(INITIAL): yyterminate(); case YY_END_OF_BUFFER: { /* Amount of text matched not including the EOB char. */ int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; /* Undo the effects of YY_DO_BEFORE_ACTION. */ *yy_cp = (yy_hold_char); YY_RESTORE_YY_MORE_OFFSET if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) { /* We're scanning a new file or input source. It's * possible that this happened because the user * just pointed yyin at a new source and called * yylex(). If so, then we have to assure * consistency between YY_CURRENT_BUFFER and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; } /* Note that here we test for yy_c_buf_p "<=" to the position * of the first EOB in the buffer, since yy_c_buf_p will * already have been incremented past the NUL character * (since all states make transitions on EOB to the * end-of-buffer state). Contrast this with the test * in input(). */ if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) { /* This was really a NUL. */ yy_state_type yy_next_state; (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); /* Okay, we're now positioned to make the NUL * transition. We couldn't have * yy_get_previous_state() go ahead and do it * for us because it doesn't know how to deal * with the possibility of jamming (and we don't * want to build jamming into it because then it * will run more slowly). */ yy_next_state = yy_try_NUL_trans( yy_current_state ); yy_bp = (yytext_ptr) + YY_MORE_ADJ; if ( yy_next_state ) { /* Consume the NUL. */ yy_cp = ++(yy_c_buf_p); yy_current_state = yy_next_state; goto yy_match; } else { yy_cp = (yy_c_buf_p); goto yy_find_action; } } else switch ( yy_get_next_buffer( ) ) { case EOB_ACT_END_OF_FILE: { (yy_did_buffer_switch_on_eof) = 0; if ( yywrap( ) ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up * yytext, we can now set up * yy_c_buf_p so that if some total * hoser (like flex itself) wants to * call the scanner after we return the * YY_NULL, it'll still work - another * YY_NULL will get returned. */ (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; yy_act = YY_STATE_EOF(YY_START); goto do_action; } else { if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; } break; } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_match; case EOB_ACT_LAST_MATCH: (yy_c_buf_p) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_find_action; } break; } default: YY_FATAL_ERROR( "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ } /* end of yylex */ /* yy_get_next_buffer - try to read in a new buffer * * Returns a code representing an action: * EOB_ACT_LAST_MATCH - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position * EOB_ACT_END_OF_FILE - end of file */ static int yy_get_next_buffer (void) { register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; register char *source = (yytext_ptr); register int number_to_move, i; int ret_val; if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) YY_FATAL_ERROR( "fatal flex scanner internal error--end of buffer missed" ); if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) { /* Don't try to fill the buffer, so this is an EOF. */ if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) { /* We matched a single character, the EOB, so * treat this as a final EOF. */ return EOB_ACT_END_OF_FILE; } else { /* We matched some text prior to the EOB, first * process it. */ return EOB_ACT_LAST_MATCH; } } /* Try to read more data. */ /* First move last chars to start of buffer. */ number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; for ( i = 0; i < number_to_move; ++i ) *(dest++) = *(source++); if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) /* don't do the read, it's not guaranteed to return an EOF, * just force an EOF */ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; else { int num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ /* just a shorter name for the current buffer */ YY_BUFFER_STATE b = YY_CURRENT_BUFFER; int yy_c_buf_p_offset = (int) ((yy_c_buf_p) - b->yy_ch_buf); if ( b->yy_is_our_buffer ) { int new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; else b->yy_buf_size *= 2; b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ b->yy_ch_buf = 0; if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" ); (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; } if ( num_to_read > YY_READ_BUF_SIZE ) num_to_read = YY_READ_BUF_SIZE; /* Read in more data. */ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), (yy_n_chars), (size_t) num_to_read ); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } if ( (yy_n_chars) == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; yyrestart(yyin ); } else { ret_val = EOB_ACT_LAST_MATCH; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } else ret_val = EOB_ACT_CONTINUE_SCAN; if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { /* Extend the array by 50%, plus the number we really need. */ yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); } (yy_n_chars) += number_to_move; YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; return ret_val; } /* yy_get_previous_state - get the state just before the EOB char was reached */ static yy_state_type yy_get_previous_state (void) { register yy_state_type yy_current_state; register char *yy_cp; yy_current_state = (yy_start); for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) { register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 41 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; } return yy_current_state; } /* yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis * next_state = yy_try_NUL_trans( current_state ); */ static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) { register int yy_is_jam; register char *yy_cp = (yy_c_buf_p); register YY_CHAR yy_c = 1; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 41 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_is_jam = (yy_current_state == 40); return yy_is_jam ? 0 : yy_current_state; } static void yyunput (int c, register char * yy_bp ) { register char *yy_cp; yy_cp = (yy_c_buf_p); /* undo effects of setting up yytext */ *yy_cp = (yy_hold_char); if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) { /* need to shift things up to make room */ /* +2 for EOB chars. */ register int number_to_move = (yy_n_chars) + 2; register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; register char *source = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) *--dest = *--source; yy_cp += (int) (dest - source); yy_bp += (int) (dest - source); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) YY_FATAL_ERROR( "flex scanner push-back overflow" ); } *--yy_cp = (char) c; (yytext_ptr) = yy_bp; (yy_hold_char) = *yy_cp; (yy_c_buf_p) = yy_cp; } #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (void) #else static int input (void) #endif { int c; *(yy_c_buf_p) = (yy_hold_char); if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) { /* yy_c_buf_p now points to the character we want to return. * If this occurs *before* the EOB characters, then it's a * valid NUL; if not, then we've hit the end of the buffer. */ if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) /* This was really a NUL. */ *(yy_c_buf_p) = '\0'; else { /* need more input */ int offset = (yy_c_buf_p) - (yytext_ptr); ++(yy_c_buf_p); switch ( yy_get_next_buffer( ) ) { case EOB_ACT_LAST_MATCH: /* This happens because yy_g_n_b() * sees that we've accumulated a * token and flags that we need to * try matching the token before * proceeding. But for input(), * there's no matching to consider. * So convert the EOB_ACT_LAST_MATCH * to EOB_ACT_END_OF_FILE. */ /* Reset buffer status. */ yyrestart(yyin ); /*FALLTHROUGH*/ case EOB_ACT_END_OF_FILE: { if ( yywrap( ) ) return EOF; if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; #ifdef __cplusplus return yyinput(); #else return input(); #endif } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + offset; break; } } } c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ *(yy_c_buf_p) = '\0'; /* preserve yytext */ (yy_hold_char) = *++(yy_c_buf_p); return c; } #endif /* ifndef YY_NO_INPUT */ /** Immediately switch to a different input stream. * @param input_file A readable stream. * * @note This function does not reset the start condition to @c INITIAL . */ void yyrestart (FILE * input_file ) { if ( ! YY_CURRENT_BUFFER ){ yyensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin,YY_BUF_SIZE ); } yy_init_buffer(YY_CURRENT_BUFFER,input_file ); yy_load_buffer_state( ); } /** Switch to a different input buffer. * @param new_buffer The new input buffer. * */ void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) { /* TODO. We should be able to replace this entire function body * with * yypop_buffer_state(); * yypush_buffer_state(new_buffer); */ yyensure_buffer_stack (); if ( YY_CURRENT_BUFFER == new_buffer ) return; if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } YY_CURRENT_BUFFER_LVALUE = new_buffer; yy_load_buffer_state( ); /* We don't actually know whether we did this switch during * EOF (yywrap()) processing, but the only time this flag * is looked at is after yywrap() is called, so it's safe * to go ahead and always set it. */ (yy_did_buffer_switch_on_eof) = 1; } static void yy_load_buffer_state (void) { (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; (yy_hold_char) = *(yy_c_buf_p); } /** Allocate and initialize an input buffer state. * @param file A readable stream. * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. * * @return the allocated buffer state. */ YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) { YY_BUFFER_STATE b; b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_buf_size = size; /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_is_our_buffer = 1; yy_init_buffer(b,file ); return b; } /** Destroy the buffer. * @param b a buffer created with yy_create_buffer() * */ void yy_delete_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) yyfree((void *) b->yy_ch_buf ); yyfree((void *) b ); } #ifndef __cplusplus extern int isatty (int ); #endif /* __cplusplus */ /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a yyrestart() or at EOF. */ static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) { int oerrno = errno; yy_flush_buffer(b ); b->yy_input_file = file; b->yy_fill_buffer = 1; /* If b is the current buffer, then yy_init_buffer was _probably_ * called from yyrestart() or through yy_get_next_buffer. * In that case, we don't want to reset the lineno or column. */ if (b != YY_CURRENT_BUFFER){ b->yy_bs_lineno = 1; b->yy_bs_column = 0; } b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; errno = oerrno; } /** Discard all buffered characters. On the next scan, YY_INPUT will be called. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. * */ void yy_flush_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; b->yy_n_chars = 0; /* We always need two end-of-buffer characters. The first causes * a transition to the end-of-buffer state. The second causes * a jam in that state. */ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; b->yy_buf_pos = &b->yy_ch_buf[0]; b->yy_at_bol = 1; b->yy_buffer_status = YY_BUFFER_NEW; if ( b == YY_CURRENT_BUFFER ) yy_load_buffer_state( ); } /** Pushes the new state onto the stack. The new state becomes * the current state. This function will allocate the stack * if necessary. * @param new_buffer The new state. * */ void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) { if (new_buffer == NULL) return; yyensure_buffer_stack(); /* This block is copied from yy_switch_to_buffer. */ if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } /* Only push if top exists. Otherwise, replace top. */ if (YY_CURRENT_BUFFER) (yy_buffer_stack_top)++; YY_CURRENT_BUFFER_LVALUE = new_buffer; /* copied from yy_switch_to_buffer. */ yy_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } /** Removes and deletes the top of the stack, if present. * The next element becomes the new top. * */ void yypop_buffer_state (void) { if (!YY_CURRENT_BUFFER) return; yy_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; if ((yy_buffer_stack_top) > 0) --(yy_buffer_stack_top); if (YY_CURRENT_BUFFER) { yy_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } } /* Allocates the stack if it does not exist. * Guarantees space for at least one push. */ static void yyensure_buffer_stack (void) { int num_to_alloc; if (!(yy_buffer_stack)) { /* First allocation is just for 2 elements, since we don't know if this * scanner will even need a stack. We use 2 instead of 1 to avoid an * immediate realloc on the next call. */ num_to_alloc = 1; (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc (num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; (yy_buffer_stack_top) = 0; return; } if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ /* Increase the buffer to prepare for a possible push. */ int grow_size = 8 /* arbitrary grow size */; num_to_alloc = (yy_buffer_stack_max) + grow_size; (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc ((yy_buffer_stack), num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); /* zero only the new slots.*/ memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; } } /** Setup the input buffer state to scan directly from a user-specified character buffer. * @param base the character buffer * @param size the size in bytes of the character buffer * * @return the newly allocated buffer state object. */ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) { YY_BUFFER_STATE b; if ( size < 2 || base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) /* They forgot to leave room for the EOB's. */ return 0; b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ b->yy_buf_pos = b->yy_ch_buf = base; b->yy_is_our_buffer = 0; b->yy_input_file = 0; b->yy_n_chars = b->yy_buf_size; b->yy_is_interactive = 0; b->yy_at_bol = 1; b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; yy_switch_to_buffer(b ); return b; } /** Setup the input buffer state to scan a string. The next call to yylex() will * scan from a @e copy of @a str. * @param yystr a NUL-terminated string to scan * * @return the newly allocated buffer state object. * @note If you want to scan bytes that may contain NUL values, then use * yy_scan_bytes() instead. */ YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) { return yy_scan_bytes(yystr,strlen(yystr) ); } /** Setup the input buffer state to scan the given bytes. The next call to yylex() will * scan from a @e copy of @a bytes. * @param yybytes the byte buffer to scan * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object. */ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len ) { YY_BUFFER_STATE b; char *buf; yy_size_t n; int i; /* Get memory for full buffer, including space for trailing EOB's. */ n = _yybytes_len + 2; buf = (char *) yyalloc(n ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); for ( i = 0; i < _yybytes_len; ++i ) buf[i] = yybytes[i]; buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; b = yy_scan_buffer(buf,n ); if ( ! b ) YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); /* It's okay to grow etc. this buffer, and we should throw it * away when we're done. */ b->yy_is_our_buffer = 1; return b; } #ifndef YY_EXIT_FAILURE #define YY_EXIT_FAILURE 2 #endif static void yy_fatal_error (yyconst char* msg ) { (void) fprintf( stderr, "%s\n", msg ); exit( YY_EXIT_FAILURE ); } /* Redefine yyless() so it works in section 3 code. */ #undef yyless #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ yytext[yyleng] = (yy_hold_char); \ (yy_c_buf_p) = yytext + yyless_macro_arg; \ (yy_hold_char) = *(yy_c_buf_p); \ *(yy_c_buf_p) = '\0'; \ yyleng = yyless_macro_arg; \ } \ while ( 0 ) /* Accessor methods (get/set functions) to struct members. */ /** Get the current line number. * */ int yyget_lineno (void) { return yylineno; } /** Get the input stream. * */ FILE *yyget_in (void) { return yyin; } /** Get the output stream. * */ FILE *yyget_out (void) { return yyout; } /** Get the length of the current token. * */ int yyget_leng (void) { return yyleng; } /** Get the current token. * */ char *yyget_text (void) { return yytext; } /** Set the current line number. * @param line_number * */ void yyset_lineno (int line_number ) { yylineno = line_number; } /** Set the input stream. This does not discard the current * input buffer. * @param in_str A readable stream. * * @see yy_switch_to_buffer */ void yyset_in (FILE * in_str ) { yyin = in_str ; } void yyset_out (FILE * out_str ) { yyout = out_str ; } int yyget_debug (void) { return yy_flex_debug; } void yyset_debug (int bdebug ) { yy_flex_debug = bdebug ; } static int yy_init_globals (void) { /* Initialization is the same as for the non-reentrant scanner. * This function is called from yylex_destroy(), so don't allocate here. */ (yy_buffer_stack) = 0; (yy_buffer_stack_top) = 0; (yy_buffer_stack_max) = 0; (yy_c_buf_p) = (char *) 0; (yy_init) = 0; (yy_start) = 0; /* Defined in main.c */ #ifdef YY_STDINIT yyin = stdin; yyout = stdout; #else yyin = (FILE *) 0; yyout = (FILE *) 0; #endif /* For future reference: Set errno on error, since we are called by * yylex_init() */ return 0; } /* yylex_destroy is for both reentrant and non-reentrant scanners. */ int yylex_destroy (void) { /* Pop the buffer stack, destroying each element. */ while(YY_CURRENT_BUFFER){ yy_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; yypop_buffer_state(); } /* Destroy the stack itself. */ yyfree((yy_buffer_stack) ); (yy_buffer_stack) = NULL; /* Reset the globals. This is important in a non-reentrant scanner so the next time * yylex() is called, initialization will occur. */ yy_init_globals( ); return 0; } /* * Internal utility routines. */ #ifndef yytext_ptr static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) { register int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; } #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * s ) { register int n; for ( n = 0; s[n]; ++n ) ; return n; } #endif void *yyalloc (yy_size_t size ) { return (void *) malloc( size ); } void *yyrealloc (void * ptr, yy_size_t size ) { /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter * because both ANSI C and C++ allow castless assignment from * any pointer type to void*, and deal with argument conversions * as though doing an assignment. */ return (void *) realloc( (char *) ptr, size ); } void yyfree (void * ptr ) { free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ } #define YYTABLES_NAME "yytables" #line 93 "scanner.l" /* * This is to avoid having to link in a lex library; * flex also allows the "%option noyywrap" option but * I don't think that's generally true of other lex * implementations. */ int yywrap() { return 1; } xshogi-1.4.2/configure0000755000175000017500000066443412274274132011674 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for xshogi 1.4.2. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org and $0: https://savannah.gnu.org/bugs/?group=gnushogi about $0: your system, including any error possibly output before $0: this message. Then install a modern shell, or manually $0: run the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='xshogi' PACKAGE_TARNAME='xshogi' PACKAGE_VERSION='1.4.2' PACKAGE_STRING='xshogi 1.4.2' PACKAGE_BUGREPORT='https://savannah.gnu.org/bugs/?group=gnushogi' PACKAGE_URL='' ac_unique_file="xshogi.c" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS SECOND_HOST FIRST_HOST SECOND_SHOGI_PROGRAM FIRST_SHOGI_PROGRAM OPT LIBOBJS EGREP GREP CEXTRAFLAGS WARNINGS X_EXTRA_LIBS X_LIBS X_PRE_LIBS X_CFLAGS CPP XMKMF LEXLIB LEX_OUTPUT_ROOT LEX YFLAGS YACC am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_dependency_tracking with_x with_top_part_bitmaps with_first_shogi_program with_second_shogi_program with_first_host with_second_host ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS YACC YFLAGS XMKMF CPP' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures xshogi 1.4.2 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/xshogi] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names X features: --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of xshogi 1.4.2:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-x use the X Window System --with-top-part-bitmaps use top part of Kanji bitmaps only --with-first-shogi-program=PROGNAME use PROGNAME as the first shogi program (default: gnushogi) --with-second-shogi-program=PROGNAME use PROGNAME as the second shogi program (default: gnushogi) --with-first-host=HOSTNAME use HOSTNAME as the machine on which the first shogi program runs (default: localhost) --with-second-host=HOSTNAME use HOSTNAME as the machine on which the second shogi program runs (default: localhost) Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory YACC The `Yet Another Compiler Compiler' implementation to use. Defaults to the first program found out of: `bison -y', `byacc', `yacc'. YFLAGS The list of arguments that will be passed by default to $YACC. This script will default YFLAGS to the empty string to avoid a default value of `-d' given by some make applications. XMKMF Path to xmkmf, Makefile generator for X Window System CPP C preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF xshogi configure 1.4.2 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ( $as_echo "## ------------------------------------------------------------ ## ## Report this to https://savannah.gnu.org/bugs/?group=gnushogi ## ## ------------------------------------------------------------ ##" ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- # Tests whether TYPE exists after having included INCLUDES, setting cache # variable VAR accordingly. ac_fn_c_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof ($2)) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof (($2))) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else eval "$3=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES # -------------------------------------------- # Tries to find the compile-time value of EXPR in a program that includes # INCLUDES, setting VAR accordingly. Returns whether the value could be # computed ac_fn_c_compute_int () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) >= 0)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_lo=0 ac_mid=0 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=$ac_mid; break else as_fn_arith $ac_mid + 1 && ac_lo=$as_val if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) < 0)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=-1 ac_mid=-1 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) >= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_lo=$ac_mid; break else as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=$ac_mid else as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in #(( ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; '') ac_retval=1 ;; esac else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 static long int longval () { return $2; } static unsigned long int ulongval () { return $2; } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (($2) < 0) { long int i = longval (); if (i != ($2)) return 1; fprintf (f, "%ld", i); } else { unsigned long int i = ulongval (); if (i != ($2)) return 1; fprintf (f, "%lu", i); } /* Do not output a trailing newline, as this causes \r\n confusion on some platforms. */ return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : echo >>conftest.val; read $3 config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by xshogi $as_me 1.4.2, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.14a' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='xshogi' VERSION='1.4.2' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi ac_config_headers="$ac_config_headers config.h" ########## { $as_echo "$as_me:${as_lineno-$LINENO}: C compiler" >&5 $as_echo "$as_me: C compiler" >&6;} ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } if ${am_cv_prog_cc_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 $as_echo "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ########## { $as_echo "$as_me:${as_lineno-$LINENO}: yacc/bison, lex/flex, and install" >&5 $as_echo "$as_me: yacc/bison, lex/flex, and install" >&6;} for ac_prog in 'bison -y' byacc do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_YACC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$YACC"; then ac_cv_prog_YACC="$YACC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_YACC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi YACC=$ac_cv_prog_YACC if test -n "$YACC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 $as_echo "$YACC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$YACC" && break done test -n "$YACC" || YACC="yacc" for ac_prog in flex lex do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_LEX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LEX"; then ac_cv_prog_LEX="$LEX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LEX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LEX=$ac_cv_prog_LEX if test -n "$LEX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 $as_echo "$LEX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$LEX" && break done test -n "$LEX" || LEX=":" if test "x$LEX" != "x:"; then cat >conftest.l <<_ACEOF %% a { ECHO; } b { REJECT; } c { yymore (); } d { yyless (1); } e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ yyless ((input () != 0)); } f { unput (yytext[0]); } . { BEGIN INITIAL; } %% #ifdef YYTEXT_POINTER extern char *yytext; #endif int main (void) { return ! yylex () + ! yywrap (); } _ACEOF { { ac_try="$LEX conftest.l" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$LEX conftest.l") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 $as_echo_n "checking lex output file root... " >&6; } if ${ac_cv_prog_lex_root+:} false; then : $as_echo_n "(cached) " >&6 else if test -f lex.yy.c; then ac_cv_prog_lex_root=lex.yy elif test -f lexyy.c; then ac_cv_prog_lex_root=lexyy else as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 $as_echo "$ac_cv_prog_lex_root" >&6; } LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root if test -z "${LEXLIB+set}"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 $as_echo_n "checking lex library... " >&6; } if ${ac_cv_lib_lex+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_LIBS=$LIBS ac_cv_lib_lex='none needed' for ac_lib in '' -lfl -ll; do LIBS="$ac_lib $ac_save_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ `cat $LEX_OUTPUT_ROOT.c` _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_lex=$ac_lib fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext test "$ac_cv_lib_lex" != 'none needed' && break done LIBS=$ac_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 $as_echo "$ac_cv_lib_lex" >&6; } test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 $as_echo_n "checking whether yytext is a pointer... " >&6; } if ${ac_cv_prog_lex_yytext_pointer+:} false; then : $as_echo_n "(cached) " >&6 else # POSIX says lex can declare yytext either as a pointer or an array; the # default is implementation-dependent. Figure out which it is, since # not all implementations provide the %pointer and %array declarations. ac_cv_prog_lex_yytext_pointer=no ac_save_LIBS=$LIBS LIBS="$LEXLIB $ac_save_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define YYTEXT_POINTER 1 `cat $LEX_OUTPUT_ROOT.c` _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_prog_lex_yytext_pointer=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } if test $ac_cv_prog_lex_yytext_pointer = yes; then $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h fi rm -f conftest.l $LEX_OUTPUT_ROOT.c fi ########## { $as_echo "$as_me:${as_lineno-$LINENO}: X" >&5 $as_echo "$as_me: X" >&6;} ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 $as_echo_n "checking for X... " >&6; } # Check whether --with-x was given. if test "${with_x+set}" = set; then : withval=$with_x; fi # $have_x is `yes', `no', `disabled', or empty when we do not yet know. if test "x$with_x" = xno; then # The user explicitly disabled X. have_x=disabled else case $x_includes,$x_libraries in #( *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : $as_echo_n "(cached) " >&6 else # One or both of the vars are not set, and there is no cached value. ac_x_includes=no ac_x_libraries=no rm -f -r conftest.dir if mkdir conftest.dir; then cd conftest.dir cat >Imakefile <<'_ACEOF' incroot: @echo incroot='${INCROOT}' usrlibdir: @echo usrlibdir='${USRLIBDIR}' libdir: @echo libdir='${LIBDIR}' _ACEOF if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. for ac_var in incroot usrlibdir libdir; do eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" done # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. for ac_extension in a so sl dylib la dll; do if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && test -f "$ac_im_libdir/libX11.$ac_extension"; then ac_im_usrlibdir=$ac_im_libdir; break fi done # Screen out bogus values from the imake configuration. They are # bogus both because they are the default anyway, and because # using them would break gcc on systems where it needs fixed includes. case $ac_im_incroot in /usr/include) ac_x_includes= ;; *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; esac case $ac_im_usrlibdir in /usr/lib | /usr/lib64 | /lib | /lib64) ;; *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; esac fi cd .. rm -f -r conftest.dir fi # Standard set of common directories for X headers. # Check X11 before X11Rn because it is often a symlink to the current release. ac_x_header_dirs=' /usr/X11/include /usr/X11R7/include /usr/X11R6/include /usr/X11R5/include /usr/X11R4/include /usr/include/X11 /usr/include/X11R7 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 /usr/local/X11/include /usr/local/X11R7/include /usr/local/X11R6/include /usr/local/X11R5/include /usr/local/X11R4/include /usr/local/include/X11 /usr/local/include/X11R7 /usr/local/include/X11R6 /usr/local/include/X11R5 /usr/local/include/X11R4 /usr/X386/include /usr/x386/include /usr/XFree86/include/X11 /usr/include /usr/local/include /usr/unsupported/include /usr/athena/include /usr/local/x11r5/include /usr/lpp/Xamples/include /usr/openwin/include /usr/openwin/share/include' if test "$ac_x_includes" = no; then # Guess where to find include files, by looking for Xlib.h. # First, try using that file with no special directory specified. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # We can compile using X headers with no special include directory. ac_x_includes= else for ac_dir in $ac_x_header_dirs; do if test -r "$ac_dir/X11/Xlib.h"; then ac_x_includes=$ac_dir break fi done fi rm -f conftest.err conftest.i conftest.$ac_ext fi # $ac_x_includes = no if test "$ac_x_libraries" = no; then # Check for the libraries. # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { XrmInitialize () ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : LIBS=$ac_save_LIBS # We can link X programs with no special library path. ac_x_libraries= else LIBS=$ac_save_LIBS for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` do # Don't even attempt the hair of trying to link an X program! for ac_extension in a so sl dylib la dll; do if test -r "$ac_dir/libX11.$ac_extension"; then ac_x_libraries=$ac_dir break 2 fi done done fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi # $ac_x_libraries = no case $ac_x_includes,$ac_x_libraries in #( no,* | *,no | *\'*) # Didn't find X, or a directory has "'" in its name. ac_cv_have_x="have_x=no";; #( *) # Record where we found X for the cache. ac_cv_have_x="have_x=yes\ ac_x_includes='$ac_x_includes'\ ac_x_libraries='$ac_x_libraries'" esac fi ;; #( *) have_x=yes;; esac eval "$ac_cv_have_x" fi # $with_x != no if test "$have_x" != yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 $as_echo "$have_x" >&6; } no_x=yes else # If each of the values was on the command line, it overrides each guess. test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries # Update the cache value to reflect the command line values. ac_cv_have_x="have_x=yes\ ac_x_includes='$x_includes'\ ac_x_libraries='$x_libraries'" { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } fi if test "$no_x" = yes; then # Not all programs may use this symbol, but it does not hurt to define it. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= else if test -n "$x_includes"; then X_CFLAGS="$X_CFLAGS -I$x_includes" fi # It would also be nice to do this for all -L options, not just this one. if test -n "$x_libraries"; then X_LIBS="$X_LIBS -L$x_libraries" # For Solaris; some versions of Sun CC require a space after -R and # others require no space. Words are not sufficient . . . . { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 $as_echo_n "checking whether -R must be followed by a space... " >&6; } ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" ac_xsave_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } X_LIBS="$X_LIBS -R$x_libraries" else LIBS="$ac_xsave_LIBS -R $x_libraries" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } X_LIBS="$X_LIBS -R $x_libraries" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 $as_echo "neither works" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_c_werror_flag=$ac_xsave_c_werror_flag LIBS=$ac_xsave_LIBS fi # Check for system-dependent libraries X programs must link with. # Do this before checking for the system-independent R6 libraries # (-lICE), since we may need -lsocket or whatever for X linking. if test "$ISC" = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" else # Martyn Johnson says this is needed for Ultrix, if the X # libraries were built with DECnet support. And Karl Berry says # the Alpha needs dnet_stub (dnet does not exist). ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char XOpenDisplay (); int main () { return XOpenDisplay (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dnet_dnet_ntoa=yes else ac_cv_lib_dnet_dnet_ntoa=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" fi if test $ac_cv_lib_dnet_dnet_ntoa = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet_stub $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dnet_stub_dnet_ntoa=yes else ac_cv_lib_dnet_stub_dnet_ntoa=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" fi fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_xsave_LIBS" # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, # to get the SysV transport functions. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) # needs -lnsl. # The nsl library prevents programs from opening the X display # on Irix 5.2, according to T.E. Dickey. # The functions gethostbyname, getservbyname, and inet_addr are # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" if test "x$ac_cv_func_gethostbyname" = xyes; then : fi if test $ac_cv_func_gethostbyname = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } if ${ac_cv_lib_nsl_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_nsl_gethostbyname=yes else ac_cv_lib_nsl_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" fi if test $ac_cv_lib_nsl_gethostbyname = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } if ${ac_cv_lib_bsd_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbsd $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bsd_gethostbyname=yes else ac_cv_lib_bsd_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" fi fi fi # lieder@skyler.mavd.honeywell.com says without -lsocket, # socket/setsockopt and other routines are undefined under SCO ODT # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary # on later versions), says Simon Leinen: it contains gethostby* # variants that don't use the name server (or something). -lsocket # must be given before -lnsl if both are needed. We assume that # if connect needs -lnsl, so does gethostbyname. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" if test "x$ac_cv_func_connect" = xyes; then : fi if test $ac_cv_func_connect = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 $as_echo_n "checking for connect in -lsocket... " >&6; } if ${ac_cv_lib_socket_connect+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $X_EXTRA_LIBS $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char connect (); int main () { return connect (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_socket_connect=yes else ac_cv_lib_socket_connect=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 $as_echo "$ac_cv_lib_socket_connect" >&6; } if test "x$ac_cv_lib_socket_connect" = xyes; then : X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" fi fi # Guillermo Gomez says -lposix is necessary on A/UX. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" if test "x$ac_cv_func_remove" = xyes; then : fi if test $ac_cv_func_remove = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 $as_echo_n "checking for remove in -lposix... " >&6; } if ${ac_cv_lib_posix_remove+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lposix $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char remove (); int main () { return remove (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_posix_remove=yes else ac_cv_lib_posix_remove=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 $as_echo "$ac_cv_lib_posix_remove" >&6; } if test "x$ac_cv_lib_posix_remove" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" fi fi # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" if test "x$ac_cv_func_shmat" = xyes; then : fi if test $ac_cv_func_shmat = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 $as_echo_n "checking for shmat in -lipc... " >&6; } if ${ac_cv_lib_ipc_shmat+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lipc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shmat (); int main () { return shmat (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ipc_shmat=yes else ac_cv_lib_ipc_shmat=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } if test "x$ac_cv_lib_ipc_shmat" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" fi fi fi # Check for libraries that X11R6 Xt/Xaw programs need. ac_save_LDFLAGS=$LDFLAGS test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to # check for ICE first), but we must link in the order -lSM -lICE or # we get undefined symbols. So assume we have SM if we have ICE. # These have to be linked with before -lX11, unlike the other # libraries we check for below, so use a different variable. # John Interrante, Karl Berry { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lICE $X_EXTRA_LIBS $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char IceConnectionNumber (); int main () { return IceConnectionNumber (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ICE_IceConnectionNumber=yes else ac_cv_lib_ICE_IceConnectionNumber=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" fi LDFLAGS=$ac_save_LDFLAGS fi ########## # C compiler warnings. if [ $ac_cv_c_compiler_gnu = yes ] then WARNINGS="-Wall -Wno-implicit-int -Wstrict-prototypes" CEXTRAFLAGS="-fsigned-char -funroll-loops" else # Who knows what warnings your compiler uses? WARNINGS= CEXTRAFLAGS= fi ########## { $as_echo "$as_me:${as_lineno-$LINENO}: header files" >&5 $as_echo "$as_me: header files" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } if ${ac_cv_header_sys_wait_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #ifndef WEXITSTATUS # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) #endif #ifndef WIFEXITED # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif int main () { int s; wait (&s); s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_sys_wait_h=yes else ac_cv_header_sys_wait_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 $as_echo "$ac_cv_header_sys_wait_h" >&6; } if test $ac_cv_header_sys_wait_h = yes; then $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in fcntl.h stdlib.h string.h sys/ioctl.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in sys/time.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } if ${ac_cv_header_time+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { if ((struct tm *) 0) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_time=yes else ac_cv_header_time=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 $as_echo "$ac_cv_header_time" >&6; } if test $ac_cv_header_time = yes; then $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h fi ########## { $as_echo "$as_me:${as_lineno-$LINENO}: typedefs" >&5 $as_echo "$as_me: typedefs" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } if ${ac_cv_c_const+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __cplusplus /* Ultrix mips cc rejects this sort of thing. */ typedef int charset[2]; const charset cs = { 0, 0 }; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this sort of thing. */ char tx; char *t = &tx; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_const=yes else ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 $as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then $as_echo "#define const /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } if ${ac_cv_header_stdbool_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifndef bool "error: bool is not defined" #endif #ifndef false "error: false is not defined" #endif #if false "error: false is not 0" #endif #ifndef true "error: true is not defined" #endif #if true != 1 "error: true is not 1" #endif #ifndef __bool_true_false_are_defined "error: __bool_true_false_are_defined is not defined" #endif struct s { _Bool s: 1; _Bool t; } s; char a[true == 1 ? 1 : -1]; char b[false == 0 ? 1 : -1]; char c[__bool_true_false_are_defined == 1 ? 1 : -1]; char d[(bool) 0.5 == true ? 1 : -1]; /* See body of main program for 'e'. */ char f[(_Bool) 0.0 == false ? 1 : -1]; char g[true]; char h[sizeof (_Bool)]; char i[sizeof s.t]; enum { j = false, k = true, l = false * true, m = true * 256 }; /* The following fails for HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ _Bool n[m]; char o[sizeof n == m * sizeof n[0] ? 1 : -1]; char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; /* Catch a bug in an HP-UX C compiler. See http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html */ _Bool q = true; _Bool *pq = &q; int main () { bool e = &s; *pq |= q; *pq |= ! q; /* Refer to every declared value, to avoid compiler optimizations. */ return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + !m + !n + !o + !p + !q + !pq); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdbool_h=yes else ac_cv_header_stdbool_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 $as_echo "$ac_cv_header_stdbool_h" >&6; } ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" if test "x$ac_cv_type__Bool" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE__BOOL 1 _ACEOF fi if test $ac_cv_header_stdbool_h = yes; then $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 $as_echo_n "checking for inline... " >&6; } if ${ac_cv_c_inline+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; static $ac_kw foo_t static_foo () {return 0; } $ac_kw foo_t foo () {return 0; } #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_inline=$ac_kw fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext test "$ac_cv_c_inline" != no && break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 $as_echo "$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; *) case $ac_cv_c_inline in no) ac_val=;; *) ac_val=$ac_cv_c_inline;; esac cat >>confdefs.h <<_ACEOF #ifndef __cplusplus #define inline $ac_val #endif _ACEOF ;; esac ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" if test "x$ac_cv_type_pid_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define pid_t int _ACEOF fi ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" if test "x$ac_cv_type_size_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned int _ACEOF fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } if ${ac_cv_header_time+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { if ((struct tm *) 0) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_time=yes else ac_cv_header_time=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 $as_echo "$ac_cv_header_time" >&6; } if test $ac_cv_header_time = yes; then $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } if ${ac_cv_struct_tm+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { struct tm tm; int *p = &tm.tm_sec; return !p; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_struct_tm=time.h else ac_cv_struct_tm=sys/time.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 $as_echo "$ac_cv_struct_tm" >&6; } if test $ac_cv_struct_tm = sys/time.h; then $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h fi ########## { $as_echo "$as_me:${as_lineno-$LINENO}: compiler characteristics" >&5 $as_echo "$as_me: compiler characteristics" >&6;} # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 $as_echo_n "checking size of long... " >&6; } if ${ac_cv_sizeof_long+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : else if test "$ac_cv_type_long" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 $as_echo "$ac_cv_sizeof_long" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_LONG $ac_cv_sizeof_long _ACEOF ########## { $as_echo "$as_me:${as_lineno-$LINENO}: library functions" >&5 $as_echo "$as_me: library functions" >&6;} for ac_header in vfork.h do : ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" if test "x$ac_cv_header_vfork_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_VFORK_H 1 _ACEOF fi done for ac_func in fork vfork do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_func_fork" = xyes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 $as_echo_n "checking for working fork... " >&6; } if ${ac_cv_func_fork_works+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_fork_works=cross else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { /* By Ruediger Kuhlmann. */ return fork () < 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_fork_works=yes else ac_cv_func_fork_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 $as_echo "$ac_cv_func_fork_works" >&6; } else ac_cv_func_fork_works=$ac_cv_func_fork fi if test "x$ac_cv_func_fork_works" = xcross; then case $host in *-*-amigaos* | *-*-msdosdjgpp*) # Override, as these systems have only a dummy fork() stub ac_cv_func_fork_works=no ;; *) ac_cv_func_fork_works=yes ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} fi ac_cv_func_vfork_works=$ac_cv_func_vfork if test "x$ac_cv_func_vfork" = xyes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 $as_echo_n "checking for working vfork... " >&6; } if ${ac_cv_func_vfork_works+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_vfork_works=cross else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Thanks to Paul Eggert for this test. */ $ac_includes_default #include #ifdef HAVE_VFORK_H # include #endif /* On some sparc systems, changes by the child to local and incoming argument registers are propagated back to the parent. The compiler is told about this with #include , but some compilers (e.g. gcc -O) don't grok . Test for this by using a static variable whose address is put into a register that is clobbered by the vfork. */ static void #ifdef __cplusplus sparc_address_test (int arg) # else sparc_address_test (arg) int arg; #endif { static pid_t child; if (!child) { child = vfork (); if (child < 0) { perror ("vfork"); _exit(2); } if (!child) { arg = getpid(); write(-1, "", 0); _exit (arg); } } } int main () { pid_t parent = getpid (); pid_t child; sparc_address_test (0); child = vfork (); if (child == 0) { /* Here is another test for sparc vfork register problems. This test uses lots of local variables, at least as many local variables as main has allocated so far including compiler temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should reuse the register of parent for one of the local variables, since it will think that parent can't possibly be used any more in this routine. Assigning to the local variable will thus munge parent in the parent process. */ pid_t p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); /* Convince the compiler that p..p7 are live; otherwise, it might use the same hardware register for all 8 local variables. */ if (p != p1 || p != p2 || p != p3 || p != p4 || p != p5 || p != p6 || p != p7) _exit(1); /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent from child file descriptors. If the child closes a descriptor before it execs or exits, this munges the parent's descriptor as well. Test for this by closing stdout in the child. */ _exit(close(fileno(stdout)) != 0); } else { int status; struct stat st; while (wait(&status) != child) ; return ( /* Was there some problem with vforking? */ child < 0 /* Did the child fail? (This shouldn't happen.) */ || status /* Did the vfork/compiler bug occur? */ || parent != getpid() /* Did the file descriptor bug occur? */ || fstat(fileno(stdout), &st) != 0 ); } } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_vfork_works=yes else ac_cv_func_vfork_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 $as_echo "$ac_cv_func_vfork_works" >&6; } fi; if test "x$ac_cv_func_fork_works" = xcross; then ac_cv_func_vfork_works=$ac_cv_func_vfork { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} fi if test "x$ac_cv_func_vfork_works" = xyes; then $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h else $as_echo "#define vfork fork" >>confdefs.h fi if test "x$ac_cv_func_fork_works" = xyes; then $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h fi if test $ac_cv_c_compiler_gnu = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 $as_echo_n "checking whether $CC needs -traditional... " >&6; } if ${ac_cv_prog_gcc_traditional+:} false; then : $as_echo_n "(cached) " >&6 else ac_pattern="Autoconf.*'x'" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Autoconf TIOCGETP _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : ac_cv_prog_gcc_traditional=yes else ac_cv_prog_gcc_traditional=no fi rm -f conftest* if test $ac_cv_prog_gcc_traditional = no; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Autoconf TCGETA _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : ac_cv_prog_gcc_traditional=yes fi rm -f conftest* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 $as_echo "$ac_cv_prog_gcc_traditional" >&6; } if test $ac_cv_prog_gcc_traditional = yes; then CC="$CC -traditional" fi fi for ac_header in stdlib.h do : ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" if test "x$ac_cv_header_stdlib_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STDLIB_H 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 $as_echo_n "checking for GNU libc compatible malloc... " >&6; } if ${ac_cv_func_malloc_0_nonnull+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_malloc_0_nonnull=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined STDC_HEADERS || defined HAVE_STDLIB_H # include #else char *malloc (); #endif int main () { return ! malloc (0); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_malloc_0_nonnull=yes else ac_cv_func_malloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } if test $ac_cv_func_malloc_0_nonnull = yes; then : $as_echo "#define HAVE_MALLOC 1" >>confdefs.h else $as_echo "#define HAVE_MALLOC 0" >>confdefs.h case " $LIBOBJS " in *" malloc.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; esac $as_echo "#define malloc rpl_malloc" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 $as_echo_n "checking return type of signal handlers... " >&6; } if ${ac_cv_type_signal+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { return *(signal (0, 0)) (0) == 1; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_type_signal=int else ac_cv_type_signal=void fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 $as_echo "$ac_cv_type_signal" >&6; } cat >>confdefs.h <<_ACEOF #define RETSIGTYPE $ac_cv_type_signal _ACEOF for ac_func in dup2 gethostname gettimeofday strcasecmp do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in strchr strerror strrchr strstr strtol do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done # # Set various user-definable options. # OPT= FIRST_SHOGI_PROGRAM=gnushogi SECOND_SHOGI_PROGRAM=gnushogi FIRST_HOST=localhost SECOND_HOST=localhost # Check whether --with-top-part-bitmaps was given. if test "${with_top_part_bitmaps+set}" = set; then : withval=$with_top_part_bitmaps; OPT=-DTOP_PART_BITMAPS fi # Check whether --with-first-shogi-program was given. if test "${with_first_shogi_program+set}" = set; then : withval=$with_first_shogi_program; FIRST_SHOGI_PROGRAM=$withval fi # Check whether --with-second-shogi-program was given. if test "${with_second_shogi_program+set}" = set; then : withval=$with_second_shogi_program; SECOND_SHOGI_PROGRAM=$withval fi # Check whether --with-first-host was given. if test "${with_first_host+set}" = set; then : withval=$with_first_host; FIRST_HOST=$withval fi # Check whether --with-second-host was given. if test "${with_second_host+set}" = set; then : withval=$with_second_host; SECOND_HOST=$withval fi ########## ac_config_files="$ac_config_files Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by xshogi $as_me 1.4.2, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ xshogi config.status 1.4.2 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi xshogi-1.4.2/missing0000755000175000017500000001533012274272444011351 00000000000000#! /bin/sh # Common wrapper for a few potentially missing GNU programs. scriptversion=2013-10-28.13; # UTC # Copyright (C) 1996-2013 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try '$0 --help' for more information" exit 1 fi case $1 in --is-lightweight) # Used by our autoconf macros to check whether the available missing # script is modern enough. exit 0 ;; --run) # Back-compat with the calling convention used by older automake. shift ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due to PROGRAM being missing or too old. Options: -h, --help display this help and exit -v, --version output version information and exit Supported PROGRAM values: aclocal autoconf autoheader autom4te automake makeinfo bison yacc flex lex help2man Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and 'g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: unknown '$1' option" echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; esac # Run the given program, remember its exit status. "$@"; st=$? # If it succeeded, we are done. test $st -eq 0 && exit 0 # Also exit now if we it failed (or wasn't found), and '--version' was # passed; such an option is passed most likely to detect whether the # program is present and works. case $2 in --version|--help) exit $st;; esac # Exit code 63 means version mismatch. This often happens when the user # tries to use an ancient version of a tool on a file that requires a # minimum version. if test $st -eq 63; then msg="probably too old" elif test $st -eq 127; then # Program was missing. msg="missing on your system" else # Program was found and executed, but failed. Give up. exit $st fi perl_URL=http://www.perl.org/ flex_URL=http://flex.sourceforge.net/ gnu_software_URL=http://www.gnu.org/software program_details () { case $1 in aclocal|automake) echo "The '$1' program is part of the GNU Automake package:" echo "<$gnu_software_URL/automake>" echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/autoconf>" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; autoconf|autom4te|autoheader) echo "The '$1' program is part of the GNU Autoconf package:" echo "<$gnu_software_URL/autoconf/>" echo "It also requires GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; esac } give_advice () { # Normalize program name to check for. normalized_program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` printf '%s\n' "'$1' is $msg." configure_deps="'configure.ac' or m4 files included by 'configure.ac'" case $normalized_program in autoconf*) echo "You should only need it if you modified 'configure.ac'," echo "or m4 files included by it." program_details 'autoconf' ;; autoheader*) echo "You should only need it if you modified 'acconfig.h' or" echo "$configure_deps." program_details 'autoheader' ;; automake*) echo "You should only need it if you modified 'Makefile.am' or" echo "$configure_deps." program_details 'automake' ;; aclocal*) echo "You should only need it if you modified 'acinclude.m4' or" echo "$configure_deps." program_details 'aclocal' ;; autom4te*) echo "You might have modified some maintainer files that require" echo "the 'autom4te' program to be rebuilt." program_details 'autom4te' ;; bison*|yacc*) echo "You should only need it if you modified a '.y' file." echo "You may want to install the GNU Bison package:" echo "<$gnu_software_URL/bison/>" ;; lex*|flex*) echo "You should only need it if you modified a '.l' file." echo "You may want to install the Fast Lexical Analyzer package:" echo "<$flex_URL>" ;; help2man*) echo "You should only need it if you modified a dependency" \ "of a man page." echo "You may want to install the GNU Help2man package:" echo "<$gnu_software_URL/help2man/>" ;; makeinfo*) echo "You should only need it if you modified a '.texi' file, or" echo "any other file indirectly affecting the aspect of the manual." echo "You might want to install the Texinfo package:" echo "<$gnu_software_URL/texinfo/>" echo "The spurious makeinfo call might also be the consequence of" echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" echo "want to install GNU make:" echo "<$gnu_software_URL/make/>" ;; *) echo "You might have modified some files without having the proper" echo "tools for further handling them. Check the 'README' file, it" echo "often tells you about the needed prerequisites for installing" echo "this package. You may also peek at any GNU archive site, in" echo "case some other package contains this missing '$1' program." ;; esac } give_advice "$1" | sed -e '1s/^/WARNING: /' \ -e '2,$s/^/ /' >&2 # Propagate the correct exit status (expected to be 127 for a program # not found, 63 for a program that failed due to version mismatch). exit $st # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: xshogi-1.4.2/new_western_bitmaps/0000755000175000017500000000000012274274137014110 500000000000000xshogi-1.4.2/new_western_bitmaps/silverW.xbm0000644000175000017500000000523112274270516016171 00000000000000#define silverW_width 64 #define silverW_height 64 static char silverW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xf0,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x8e,0x3c,0x00, 0x00,0x00,0x00,0x00,0xe0,0x81,0xc0,0x03,0x00,0x00,0x00,0x00,0x1e,0x00,0x01, 0x3c,0x00,0x00,0x00,0xe0,0x01,0xc0,0x01,0xc0,0x03,0x00,0x00,0x1c,0x00,0x3c, 0x1e,0x00,0x1c,0x00,0x00,0x04,0xc0,0x03,0xe0,0x01,0x10,0x00,0x00,0x06,0x38, 0x00,0x00,0x0e,0x60,0x00,0x00,0x8a,0x07,0x00,0x00,0xf0,0x40,0x00,0x00,0x7a, 0x00,0x00,0x00,0x00,0x4f,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x70,0x00,0x00, 0x12,0x00,0xc0,0x03,0x00,0x80,0x00,0x00,0x11,0x00,0x20,0x00,0x00,0x80,0x00, 0x00,0x11,0x00,0x20,0x00,0x00,0x80,0x00,0x00,0x09,0x00,0xc0,0x01,0x00,0x80, 0x00,0x00,0x09,0x00,0x00,0x02,0x00,0x80,0x00,0x00,0x09,0x00,0x00,0x02,0x00, 0x80,0x00,0x00,0x09,0x00,0xe0,0x01,0x00,0x80,0x00,0x00,0x09,0x00,0x00,0x00, 0x00,0x00,0x01,0x80,0x08,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x08,0x00,0x00, 0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00, 0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x08,0x80,0x00,0x08,0x00,0x01,0x80,0x04, 0x10,0x80,0x00,0x04,0x00,0x01,0x80,0x04,0x20,0x80,0x00,0x02,0x00,0x02,0x40, 0x04,0x40,0x80,0x00,0x01,0x00,0x02,0x40,0x02,0x80,0x80,0x80,0x00,0x00,0x02, 0x40,0x02,0x00,0x81,0x40,0x00,0x00,0x02,0x40,0x02,0x00,0x82,0x20,0x00,0x00, 0x02,0x40,0x02,0x00,0x84,0x10,0x00,0x00,0x02,0x40,0x02,0x00,0x88,0x08,0x00, 0x00,0x04,0x20,0x02,0x00,0x90,0x04,0x00,0x00,0x04,0x20,0x02,0x00,0xa0,0x02, 0x00,0x00,0x04,0x20,0x01,0x00,0xc0,0x01,0x00,0x00,0x04,0x20,0x01,0x00,0x80, 0x00,0x00,0x00,0x04,0x20,0x01,0x00,0x40,0x01,0x00,0x00,0x04,0x20,0x01,0x00, 0x20,0x02,0x00,0x00,0x08,0x20,0x01,0x00,0x10,0x04,0x00,0x00,0x08,0x10,0x01, 0x00,0x08,0x08,0x00,0x00,0x08,0x10,0x01,0x00,0x04,0x10,0x00,0x00,0x08,0x90, 0x00,0x00,0x02,0x20,0x00,0x00,0x08,0x90,0x00,0x00,0x01,0x40,0x00,0x00,0x08, 0x90,0x00,0x80,0x00,0x80,0x00,0x00,0x10,0x90,0x00,0x40,0x00,0x00,0x01,0x00, 0x10,0x90,0x00,0x20,0x00,0x00,0x02,0x00,0x10,0x88,0x00,0x10,0x00,0x00,0x04, 0x00,0x10,0x48,0x00,0x08,0x00,0x00,0x08,0x00,0x10,0x48,0x00,0x00,0x00,0x00, 0x00,0x00,0x10,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00, 0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00, 0x00,0x00,0x00,0x00,0x20,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24, 0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x40, 0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x30,0x00,0x00,0x00,0x00,0x00,0x00, 0x60,0xe0,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/silverRW.xbm0000644000175000017500000000523412274270516016316 00000000000000#define silverRW_width 64 #define silverRW_height 64 static char silverRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x06,0x00,0x00,0x00,0x00,0x00, 0x00,0x08,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x12,0x00,0x00,0x00,0x00, 0x00,0x00,0x20,0xe4,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x24,0x00,0x00,0x00, 0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00, 0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x44, 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x10,0x00,0x00,0x10,0x00,0x20, 0x48,0x00,0x20,0x00,0x00,0x08,0x00,0x20,0x48,0x00,0x40,0x00,0x00,0x04,0x00, 0x20,0x48,0x00,0x80,0x00,0x00,0x02,0x00,0x20,0x48,0x00,0x00,0x01,0x00,0x01, 0x00,0x10,0x48,0x00,0x00,0x02,0x80,0x00,0x00,0x10,0x88,0x00,0x00,0x04,0x40, 0x00,0x00,0x10,0x90,0x00,0x00,0x08,0x20,0x00,0x00,0x10,0x90,0x00,0x00,0x10, 0x10,0x00,0x00,0x10,0x90,0x00,0x00,0x20,0x08,0x00,0x00,0x10,0x90,0x00,0x00, 0x40,0x04,0x00,0x00,0x08,0x90,0x00,0x00,0x80,0x02,0x00,0x00,0x08,0x10,0x01, 0x00,0x00,0x01,0x00,0x00,0x08,0x10,0x01,0x00,0x80,0x03,0x00,0x00,0x08,0x20, 0x01,0x00,0x40,0x05,0x00,0x00,0x08,0x20,0x01,0x00,0x20,0x09,0x00,0x00,0x08, 0x20,0x01,0x00,0x10,0x11,0x00,0x00,0x04,0x20,0x01,0x00,0x08,0x21,0x00,0x00, 0x04,0x20,0x01,0x00,0x04,0x41,0x00,0x00,0x04,0x20,0x02,0x00,0x02,0x81,0x00, 0x00,0x04,0x20,0x02,0x00,0x01,0x01,0x01,0x00,0x04,0x40,0x02,0x80,0x00,0x01, 0x02,0x00,0x04,0x40,0x02,0x40,0x00,0x01,0x04,0x00,0x02,0x40,0x02,0x20,0x00, 0x01,0x08,0x00,0x02,0x40,0x02,0x10,0x00,0x01,0x10,0x00,0x02,0x40,0x02,0x00, 0x00,0x00,0x00,0x00,0x02,0x40,0x04,0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04, 0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80, 0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x80,0x07,0x00,0x00,0x01, 0x80,0x04,0x00,0x40,0x00,0x00,0x00,0x01,0x80,0x08,0x00,0x40,0x00,0x00,0x00, 0x01,0x80,0x08,0x00,0x80,0x03,0x00,0x00,0x01,0x00,0x09,0x00,0x00,0x04,0x00, 0x00,0x01,0x00,0x09,0x00,0x00,0x04,0x00,0x80,0x00,0x00,0x09,0x00,0xc0,0x03, 0x00,0x80,0x00,0x00,0x09,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x09,0x00,0x00, 0x00,0x00,0x80,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x14,0x00, 0x00,0x00,0x00,0x80,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x10, 0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x0f,0x00,0x00, 0x80,0x07,0x00,0x00,0xf0,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x0e,0x00,0x00, 0x00,0x00,0xc0,0x03,0xe0,0x01,0x00,0x00,0x00,0x00,0x00,0x3c,0x1e,0x00,0x00, 0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/bishopPW.xbm0000644000175000017500000000523412274270516016274 00000000000000#define bishopPW_width 64 #define bishopPW_height 64 static char bishopPW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xf0,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x8e,0x3c,0x00, 0x00,0x00,0x00,0x00,0xe0,0x81,0xc0,0x03,0x00,0x00,0x00,0x00,0x1e,0x00,0x01, 0x3c,0x00,0x00,0x00,0xe0,0x01,0xc0,0x01,0xc0,0x03,0x00,0x00,0x1c,0x00,0x3c, 0x1e,0x00,0x1c,0x00,0x00,0x04,0xc0,0x03,0xe0,0x01,0x10,0x00,0x00,0x06,0x38, 0x00,0x00,0x0e,0x60,0x00,0x00,0x8a,0x07,0x00,0x00,0xf0,0x40,0x00,0x00,0x7a, 0x00,0xe0,0x03,0x00,0x4f,0x00,0x00,0x12,0x00,0x10,0x04,0x00,0x70,0x00,0x00, 0x12,0x00,0xe8,0x09,0x00,0x80,0x00,0x00,0x11,0x00,0x24,0x12,0x00,0x80,0x00, 0x00,0x11,0x00,0x24,0x12,0x00,0x80,0x00,0x00,0x09,0x00,0xe4,0x11,0x00,0x80, 0x00,0x00,0x09,0x00,0x24,0x12,0x00,0x80,0x00,0x00,0x09,0x00,0x24,0x12,0x00, 0x80,0x00,0x00,0x09,0x00,0xe8,0x09,0x00,0x80,0x00,0x00,0x09,0x00,0x10,0x04, 0x00,0x00,0x01,0x80,0x08,0x00,0xe0,0x03,0x00,0x00,0x01,0x80,0x08,0x00,0x00, 0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00, 0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x78,0x80,0x00,0x0f,0x00,0x01,0x80,0x04, 0x18,0x80,0x00,0x0c,0x00,0x01,0x80,0x04,0x28,0x80,0x00,0x0a,0x00,0x02,0x40, 0x04,0x48,0x80,0x00,0x09,0x00,0x02,0x40,0x02,0x80,0x80,0x80,0x00,0x00,0x02, 0x40,0x02,0x00,0x81,0x40,0x00,0x00,0x02,0x40,0x02,0x00,0x82,0x20,0x00,0x00, 0x02,0x40,0x02,0x00,0x84,0x10,0x00,0x00,0x02,0x40,0x02,0x00,0x88,0x08,0x00, 0x00,0x04,0x20,0x02,0x00,0x90,0x04,0x00,0x00,0x04,0x20,0x02,0x00,0xa0,0x02, 0x00,0x00,0x04,0x20,0x01,0x00,0xc0,0x01,0x00,0x00,0x04,0x20,0x01,0xf8,0xff, 0xff,0x0f,0x00,0x04,0x20,0x01,0x00,0xc0,0x01,0x00,0x00,0x04,0x20,0x01,0x00, 0xa0,0x02,0x00,0x00,0x08,0x20,0x01,0x00,0x90,0x04,0x00,0x00,0x08,0x10,0x01, 0x00,0x88,0x08,0x00,0x00,0x08,0x10,0x01,0x00,0x84,0x10,0x00,0x00,0x08,0x90, 0x00,0x00,0x82,0x20,0x00,0x00,0x08,0x90,0x00,0x00,0x81,0x40,0x00,0x00,0x08, 0x90,0x00,0x80,0x80,0x80,0x00,0x00,0x10,0x90,0x00,0x48,0x80,0x00,0x09,0x00, 0x10,0x90,0x00,0x28,0x80,0x00,0x0a,0x00,0x10,0x88,0x00,0x18,0x80,0x00,0x0c, 0x00,0x10,0x48,0x00,0x78,0x80,0x00,0x0f,0x00,0x10,0x48,0x00,0x00,0x00,0x00, 0x00,0x00,0x10,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00, 0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00, 0x00,0x00,0x00,0x00,0x20,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24, 0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x40, 0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x30,0x00,0x00,0x00,0x00,0x00,0x00, 0x60,0xe0,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/goldRW.xbm0000644000175000017500000000522612274270516015740 00000000000000#define goldRW_width 64 #define goldRW_height 64 static char goldRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x06,0x00,0x00,0x00,0x00,0x00, 0x00,0x08,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x12,0x00,0x00,0x00,0x00, 0x00,0x00,0x20,0xe4,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x24,0x00,0x00,0x00, 0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00, 0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x44, 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x20, 0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x01,0x00,0x00, 0x20,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x01,0x00, 0x00,0x10,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x10,0x88,0x00,0x00,0x00,0x01, 0x00,0x00,0x10,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x10,0x90,0x00,0x00,0x00, 0x01,0x00,0x00,0x10,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x10,0x90,0x00,0x00, 0x00,0x01,0x00,0x00,0x08,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x08,0x10,0x01, 0xf0,0xff,0xff,0x1f,0x00,0x08,0x10,0x01,0x00,0x80,0x03,0x00,0x00,0x08,0x20, 0x01,0x00,0x40,0x05,0x00,0x00,0x08,0x20,0x01,0x00,0x20,0x09,0x00,0x00,0x08, 0x20,0x01,0x00,0x10,0x11,0x00,0x00,0x04,0x20,0x01,0x00,0x08,0x21,0x00,0x00, 0x04,0x20,0x01,0x00,0x04,0x41,0x00,0x00,0x04,0x20,0x02,0x00,0x02,0x81,0x00, 0x00,0x04,0x20,0x02,0x00,0x01,0x01,0x01,0x00,0x04,0x40,0x02,0x80,0x00,0x01, 0x02,0x00,0x04,0x40,0x02,0x40,0x00,0x01,0x04,0x00,0x02,0x40,0x02,0x20,0x00, 0x01,0x08,0x00,0x02,0x40,0x02,0x10,0x00,0x01,0x10,0x00,0x02,0x40,0x02,0x00, 0x00,0x00,0x00,0x00,0x02,0x40,0x04,0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04, 0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80, 0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00,0xc0,0x03,0x00,0x00,0x01, 0x80,0x04,0x00,0x40,0x04,0x00,0x00,0x01,0x80,0x08,0x00,0x40,0x04,0x00,0x00, 0x01,0x80,0x08,0x00,0xc0,0x05,0x00,0x00,0x01,0x00,0x09,0x00,0x00,0x04,0x00, 0x00,0x01,0x00,0x09,0x00,0x00,0x04,0x00,0x80,0x00,0x00,0x09,0x00,0xc0,0x03, 0x00,0x80,0x00,0x00,0x09,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x09,0x00,0x00, 0x00,0x00,0x80,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x14,0x00, 0x00,0x00,0x00,0x80,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x10, 0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x0f,0x00,0x00, 0x80,0x07,0x00,0x00,0xf0,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x0e,0x00,0x00, 0x00,0x00,0xc0,0x03,0xe0,0x01,0x00,0x00,0x00,0x00,0x00,0x3c,0x1e,0x00,0x00, 0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/knightRW.xbm0000644000175000017500000000634112274270516016276 00000000000000#define knightRW_width 64 #define knightRW_height 64 static unsigned char knightRW_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x01, 0x00, 0x80, 0x00, 0x20, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x20, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x08, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x80, 0x10, 0x00, 0x00, 0x01, 0x00, 0x10, 0x00, 0x80, 0x10, 0x00, 0x80, 0x02, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x80, 0x02, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x40, 0x04, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x20, 0x08, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x10, 0x10, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x0f, 0xe0, 0x00, 0x10, 0x00, 0x00, 0x21, 0xf0, 0x00, 0x00, 0x0f, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x28, 0x00, 0x40, 0x04, 0x00, 0x08, 0x00, 0x00, 0x48, 0x00, 0xc0, 0x04, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0xc0, 0x05, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0x40, 0x05, 0x00, 0x04, 0x00, 0x00, 0x60, 0x00, 0x40, 0x07, 0x00, 0x04, 0x00, 0x00, 0xc0, 0x00, 0x40, 0x06, 0x00, 0x06, 0x00, 0x00, 0x00, 0x07, 0x40, 0x04, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; xshogi-1.4.2/new_western_bitmaps/kingRW.xbm0000644000175000017500000000522612274270516015743 00000000000000#define kingRW_width 64 #define kingRW_height 64 static char kingRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x06,0x00,0x00,0x00,0x00,0x00, 0x00,0x08,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x12,0x00,0x00,0x00,0x00, 0x00,0x00,0x20,0xe4,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x24,0x00,0x00,0x00, 0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00, 0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x44, 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x10,0x00,0x01,0x10,0x00,0x20, 0x48,0x00,0x20,0x00,0x01,0x08,0x00,0x20,0x48,0x00,0x40,0x00,0x01,0x04,0x00, 0x20,0x48,0x00,0x80,0x00,0x01,0x02,0x00,0x20,0x48,0x00,0x00,0x01,0x01,0x01, 0x00,0x10,0x48,0x00,0x00,0x02,0x81,0x00,0x00,0x10,0x88,0x00,0x00,0x04,0x41, 0x00,0x00,0x10,0x90,0x00,0x00,0x08,0x21,0x00,0x00,0x10,0x90,0x00,0x00,0x10, 0x11,0x00,0x00,0x10,0x90,0x00,0x00,0x20,0x09,0x00,0x00,0x10,0x90,0x00,0x00, 0x40,0x05,0x00,0x00,0x08,0x90,0x00,0x00,0x80,0x03,0x00,0x00,0x08,0x10,0x01, 0xf0,0xff,0xff,0x1f,0x00,0x08,0x10,0x01,0x00,0x80,0x03,0x00,0x00,0x08,0x20, 0x01,0x00,0x40,0x05,0x00,0x00,0x08,0x20,0x01,0x00,0x20,0x09,0x00,0x00,0x08, 0x20,0x01,0x00,0x10,0x11,0x00,0x00,0x04,0x20,0x01,0x00,0x08,0x21,0x00,0x00, 0x04,0x20,0x01,0x00,0x04,0x41,0x00,0x00,0x04,0x20,0x02,0x00,0x02,0x81,0x00, 0x00,0x04,0x20,0x02,0x00,0x01,0x01,0x01,0x00,0x04,0x40,0x02,0x80,0x00,0x01, 0x02,0x00,0x04,0x40,0x02,0x40,0x00,0x01,0x04,0x00,0x02,0x40,0x02,0x20,0x00, 0x01,0x08,0x00,0x02,0x40,0x02,0x10,0x00,0x01,0x10,0x00,0x02,0x40,0x02,0x00, 0x00,0x00,0x00,0x00,0x02,0x40,0x04,0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04, 0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80, 0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x40,0x04,0x00,0x00,0x01, 0x80,0x04,0x00,0x80,0x04,0x00,0x00,0x01,0x80,0x08,0x00,0x00,0x05,0x00,0x00, 0x01,0x80,0x08,0x00,0x00,0x06,0x00,0x00,0x01,0x00,0x09,0x00,0x00,0x05,0x00, 0x00,0x01,0x00,0x09,0x00,0x80,0x04,0x00,0x80,0x00,0x00,0x09,0x00,0x40,0x04, 0x00,0x80,0x00,0x00,0x09,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x09,0x00,0x00, 0x00,0x00,0x80,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x14,0x00, 0x00,0x00,0x00,0x80,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x10, 0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x0f,0x00,0x00, 0x80,0x07,0x00,0x00,0xf0,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x0e,0x00,0x00, 0x00,0x00,0xc0,0x03,0xe0,0x01,0x00,0x00,0x00,0x00,0x00,0x3c,0x1e,0x00,0x00, 0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/knightPRW.xbm0000644000175000017500000000634412274270516016421 00000000000000#define knightPRW_width 64 #define knightPRW_height 64 static unsigned char knightPRW_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x10, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x01, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x01, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x01, 0x00, 0x80, 0x00, 0x20, 0x02, 0x00, 0x00, 0x01, 0x00, 0x80, 0x00, 0x20, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x20, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x08, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x80, 0x08, 0xf0, 0xff, 0xff, 0x1f, 0x20, 0x00, 0x80, 0x08, 0x00, 0x80, 0x03, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x40, 0x05, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x20, 0x09, 0x00, 0x20, 0x00, 0x80, 0x08, 0x00, 0x10, 0x11, 0x00, 0x20, 0x00, 0x80, 0x10, 0x00, 0x08, 0x21, 0x00, 0x10, 0x00, 0x80, 0x10, 0x00, 0x04, 0x41, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x02, 0x81, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 0x01, 0x01, 0x01, 0x10, 0x00, 0x00, 0x11, 0x80, 0x00, 0x01, 0x02, 0x10, 0x00, 0x00, 0x11, 0x40, 0x00, 0x01, 0x04, 0x10, 0x00, 0x00, 0x11, 0x20, 0x00, 0x01, 0x08, 0x10, 0x00, 0x00, 0x21, 0x10, 0x00, 0x01, 0x10, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x22, 0x00, 0xc0, 0x07, 0x00, 0x08, 0x00, 0x00, 0x24, 0x00, 0x20, 0x08, 0x00, 0x08, 0x00, 0x00, 0x28, 0x00, 0x50, 0x14, 0x00, 0x08, 0x00, 0x00, 0x48, 0x00, 0xc8, 0x24, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0xc8, 0x25, 0x00, 0x04, 0x00, 0x00, 0x50, 0x00, 0x48, 0x25, 0x00, 0x04, 0x00, 0x00, 0x60, 0x00, 0x48, 0x27, 0x00, 0x04, 0x00, 0x00, 0xc0, 0x00, 0x48, 0x26, 0x00, 0x06, 0x00, 0x00, 0x00, 0x07, 0x50, 0x14, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x38, 0x20, 0x08, 0x38, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xc1, 0x07, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; xshogi-1.4.2/new_western_bitmaps/bishopRW.xbm0000644000175000017500000000523412274270516016276 00000000000000#define bishopRW_width 64 #define bishopRW_height 64 static char bishopRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x06,0x00,0x00,0x00,0x00,0x00, 0x00,0x08,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x12,0x00,0x00,0x00,0x00, 0x00,0x00,0x20,0xe4,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x24,0x00,0x00,0x00, 0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00, 0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x44, 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0xf0,0x00,0x00,0x1e,0x00,0x20, 0x48,0x00,0x30,0x00,0x00,0x18,0x00,0x20,0x48,0x00,0x50,0x00,0x00,0x14,0x00, 0x20,0x48,0x00,0x90,0x00,0x00,0x12,0x00,0x20,0x48,0x00,0x00,0x01,0x00,0x01, 0x00,0x10,0x48,0x00,0x00,0x02,0x80,0x00,0x00,0x10,0x88,0x00,0x00,0x04,0x40, 0x00,0x00,0x10,0x90,0x00,0x00,0x08,0x20,0x00,0x00,0x10,0x90,0x00,0x00,0x10, 0x10,0x00,0x00,0x10,0x90,0x00,0x00,0x20,0x08,0x00,0x00,0x10,0x90,0x00,0x00, 0x40,0x04,0x00,0x00,0x08,0x90,0x00,0x00,0x80,0x02,0x00,0x00,0x08,0x10,0x01, 0x00,0x00,0x01,0x00,0x00,0x08,0x10,0x01,0x00,0x80,0x02,0x00,0x00,0x08,0x20, 0x01,0x00,0x40,0x04,0x00,0x00,0x08,0x20,0x01,0x00,0x20,0x08,0x00,0x00,0x08, 0x20,0x01,0x00,0x10,0x10,0x00,0x00,0x04,0x20,0x01,0x00,0x08,0x20,0x00,0x00, 0x04,0x20,0x01,0x00,0x04,0x40,0x00,0x00,0x04,0x20,0x02,0x00,0x02,0x80,0x00, 0x00,0x04,0x20,0x02,0x00,0x01,0x00,0x01,0x00,0x04,0x40,0x02,0x90,0x00,0x00, 0x12,0x00,0x04,0x40,0x02,0x50,0x00,0x00,0x14,0x00,0x02,0x40,0x02,0x30,0x00, 0x00,0x18,0x00,0x02,0x40,0x02,0xf0,0x00,0x00,0x1e,0x00,0x02,0x40,0x02,0x00, 0x00,0x00,0x00,0x00,0x02,0x40,0x04,0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04, 0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80, 0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x80,0x07,0x00,0x00,0x01, 0x80,0x04,0x00,0x40,0x04,0x00,0x00,0x01,0x80,0x08,0x00,0x40,0x04,0x00,0x00, 0x01,0x80,0x08,0x00,0x80,0x07,0x00,0x00,0x01,0x00,0x09,0x00,0x40,0x04,0x00, 0x00,0x01,0x00,0x09,0x00,0x40,0x04,0x00,0x80,0x00,0x00,0x09,0x00,0x80,0x07, 0x00,0x80,0x00,0x00,0x09,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x09,0x00,0x00, 0x00,0x00,0x80,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x14,0x00, 0x00,0x00,0x00,0x80,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x10, 0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x0f,0x00,0x00, 0x80,0x07,0x00,0x00,0xf0,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x0e,0x00,0x00, 0x00,0x00,0xc0,0x03,0xe0,0x01,0x00,0x00,0x00,0x00,0x00,0x3c,0x1e,0x00,0x00, 0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/knightW.xbm0000644000175000017500000000633612274270516016160 00000000000000#define knightW_width 64 #define knightW_height 64 static unsigned char knightW_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4f, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x80, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xc0, 0x81, 0x03, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x38, 0x0e, 0x1c, 0x00, 0x00, 0x00, 0x08, 0x00, 0x07, 0x70, 0x60, 0x00, 0x00, 0x00, 0x0c, 0xe0, 0x00, 0x80, 0x83, 0x00, 0x00, 0x00, 0x14, 0x1c, 0x00, 0x00, 0x1c, 0x01, 0x00, 0x00, 0x94, 0x03, 0x20, 0x02, 0xe0, 0x01, 0x00, 0x00, 0x64, 0x00, 0x60, 0x02, 0x00, 0x03, 0x00, 0x00, 0x22, 0x00, 0xe0, 0x02, 0x00, 0x02, 0x00, 0x00, 0x22, 0x00, 0xa0, 0x02, 0x00, 0x02, 0x00, 0x00, 0x22, 0x00, 0xa0, 0x03, 0x00, 0x02, 0x00, 0x00, 0x22, 0x00, 0x20, 0x03, 0x00, 0x02, 0x00, 0x00, 0x12, 0x00, 0x20, 0x02, 0x00, 0x04, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x11, 0xf0, 0x00, 0x00, 0x0f, 0x04, 0x00, 0x00, 0x09, 0x00, 0x07, 0xf0, 0x00, 0x08, 0x00, 0x80, 0x08, 0x00, 0x08, 0x08, 0x00, 0x08, 0x00, 0x80, 0x08, 0x00, 0x10, 0x04, 0x00, 0x08, 0x00, 0x80, 0x08, 0x00, 0x20, 0x02, 0x00, 0x08, 0x00, 0x80, 0x08, 0x00, 0x40, 0x01, 0x00, 0x08, 0x00, 0x80, 0x08, 0x00, 0x40, 0x01, 0x00, 0x08, 0x00, 0x80, 0x08, 0x00, 0x80, 0x00, 0x00, 0x08, 0x00, 0x40, 0x04, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x40, 0x04, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x40, 0x04, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x40, 0x04, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x40, 0x04, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x40, 0x04, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x10, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x10, 0x01, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x10, 0x01, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x10, 0x01, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x10, 0x01, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; xshogi-1.4.2/new_western_bitmaps/goldW.xbm0000644000175000017500000000522312274270516015613 00000000000000#define goldW_width 64 #define goldW_height 64 static char goldW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xf0,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x8e,0x3c,0x00, 0x00,0x00,0x00,0x00,0xe0,0x81,0xc0,0x03,0x00,0x00,0x00,0x00,0x1e,0x00,0x01, 0x3c,0x00,0x00,0x00,0xe0,0x01,0xc0,0x01,0xc0,0x03,0x00,0x00,0x1c,0x00,0x3c, 0x1e,0x00,0x1c,0x00,0x00,0x04,0xc0,0x03,0xe0,0x01,0x10,0x00,0x00,0x06,0x38, 0x00,0x00,0x0e,0x60,0x00,0x00,0x8a,0x07,0x00,0x00,0xf0,0x40,0x00,0x00,0x7a, 0x00,0x00,0x00,0x00,0x4f,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x70,0x00,0x00, 0x12,0x00,0xc0,0x03,0x00,0x80,0x00,0x00,0x11,0x00,0x20,0x00,0x00,0x80,0x00, 0x00,0x11,0x00,0x20,0x00,0x00,0x80,0x00,0x00,0x09,0x00,0xa0,0x03,0x00,0x80, 0x00,0x00,0x09,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x09,0x00,0x20,0x02,0x00, 0x80,0x00,0x00,0x09,0x00,0xc0,0x03,0x00,0x80,0x00,0x00,0x09,0x00,0x00,0x00, 0x00,0x00,0x01,0x80,0x08,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x08,0x00,0x00, 0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00, 0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x08,0x80,0x00,0x08,0x00,0x01,0x80,0x04, 0x10,0x80,0x00,0x04,0x00,0x01,0x80,0x04,0x20,0x80,0x00,0x02,0x00,0x02,0x40, 0x04,0x40,0x80,0x00,0x01,0x00,0x02,0x40,0x02,0x80,0x80,0x80,0x00,0x00,0x02, 0x40,0x02,0x00,0x81,0x40,0x00,0x00,0x02,0x40,0x02,0x00,0x82,0x20,0x00,0x00, 0x02,0x40,0x02,0x00,0x84,0x10,0x00,0x00,0x02,0x40,0x02,0x00,0x88,0x08,0x00, 0x00,0x04,0x20,0x02,0x00,0x90,0x04,0x00,0x00,0x04,0x20,0x02,0x00,0xa0,0x02, 0x00,0x00,0x04,0x20,0x01,0x00,0xc0,0x01,0x00,0x00,0x04,0x20,0x01,0xf8,0xff, 0xff,0x0f,0x00,0x04,0x20,0x01,0x00,0x80,0x00,0x00,0x00,0x04,0x20,0x01,0x00, 0x80,0x00,0x00,0x00,0x08,0x20,0x01,0x00,0x80,0x00,0x00,0x00,0x08,0x10,0x01, 0x00,0x80,0x00,0x00,0x00,0x08,0x10,0x01,0x00,0x80,0x00,0x00,0x00,0x08,0x90, 0x00,0x00,0x80,0x00,0x00,0x00,0x08,0x90,0x00,0x00,0x80,0x00,0x00,0x00,0x08, 0x90,0x00,0x00,0x80,0x00,0x00,0x00,0x10,0x90,0x00,0x00,0x80,0x00,0x00,0x00, 0x10,0x90,0x00,0x00,0x80,0x00,0x00,0x00,0x10,0x88,0x00,0x00,0x80,0x00,0x00, 0x00,0x10,0x48,0x00,0x00,0x80,0x00,0x00,0x00,0x10,0x48,0x00,0x00,0x00,0x00, 0x00,0x00,0x10,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00, 0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00, 0x00,0x00,0x00,0x00,0x20,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24, 0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x40, 0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x30,0x00,0x00,0x00,0x00,0x00,0x00, 0x60,0xe0,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/pawnRW.xbm0000644000175000017500000000522612274270516015760 00000000000000#define pawnRW_width 64 #define pawnRW_height 64 static char pawnRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf8,0xff,0xff,0xff,0xff,0xff, 0x3f,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x28,0x00,0x00,0x00,0x00, 0x00,0x80,0x00,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x90,0xff,0xff,0xff, 0xff,0xff,0xff,0x01,0x10,0x01,0x00,0x00,0x00,0x00,0x00,0x01,0x10,0x01,0x00, 0x00,0x00,0x00,0x00,0x01,0x10,0x01,0x00,0x00,0x00,0x00,0x00,0x01,0x10,0x02, 0x00,0x00,0x00,0x00,0x80,0x00,0x10,0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20, 0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x80,0x00, 0x20,0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x80, 0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20,0x04,0x00,0x00,0x00,0x00, 0x40,0x00,0x20,0x04,0x00,0x00,0x00,0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x00, 0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x00,0x00,0x40,0x00,0x40,0x04,0x00,0x00, 0x00,0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x00,0x00,0x40,0x00,0x40,0x04,0x00, 0x00,0x00,0x00,0x40,0x00,0x40,0x08,0x00,0x00,0x00,0x00,0x20,0x00,0x80,0x08, 0x00,0x00,0x01,0x00,0x20,0x00,0x80,0x08,0x00,0x00,0x01,0x00,0x20,0x00,0x80, 0x08,0x00,0x00,0x01,0x00,0x20,0x00,0x80,0x08,0x00,0x00,0x01,0x00,0x20,0x00, 0x80,0x08,0x00,0x00,0x01,0x00,0x20,0x00,0x80,0x10,0x00,0x00,0x01,0x00,0x10, 0x00,0x80,0x10,0x00,0x00,0x01,0x00,0x10,0x00,0x00,0x11,0x00,0x00,0x01,0x00, 0x10,0x00,0x00,0x11,0x00,0x00,0x01,0x00,0x10,0x00,0x00,0x11,0x00,0x00,0x01, 0x00,0x10,0x00,0x00,0x11,0x00,0x00,0x01,0x00,0x10,0x00,0x00,0x11,0x00,0x00, 0x01,0x00,0x10,0x00,0x00,0x21,0x00,0x00,0x01,0x00,0x08,0x00,0x00,0x22,0x00, 0x00,0x00,0x00,0x08,0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x22, 0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x08,0x00,0x00, 0x24,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x28,0x00,0x00,0x04,0x00,0x08,0x00, 0x00,0x48,0x00,0x00,0x04,0x00,0x04,0x00,0x00,0x50,0x00,0x00,0x04,0x00,0x04, 0x00,0x00,0x50,0x00,0x80,0x07,0x00,0x04,0x00,0x00,0x60,0x00,0x40,0x04,0x00, 0x04,0x00,0x00,0xc0,0x00,0x40,0x04,0x00,0x06,0x00,0x00,0x00,0x07,0x80,0x07, 0xc0,0x01,0x00,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0xc0,0x01, 0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0e,0xe0,0x00,0x00,0x00,0x00,0x00,0x00, 0x70,0x1c,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x03,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/lancePW.xbm0000644000175000017500000000523112274270516016067 00000000000000#define lancePW_width 64 #define lancePW_height 64 static char lancePW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x0e,0x00,0x00,0x00,0x00,0x00,0xf0,0x80, 0x70,0x00,0x00,0x00,0x00,0x00,0x0f,0xc0,0x81,0x03,0x00,0x00,0x00,0xf0,0x00, 0x38,0x0e,0x1c,0x00,0x00,0x00,0x08,0x00,0x07,0x70,0x60,0x00,0x00,0x00,0x0c, 0xe0,0xe0,0x83,0x83,0x00,0x00,0x00,0x14,0x1c,0x10,0x04,0x1c,0x01,0x00,0x00, 0x94,0x03,0x28,0x08,0xe0,0x01,0x00,0x00,0x64,0x00,0x24,0x10,0x00,0x03,0x00, 0x00,0x22,0x00,0x24,0x10,0x00,0x02,0x00,0x00,0x22,0x00,0x24,0x10,0x00,0x02, 0x00,0x00,0x22,0x00,0x24,0x10,0x00,0x02,0x00,0x00,0x22,0x00,0x24,0x10,0x00, 0x02,0x00,0x00,0x12,0x00,0xe8,0x0b,0x00,0x04,0x00,0x00,0x12,0x00,0x10,0x04, 0x00,0x04,0x00,0x00,0x11,0x00,0xe0,0x03,0x00,0x04,0x00,0x00,0x11,0x00,0x00, 0x00,0x00,0x04,0x00,0x00,0x11,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00, 0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x08,0x80,0x00,0x08,0x04,0x00,0x00,0x09, 0x10,0x80,0x00,0x04,0x08,0x00,0x80,0x08,0x20,0x80,0x00,0x02,0x08,0x00,0x80, 0x08,0x40,0x80,0x00,0x01,0x08,0x00,0x80,0x08,0x80,0x80,0x80,0x00,0x08,0x00, 0x80,0x08,0x00,0x81,0x40,0x00,0x08,0x00,0x80,0x08,0x00,0x82,0x20,0x00,0x08, 0x00,0x80,0x08,0x00,0x84,0x10,0x00,0x08,0x00,0x40,0x04,0x00,0x88,0x08,0x00, 0x10,0x00,0x40,0x04,0x00,0x90,0x04,0x00,0x10,0x00,0x40,0x04,0x00,0xa0,0x02, 0x00,0x10,0x00,0x40,0x04,0x00,0xc0,0x01,0x00,0x10,0x00,0x40,0x04,0xf8,0xff, 0xff,0x0f,0x10,0x00,0x40,0x04,0x00,0x80,0x00,0x00,0x10,0x00,0x20,0x02,0x00, 0x80,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x20,0x00,0x20,0x02, 0x00,0x80,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x20,0x00,0x20, 0x02,0x00,0x80,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x20,0x00, 0x10,0x02,0x00,0x80,0x00,0x00,0x20,0x00,0x10,0x01,0x00,0x80,0x00,0x00,0x40, 0x00,0x10,0x01,0x00,0x80,0x00,0x00,0x40,0x00,0x10,0x01,0x00,0x80,0x00,0x00, 0x40,0x00,0x10,0x01,0x00,0x80,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00, 0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00, 0x00,0x00,0x40,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00, 0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0xc0,0x00,0x80,0xff, 0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/rookW.xbm0000644000175000017500000000522312274270516015640 00000000000000#define rookW_width 64 #define rookW_height 64 static char rookW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xf0,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x8e,0x3c,0x00, 0x00,0x00,0x00,0x00,0xe0,0x81,0xc0,0x03,0x00,0x00,0x00,0x00,0x1e,0x00,0x01, 0x3c,0x00,0x00,0x00,0xe0,0x01,0xc0,0x01,0xc0,0x03,0x00,0x00,0x1c,0x00,0x3c, 0x1e,0x00,0x1c,0x00,0x00,0x04,0xc0,0x03,0xe0,0x01,0x10,0x00,0x00,0x06,0x38, 0x00,0x00,0x0e,0x60,0x00,0x00,0x8a,0x07,0x00,0x00,0xf0,0x40,0x00,0x00,0x7a, 0x00,0x00,0x00,0x00,0x4f,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x70,0x00,0x00, 0x12,0x00,0xe0,0x01,0x00,0x80,0x00,0x00,0x11,0x00,0x20,0x02,0x00,0x80,0x00, 0x00,0x11,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x09,0x00,0xe0,0x01,0x00,0x80, 0x00,0x00,0x09,0x00,0x20,0x01,0x00,0x80,0x00,0x00,0x09,0x00,0x20,0x02,0x00, 0x80,0x00,0x00,0x09,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x09,0x00,0x00,0x00, 0x00,0x00,0x01,0x80,0x08,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x08,0x00,0x00, 0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00, 0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x80,0x00,0x00,0x00,0x01,0x80,0x04, 0x00,0xc0,0x01,0x00,0x00,0x01,0x80,0x04,0x00,0xe0,0x03,0x00,0x00,0x02,0x40, 0x04,0x00,0x90,0x04,0x00,0x00,0x02,0x40,0x02,0x00,0x80,0x00,0x00,0x00,0x02, 0x40,0x02,0x00,0x80,0x00,0x00,0x00,0x02,0x40,0x02,0x00,0x80,0x00,0x00,0x00, 0x02,0x40,0x02,0x00,0x80,0x00,0x00,0x00,0x02,0x40,0x02,0x00,0x80,0x00,0x00, 0x00,0x04,0x20,0x02,0x40,0x80,0x00,0x01,0x00,0x04,0x20,0x02,0x20,0x80,0x00, 0x02,0x00,0x04,0x20,0x01,0x30,0x80,0x00,0x06,0x00,0x04,0x20,0x01,0xf8,0xff, 0xff,0x0f,0x00,0x04,0x20,0x01,0x30,0x80,0x00,0x06,0x00,0x04,0x20,0x01,0x20, 0x80,0x00,0x02,0x00,0x08,0x20,0x01,0x40,0x80,0x00,0x01,0x00,0x08,0x10,0x01, 0x00,0x80,0x00,0x00,0x00,0x08,0x10,0x01,0x00,0x80,0x00,0x00,0x00,0x08,0x90, 0x00,0x00,0x80,0x00,0x00,0x00,0x08,0x90,0x00,0x00,0x80,0x00,0x00,0x00,0x08, 0x90,0x00,0x00,0x80,0x00,0x00,0x00,0x10,0x90,0x00,0x00,0x90,0x04,0x00,0x00, 0x10,0x90,0x00,0x00,0xe0,0x03,0x00,0x00,0x10,0x88,0x00,0x00,0xc0,0x01,0x00, 0x00,0x10,0x48,0x00,0x00,0x80,0x00,0x00,0x00,0x10,0x48,0x00,0x00,0x00,0x00, 0x00,0x00,0x10,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00, 0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00, 0x00,0x00,0x00,0x00,0x20,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24, 0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x40, 0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x30,0x00,0x00,0x00,0x00,0x00,0x00, 0x60,0xe0,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/pawnW.xbm0000644000175000017500000000522312274270516015633 00000000000000#define pawnW_width 64 #define pawnW_height 64 static char pawnW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x0e,0x00,0x00,0x00,0x00,0x00,0xf0,0x80, 0x70,0x00,0x00,0x00,0x00,0x00,0x0f,0xc0,0x81,0x03,0x00,0x00,0x00,0xf0,0x00, 0x38,0x0e,0x1c,0x00,0x00,0x00,0x08,0x00,0x07,0x70,0x60,0x00,0x00,0x00,0x0c, 0xe0,0x00,0x80,0x83,0x00,0x00,0x00,0x14,0x1c,0x00,0x00,0x1c,0x01,0x00,0x00, 0x94,0x03,0xe0,0x01,0xe0,0x01,0x00,0x00,0x64,0x00,0x20,0x02,0x00,0x03,0x00, 0x00,0x22,0x00,0x20,0x02,0x00,0x02,0x00,0x00,0x22,0x00,0xe0,0x01,0x00,0x02, 0x00,0x00,0x22,0x00,0x20,0x00,0x00,0x02,0x00,0x00,0x22,0x00,0x20,0x00,0x00, 0x02,0x00,0x00,0x12,0x00,0x20,0x00,0x00,0x04,0x00,0x00,0x12,0x00,0x00,0x00, 0x00,0x04,0x00,0x00,0x11,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00,0x00, 0x00,0x00,0x04,0x00,0x00,0x11,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00, 0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00,0x80,0x00,0x00,0x04,0x00,0x00,0x09, 0x00,0x80,0x00,0x00,0x08,0x00,0x80,0x08,0x00,0x80,0x00,0x00,0x08,0x00,0x80, 0x08,0x00,0x80,0x00,0x00,0x08,0x00,0x80,0x08,0x00,0x80,0x00,0x00,0x08,0x00, 0x80,0x08,0x00,0x80,0x00,0x00,0x08,0x00,0x80,0x08,0x00,0x80,0x00,0x00,0x08, 0x00,0x80,0x08,0x00,0x80,0x00,0x00,0x08,0x00,0x40,0x04,0x00,0x80,0x00,0x00, 0x10,0x00,0x40,0x04,0x00,0x80,0x00,0x00,0x10,0x00,0x40,0x04,0x00,0x80,0x00, 0x00,0x10,0x00,0x40,0x04,0x00,0x80,0x00,0x00,0x10,0x00,0x40,0x04,0x00,0x80, 0x00,0x00,0x10,0x00,0x40,0x04,0x00,0x00,0x00,0x00,0x10,0x00,0x20,0x02,0x00, 0x00,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x20,0x00,0x20,0x02, 0x00,0x00,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x20,0x00,0x20, 0x02,0x00,0x00,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x20,0x00, 0x10,0x02,0x00,0x00,0x00,0x00,0x20,0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40, 0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x00, 0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00, 0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00, 0x00,0x00,0x40,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00, 0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0xc0,0x00,0x80,0xff, 0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/rookPW.xbm0000644000175000017500000000522612274270516015763 00000000000000#define rookPW_width 64 #define rookPW_height 64 static char rookPW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xf0,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x8e,0x3c,0x00, 0x00,0x00,0x00,0x00,0xe0,0x81,0xc0,0x03,0x00,0x00,0x00,0x00,0x1e,0x00,0x01, 0x3c,0x00,0x00,0x00,0xe0,0x01,0xc0,0x01,0xc0,0x03,0x00,0x00,0x1c,0x00,0x3c, 0x1e,0x00,0x1c,0x00,0x00,0x04,0xc0,0x03,0xe0,0x01,0x10,0x00,0x00,0x06,0x38, 0x00,0x00,0x0e,0x60,0x00,0x00,0x8a,0x07,0x00,0x00,0xf0,0x40,0x00,0x00,0x7a, 0x00,0xe0,0x03,0x00,0x4f,0x00,0x00,0x12,0x00,0x10,0x04,0x00,0x70,0x00,0x00, 0x12,0x00,0xe8,0x09,0x00,0x80,0x00,0x00,0x11,0x00,0x24,0x12,0x00,0x80,0x00, 0x00,0x11,0x00,0x24,0x12,0x00,0x80,0x00,0x00,0x09,0x00,0xe4,0x11,0x00,0x80, 0x00,0x00,0x09,0x00,0x24,0x11,0x00,0x80,0x00,0x00,0x09,0x00,0x24,0x12,0x00, 0x80,0x00,0x00,0x09,0x00,0x28,0x0a,0x00,0x80,0x00,0x00,0x09,0x00,0x10,0x04, 0x00,0x00,0x01,0x80,0x08,0x00,0xe0,0x03,0x00,0x00,0x01,0x80,0x08,0x00,0x00, 0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00, 0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x08,0x80,0x00,0x08,0x00,0x01,0x80,0x04, 0x10,0xc0,0x01,0x04,0x00,0x01,0x80,0x04,0x20,0xe0,0x03,0x02,0x00,0x02,0x40, 0x04,0x40,0x90,0x04,0x01,0x00,0x02,0x40,0x02,0x80,0x80,0x80,0x00,0x00,0x02, 0x40,0x02,0x00,0x81,0x40,0x00,0x00,0x02,0x40,0x02,0x00,0x82,0x20,0x00,0x00, 0x02,0x40,0x02,0x00,0x84,0x10,0x00,0x00,0x02,0x40,0x02,0x00,0x88,0x08,0x00, 0x00,0x04,0x20,0x02,0x40,0x90,0x04,0x01,0x00,0x04,0x20,0x02,0x20,0xa0,0x02, 0x02,0x00,0x04,0x20,0x01,0x30,0xc0,0x01,0x06,0x00,0x04,0x20,0x01,0xf8,0xff, 0xff,0x0f,0x00,0x04,0x20,0x01,0x30,0xc0,0x01,0x06,0x00,0x04,0x20,0x01,0x20, 0xa0,0x02,0x02,0x00,0x08,0x20,0x01,0x40,0x90,0x04,0x01,0x00,0x08,0x10,0x01, 0x00,0x88,0x08,0x00,0x00,0x08,0x10,0x01,0x00,0x84,0x10,0x00,0x00,0x08,0x90, 0x00,0x00,0x82,0x20,0x00,0x00,0x08,0x90,0x00,0x00,0x81,0x40,0x00,0x00,0x08, 0x90,0x00,0x80,0x80,0x80,0x00,0x00,0x10,0x90,0x00,0x40,0x90,0x04,0x01,0x00, 0x10,0x90,0x00,0x20,0xe0,0x03,0x02,0x00,0x10,0x88,0x00,0x10,0xc0,0x01,0x04, 0x00,0x10,0x48,0x00,0x08,0x80,0x00,0x08,0x00,0x10,0x48,0x00,0x00,0x00,0x00, 0x00,0x00,0x10,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00, 0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00, 0x00,0x00,0x00,0x00,0x20,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24, 0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x40, 0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x30,0x00,0x00,0x00,0x00,0x00,0x00, 0x60,0xe0,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/noneW.xbm0000644000175000017500000000522312274270516015625 00000000000000#define noneW_width 64 #define noneW_height 64 static char noneW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/lanceRW.xbm0000644000175000017500000000523112274270516016071 00000000000000#define lanceRW_width 64 #define lanceRW_height 64 static char lanceRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf8,0xff,0xff,0xff,0xff,0xff, 0x3f,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x28,0x00,0x00,0x00,0x00, 0x00,0x80,0x00,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x90,0xff,0xff,0xff, 0xff,0xff,0xff,0x01,0x10,0x01,0x00,0x00,0x00,0x00,0x00,0x01,0x10,0x01,0x00, 0x00,0x00,0x00,0x00,0x01,0x10,0x01,0x00,0x00,0x00,0x00,0x00,0x01,0x10,0x02, 0x00,0x00,0x00,0x00,0x80,0x00,0x10,0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20, 0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x80,0x00, 0x20,0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x80, 0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20,0x04,0x00,0x00,0x00,0x00, 0x40,0x00,0x20,0x04,0x00,0x00,0x00,0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x00, 0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x00,0x00,0x40,0x00,0x40,0x04,0x00,0x00, 0x00,0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x00,0x00,0x40,0x00,0x40,0x04,0x00, 0x00,0x00,0x00,0x40,0x00,0x40,0x08,0x00,0x00,0x00,0x00,0x20,0x00,0x80,0x08, 0x00,0x00,0x01,0x00,0x20,0x00,0x80,0x08,0x00,0x00,0x01,0x00,0x20,0x00,0x80, 0x08,0x00,0x00,0x01,0x00,0x20,0x00,0x80,0x08,0x00,0x00,0x01,0x00,0x20,0x00, 0x80,0x08,0x00,0x00,0x01,0x00,0x20,0x00,0x80,0x10,0x00,0x00,0x01,0x00,0x10, 0x00,0x80,0x10,0x00,0x00,0x01,0x00,0x10,0x00,0x00,0x11,0x00,0x00,0x01,0x00, 0x10,0x00,0x00,0x11,0x00,0x00,0x01,0x00,0x10,0x00,0x00,0x11,0x00,0x20,0x09, 0x00,0x10,0x00,0x00,0x11,0x00,0xc0,0x07,0x00,0x10,0x00,0x00,0x11,0x00,0x80, 0x03,0x00,0x10,0x00,0x00,0x21,0x00,0x00,0x01,0x00,0x08,0x00,0x00,0x22,0x00, 0x00,0x00,0x00,0x08,0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x22, 0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x08,0x00,0x00, 0x24,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x28,0x00,0xc0,0x07,0x00,0x08,0x00, 0x00,0x48,0x00,0x00,0x04,0x00,0x04,0x00,0x00,0x50,0x00,0x00,0x04,0x00,0x04, 0x00,0x00,0x50,0x00,0x00,0x04,0x00,0x04,0x00,0x00,0x60,0x00,0x00,0x04,0x00, 0x04,0x00,0x00,0xc0,0x00,0x00,0x04,0x00,0x06,0x00,0x00,0x00,0x07,0x00,0x04, 0xc0,0x01,0x00,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0xc0,0x01, 0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0e,0xe0,0x00,0x00,0x00,0x00,0x00,0x00, 0x70,0x1c,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x03,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/rookRW.xbm0000644000175000017500000000522612274270516015765 00000000000000#define rookRW_width 64 #define rookRW_height 64 static char rookRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x06,0x00,0x00,0x00,0x00,0x00, 0x00,0x08,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x12,0x00,0x00,0x00,0x00, 0x00,0x00,0x20,0xe4,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x24,0x00,0x00,0x00, 0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00, 0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x44, 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x20, 0x48,0x00,0x00,0x80,0x03,0x00,0x00,0x20,0x48,0x00,0x00,0xc0,0x07,0x00,0x00, 0x20,0x48,0x00,0x00,0x20,0x09,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x01,0x00, 0x00,0x10,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x10,0x88,0x00,0x00,0x00,0x01, 0x00,0x00,0x10,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x10,0x90,0x00,0x00,0x00, 0x01,0x00,0x00,0x10,0x90,0x00,0x80,0x00,0x01,0x02,0x00,0x10,0x90,0x00,0x40, 0x00,0x01,0x04,0x00,0x08,0x90,0x00,0x60,0x00,0x01,0x0c,0x00,0x08,0x10,0x01, 0xf0,0xff,0xff,0x1f,0x00,0x08,0x10,0x01,0x60,0x00,0x01,0x0c,0x00,0x08,0x20, 0x01,0x40,0x00,0x01,0x04,0x00,0x08,0x20,0x01,0x80,0x00,0x01,0x02,0x00,0x08, 0x20,0x01,0x00,0x00,0x01,0x00,0x00,0x04,0x20,0x01,0x00,0x00,0x01,0x00,0x00, 0x04,0x20,0x01,0x00,0x00,0x01,0x00,0x00,0x04,0x20,0x02,0x00,0x00,0x01,0x00, 0x00,0x04,0x20,0x02,0x00,0x00,0x01,0x00,0x00,0x04,0x40,0x02,0x00,0x20,0x09, 0x00,0x00,0x04,0x40,0x02,0x00,0xc0,0x07,0x00,0x00,0x02,0x40,0x02,0x00,0x80, 0x03,0x00,0x00,0x02,0x40,0x02,0x00,0x00,0x01,0x00,0x00,0x02,0x40,0x02,0x00, 0x00,0x00,0x00,0x00,0x02,0x40,0x04,0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04, 0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80, 0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x40,0x04,0x00,0x00,0x01, 0x80,0x04,0x00,0x40,0x04,0x00,0x00,0x01,0x80,0x08,0x00,0x80,0x04,0x00,0x00, 0x01,0x80,0x08,0x00,0x80,0x07,0x00,0x00,0x01,0x00,0x09,0x00,0x40,0x04,0x00, 0x00,0x01,0x00,0x09,0x00,0x40,0x04,0x00,0x80,0x00,0x00,0x09,0x00,0x80,0x07, 0x00,0x80,0x00,0x00,0x09,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x09,0x00,0x00, 0x00,0x00,0x80,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x14,0x00, 0x00,0x00,0x00,0x80,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x10, 0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x0f,0x00,0x00, 0x80,0x07,0x00,0x00,0xf0,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x0e,0x00,0x00, 0x00,0x00,0xc0,0x03,0xe0,0x01,0x00,0x00,0x00,0x00,0x00,0x3c,0x1e,0x00,0x00, 0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/lanceW.xbm0000644000175000017500000000522612274270516015753 00000000000000#define lanceW_width 64 #define lanceW_height 64 static char lanceW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x0e,0x00,0x00,0x00,0x00,0x00,0xf0,0x80, 0x70,0x00,0x00,0x00,0x00,0x00,0x0f,0xc0,0x81,0x03,0x00,0x00,0x00,0xf0,0x00, 0x38,0x0e,0x1c,0x00,0x00,0x00,0x08,0x00,0x07,0x70,0x60,0x00,0x00,0x00,0x0c, 0xe0,0x00,0x80,0x83,0x00,0x00,0x00,0x14,0x1c,0x00,0x00,0x1c,0x01,0x00,0x00, 0x94,0x03,0x20,0x00,0xe0,0x01,0x00,0x00,0x64,0x00,0x20,0x00,0x00,0x03,0x00, 0x00,0x22,0x00,0x20,0x00,0x00,0x02,0x00,0x00,0x22,0x00,0x20,0x00,0x00,0x02, 0x00,0x00,0x22,0x00,0x20,0x00,0x00,0x02,0x00,0x00,0x22,0x00,0x20,0x00,0x00, 0x02,0x00,0x00,0x12,0x00,0xe0,0x03,0x00,0x04,0x00,0x00,0x12,0x00,0x00,0x00, 0x00,0x04,0x00,0x00,0x11,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00,0x00, 0x00,0x00,0x04,0x00,0x00,0x11,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00, 0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00,0x80,0x00,0x00,0x04,0x00,0x00,0x09, 0x00,0xc0,0x01,0x00,0x08,0x00,0x80,0x08,0x00,0xe0,0x03,0x00,0x08,0x00,0x80, 0x08,0x00,0x90,0x04,0x00,0x08,0x00,0x80,0x08,0x00,0x80,0x00,0x00,0x08,0x00, 0x80,0x08,0x00,0x80,0x00,0x00,0x08,0x00,0x80,0x08,0x00,0x80,0x00,0x00,0x08, 0x00,0x80,0x08,0x00,0x80,0x00,0x00,0x08,0x00,0x40,0x04,0x00,0x80,0x00,0x00, 0x10,0x00,0x40,0x04,0x00,0x80,0x00,0x00,0x10,0x00,0x40,0x04,0x00,0x80,0x00, 0x00,0x10,0x00,0x40,0x04,0x00,0x80,0x00,0x00,0x10,0x00,0x40,0x04,0x00,0x80, 0x00,0x00,0x10,0x00,0x40,0x04,0x00,0x00,0x00,0x00,0x10,0x00,0x20,0x02,0x00, 0x00,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x20,0x00,0x20,0x02, 0x00,0x00,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x20,0x00,0x20, 0x02,0x00,0x00,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x00,0x00,0x00,0x20,0x00, 0x10,0x02,0x00,0x00,0x00,0x00,0x20,0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40, 0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x00, 0x40,0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00, 0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00, 0x00,0x00,0x40,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00, 0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0xc0,0x00,0x80,0xff, 0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/silverPW.xbm0000644000175000017500000000523412274270516016314 00000000000000#define silverPW_width 64 #define silverPW_height 64 static char silverPW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xf0,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x8e,0x3c,0x00, 0x00,0x00,0x00,0x00,0xe0,0x81,0xc0,0x03,0x00,0x00,0x00,0x00,0x1e,0x00,0x01, 0x3c,0x00,0x00,0x00,0xe0,0x01,0xc0,0x01,0xc0,0x03,0x00,0x00,0x1c,0x00,0x3c, 0x1e,0x00,0x1c,0x00,0x00,0x04,0xc0,0x03,0xe0,0x01,0x10,0x00,0x00,0x06,0x38, 0x00,0x00,0x0e,0x60,0x00,0x00,0x8a,0x07,0x00,0x00,0xf0,0x40,0x00,0x00,0x7a, 0x00,0xe0,0x03,0x00,0x4f,0x00,0x00,0x12,0x00,0x10,0x04,0x00,0x70,0x00,0x00, 0x12,0x00,0xc8,0x0b,0x00,0x80,0x00,0x00,0x11,0x00,0x24,0x10,0x00,0x80,0x00, 0x00,0x11,0x00,0x24,0x10,0x00,0x80,0x00,0x00,0x09,0x00,0xc4,0x11,0x00,0x80, 0x00,0x00,0x09,0x00,0x04,0x12,0x00,0x80,0x00,0x00,0x09,0x00,0x04,0x12,0x00, 0x80,0x00,0x00,0x09,0x00,0xe8,0x09,0x00,0x80,0x00,0x00,0x09,0x00,0x10,0x04, 0x00,0x00,0x01,0x80,0x08,0x00,0xe0,0x03,0x00,0x00,0x01,0x80,0x08,0x00,0x00, 0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00, 0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x08,0x80,0x00,0x08,0x00,0x01,0x80,0x04, 0x10,0x80,0x00,0x04,0x00,0x01,0x80,0x04,0x20,0x80,0x00,0x02,0x00,0x02,0x40, 0x04,0x40,0x80,0x00,0x01,0x00,0x02,0x40,0x02,0x80,0x80,0x80,0x00,0x00,0x02, 0x40,0x02,0x00,0x81,0x40,0x00,0x00,0x02,0x40,0x02,0x00,0x82,0x20,0x00,0x00, 0x02,0x40,0x02,0x00,0x84,0x10,0x00,0x00,0x02,0x40,0x02,0x00,0x88,0x08,0x00, 0x00,0x04,0x20,0x02,0x00,0x90,0x04,0x00,0x00,0x04,0x20,0x02,0x00,0xa0,0x02, 0x00,0x00,0x04,0x20,0x01,0x00,0xc0,0x01,0x00,0x00,0x04,0x20,0x01,0xf8,0xff, 0xff,0x0f,0x00,0x04,0x20,0x01,0x00,0x80,0x00,0x00,0x00,0x04,0x20,0x01,0x00, 0x80,0x00,0x00,0x00,0x08,0x20,0x01,0x00,0x80,0x00,0x00,0x00,0x08,0x10,0x01, 0x00,0x80,0x00,0x00,0x00,0x08,0x10,0x01,0x00,0x80,0x00,0x00,0x00,0x08,0x90, 0x00,0x00,0x80,0x00,0x00,0x00,0x08,0x90,0x00,0x00,0x80,0x00,0x00,0x00,0x08, 0x90,0x00,0x00,0x80,0x00,0x00,0x00,0x10,0x90,0x00,0x00,0x80,0x00,0x00,0x00, 0x10,0x90,0x00,0x00,0x80,0x00,0x00,0x00,0x10,0x88,0x00,0x00,0x80,0x00,0x00, 0x00,0x10,0x48,0x00,0x00,0x80,0x00,0x00,0x00,0x10,0x48,0x00,0x00,0x00,0x00, 0x00,0x00,0x10,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00, 0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00, 0x00,0x00,0x00,0x00,0x20,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24, 0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x40, 0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x30,0x00,0x00,0x00,0x00,0x00,0x00, 0x60,0xe0,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/rookPRW.xbm0000644000175000017500000000523112274270516016101 00000000000000#define rookPRW_width 64 #define rookPRW_height 64 static char rookPRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x06,0x00,0x00,0x00,0x00,0x00, 0x00,0x08,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x12,0x00,0x00,0x00,0x00, 0x00,0x00,0x20,0xe4,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x24,0x00,0x00,0x00, 0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00, 0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x44, 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x10,0x00,0x01,0x10,0x00,0x20, 0x48,0x00,0x20,0x80,0x03,0x08,0x00,0x20,0x48,0x00,0x40,0xc0,0x07,0x04,0x00, 0x20,0x48,0x00,0x80,0x20,0x09,0x02,0x00,0x20,0x48,0x00,0x00,0x01,0x01,0x01, 0x00,0x10,0x48,0x00,0x00,0x02,0x81,0x00,0x00,0x10,0x88,0x00,0x00,0x04,0x41, 0x00,0x00,0x10,0x90,0x00,0x00,0x08,0x21,0x00,0x00,0x10,0x90,0x00,0x00,0x10, 0x11,0x00,0x00,0x10,0x90,0x00,0x80,0x20,0x09,0x02,0x00,0x10,0x90,0x00,0x40, 0x40,0x05,0x04,0x00,0x08,0x90,0x00,0x60,0x80,0x03,0x0c,0x00,0x08,0x10,0x01, 0xf0,0xff,0xff,0x1f,0x00,0x08,0x10,0x01,0x60,0x80,0x03,0x0c,0x00,0x08,0x20, 0x01,0x40,0x40,0x05,0x04,0x00,0x08,0x20,0x01,0x80,0x20,0x09,0x02,0x00,0x08, 0x20,0x01,0x00,0x10,0x11,0x00,0x00,0x04,0x20,0x01,0x00,0x08,0x21,0x00,0x00, 0x04,0x20,0x01,0x00,0x04,0x41,0x00,0x00,0x04,0x20,0x02,0x00,0x02,0x81,0x00, 0x00,0x04,0x20,0x02,0x00,0x01,0x01,0x01,0x00,0x04,0x40,0x02,0x80,0x20,0x09, 0x02,0x00,0x04,0x40,0x02,0x40,0xc0,0x07,0x04,0x00,0x02,0x40,0x02,0x20,0x80, 0x03,0x08,0x00,0x02,0x40,0x02,0x10,0x00,0x01,0x10,0x00,0x02,0x40,0x02,0x00, 0x00,0x00,0x00,0x00,0x02,0x40,0x04,0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04, 0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04,0x00,0xc0,0x07,0x00,0x00,0x01,0x80, 0x04,0x00,0x20,0x08,0x00,0x00,0x01,0x80,0x04,0x00,0x50,0x14,0x00,0x00,0x01, 0x80,0x04,0x00,0x48,0x24,0x00,0x00,0x01,0x80,0x08,0x00,0x88,0x24,0x00,0x00, 0x01,0x80,0x08,0x00,0x88,0x27,0x00,0x00,0x01,0x00,0x09,0x00,0x48,0x24,0x00, 0x00,0x01,0x00,0x09,0x00,0x48,0x24,0x00,0x80,0x00,0x00,0x09,0x00,0x90,0x17, 0x00,0x80,0x00,0x00,0x09,0x00,0x20,0x08,0x00,0x80,0x00,0x00,0x09,0x00,0xc0, 0x07,0x00,0x80,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x14,0x00, 0x00,0x00,0x00,0x80,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x10, 0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x0f,0x00,0x00, 0x80,0x07,0x00,0x00,0xf0,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x0e,0x00,0x00, 0x00,0x00,0xc0,0x03,0xe0,0x01,0x00,0x00,0x00,0x00,0x00,0x3c,0x1e,0x00,0x00, 0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/kingW.xbm0000644000175000017500000000522312274270516015616 00000000000000#define kingW_width 64 #define kingW_height 64 static char kingW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xf0,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x8e,0x3c,0x00, 0x00,0x00,0x00,0x00,0xe0,0x81,0xc0,0x03,0x00,0x00,0x00,0x00,0x1e,0x00,0x01, 0x3c,0x00,0x00,0x00,0xe0,0x01,0xc0,0x01,0xc0,0x03,0x00,0x00,0x1c,0x00,0x3c, 0x1e,0x00,0x1c,0x00,0x00,0x04,0xc0,0x03,0xe0,0x01,0x10,0x00,0x00,0x06,0x38, 0x00,0x00,0x0e,0x60,0x00,0x00,0x8a,0x07,0x00,0x00,0xf0,0x40,0x00,0x00,0x7a, 0x00,0x00,0x00,0x00,0x4f,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x70,0x00,0x00, 0x12,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x11,0x00,0x20,0x01,0x00,0x80,0x00, 0x00,0x11,0x00,0xa0,0x00,0x00,0x80,0x00,0x00,0x09,0x00,0x60,0x00,0x00,0x80, 0x00,0x00,0x09,0x00,0xa0,0x00,0x00,0x80,0x00,0x00,0x09,0x00,0x20,0x01,0x00, 0x80,0x00,0x00,0x09,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x09,0x00,0x00,0x00, 0x00,0x00,0x01,0x80,0x08,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x08,0x00,0x00, 0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00, 0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x08,0x80,0x00,0x08,0x00,0x01,0x80,0x04, 0x10,0x80,0x00,0x04,0x00,0x01,0x80,0x04,0x20,0x80,0x00,0x02,0x00,0x02,0x40, 0x04,0x40,0x80,0x00,0x01,0x00,0x02,0x40,0x02,0x80,0x80,0x80,0x00,0x00,0x02, 0x40,0x02,0x00,0x81,0x40,0x00,0x00,0x02,0x40,0x02,0x00,0x82,0x20,0x00,0x00, 0x02,0x40,0x02,0x00,0x84,0x10,0x00,0x00,0x02,0x40,0x02,0x00,0x88,0x08,0x00, 0x00,0x04,0x20,0x02,0x00,0x90,0x04,0x00,0x00,0x04,0x20,0x02,0x00,0xa0,0x02, 0x00,0x00,0x04,0x20,0x01,0x00,0xc0,0x01,0x00,0x00,0x04,0x20,0x01,0xf8,0xff, 0xff,0x0f,0x00,0x04,0x20,0x01,0x00,0xc0,0x01,0x00,0x00,0x04,0x20,0x01,0x00, 0xa0,0x02,0x00,0x00,0x08,0x20,0x01,0x00,0x90,0x04,0x00,0x00,0x08,0x10,0x01, 0x00,0x88,0x08,0x00,0x00,0x08,0x10,0x01,0x00,0x84,0x10,0x00,0x00,0x08,0x90, 0x00,0x00,0x82,0x20,0x00,0x00,0x08,0x90,0x00,0x00,0x81,0x40,0x00,0x00,0x08, 0x90,0x00,0x80,0x80,0x80,0x00,0x00,0x10,0x90,0x00,0x40,0x80,0x00,0x01,0x00, 0x10,0x90,0x00,0x20,0x80,0x00,0x02,0x00,0x10,0x88,0x00,0x10,0x80,0x00,0x04, 0x00,0x10,0x48,0x00,0x08,0x80,0x00,0x08,0x00,0x10,0x48,0x00,0x00,0x00,0x00, 0x00,0x00,0x10,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00, 0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00, 0x00,0x00,0x00,0x00,0x20,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24, 0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x40, 0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x30,0x00,0x00,0x00,0x00,0x00,0x00, 0x60,0xe0,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/bishopW.xbm0000644000175000017500000000523112274270516016151 00000000000000#define bishopW_width 64 #define bishopW_height 64 static char bishopW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xf0,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x8e,0x3c,0x00, 0x00,0x00,0x00,0x00,0xe0,0x81,0xc0,0x03,0x00,0x00,0x00,0x00,0x1e,0x00,0x01, 0x3c,0x00,0x00,0x00,0xe0,0x01,0xc0,0x01,0xc0,0x03,0x00,0x00,0x1c,0x00,0x3c, 0x1e,0x00,0x1c,0x00,0x00,0x04,0xc0,0x03,0xe0,0x01,0x10,0x00,0x00,0x06,0x38, 0x00,0x00,0x0e,0x60,0x00,0x00,0x8a,0x07,0x00,0x00,0xf0,0x40,0x00,0x00,0x7a, 0x00,0x00,0x00,0x00,0x4f,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x70,0x00,0x00, 0x12,0x00,0xe0,0x01,0x00,0x80,0x00,0x00,0x11,0x00,0x20,0x02,0x00,0x80,0x00, 0x00,0x11,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x09,0x00,0xe0,0x01,0x00,0x80, 0x00,0x00,0x09,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x09,0x00,0x20,0x02,0x00, 0x80,0x00,0x00,0x09,0x00,0xe0,0x01,0x00,0x80,0x00,0x00,0x09,0x00,0x00,0x00, 0x00,0x00,0x01,0x80,0x08,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x08,0x00,0x00, 0x00,0x00,0x00,0x01,0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x00, 0x00,0x00,0x00,0x00,0x01,0x80,0x04,0x78,0x00,0x00,0x0f,0x00,0x01,0x80,0x04, 0x18,0x00,0x00,0x0c,0x00,0x01,0x80,0x04,0x28,0x00,0x00,0x0a,0x00,0x02,0x40, 0x04,0x48,0x00,0x00,0x09,0x00,0x02,0x40,0x02,0x80,0x00,0x80,0x00,0x00,0x02, 0x40,0x02,0x00,0x01,0x40,0x00,0x00,0x02,0x40,0x02,0x00,0x02,0x20,0x00,0x00, 0x02,0x40,0x02,0x00,0x04,0x10,0x00,0x00,0x02,0x40,0x02,0x00,0x08,0x08,0x00, 0x00,0x04,0x20,0x02,0x00,0x10,0x04,0x00,0x00,0x04,0x20,0x02,0x00,0x20,0x02, 0x00,0x00,0x04,0x20,0x01,0x00,0x40,0x01,0x00,0x00,0x04,0x20,0x01,0x00,0x80, 0x00,0x00,0x00,0x04,0x20,0x01,0x00,0x40,0x01,0x00,0x00,0x04,0x20,0x01,0x00, 0x20,0x02,0x00,0x00,0x08,0x20,0x01,0x00,0x10,0x04,0x00,0x00,0x08,0x10,0x01, 0x00,0x08,0x08,0x00,0x00,0x08,0x10,0x01,0x00,0x04,0x10,0x00,0x00,0x08,0x90, 0x00,0x00,0x02,0x20,0x00,0x00,0x08,0x90,0x00,0x00,0x01,0x40,0x00,0x00,0x08, 0x90,0x00,0x80,0x00,0x80,0x00,0x00,0x10,0x90,0x00,0x48,0x00,0x00,0x09,0x00, 0x10,0x90,0x00,0x28,0x00,0x00,0x0a,0x00,0x10,0x88,0x00,0x18,0x00,0x00,0x0c, 0x00,0x10,0x48,0x00,0x78,0x00,0x00,0x0f,0x00,0x10,0x48,0x00,0x00,0x00,0x00, 0x00,0x00,0x10,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00, 0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00, 0x00,0x00,0x00,0x00,0x20,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x20,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24, 0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x40, 0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x30,0x00,0x00,0x00,0x00,0x00,0x00, 0x60,0xe0,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/bishopPRW.xbm0000644000175000017500000000523712274270516016421 00000000000000#define bishopPRW_width 64 #define bishopPRW_height 64 static char bishopPRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x06,0x00,0x00,0x00,0x00,0x00, 0x00,0x08,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x12,0x00,0x00,0x00,0x00, 0x00,0x00,0x20,0xe4,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x24,0x00,0x00,0x00, 0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00, 0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x44, 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0xf0,0x00,0x01,0x1e,0x00,0x20, 0x48,0x00,0x30,0x00,0x01,0x18,0x00,0x20,0x48,0x00,0x50,0x00,0x01,0x14,0x00, 0x20,0x48,0x00,0x90,0x00,0x01,0x12,0x00,0x20,0x48,0x00,0x00,0x01,0x01,0x01, 0x00,0x10,0x48,0x00,0x00,0x02,0x81,0x00,0x00,0x10,0x88,0x00,0x00,0x04,0x41, 0x00,0x00,0x10,0x90,0x00,0x00,0x08,0x21,0x00,0x00,0x10,0x90,0x00,0x00,0x10, 0x11,0x00,0x00,0x10,0x90,0x00,0x00,0x20,0x09,0x00,0x00,0x10,0x90,0x00,0x00, 0x40,0x05,0x00,0x00,0x08,0x90,0x00,0x00,0x80,0x03,0x00,0x00,0x08,0x10,0x01, 0xf0,0xff,0xff,0x1f,0x00,0x08,0x10,0x01,0x00,0x80,0x03,0x00,0x00,0x08,0x20, 0x01,0x00,0x40,0x05,0x00,0x00,0x08,0x20,0x01,0x00,0x20,0x09,0x00,0x00,0x08, 0x20,0x01,0x00,0x10,0x11,0x00,0x00,0x04,0x20,0x01,0x00,0x08,0x21,0x00,0x00, 0x04,0x20,0x01,0x00,0x04,0x41,0x00,0x00,0x04,0x20,0x02,0x00,0x02,0x81,0x00, 0x00,0x04,0x20,0x02,0x00,0x01,0x01,0x01,0x00,0x04,0x40,0x02,0x90,0x00,0x01, 0x12,0x00,0x04,0x40,0x02,0x50,0x00,0x01,0x14,0x00,0x02,0x40,0x02,0x30,0x00, 0x01,0x18,0x00,0x02,0x40,0x02,0xf0,0x00,0x01,0x1e,0x00,0x02,0x40,0x02,0x00, 0x00,0x00,0x00,0x00,0x02,0x40,0x04,0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04, 0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04,0x00,0xc0,0x07,0x00,0x00,0x01,0x80, 0x04,0x00,0x20,0x08,0x00,0x00,0x01,0x80,0x04,0x00,0x90,0x17,0x00,0x00,0x01, 0x80,0x04,0x00,0x48,0x24,0x00,0x00,0x01,0x80,0x08,0x00,0x48,0x24,0x00,0x00, 0x01,0x80,0x08,0x00,0x88,0x27,0x00,0x00,0x01,0x00,0x09,0x00,0x48,0x24,0x00, 0x00,0x01,0x00,0x09,0x00,0x48,0x24,0x00,0x80,0x00,0x00,0x09,0x00,0x90,0x17, 0x00,0x80,0x00,0x00,0x09,0x00,0x20,0x08,0x00,0x80,0x00,0x00,0x09,0x00,0xc0, 0x07,0x00,0x80,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x14,0x00, 0x00,0x00,0x00,0x80,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x10, 0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x0f,0x00,0x00, 0x80,0x07,0x00,0x00,0xf0,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x0e,0x00,0x00, 0x00,0x00,0xc0,0x03,0xe0,0x01,0x00,0x00,0x00,0x00,0x00,0x3c,0x1e,0x00,0x00, 0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/lancePRW.xbm0000644000175000017500000000523412274270516016214 00000000000000#define lancePRW_width 64 #define lancePRW_height 64 static char lancePRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf8,0xff,0xff,0xff,0xff,0xff, 0x3f,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x28,0x00,0x00,0x00,0x00, 0x00,0x80,0x00,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x90,0xff,0xff,0xff, 0xff,0xff,0xff,0x01,0x10,0x01,0x00,0x00,0x00,0x00,0x00,0x01,0x10,0x01,0x00, 0x00,0x00,0x00,0x00,0x01,0x10,0x01,0x00,0x00,0x00,0x00,0x00,0x01,0x10,0x02, 0x00,0x00,0x00,0x00,0x80,0x00,0x10,0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20, 0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20,0x02,0x00,0x00,0x01,0x00,0x80,0x00, 0x20,0x02,0x00,0x00,0x01,0x00,0x80,0x00,0x20,0x02,0x00,0x00,0x01,0x00,0x80, 0x00,0x20,0x02,0x00,0x00,0x01,0x00,0x80,0x00,0x20,0x04,0x00,0x00,0x01,0x00, 0x40,0x00,0x20,0x04,0x00,0x00,0x01,0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x01, 0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x01,0x00,0x40,0x00,0x40,0x04,0x00,0x00, 0x01,0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x01,0x00,0x40,0x00,0x40,0x04,0x00, 0x00,0x01,0x00,0x40,0x00,0x40,0x08,0x00,0x00,0x01,0x00,0x20,0x00,0x80,0x08, 0xf0,0xff,0xff,0x1f,0x20,0x00,0x80,0x08,0x00,0x80,0x03,0x00,0x20,0x00,0x80, 0x08,0x00,0x40,0x05,0x00,0x20,0x00,0x80,0x08,0x00,0x20,0x09,0x00,0x20,0x00, 0x80,0x08,0x00,0x10,0x11,0x00,0x20,0x00,0x80,0x10,0x00,0x08,0x21,0x00,0x10, 0x00,0x80,0x10,0x00,0x04,0x41,0x00,0x10,0x00,0x00,0x11,0x00,0x02,0x81,0x00, 0x10,0x00,0x00,0x11,0x00,0x01,0x01,0x01,0x10,0x00,0x00,0x11,0x80,0x00,0x01, 0x02,0x10,0x00,0x00,0x11,0x40,0x00,0x01,0x04,0x10,0x00,0x00,0x11,0x20,0x00, 0x01,0x08,0x10,0x00,0x00,0x21,0x10,0x00,0x01,0x10,0x08,0x00,0x00,0x22,0x00, 0x00,0x00,0x00,0x08,0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x22, 0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x22,0x00,0xc0,0x07,0x00,0x08,0x00,0x00, 0x24,0x00,0x20,0x08,0x00,0x08,0x00,0x00,0x28,0x00,0xd0,0x17,0x00,0x08,0x00, 0x00,0x48,0x00,0x08,0x24,0x00,0x04,0x00,0x00,0x50,0x00,0x08,0x24,0x00,0x04, 0x00,0x00,0x50,0x00,0x08,0x24,0x00,0x04,0x00,0x00,0x60,0x00,0x08,0x24,0x00, 0x04,0x00,0x00,0xc0,0x00,0x08,0x24,0x00,0x06,0x00,0x00,0x00,0x07,0x10,0x14, 0xc0,0x01,0x00,0x00,0x00,0x38,0x20,0x08,0x38,0x00,0x00,0x00,0x00,0xc0,0xc1, 0x07,0x07,0x00,0x00,0x00,0x00,0x00,0x0e,0xe0,0x00,0x00,0x00,0x00,0x00,0x00, 0x70,0x1c,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x03,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/silverPRW.xbm0000644000175000017500000000523712274270516016441 00000000000000#define silverPRW_width 64 #define silverPRW_height 64 static char silverPRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0x07,0x06,0x00,0x00,0x00,0x00,0x00, 0x00,0x08,0x0a,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x12,0x00,0x00,0x00,0x00, 0x00,0x00,0x20,0xe4,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,0x24,0x00,0x00,0x00, 0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00, 0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00, 0x00,0x00,0x00,0x00,0x00,0x40,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x44, 0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x20, 0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x01,0x00,0x00, 0x20,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x20,0x48,0x00,0x00,0x00,0x01,0x00, 0x00,0x10,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x10,0x88,0x00,0x00,0x00,0x01, 0x00,0x00,0x10,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x10,0x90,0x00,0x00,0x00, 0x01,0x00,0x00,0x10,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x10,0x90,0x00,0x00, 0x00,0x01,0x00,0x00,0x08,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x08,0x10,0x01, 0xf0,0xff,0xff,0x1f,0x00,0x08,0x10,0x01,0x00,0x80,0x03,0x00,0x00,0x08,0x20, 0x01,0x00,0x40,0x05,0x00,0x00,0x08,0x20,0x01,0x00,0x20,0x09,0x00,0x00,0x08, 0x20,0x01,0x00,0x10,0x11,0x00,0x00,0x04,0x20,0x01,0x00,0x08,0x21,0x00,0x00, 0x04,0x20,0x01,0x00,0x04,0x41,0x00,0x00,0x04,0x20,0x02,0x00,0x02,0x81,0x00, 0x00,0x04,0x20,0x02,0x00,0x01,0x01,0x01,0x00,0x04,0x40,0x02,0x80,0x00,0x01, 0x02,0x00,0x04,0x40,0x02,0x40,0x00,0x01,0x04,0x00,0x02,0x40,0x02,0x20,0x00, 0x01,0x08,0x00,0x02,0x40,0x02,0x10,0x00,0x01,0x10,0x00,0x02,0x40,0x02,0x00, 0x00,0x00,0x00,0x00,0x02,0x40,0x04,0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04, 0x00,0x00,0x00,0x00,0x00,0x02,0x80,0x04,0x00,0xc0,0x07,0x00,0x00,0x01,0x80, 0x04,0x00,0x20,0x08,0x00,0x00,0x01,0x80,0x04,0x00,0x90,0x17,0x00,0x00,0x01, 0x80,0x04,0x00,0x48,0x20,0x00,0x00,0x01,0x80,0x08,0x00,0x48,0x20,0x00,0x00, 0x01,0x80,0x08,0x00,0x88,0x23,0x00,0x00,0x01,0x00,0x09,0x00,0x08,0x24,0x00, 0x00,0x01,0x00,0x09,0x00,0x08,0x24,0x00,0x80,0x00,0x00,0x09,0x00,0xd0,0x13, 0x00,0x80,0x00,0x00,0x09,0x00,0x20,0x08,0x00,0x80,0x00,0x00,0x09,0x00,0xc0, 0x07,0x00,0x80,0x00,0x00,0x12,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x14,0x00, 0x00,0x00,0x00,0x80,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x10, 0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x0f,0x00,0x00, 0x80,0x07,0x00,0x00,0xf0,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x0e,0x00,0x00, 0x00,0x00,0xc0,0x03,0xe0,0x01,0x00,0x00,0x00,0x00,0x00,0x3c,0x1e,0x00,0x00, 0x00,0x00,0x00,0x00,0xc0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/pawnPW.xbm0000644000175000017500000000522612274270516015756 00000000000000#define pawnPW_width 64 #define pawnPW_height 64 static char pawnPW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x0e,0x00,0x00,0x00,0x00,0x00,0xf0,0x80, 0x70,0x00,0x00,0x00,0x00,0x00,0x0f,0xc0,0x81,0x03,0x00,0x00,0x00,0xf0,0x00, 0x38,0x0e,0x1c,0x00,0x00,0x00,0x08,0x00,0x07,0x70,0x60,0x00,0x00,0x00,0x0c, 0xe0,0xe0,0x83,0x83,0x00,0x00,0x00,0x14,0x1c,0x10,0x04,0x1c,0x01,0x00,0x00, 0x94,0x03,0xe8,0x09,0xe0,0x01,0x00,0x00,0x64,0x00,0x24,0x12,0x00,0x03,0x00, 0x00,0x22,0x00,0x24,0x12,0x00,0x02,0x00,0x00,0x22,0x00,0xe4,0x11,0x00,0x02, 0x00,0x00,0x22,0x00,0x24,0x10,0x00,0x02,0x00,0x00,0x22,0x00,0x24,0x10,0x00, 0x02,0x00,0x00,0x12,0x00,0x28,0x08,0x00,0x04,0x00,0x00,0x12,0x00,0x10,0x04, 0x00,0x04,0x00,0x00,0x11,0x00,0xe0,0x03,0x00,0x04,0x00,0x00,0x11,0x00,0x00, 0x00,0x00,0x04,0x00,0x00,0x11,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x00, 0x00,0x00,0x00,0x04,0x00,0x00,0x11,0x08,0x80,0x00,0x08,0x04,0x00,0x00,0x09, 0x10,0x80,0x00,0x04,0x08,0x00,0x80,0x08,0x20,0x80,0x00,0x02,0x08,0x00,0x80, 0x08,0x40,0x80,0x00,0x01,0x08,0x00,0x80,0x08,0x80,0x80,0x80,0x00,0x08,0x00, 0x80,0x08,0x00,0x81,0x40,0x00,0x08,0x00,0x80,0x08,0x00,0x82,0x20,0x00,0x08, 0x00,0x80,0x08,0x00,0x84,0x10,0x00,0x08,0x00,0x40,0x04,0x00,0x88,0x08,0x00, 0x10,0x00,0x40,0x04,0x00,0x90,0x04,0x00,0x10,0x00,0x40,0x04,0x00,0xa0,0x02, 0x00,0x10,0x00,0x40,0x04,0x00,0xc0,0x01,0x00,0x10,0x00,0x40,0x04,0xf8,0xff, 0xff,0x0f,0x10,0x00,0x40,0x04,0x00,0x80,0x00,0x00,0x10,0x00,0x20,0x02,0x00, 0x80,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x20,0x00,0x20,0x02, 0x00,0x80,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x20,0x00,0x20, 0x02,0x00,0x80,0x00,0x00,0x20,0x00,0x20,0x02,0x00,0x80,0x00,0x00,0x20,0x00, 0x10,0x02,0x00,0x80,0x00,0x00,0x20,0x00,0x10,0x01,0x00,0x80,0x00,0x00,0x40, 0x00,0x10,0x01,0x00,0x80,0x00,0x00,0x40,0x00,0x10,0x01,0x00,0x80,0x00,0x00, 0x40,0x00,0x10,0x01,0x00,0x80,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00, 0x00,0x40,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x01,0x00,0x00, 0x00,0x00,0x40,0x00,0xa0,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00, 0x00,0x00,0x00,0x80,0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0xc0,0x00,0x80,0xff, 0xff,0xff,0xff,0xff,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/pawnPRW.xbm0000644000175000017500000000523112274270516016074 00000000000000#define pawnPRW_width 64 #define pawnPRW_height 64 static char pawnPRW_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf8,0xff,0xff,0xff,0xff,0xff, 0x3f,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x28,0x00,0x00,0x00,0x00, 0x00,0x80,0x00,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x90,0xff,0xff,0xff, 0xff,0xff,0xff,0x01,0x10,0x01,0x00,0x00,0x00,0x00,0x00,0x01,0x10,0x01,0x00, 0x00,0x00,0x00,0x00,0x01,0x10,0x01,0x00,0x00,0x00,0x00,0x00,0x01,0x10,0x02, 0x00,0x00,0x00,0x00,0x80,0x00,0x10,0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20, 0x02,0x00,0x00,0x00,0x00,0x80,0x00,0x20,0x02,0x00,0x00,0x01,0x00,0x80,0x00, 0x20,0x02,0x00,0x00,0x01,0x00,0x80,0x00,0x20,0x02,0x00,0x00,0x01,0x00,0x80, 0x00,0x20,0x02,0x00,0x00,0x01,0x00,0x80,0x00,0x20,0x04,0x00,0x00,0x01,0x00, 0x40,0x00,0x20,0x04,0x00,0x00,0x01,0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x01, 0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x01,0x00,0x40,0x00,0x40,0x04,0x00,0x00, 0x01,0x00,0x40,0x00,0x40,0x04,0x00,0x00,0x01,0x00,0x40,0x00,0x40,0x04,0x00, 0x00,0x01,0x00,0x40,0x00,0x40,0x08,0x00,0x00,0x01,0x00,0x20,0x00,0x80,0x08, 0xf0,0xff,0xff,0x1f,0x20,0x00,0x80,0x08,0x00,0x80,0x03,0x00,0x20,0x00,0x80, 0x08,0x00,0x40,0x05,0x00,0x20,0x00,0x80,0x08,0x00,0x20,0x09,0x00,0x20,0x00, 0x80,0x08,0x00,0x10,0x11,0x00,0x20,0x00,0x80,0x10,0x00,0x08,0x21,0x00,0x10, 0x00,0x80,0x10,0x00,0x04,0x41,0x00,0x10,0x00,0x00,0x11,0x00,0x02,0x81,0x00, 0x10,0x00,0x00,0x11,0x00,0x01,0x01,0x01,0x10,0x00,0x00,0x11,0x80,0x00,0x01, 0x02,0x10,0x00,0x00,0x11,0x40,0x00,0x01,0x04,0x10,0x00,0x00,0x11,0x20,0x00, 0x01,0x08,0x10,0x00,0x00,0x21,0x10,0x00,0x01,0x10,0x08,0x00,0x00,0x22,0x00, 0x00,0x00,0x00,0x08,0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x22, 0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x22,0x00,0xc0,0x07,0x00,0x08,0x00,0x00, 0x24,0x00,0x20,0x08,0x00,0x08,0x00,0x00,0x28,0x00,0x10,0x14,0x00,0x08,0x00, 0x00,0x48,0x00,0x08,0x24,0x00,0x04,0x00,0x00,0x50,0x00,0x08,0x24,0x00,0x04, 0x00,0x00,0x50,0x00,0x88,0x27,0x00,0x04,0x00,0x00,0x60,0x00,0x48,0x24,0x00, 0x04,0x00,0x00,0xc0,0x00,0x48,0x24,0x00,0x06,0x00,0x00,0x00,0x07,0x90,0x17, 0xc0,0x01,0x00,0x00,0x00,0x38,0x20,0x08,0x38,0x00,0x00,0x00,0x00,0xc0,0xc1, 0x07,0x07,0x00,0x00,0x00,0x00,0x00,0x0e,0xe0,0x00,0x00,0x00,0x00,0x00,0x00, 0x70,0x1c,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x03,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00}; xshogi-1.4.2/new_western_bitmaps/knightPW.xbm0000644000175000017500000000634112274270516016274 00000000000000#define knightPW_width 64 #define knightPW_height 64 static unsigned char knightPW_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4f, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x80, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xc0, 0x81, 0x03, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x38, 0x0e, 0x1c, 0x00, 0x00, 0x00, 0x08, 0x00, 0x07, 0x70, 0x60, 0x00, 0x00, 0x00, 0x0c, 0xe0, 0xe0, 0x83, 0x83, 0x00, 0x00, 0x00, 0x14, 0x1c, 0x10, 0x04, 0x1c, 0x01, 0x00, 0x00, 0x94, 0x03, 0x28, 0x0a, 0xe0, 0x01, 0x00, 0x00, 0x64, 0x00, 0x64, 0x12, 0x00, 0x03, 0x00, 0x00, 0x22, 0x00, 0xe4, 0x12, 0x00, 0x02, 0x00, 0x00, 0x22, 0x00, 0xa4, 0x12, 0x00, 0x02, 0x00, 0x00, 0x22, 0x00, 0xa4, 0x13, 0x00, 0x02, 0x00, 0x00, 0x22, 0x00, 0x24, 0x13, 0x00, 0x02, 0x00, 0x00, 0x12, 0x00, 0x28, 0x0a, 0x00, 0x04, 0x00, 0x00, 0x12, 0x00, 0x10, 0x04, 0x00, 0x04, 0x00, 0x00, 0x11, 0x00, 0xe0, 0x03, 0x00, 0x04, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x11, 0x08, 0x80, 0x00, 0x08, 0x04, 0x00, 0x00, 0x09, 0x10, 0x80, 0x00, 0x04, 0x08, 0x00, 0x80, 0x08, 0x20, 0x80, 0x00, 0x02, 0x08, 0x00, 0x80, 0x08, 0x40, 0x80, 0x00, 0x01, 0x08, 0x00, 0x80, 0x08, 0x80, 0x80, 0x80, 0x00, 0x08, 0x00, 0x80, 0x08, 0x00, 0x81, 0x40, 0x00, 0x08, 0x00, 0x80, 0x08, 0x00, 0x82, 0x20, 0x00, 0x08, 0x00, 0x80, 0x08, 0x00, 0x84, 0x10, 0x00, 0x08, 0x00, 0x40, 0x04, 0x00, 0x88, 0x08, 0x00, 0x10, 0x00, 0x40, 0x04, 0x00, 0x90, 0x04, 0x00, 0x10, 0x00, 0x40, 0x04, 0x00, 0xa0, 0x02, 0x00, 0x10, 0x00, 0x40, 0x04, 0x00, 0xc0, 0x01, 0x00, 0x10, 0x00, 0x40, 0x04, 0xf8, 0xff, 0xff, 0x0f, 0x10, 0x00, 0x40, 0x04, 0x00, 0x80, 0x00, 0x00, 0x10, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x20, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x10, 0x02, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x10, 0x01, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x10, 0x01, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x10, 0x01, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x10, 0x01, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; xshogi-1.4.2/COPYING0000644000175000017500000010451312274272444011007 00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read .