FLTK logo

[master] 995e311 - Local `isdirsep()` must not be visible to the outside.

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 995e311 - Local `isdirsep()` must not be visible to the outside. "Matthias Melcher" Jun 12, 2022  
 
commit 995e3118a6cdfc93ae75eff0061205983f468122
Author:     Matthias Melcher <github@matthiasm.com>
AuthorDate: Sun Jun 12 14:14:23 2022 +0200
Commit:     Matthias Melcher <github@matthiasm.com>
CommitDate: Sun Jun 12 14:14:23 2022 +0200

    Local `isdirsep()` must not be visible to the outside.

 src/filename_absolute.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git src/filename_absolute.cxx src/filename_absolute.cxx
index 41f7f64..72bb9f3 100644
--- src/filename_absolute.cxx
+++ src/filename_absolute.cxx
@@ -27,7 +27,7 @@
 #include <stdlib.h>
 #include "flstring.h"
 
-inline int isdirsep(char c) {return c == '/';}
+static inline int isdirsep(char c) {return c == '/';}
 
 /** Makes a filename absolute from a relative filename.
     \code
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.