\hypertarget{minos_8c}{}\doxysection{minos.\+c File Reference}
\label{minos_8c}\index{minos.c@{minos.c}}
{\ttfamily \#include \char`\"{}form3.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}minos.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bfseries C\+FD}(y,  s,  type,  x,  j)
\item 
\#define {\bfseries C\+TD}(y,  s,  type,  x,  j)
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{minos_8c_ad34fd2e22f1aa29242831c35070f089c}\label{minos_8c_ad34fd2e22f1aa29242831c35070f089c}} 
int {\bfseries minosread} (F\+I\+LE $\ast$f, char $\ast$buffer, M\+L\+O\+NG size)
\item 
\mbox{\Hypertarget{minos_8c_aec43c3bdd7d524284a0ab76bf0379445}\label{minos_8c_aec43c3bdd7d524284a0ab76bf0379445}} 
int {\bfseries minoswrite} (F\+I\+LE $\ast$f, char $\ast$buffer, M\+L\+O\+NG size)
\item 
\mbox{\Hypertarget{minos_8c_ab0b221617223765a2bced92d6e388e37}\label{minos_8c_ab0b221617223765a2bced92d6e388e37}} 
char $\ast$ {\bfseries str\+\_\+dup} (char $\ast$str)
\item 
\mbox{\Hypertarget{minos_8c_ae04120153192a29abc752d8403c05124}\label{minos_8c_ae04120153192a29abc752d8403c05124}} 
void {\bfseries convertblock} (\mbox{\hyperlink{structindexblock}{I\+N\+D\+E\+X\+B\+L\+O\+CK}} $\ast$in, \mbox{\hyperlink{structindexblock}{I\+N\+D\+E\+X\+B\+L\+O\+CK}} $\ast$out, int mode)
\item 
\mbox{\Hypertarget{minos_8c_a59c4655f97fe1257f6ec76627f3f2f52}\label{minos_8c_a59c4655f97fe1257f6ec76627f3f2f52}} 
void {\bfseries convertnamesblock} (\mbox{\hyperlink{structnameblock}{N\+A\+M\+E\+S\+B\+L\+O\+CK}} $\ast$in, \mbox{\hyperlink{structnameblock}{N\+A\+M\+E\+S\+B\+L\+O\+CK}} $\ast$out, int mode)
\item 
\mbox{\Hypertarget{minos_8c_a6d2b3aa93bb576a9fdb3f6bb3e1934fd}\label{minos_8c_a6d2b3aa93bb576a9fdb3f6bb3e1934fd}} 
void {\bfseries convertiniinfo} (\mbox{\hyperlink{structiniinfo}{I\+N\+I\+I\+N\+FO}} $\ast$in, \mbox{\hyperlink{structiniinfo}{I\+N\+I\+I\+N\+FO}} $\ast$out, int mode)
\item 
\mbox{\Hypertarget{minos_8c_a8670f480c0ebbcd3847035fb5ae7ddda}\label{minos_8c_a8670f480c0ebbcd3847035fb5ae7ddda}} 
F\+I\+LE $\ast$ {\bfseries Locate\+Base} (char $\ast$$\ast$name, char $\ast$$\ast$newname)
\item 
\mbox{\Hypertarget{minos_8c_a60cd4c65e191af7271932522905a0e70}\label{minos_8c_a60cd4c65e191af7271932522905a0e70}} 
int {\bfseries Read\+Index} (\mbox{\hyperlink{structdbase}{D\+B\+A\+SE}} $\ast$d)
\item 
\mbox{\Hypertarget{minos_8c_ade49053a09f55f0efa5e1233dc3a3c60}\label{minos_8c_ade49053a09f55f0efa5e1233dc3a3c60}} 
int {\bfseries Write\+Index\+Block} (\mbox{\hyperlink{structdbase}{D\+B\+A\+SE}} $\ast$d, M\+L\+O\+NG num)
\item 
\mbox{\Hypertarget{minos_8c_a910886cf2828c31ea0eea39cbe20d2c5}\label{minos_8c_a910886cf2828c31ea0eea39cbe20d2c5}} 
int {\bfseries Write\+Names\+Block} (\mbox{\hyperlink{structdbase}{D\+B\+A\+SE}} $\ast$d, M\+L\+O\+NG num)
\item 
\mbox{\Hypertarget{minos_8c_a3e95c16e3f9836abb47dc02821d19404}\label{minos_8c_a3e95c16e3f9836abb47dc02821d19404}} 
int {\bfseries Write\+Index} (\mbox{\hyperlink{structdbase}{D\+B\+A\+SE}} $\ast$d)
\item 
\mbox{\Hypertarget{minos_8c_a1f1f90e2e37ace10d7c2ab4127d0a50b}\label{minos_8c_a1f1f90e2e37ace10d7c2ab4127d0a50b}} 
int {\bfseries Write\+Ini\+Info} (\mbox{\hyperlink{structdbase}{D\+B\+A\+SE}} $\ast$d)
\item 
\mbox{\Hypertarget{minos_8c_a568a71394a96bc07273a0c017cf8c88e}\label{minos_8c_a568a71394a96bc07273a0c017cf8c88e}} 
int {\bfseries Read\+Ini\+Info} (\mbox{\hyperlink{structdbase}{D\+B\+A\+SE}} $\ast$d)
\item 
\mbox{\Hypertarget{minos_8c_a70fdbfabfc8287d0c613395abca72240}\label{minos_8c_a70fdbfabfc8287d0c613395abca72240}} 
\mbox{\hyperlink{structdbase}{D\+B\+A\+SE}} $\ast$ {\bfseries Get\+Dbase} (char $\ast$filename)
\item 
\mbox{\Hypertarget{minos_8c_ae36562bddd8ce724b7aed262befc686d}\label{minos_8c_ae36562bddd8ce724b7aed262befc686d}} 
\mbox{\hyperlink{structdbase}{D\+B\+A\+SE}} $\ast$ {\bfseries New\+Dbase} (char $\ast$name, M\+L\+O\+NG number)
\item 
\mbox{\Hypertarget{minos_8c_adf83d22ec58918f7a68fb23d6cf33230}\label{minos_8c_adf83d22ec58918f7a68fb23d6cf33230}} 
void {\bfseries Free\+Table\+Base} (\mbox{\hyperlink{structdbase}{D\+B\+A\+SE}} $\ast$d)
\item 
\mbox{\Hypertarget{minos_8c_a5c51eec675a7e23239aae7b9bc3e65fb}\label{minos_8c_a5c51eec675a7e23239aae7b9bc3e65fb}} 
int {\bfseries Compose\+Table\+Names} (\mbox{\hyperlink{structdbase}{D\+B\+A\+SE}} $\ast$d)
\item 
\mbox{\Hypertarget{minos_8c_a9fca4876925f72ed1f2d9f7702faf74d}\label{minos_8c_a9fca4876925f72ed1f2d9f7702faf74d}} 
\mbox{\hyperlink{structdbase}{D\+B\+A\+SE}} $\ast$ {\bfseries Open\+Dbase} (char $\ast$filename)
\item 
\mbox{\Hypertarget{minos_8c_a67193cf4797ca910d8f415fc1685f708}\label{minos_8c_a67193cf4797ca910d8f415fc1685f708}} 
M\+L\+O\+NG {\bfseries Add\+Table\+Name} (\mbox{\hyperlink{structdbase}{D\+B\+A\+SE}} $\ast$d, char $\ast$name, \mbox{\hyperlink{structs_8h_a527a7f40a66c2b2bb735329fac3557ff}{T\+A\+B\+L\+ES}} T)
\item 
\mbox{\Hypertarget{minos_8c_a43a9aa4f172ebb0205d8f241309ea8f3}\label{minos_8c_a43a9aa4f172ebb0205d8f241309ea8f3}} 
M\+L\+O\+NG {\bfseries Get\+Table\+Name} (\mbox{\hyperlink{structdbase}{D\+B\+A\+SE}} $\ast$d, char $\ast$name)
\item 
\mbox{\Hypertarget{minos_8c_ad26ad25890688d5b015f2d93987fb445}\label{minos_8c_ad26ad25890688d5b015f2d93987fb445}} 
int {\bfseries Put\+Table\+Names} (\mbox{\hyperlink{structdbase}{D\+B\+A\+SE}} $\ast$d)
\item 
\mbox{\Hypertarget{minos_8c_a2aee0272f168ad66c05d9467052ca4f4}\label{minos_8c_a2aee0272f168ad66c05d9467052ca4f4}} 
int {\bfseries Add\+To\+Index} (\mbox{\hyperlink{structdbase}{D\+B\+A\+SE}} $\ast$d, M\+L\+O\+NG number)
\item 
\mbox{\Hypertarget{minos_8c_a6488c163968038f47b2a3d624265ba82}\label{minos_8c_a6488c163968038f47b2a3d624265ba82}} 
M\+L\+O\+NG {\bfseries Add\+Object} (\mbox{\hyperlink{structdbase}{D\+B\+A\+SE}} $\ast$d, M\+L\+O\+NG tablenumber, char $\ast$arguments, char $\ast$rhs)
\item 
\mbox{\Hypertarget{minos_8c_ad96f3f94e2bc1d167cb62fc99714d9c5}\label{minos_8c_ad96f3f94e2bc1d167cb62fc99714d9c5}} 
M\+L\+O\+NG {\bfseries Find\+Table\+Number} (\mbox{\hyperlink{structdbase}{D\+B\+A\+SE}} $\ast$d, char $\ast$name)
\item 
\mbox{\Hypertarget{minos_8c_ab3d7ae5280fa7f8d61e3a75b6808479b}\label{minos_8c_ab3d7ae5280fa7f8d61e3a75b6808479b}} 
int {\bfseries Write\+Object} (\mbox{\hyperlink{structdbase}{D\+B\+A\+SE}} $\ast$d, M\+L\+O\+NG tablenumber, char $\ast$arguments, char $\ast$rhs, M\+L\+O\+NG number)
\item 
\mbox{\Hypertarget{minos_8c_aa28ad471c3b05aa0aeadfeb9054f7239}\label{minos_8c_aa28ad471c3b05aa0aeadfeb9054f7239}} 
char $\ast$ {\bfseries Read\+Object} (\mbox{\hyperlink{structdbase}{D\+B\+A\+SE}} $\ast$d, M\+L\+O\+NG tablenumber, char $\ast$arguments)
\item 
\mbox{\Hypertarget{minos_8c_aabd81a8a06bd98d3bfe1d22c5dd1146b}\label{minos_8c_aabd81a8a06bd98d3bfe1d22c5dd1146b}} 
char $\ast$ {\bfseries Readij\+Object} (\mbox{\hyperlink{structdbase}{D\+B\+A\+SE}} $\ast$d, M\+L\+O\+NG i, M\+L\+O\+NG j, char $\ast$arguments)
\item 
\mbox{\Hypertarget{minos_8c_ae52d8f0702153b7fcd2a7d1ecd437dd4}\label{minos_8c_ae52d8f0702153b7fcd2a7d1ecd437dd4}} 
int {\bfseries Exists\+Object} (\mbox{\hyperlink{structdbase}{D\+B\+A\+SE}} $\ast$d, M\+L\+O\+NG tablenumber, char $\ast$arguments)
\item 
\mbox{\Hypertarget{minos_8c_a552bbc2554941c3775269c2861049556}\label{minos_8c_a552bbc2554941c3775269c2861049556}} 
int {\bfseries Delete\+Object} (\mbox{\hyperlink{structdbase}{D\+B\+A\+SE}} $\ast$d, M\+L\+O\+NG tablenumber, char $\ast$arguments)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{minos_8c_a54a3f1870ea4ea58ae87fe6d226f01cf}\label{minos_8c_a54a3f1870ea4ea58ae87fe6d226f01cf}} 
int {\bfseries withoutflush} = 0
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
These are the low level functions for the database part of the tablebases. These routines have been copied (and then adapted) from the minos database program. This file goes together with \mbox{\hyperlink{minos_8h}{minos.\+h}} 

