summaryrefslogtreecommitdiff
path: root/src/data.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-30 15:45:20 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-30 15:45:20 -0200
commit6697e31fbb616656b7f34515a79454af394b500a (patch)
tree504d0d5c456226bec6ced89839d94964a728e321 /src/data.c
parent41e4e2de4d73d098d332ece0410e9f8fda4fe10d (diff)
Janitor: ansification, make distcheck, .gitignore
The ansification code is minor edit of the patch (by me) at https://bugs.freedesktop.org/show_bug.cgi?id=14727 as it would not apply cleanly anymore.
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;