- Adapted indenation to new agreed upon system
- Added support for second generation scriptcontext based counter
This commit is contained in:
28
exebuf.h
28
exebuf.h
@@ -16,27 +16,27 @@
|
||||
|
||||
#line 44 "exe.w"
|
||||
|
||||
typedef struct __EXEBUF *pExeBuf;
|
||||
typedef struct __EXEBUF *pExeBuf;
|
||||
|
||||
/**
|
||||
* create an exe buffer
|
||||
* @param The name to use for the exe buffer
|
||||
* @return A new exe buffer or NULL if out of memory
|
||||
*/
|
||||
pExeBuf exeBufCreate(char *name);
|
||||
pExeBuf exeBufCreate(char *name);
|
||||
/**
|
||||
* delete an exe buffer
|
||||
* @param data The exe buffer to delete
|
||||
*/
|
||||
void exeBufKill(void *data);
|
||||
void exeBufDelete(pExeBuf data);
|
||||
void exeBufKill(void *data);
|
||||
void exeBufDelete(pExeBuf data);
|
||||
/**
|
||||
* add a a line to the exe buffer
|
||||
* @param self The exe buffer the line is to be added to
|
||||
* @param line The text to add
|
||||
* @return 1 on success, 0 when out of memory
|
||||
*/
|
||||
int exeBufAppend(pExeBuf self, char *line);
|
||||
int exeBufAppend(pExeBuf self, char *line);
|
||||
/**
|
||||
* load an exe buffer from a file
|
||||
* @param self The exe buffer to load
|
||||
@@ -44,14 +44,14 @@
|
||||
* @return 1 on success, 0 if the file could not be opened or
|
||||
* memory is exhausted.
|
||||
*/
|
||||
int exeBufLoad(pExeBuf self, char *filename);
|
||||
int exeBufLoad(pExeBuf self, char *filename);
|
||||
/**
|
||||
* save an exe buffer to a file.
|
||||
* @param self The exe buffer to laod
|
||||
* @param filename The name of the file to laod
|
||||
* @return 1 on success, 0 if the file could not be opened.
|
||||
*/
|
||||
int exeBufSave(pExeBuf self, char *filename);
|
||||
int exeBufSave(pExeBuf self, char *filename);
|
||||
/**
|
||||
* process an exe buffer
|
||||
* @param self The exe buffer to process
|
||||
@@ -61,8 +61,8 @@
|
||||
* @pCall The callback interface to use for automatic notifications
|
||||
* @return 1 on success, 0 on error
|
||||
*/
|
||||
int exeBufProcess(pExeBuf self, SicsInterp *pSics,
|
||||
SConnection *pCon, pICallBack pCall, int echo);
|
||||
int exeBufProcess(pExeBuf self, SicsInterp * pSics,
|
||||
SConnection * pCon, pICallBack pCall, int echo);
|
||||
/**
|
||||
* Process an exe buffer, but store commands causing errors in a list.
|
||||
* This is used for restoring status files.
|
||||
@@ -74,8 +74,8 @@
|
||||
* had errors.
|
||||
* @return 1 on success, 0 on error
|
||||
*/
|
||||
int exeBufProcessErrList(pExeBuf self, SicsInterp *pSics,
|
||||
SConnection *pCon, int errCommandList);
|
||||
int exeBufProcessErrList(pExeBuf self, SicsInterp * pSics,
|
||||
SConnection * pCon, int errCommandList);
|
||||
/**
|
||||
* retrieves the executing range
|
||||
* @param self The exe buffer to query
|
||||
@@ -83,7 +83,7 @@
|
||||
* @param end The end of the executing range
|
||||
* @param lineno The current line number
|
||||
*/
|
||||
void exeBufRange(pExeBuf self, int *start, int *end, int *lineno);
|
||||
void exeBufRange(pExeBuf self, int *start, int *end, int *lineno);
|
||||
/**
|
||||
* retrieves some portion of text
|
||||
* @param self The exe buffer to query
|
||||
@@ -93,14 +93,14 @@
|
||||
* the clients task to delete this buffer sfter use. Or NULL if out of
|
||||
* memory.
|
||||
*/
|
||||
pDynString exeBufText(pExeBuf self, int start, int end);
|
||||
pDynString exeBufText(pExeBuf self, int start, int end);
|
||||
/**
|
||||
* retrieves the name of the batch buffer
|
||||
* @param self The exe buffer to query
|
||||
* @return A pointer to the buffer name. Do not delete! The name
|
||||
* is still owned by the exe beuffer.
|
||||
*/
|
||||
char *exeBufName(pExeBuf self);
|
||||
char *exeBufName(pExeBuf self);
|
||||
|
||||
#line 240 "exe.w"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user