\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{minos_8c_a7629a81b520203045373b3a1961fd5f1}\label{minos_8c_a7629a81b520203045373b3a1961fd5f1}} 
\index{minos.c@{minos.c}!CFD@{CFD}}
\index{CFD@{CFD}!minos.c@{minos.c}}
\doxysubsubsection{\texorpdfstring{CFD}{CFD}}
{\footnotesize\ttfamily \#define C\+FD(\begin{DoxyParamCaption}\item[{}]{y,  }\item[{}]{s,  }\item[{}]{type,  }\item[{}]{x,  }\item[{}]{j }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{keywordflow}{for}(x=0,j=0;j<((int)\textcolor{keyword}{sizeof}(type));j++) \(\backslash\)}
\DoxyCodeLine{    x=(x<<8)+((*s++)\&0x00FF); y=x;}

\end{DoxyCode}


Definition at line 55 of file minos.\+c.

\mbox{\Hypertarget{minos_8c_a9b2896c7297de3b5c04efcbbff215955}\label{minos_8c_a9b2896c7297de3b5c04efcbbff215955}} 
\index{minos.c@{minos.c}!CTD@{CTD}}
\index{CTD@{CTD}!minos.c@{minos.c}}
\doxysubsubsection{\texorpdfstring{CTD}{CTD}}
{\footnotesize\ttfamily \#define C\+TD(\begin{DoxyParamCaption}\item[{}]{y,  }\item[{}]{s,  }\item[{}]{type,  }\item[{}]{x,  }\item[{}]{j }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{x=y;\textcolor{keywordflow}{for}(j=\textcolor{keyword}{sizeof}(type)-\/1;j>=0;j-\/-\/)\{s[j]=x\&0xFF; \(\backslash\)}
\DoxyCodeLine{                      x>>=8;\} s += \textcolor{keyword}{sizeof}(type);}

\end{DoxyCode}


Definition at line 57 of file minos.\+c.

