[Pinfo-devel] r45 - pinfo/branches/cxx/src
Nathanael Nerode
neroden-guest at costa.debian.org
Fri Aug 26 09:57:26 UTC 2005
Author: neroden-guest
Date: 2005-08-26 09:57:24 +0000 (Fri, 26 Aug 2005)
New Revision: 45
Modified:
pinfo/branches/cxx/src/filehandling_functions.cxx
pinfo/branches/cxx/src/initializelinks.cxx
pinfo/branches/cxx/src/manual.cxx
pinfo/branches/cxx/src/menu_and_note_utils.cxx
Log:
Remove unused variables.
Modified: pinfo/branches/cxx/src/filehandling_functions.cxx
===================================================================
--- pinfo/branches/cxx/src/filehandling_functions.cxx 2005-08-26 09:51:20 UTC (rev 44)
+++ pinfo/branches/cxx/src/filehandling_functions.cxx 2005-08-26 09:57:24 UTC (rev 45)
@@ -673,7 +673,7 @@
char *buf = (char*) xmalloc(1024); /* holds local copy of filename */
char *bufend; /* points at the trailing 0 of initial name */
char command[1128]; /* holds command to evaluate for decompression of file */
- int i, j, twoloops;
+ int i, j;
char *tmpfilename;
if (strncmp(filename, "dir", 3) == 0)
Modified: pinfo/branches/cxx/src/initializelinks.cxx
===================================================================
--- pinfo/branches/cxx/src/initializelinks.cxx 2005-08-26 09:51:20 UTC (rev 44)
+++ pinfo/branches/cxx/src/initializelinks.cxx 2005-08-26 09:57:24 UTC (rev 45)
@@ -109,7 +109,6 @@
void
freelinks() /* frees space allocated previously by node-links */
{
- int i;
if ((hyperobjects)&&(hyperobjectcount))
xfree(hyperobjects);
hyperobjects = 0;
Modified: pinfo/branches/cxx/src/manual.cxx
===================================================================
--- pinfo/branches/cxx/src/manual.cxx 2005-08-26 09:51:20 UTC (rev 44)
+++ pinfo/branches/cxx/src/manual.cxx 2005-08-26 09:57:24 UTC (rev 45)
@@ -223,7 +223,6 @@
{
char *base = (char*)xmalloc(1024);
char *ptr, *eptr;
- int tmppos;
int namelen = strlen(manuallinks[which].name);
strcpy(base, manual[manuallinks[which].line + 1]);
strip_manual(base);
@@ -248,19 +247,12 @@
{
int return_value = 0;
struct stat statbuf;
- FILE *id, *source;
+ FILE *id;
- char **ignored_entries;
char manualname[256];
char cmd[256];
- char location[256];
- char line[1025];
char *raw_tempfilename = 0;
char *apropos_tempfilename = 0;
- char *end, *prev;
- size_t macroline_size;
- int ignored_items = 0, i = 0;
- char zipped = 0;
if (tmpfilename1)
{
@@ -1553,7 +1545,7 @@
char *tmpstr = strippedline;
while (!regexec(&h_regexp[j], tmpstr, 1, pmatch, 0))
{
- int n = pmatch[0].rm_eo - pmatch[0].rm_so, k;
+ int n = pmatch[0].rm_eo - pmatch[0].rm_so;
int rx = pmatch[0].rm_so + tmpstr - strippedline;
int curY, curX;
char tmpchr;
@@ -1649,7 +1641,7 @@
attrset(url);
if (manuallinks[i].carry == 1)
{
- int x, y, ltline = manuallinks[i].line + 1;
+ int ltline = manuallinks[i].line + 1;
/*
* the split part to find is lying down
* to the line defined in manlinks(line+1)
Modified: pinfo/branches/cxx/src/menu_and_note_utils.cxx
===================================================================
--- pinfo/branches/cxx/src/menu_and_note_utils.cxx 2005-08-26 09:51:20 UTC (rev 44)
+++ pinfo/branches/cxx/src/menu_and_note_utils.cxx 2005-08-26 09:57:24 UTC (rev 45)
@@ -50,7 +50,7 @@
void
getnextnode(char *type, char *node)
{
- int j, coloncount = 0;
+ int j;
#ifndef ___USE_STATIC___
char *tmp = xmalloc(strlen(type) + 1);
#else
@@ -85,7 +85,7 @@
void
getprevnode(char *type, char *node)
{
- int j, coloncount = 0;
+ int j;
#ifndef ___USE_STATIC___
char *tmp = xmalloc(strlen(type) + 1);
#else
@@ -120,7 +120,7 @@
void
getupnode(char *type, char *node)
{
- int j, coloncount = 0;
+ int j;
#ifndef ___USE_STATIC___
char *tmp = xmalloc(strlen(type) + 1);
#else
@@ -156,7 +156,7 @@
void
getnodename(char *type, char *node)
{
- int j, coloncount = 0;
+ int j;
#ifndef ___USE_STATIC___
char *tmp = xmalloc(strlen(type) + 1);
#else
More information about the Pinfo-devel
mailing list