changeset: 9:923e5600c72e
tag: tip
user: Anselm R Garbe <garbeam_AT_gmail.com>
date: Tue Jul 29 19:05:33 2008 +0100
files: README sselp.c
description:
prepared new sselp release
diff -r b1d7c6959f68 -r 923e5600c72e README
--- a/README Tue Jul 29 19:02:49 2008 +0100
+++ b/README Tue Jul 29 19:05:33 2008 +0100
@@ -10,11 +10,11 @@
Installation
------------
-Edit config.mk to match your local setup (swarp is installed into
+Edit config.mk to match your local setup (sselp is installed into
the /usr/local namespace by default).
-Afterwards enter the following command to build and install swarp (if
-necessary as root):
+Afterwards enter the following command to build and install sselp
+(if necessary as root):
make clean install
diff -r b1d7c6959f68 -r 923e5600c72e sselp.c
--- a/sselp.c Tue Jul 29 19:02:49 2008 +0100
+++ b/sselp.c Tue Jul 29 19:05:33 2008 +0100
@@ -1,5 +1,4 @@
-/* See LICENSE file for license details.
- */
+/* See LICENSE file for license details. */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -7,10 +6,8 @@
#include <X11/Xatom.h>
#include <X11/Xutil.h>
-/* static */
-
static unsigned char *
-getselection(unsigned long offset, unsigned long *len, unsigned long *remain) {
+getsel(unsigned long offset, unsigned long *len, unsigned long *remain) {
Display *dpy;
Atom utf8_string;
Atom xa_clip_string;
@@ -46,20 +43,18 @@
return result;
}
-/* extern */
-
int
main(int argc, char **argv) {
unsigned char *data;
unsigned long i, offset, len, remain;
if((argc > 1) && !strncmp(argv[1], "-v", 3)) {
- fputs("sselp-"VERSION", © 2006-2008 Anselm R. Garbe\n", stdout);
+ fputs("sselp-"VERSION", © 2006-2008 Anselm R Garbe\n", stdout);
exit(EXIT_SUCCESS);
}
len = offset = remain = 0;
do {
- data = getselection(offset, &len, &remain);
+ data = getsel(offset, &len, &remain);
for(i = 0; i < len; i++)
putchar(data[i]);
offset += len;
Received on Tue Jul 29 2008 - 18:05:37 UTC
This archive was generated by hypermail 2.2.0 : Tue Jul 29 2008 - 18:12:06 UTC