Changeset 654 for CMT/HEAD/source/cmt.h
- Timestamp:
- Nov 8, 2013, 10:58:54 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/source/cmt.h
r653 r654 74 74 75 75 bool m_autoconfigure_cmtpath; 76 77 private: 78 79 CmtContext& operator = (const CmtContext& other); 80 CmtContext (const CmtContext& other); 76 81 }; 77 82 … … 85 90 static void build_vsnet_file (const cmt_string& target); 86 91 87 static bool build_nmake ();92 static inline bool build_nmake (); 88 93 static void build_OS9_makefile (const cmt_string& target); 89 94 static void build_prefix (const cmt_string& package, cmt_string& prefix); … … 218 223 static const cmt_string& filter_dir (const cmt_string& dir); 219 224 220 static ActionType get_action ();221 222 static const cmt_string& get_cmt_home ();223 static const cmt_string& get_cmt_user_context ();224 static const cmt_string& get_cmt_version ();225 static const cmt_string& get_current_dir ();225 static inline ActionType get_action (); 226 227 static inline const cmt_string& get_cmt_home (); 228 static inline const cmt_string& get_cmt_user_context (); 229 static inline const cmt_string& get_cmt_version (); 230 static inline const cmt_string& get_current_dir (); 226 231 static const cmt_string get_current_dir_real (); 227 static const cmt_string& get_current_package ();232 static inline const cmt_string& get_current_package (); 228 233 static const cmt_string& get_current_path (); 229 234 static const cmt_string& get_current_cmtpath (); 230 235 static const cmt_string& get_current_offset (); 231 static AccessMode get_current_access ();232 static CmtStructuringStyle get_current_structuring_style ();233 static CmtDirStyle get_current_style ();236 static inline AccessMode get_current_access (); 237 static inline CmtStructuringStyle get_current_structuring_style (); 238 static inline CmtDirStyle get_current_style (); 234 239 static const cmt_string& get_current_version (); 235 static const cmt_string& get_current_target ();236 static const CmtSystem::cmt_string_vector& get_tags_remove ();237 static bool get_debug ();238 static bool get_disable_warnings ();239 static bool get_quiet ();240 static bool get_warnings ();241 static bool get_recursive ();240 static inline const cmt_string& get_current_target (); 241 static inline const CmtSystem::cmt_string_vector& get_tags_remove (); 242 static inline bool get_debug (); 243 static inline bool get_disable_warnings (); 244 static inline bool get_quiet (); 245 static inline bool get_warnings (); 246 static inline bool get_recursive (); 242 247 static CmtScopeFilteringMode get_scope_filtering_mode (); 243 static bool get_all_sets_done ();248 static inline bool get_all_sets_done (); 244 249 245 250 static void get_cmt_flags (CmtSystem::cmt_string_vector& flags); … … 280 285 static int apply_globals (); 281 286 static void restore_all_tags (Use* use); 282 static void set_current_access (AccessMode mode);283 static void set_recursive (bool mode);284 static void set_scope_filtering_mode (CmtScopeFilteringMode mode);287 static inline void set_current_access (AccessMode mode); 288 static inline void set_recursive (bool mode); 289 static inline void set_scope_filtering_mode (CmtScopeFilteringMode mode); 285 290 static void set_standard_macros (); 286 static void set_all_sets_done ();287 static void reset_all_sets_done ();291 static inline void set_all_sets_done (); 292 static inline void reset_all_sets_done (); 288 293 static void use_cmt (); 289 294 static void use_home_requirements (); … … 296 301 const cmt_string& separator, 297 302 cmt_string& result); 303 304 private: 305 static CmtContext& m_cmt_context; 306 // static CmtContext * m_cmt_context; 298 307 }; 299 308 309 //---------------------------------------------------------- 310 inline bool Cmt::build_nmake () 311 { 312 return (m_cmt_context.m_build_nmake); 313 } 314 315 inline ActionType Cmt::get_action () 316 { 317 return (m_cmt_context.m_action); 318 } 319 320 inline const cmt_string& Cmt::get_cmt_home () 321 { 322 return (m_cmt_context.m_cmt_home); 323 } 324 325 inline const cmt_string& Cmt::get_cmt_user_context () 326 { 327 return (m_cmt_context.m_cmt_user_context); 328 } 329 330 inline const cmt_string& Cmt::get_cmt_version () 331 { 332 return (m_cmt_context.m_cmt_version); 333 } 334 335 inline const cmt_string& Cmt::get_current_dir () 336 { 337 return (m_cmt_context.m_current_dir); 338 } 339 340 inline const cmt_string& Cmt::get_current_package () 341 { 342 return (m_cmt_context.m_current_package); 343 } 344 345 inline AccessMode Cmt::get_current_access () 346 { 347 return (m_cmt_context.m_current_access); 348 } 349 350 inline CmtStructuringStyle Cmt::get_current_structuring_style () 351 { 352 return (m_cmt_context.m_current_structuring_style); 353 } 354 355 inline CmtDirStyle Cmt::get_current_style () 356 { 357 return (m_cmt_context.m_current_style); 358 } 359 360 inline const cmt_string& Cmt::get_current_target () 361 { 362 return (m_cmt_context.m_current_target); 363 } 364 365 inline const CmtSystem::cmt_string_vector& Cmt::get_tags_remove () 366 { 367 return m_cmt_context.m_tags_remove; 368 } 369 370 inline bool Cmt::get_debug () 371 { 372 return (m_cmt_context.m_debug); 373 } 374 375 inline bool Cmt::get_quiet () 376 { 377 return (m_cmt_context.m_quiet); 378 } 379 380 inline bool Cmt::get_disable_warnings () 381 { 382 return (m_cmt_context.m_disable_warnings); 383 } 384 385 inline bool Cmt::get_warnings () 386 { 387 return (m_cmt_context.m_warnings); 388 } 389 390 inline bool Cmt::get_recursive () 391 { 392 return (m_cmt_context.m_recursive); 393 } 394 395 inline bool Cmt::get_all_sets_done () 396 { 397 return (m_cmt_context.m_all_sets_done); 398 } 399 400 inline void Cmt::set_current_access (AccessMode mode) 401 { 402 m_cmt_context.m_current_access = mode; 403 } 404 405 //---------------------------------------------------------- 406 inline void Cmt::set_recursive (bool mode) 407 { 408 m_cmt_context.m_recursive = mode; 409 } 410 411 //---------------------------------------------------------- 412 inline void Cmt::set_scope_filtering_mode (CmtScopeFilteringMode mode) 413 { 414 m_cmt_context.m_scope_filtering_mode = mode; 415 } 416 417 inline void Cmt::set_all_sets_done () 418 { 419 m_cmt_context.m_all_sets_done = true; 420 } 421 422 inline void Cmt::reset_all_sets_done () 423 { 424 m_cmt_context.m_all_sets_done = false; 425 } 426 427 //---------------------------------------------------------- 428 300 429 #endif
Note: See TracChangeset
for help on using the changeset viewer.