From f05428e4cd63dde97bac14b84dd146a5c00455e3 Mon Sep 17 00:00:00 2001 From: rgrimes Date: Tue, 30 May 1995 05:51:47 +0000 Subject: Remove trailing whitespace. --- lib/libforms/bindings.c | 4 ++-- lib/libforms/examples/example.c | 4 ++-- lib/libforms/forms.c | 6 +++--- lib/libforms/forms.h | 4 ++-- lib/libforms/internal.h | 4 ++-- lib/libforms/ncurses.c | 16 ++++++++-------- lib/libforms/objects.c | 16 ++++++++-------- 7 files changed, 27 insertions(+), 27 deletions(-) (limited to 'lib/libforms') diff --git a/lib/libforms/bindings.c b/lib/libforms/bindings.c index d568da5..947b5ee 100644 --- a/lib/libforms/bindings.c +++ b/lib/libforms/bindings.c @@ -6,8 +6,8 @@ * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer, - * verbatim and that no modifications are made prior to this + * notice, this list of conditions and the following disclaimer, + * verbatim and that no modifications are made prior to this * point in the file. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the diff --git a/lib/libforms/examples/example.c b/lib/libforms/examples/example.c index b08a4ea..131ee04 100644 --- a/lib/libforms/examples/example.c +++ b/lib/libforms/examples/example.c @@ -6,8 +6,8 @@ * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer, - * verbatim and that no modifications are made prior to this + * notice, this list of conditions and the following disclaimer, + * verbatim and that no modifications are made prior to this * point in the file. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the diff --git a/lib/libforms/forms.c b/lib/libforms/forms.c index 575608f..2c2a87a 100644 --- a/lib/libforms/forms.c +++ b/lib/libforms/forms.c @@ -6,8 +6,8 @@ * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer, - * verbatim and that no modifications are made prior to this + * notice, this list of conditions and the following disclaimer, + * verbatim and that no modifications are made prior to this * point in the file. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the @@ -65,7 +65,7 @@ struct intbind { struct intbind internal_bindings[] = { {"draw_box", &draw_box}, {"draw_shadow", &draw_shadow} -}; +}; /* Bind the internal function addresses */ diff --git a/lib/libforms/forms.h b/lib/libforms/forms.h index ceac287..d5bd723 100644 --- a/lib/libforms/forms.h +++ b/lib/libforms/forms.h @@ -6,8 +6,8 @@ * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer, - * verbatim and that no modifications are made prior to this + * notice, this list of conditions and the following disclaimer, + * verbatim and that no modifications are made prior to this * point in the file. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the diff --git a/lib/libforms/internal.h b/lib/libforms/internal.h index ba38601..e7c5b27 100644 --- a/lib/libforms/internal.h +++ b/lib/libforms/internal.h @@ -6,8 +6,8 @@ * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer, - * verbatim and that no modifications are made prior to this + * notice, this list of conditions and the following disclaimer, + * verbatim and that no modifications are made prior to this * point in the file. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the diff --git a/lib/libforms/ncurses.c b/lib/libforms/ncurses.c index 5db4dd1..87ec478 100644 --- a/lib/libforms/ncurses.c +++ b/lib/libforms/ncurses.c @@ -6,8 +6,8 @@ * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer, - * verbatim and that no modifications are made prior to this + * notice, this list of conditions and the following disclaimer, + * verbatim and that no modifications are made prior to this * point in the file. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the @@ -147,7 +147,7 @@ ncurses_parse_attrs(OBJECT *object, char *string) AttrType attr_type; int len, y, x; int skip = 0; - + if ((!string) || (*string != '\\')) return (0); @@ -155,7 +155,7 @@ ncurses_parse_attrs(OBJECT *object, char *string) if (*(string + inc) == '\\') return (skip); - while ((!isspace(*(string + inc))) + while ((!isspace(*(string + inc))) && (*(string+inc) != '\\') && (*(string + inc) != '\0')) inc++; @@ -201,7 +201,7 @@ ncurses_parse_attrs(OBJECT *object, char *string) break; } - + skip += inc; string += inc; inc = 0; @@ -245,7 +245,7 @@ ncurses_print_string(OBJECT *object, char *string) } } return (OK); -} +} void ncurses_display_object(OBJECT *object) @@ -554,7 +554,7 @@ ncurses_process_input(OBJECT *object) --cursor; } } - } else if ((isprint(ch)) && (len < object->object.input->limit)){ + } else if ((isprint(ch)) && (len < object->object.input->limit)){ bcopy(object->object.input->input+abspos, object->object.input->input+abspos+1, len-abspos+1); object->object.input->input[abspos++] = ch; @@ -563,7 +563,7 @@ ncurses_process_input(OBJECT *object) ++disp_off; --cursor; } - } else + } else beep(); ncurses_print_string(object, object->object.input->input+disp_off); } diff --git a/lib/libforms/objects.c b/lib/libforms/objects.c index 335e4ad..0a51cae 100644 --- a/lib/libforms/objects.c +++ b/lib/libforms/objects.c @@ -6,8 +6,8 @@ * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer, - * verbatim and that no modifications are made prior to this + * notice, this list of conditions and the following disclaimer, + * verbatim and that no modifications are made prior to this * point in the file. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the @@ -116,13 +116,13 @@ __inline void clone_object(OBJECT *object, OBJECT *def) { int i; - + /* XXX - Should really check if strdup's succeed */ object->type = def->type; object->status = def->status; object->parent = def->parent; - /* + /* * Only copy sizes for fixed size objects, * otherwise inherit from parent. Always * inherit x and y. @@ -188,7 +188,7 @@ clone_object(OBJECT *object, OBJECT *def) if (!object->object.function) errx(-1, "Failed to allocate memory for copy of function object"); object->object.function->fn = strdup(def->object.function->fn); - break; + break; case OT_INPUT: object->object.input = malloc(sizeof (INPUT_OBJECT)); if (!object->object.input) @@ -204,7 +204,7 @@ clone_object(OBJECT *object, OBJECT *def) errx(-1, "Failed to allocate memory for copy of menu object"); object->object.menu->selected = def->object.menu->selected; for (i=0; i < def->object.menu->no_options; i++) { - object->object.menu->no_options = + object->object.menu->no_options = add_menu_option(object->object.menu, def->object.menu->options[i]); if (!object->object.menu->no_options) @@ -256,7 +256,7 @@ copy_bound_objects(char *key, void *data, void *arg) int use_defined_object(OBJECT *object, char *src) -{ +{ TUPLE *tuple; OBJECT *def; @@ -271,7 +271,7 @@ use_defined_object(OBJECT *object, char *src) /* Now recursively clone sub-objects */ hash_traverse(def->bind, ©_bound_objects, object); -} +} /* -- cgit v1.1