- Adapted indenation to new agreed upon system

- Fixed bad status in poldi zug driver
This commit is contained in:
koennecke
2009-02-13 09:01:03 +00:00
parent 6c7bb14fad
commit eb72d5c486
151 changed files with 38234 additions and 38208 deletions

View File

@@ -28,69 +28,69 @@
#include <sics.h>
typedef struct {
pObjectDescriptor pDes; /* needed */
char *name; /* BufferName */
int iLineList; /* Handle to the Line List */
} RuenBuffer, *pRuenBuffer;
/*--------------------- live & death ----------------------------------- */
pRuenBuffer CreateRuenBuffer(char *name);
void DeleteRuenBuffer(void *pSelf);
pRuenBuffer CopyRuenBuffer(pRuenBuffer pOld, char *NewName);
typedef struct {
pObjectDescriptor pDes; /* needed */
char *name; /* BufferName */
int iLineList; /* Handle to the Line List */
} RuenBuffer, *pRuenBuffer;
/*--------------------- live & death ----------------------------------- */
pRuenBuffer CreateRuenBuffer(char *name);
void DeleteRuenBuffer(void *pSelf);
pRuenBuffer CopyRuenBuffer(pRuenBuffer pOld, char *NewName);
/*--------------------- operations --------------------------------------*/
int BufferAppendLine(pRuenBuffer self, char *line);
int BufferDel(pRuenBuffer self, int iLine);
int BufferAppendLine(pRuenBuffer self, char *line);
int BufferDel(pRuenBuffer self, int iLine);
/*
deletes line iLine from the RuenBuffer self
-------------------------------------------------------------------------*/
int BufferInsertAfter(pRuenBuffer self, int iLine, char *line);
------------------------------------------------------------------------- */
int BufferInsertAfter(pRuenBuffer self, int iLine, char *line);
/*
inserts line line AFTER line number iLine in the RuenBuffer self
------------------------------------------------------------------------- */
int BufferPrint(pRuenBuffer self, SConnection *pCon);
------------------------------------------------------------------------- */
int BufferPrint(pRuenBuffer self, SConnection * pCon);
/*
lists the contents of the RuenBuffer on the Connection pCon
------------------------------------------------------------------------ */
int BufferReplace(pRuenBuffer self, char *pattern, char *pReplace);
lists the contents of the RuenBuffer on the Connection pCon
------------------------------------------------------------------------ */
int BufferReplace(pRuenBuffer self, char *pattern, char *pReplace);
/*
replaces all occurences of the string pattern in the whole RuenBuffer
by the replacement string pReplace.
------------------------------------------------------------------------- */
int BufferRun(pRuenBuffer self, SConnection *pCon, SicsInterp *pSics);
replaces all occurences of the string pattern in the whole RuenBuffer
by the replacement string pReplace.
------------------------------------------------------------------------- */
int BufferRun(pRuenBuffer self, SConnection * pCon, SicsInterp * pSics);
/*
executes the lines of the Ruenbuffer one by one.
Returns 1 on success, 0 on error.
------------------------------------------------------------------------- */
int BufferSave(pRuenBuffer self, char *file);
------------------------------------------------------------------------- */
int BufferSave(pRuenBuffer self, char *file);
/*
writes the contents of Ruenbuffer self to the file specified by
file.
writes the contents of Ruenbuffer self to the file specified by
file.
Returns 1 on success, 0 on error.
--------------------------------------------------------------------------*/
int BufferLoad(pRuenBuffer self, char *file);
-------------------------------------------------------------------------- */
int BufferLoad(pRuenBuffer self, char *file);
/*
reads the contents of file into the RuenBuffer self.
reads the contents of file into the RuenBuffer self.
Returns 1 on success, 0 on error.
*/
*/
/* ------------------------ object functions ----------------------------*/
int InitBufferSys(SConnection *pCon, SicsInterp *pSics, void *pData,
int argc, char *argv[]);
int BufferCommand(SConnection *pCon, SicsInterp *pSics, void *pData,
int argc, char *argv[]);
int BufferAction(SConnection *pCon, SicsInterp *pSics, void *pData,
int argc, char *argv[]);
int InitBufferSys(SConnection * pCon, SicsInterp * pSics, void *pData,
int argc, char *argv[]);
int BufferCommand(SConnection * pCon, SicsInterp * pSics, void *pData,
int argc, char *argv[]);
int BufferAction(SConnection * pCon, SicsInterp * pSics, void *pData,
int argc, char *argv[]);
/* ----------------------- utility --------------------------------------*/
pRuenBuffer FindRuenBuffer(SicsInterp *pSics, char *name);
pRuenBuffer FindRuenBuffer(SicsInterp * pSics, char *name);
/*
similar to FindCommand in SCinter.h. But checks the object found if
it is a RuenBuffer.
Returns NULL if no RuenBuffer with this name could be found.
Returns a pointer to the RuenBuffer, when a RuenBuffer of this
name could be found in the interpreter pSics
----------------------------------------------------------------------------*/
#endif
---------------------------------------------------------------------------- */
#endif