summaryrefslogtreecommitdiff
path: root/src/data.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c34
1 files changed, 16 insertions, 18 deletions
diff --git a/src/data.c b/src/data.c
index 87f4b3f..94caa61 100644
--- a/src/data.c
+++ b/src/data.c
@@ -182,8 +182,7 @@ ParseComment(xpmData *data)
* skip to the end of the current string and the beginning of the next one
*/
int
-xpmNextString(data)
- xpmData *data;
+xpmNextString(xpmData *data)
{
if (!data->type)
data->cptr = (data->stream.data)[++data->line];
@@ -238,10 +237,10 @@ xpmNextString(data)
* skip whitespace and return the following word
*/
unsigned int
-xpmNextWord(data, buf, buflen)
- xpmData *data;
- char *buf;
- unsigned int buflen;
+xpmNextWord(
+ xpmData *data,
+ char *buf,
+ unsigned int buflen)
{
register unsigned int n = 0;
int c;
@@ -275,9 +274,9 @@ xpmNextWord(data, buf, buflen)
* returns 1 if one is found and 0 if not
*/
int
-xpmNextUI(data, ui_return)
- xpmData *data;
- unsigned int *ui_return;
+xpmNextUI(
+ xpmData *data,
+ unsigned int *ui_return)
{
char buf[BUFSIZ];
int l;
@@ -290,10 +289,10 @@ xpmNextUI(data, ui_return)
* return end of string - WARNING: malloc!
*/
int
-xpmGetString(data, sptr, l)
- xpmData *data;
- char **sptr;
- unsigned int *l;
+xpmGetString(
+ xpmData *data,
+ char **sptr,
+ unsigned int *l)
{
unsigned int i, n = 0;
int c;
@@ -374,9 +373,9 @@ xpmGetString(data, sptr, l)
* get the current comment line
*/
int
-xpmGetCmt(data, cmt)
- xpmData *data;
- char **cmt;
+xpmGetCmt(
+ xpmData *data,
+ char **cmt)
{
if (!data->type)
*cmt = NULL;
@@ -403,8 +402,7 @@ xpmDataType xpmDataTypes[] =
* parse xpm header
*/
int
-xpmParseHeader(data)
- xpmData *data;
+xpmParseHeader(xpmData *data)
{
char buf[BUFSIZ+1] = {0};
int l, n = 0;