Browse Source

delete ancient and unused directory

I'm actually very puzzled why this directory is in current trunk. It was
added in r1, and according to svn log, never touched since. Have I been
blind and ignored this directory for 11 years?!
tags/2.74
Joey Hess 13 years ago
parent
commit
a93553034c
3 changed files with 0 additions and 80 deletions
  1. +0
    -25
      scratch/Makefile
  2. +0
    -20
      scratch/flowtest.c
  3. +0
    -35
      scratch/testdata.c

+ 0
- 25
scratch/Makefile View File

@@ -1,25 +0,0 @@
CC = gcc
CFLAGS = -g -Wall -I..
DEFS = -DVERSION=$(VERSION) -DPACKAGE=\"$(PROGRAM)\" -DLOCALEDIR=\"/usr/share/locale\" -DDEBUG
LIBS = -lslang

COMPILE = $(CC) $(CFLAGS) $(DEFS) -c
LINK = $(CC) $(CFLAGS) $(DEFS) -o

all: testdata flowtest

../%.o: ../%.c
$(COMPILE) $< -o $@

%.o: %.c
$(COMPILE) $<

testdata: ../data.o ../util.o testdata.o
$(LINK) testdata $^

flowtest: ../strutl.o ../util.o flowtest.o
$(LINK) flowtest $^

clean:
rm -f *.o *~ testdata flowtest


+ 0
- 20
scratch/flowtest.c View File

@@ -1,20 +0,0 @@
#include <stdio.h>
#include "strutl.h"
#include <stdlib.h>

int main(int argc, char**argv)
{
char *buf;
char *S1 = "99 bottles of beer on the\rwall, 99 bottles\r of beer, take one down, pass it around";
char *S2 = "99bottlesofbeeronthewall,99bottlesofbeer,takeonedown,passitaround";

buf = reflowtext(30, S1);
printf("Original text:\n%s\n---\nReflowed text:\n%s\n\n", S1, buf);
free(buf);

buf = reflowtext(30, S2);
printf("Original text:\n%s\n---\nReflowed text:\n%s\n\n", S2, buf);
free(buf);

return 0;
}

+ 0
- 35
scratch/testdata.c View File

@@ -1,35 +0,0 @@
#include <stdio.h>
#include "data.h"
#include "util.h"

int main(int argc, char *argv[])
{
struct packages_t taskpkgs, pkgs;
struct package_t **taskpackages, *package;
char *pkgname;
int i, j;
#ifdef DEBUG
atexit(memleak_check);
#endif
packages_readlist(&taskpkgs, &pkgs);
taskpackages = packages_enumerate(&taskpkgs);

for (i = 0; i < taskpkgs.count; i++) {
printf("Task package %d: %s\n", i+1, taskpackages[i]->name);
if (taskpackages[i]->dependscount > 0) {
printf("\tDepends:\n");
for (j = 0; j < taskpackages[i]->dependscount; j++)
pkgname = taskpackages[i]->depends[j];
package = packages_find(&pkgs, pkgname);
printf("\t\t%s: %s\n", pkgname, (package ? package->shortdesc : "(no description available)"));
}
printf("\tDescription: %s\n%s\n\n",
taskpackages[i]->shortdesc, taskpackages[i]->longdesc);
/* ... */
}

packages_free(&taskpkgs, &pkgs);
return 0;
}

Loading…
Cancel
Save