version 1.6, 2010/07/03 16:29:46 |
version 1.7, 2011/09/16 18:12:09 |
|
|
/* |
/* |
* Copyright (C) 1984-2002 Mark Nudelman |
* Copyright (C) 1984-2011 Mark Nudelman |
* |
* |
* You may distribute under the terms of either the GNU General Public |
* You may distribute under the terms of either the GNU General Public |
* License or the Less License, as specified in the README file. |
* License or the Less License, as specified in the README file. |
|
|
return (m); |
return (m); |
} |
} |
|
|
#ifndef SMALL_PROGRAM |
#if PIPEC |
/* |
/* |
* Is a mark letter is invalid? |
* Is a mark letter is invalid? |
*/ |
*/ |
|
|
{ |
{ |
return (getmark(c) == NULL); |
return (getmark(c) == NULL); |
} |
} |
#endif /* SMALL_PROGRAM */ |
#endif |
|
|
/* |
/* |
* Set a user-defined mark. |
* Set a user-defined mark. |
|
|
{ |
{ |
struct scrpos scrpos; |
struct scrpos scrpos; |
|
|
|
if (ch_getflags() & CH_HELPFILE) |
|
return; |
get_scrpos(&scrpos); |
get_scrpos(&scrpos); |
if (scrpos.pos == NULL_POSITION) |
if (scrpos.pos == NULL_POSITION) |
return; |
return; |
|
|
jump_loc(scrpos.pos, scrpos.ln); |
jump_loc(scrpos.pos, scrpos.ln); |
} |
} |
|
|
#ifndef SMALL_PROGRAM |
#if PIPEC |
/* |
/* |
* Return the position associated with a given mark letter. |
* Return the position associated with a given mark letter. |
* |
* |
|
|
} |
} |
return (m->m_scrpos.pos); |
return (m->m_scrpos.pos); |
} |
} |
#endif /* SMALL_PROGRAM */ |
#endif /* PIPEC */ |
|
|
/* |
/* |
* Clear the marks associated with a specified ifile. |
* Clear the marks associated with a specified ifile. |