12926Sphk/* Copyright (C) 1989, 1990, 1991, 1992 Free Software Foundation, Inc. 22926Sphk Written by James Clark (jjc@jclark.com) 32926Sphk 42926SphkThis file is part of groff. 52926Sphk 62926Sphkgroff is free software; you can redistribute it and/or modify it under 72926Sphkthe terms of the GNU General Public License as published by the Free 82926SphkSoftware Foundation; either version 2, or (at your option) any later 92926Sphkversion. 102926Sphk 112926Sphkgroff is distributed in the hope that it will be useful, but WITHOUT ANY 122926SphkWARRANTY; without even the implied warranty of MERCHANTABILITY or 132886SphkFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 142926Sphkfor more details. 152886Sphk 162886SphkYou should have received a copy of the GNU General Public License along 172886Sphkwith groff; see the file COPYING. If not, write to the Free Software 182886SphkFoundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. */ 192886Sphk 202886Sphk#include <string.h> 212886Sphk 222886Sphkextern char *strsave(const char *); 232886Sphk 242886Sphkextern const char *current_filename; 252886Sphkextern int current_lineno; 262886Sphk 272886Sphkvoid change_filename(const char *f) 282886Sphk{ 292886Sphk if (current_filename != 0 && strcmp(current_filename, f) == 0) 302886Sphk return; 312886Sphk current_filename = strsave(f); 322886Sphk} 332886Sphk 342886Sphkvoid change_lineno(int ln) 352886Sphk{ 362886Sphk current_lineno = ln; 372886Sphk} 382886Sphk