[BACK]Return to file.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

Diff for /src/usr.bin/mg/file.c between version 1.102 and 1.103

version 1.102, 2019/06/22 15:03:43 version 1.103, 2023/03/08 04:43:11
Line 24 
Line 24 
  * Insert a file into the current buffer.  Real easy - just call the   * Insert a file into the current buffer.  Real easy - just call the
  * insertfile routine with the file name.   * insertfile routine with the file name.
  */   */
 /* ARGSUSED */  
 int  int
 fileinsert(int f, int n)  fileinsert(int f, int n)
 {  {
Line 50 
Line 49 
  * if you can find it, just switch to the buffer.  If you cannot find the   * if you can find it, just switch to the buffer.  If you cannot find the
  * file, create a new buffer, read in the text, and switch to the new buffer.   * file, create a new buffer, read in the text, and switch to the new buffer.
  */   */
 /* ARGSUSED */  
 int  int
 filevisit(int f, int n)  filevisit(int f, int n)
 {  {
Line 90 
Line 88 
  * buffer is killed before the switch. If the kill fails, or is aborted,   * buffer is killed before the switch. If the kill fails, or is aborted,
  * revert to the original file.   * revert to the original file.
  */   */
 /* ARGSUSED */  
 int  int
 filevisitalt(int f, int n)  filevisitalt(int f, int n)
 {  {
Line 153 
Line 150 
  * Pop to a file in the other window.  Same as the last function, but uses   * Pop to a file in the other window.  Same as the last function, but uses
  * popbuf instead of showbuffer.   * popbuf instead of showbuffer.
  */   */
 /* ARGSUSED */  
 int  int
 poptofile(int f, int n)  poptofile(int f, int n)
 {  {
Line 506 
Line 502 
  * This handling of file names is different from the earlier versions and   * This handling of file names is different from the earlier versions and
  * is more compatible with Gosling EMACS than with ITS EMACS.   * is more compatible with Gosling EMACS than with ITS EMACS.
  */   */
 /* ARGSUSED */  
 int  int
 filewrite(int f, int n)  filewrite(int f, int n)
 {  {
Line 567 
Line 562 
  */   */
 static int      makebackup = TRUE;  static int      makebackup = TRUE;
   
 /* ARGSUSED */  
 int  int
 filesave(int f, int n)  filesave(int f, int n)
 {  {
Line 638 
Line 632 
  * is given, sets makebackup to true, so backups are made.  If an argument is   * is given, sets makebackup to true, so backups are made.  If an argument is
  * given, no backup files are made when saving a new version of a file.   * given, no backup files are made when saving a new version of a file.
  */   */
 /* ARGSUSED */  
 int  int
 makebkfile(int f, int n)  makebkfile(int f, int n)
 {  {

Legend:
Removed from v.1.102  
changed lines
  Added in v.1.103