- Timestamp:
- Aug 10, 2024, 10:27:26 AM (18 months ago)
- Branches:
- master, stuck-waitfor-destruct
- Children:
- 774c97e
- Parents:
- 2ca7fc2 (diff), 5ca5263 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- libcfa/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/collections/string.hfa
r2ca7fc2 r6abb6dc 10 10 // Created On : Fri Sep 03 11:00:00 2021 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Aug 5 23:06:14202413 // Update Count : 1 2812 // Last Modified On : Tue Aug 6 07:49:52 2024 13 // Update Count : 130 14 14 // 15 15 … … 161 161 string ?+?( char c, const string & s ); // add a character to a copy of the string 162 162 string ?+?( const string & s, const string & s2 ); // copy and concatenate both strings 163 string ?+?( const char * s, char c ); // copy and concatenate both strings164 string ?+?( char c, const char * s ); // copy and concatenate both strings165 string ?+?( const char * s1, const char * s2 ); // copy and concatenate both strings166 string ?+?( const char * s1, string & s2 ); // copy and concatenate both strings167 string ?+?( const string & s, const char * c ); // copy and concatenatewith NULL-terminated string163 string ?+?( const char * s, char c ); // add a character to a copy of the string 164 string ?+?( char c, const char * s ); // add a character to a copy of the string 165 string ?+?( const char * c, const char * s ); // copy and add with two NULL-terminated string 166 string ?+?( const char * c, string & s ); // copy and add with NULL-terminated string 167 string ?+?( const string & s, const char * c ); // copy and add with NULL-terminated string 168 168 169 169 static inline string & strcat( string & s, const string & s2 ) { s += s2; return s; } … … 184 184 185 185 // Comparisons 186 int strcmp ( const string &, const string & );187 bool ?==?( const string &, const string & );188 bool ?!=?( const string &, const string & );189 bool ?>? ( const string &, const string & );190 bool ?>=?( const string &, const string & );191 bool ?<=?( const string &, const string & );192 bool ?<? ( const string &, const string & );193 194 int strcmp( const string &, const char * );195 bool ?==?( const string &, const char * );196 bool ?!=?( const string &, const char * );197 bool ?>? ( const string &, const char * );198 bool ?>=?( const string &, const char * );199 bool ?<=?( const string &, const char * );200 bool ?<? ( const string &, const char * );201 202 int strcmp( const char *, const string & );203 bool ?==?( const char *, const string & );204 bool ?!=?( const char *, const string & );205 bool ?>? ( const char *, const string & );206 bool ?>=?( const char *, const string & );207 bool ?<=?( const char *, const string & );208 bool ?<? ( const char *, const string & );186 int strcmp ( const string &, const string & ); 187 bool ?==?( const string &, const string & ); 188 bool ?!=?( const string &, const string & ); 189 bool ?>? ( const string &, const string & ); 190 bool ?>=?( const string &, const string & ); 191 bool ?<=?( const string &, const string & ); 192 bool ?<? ( const string &, const string & ); 193 194 int strcmp( const string &, const char * ); 195 bool ?==?( const string &, const char * ); 196 bool ?!=?( const string &, const char * ); 197 bool ?>? ( const string &, const char * ); 198 bool ?>=?( const string &, const char * ); 199 bool ?<=?( const string &, const char * ); 200 bool ?<? ( const string &, const char * ); 201 202 int strcmp( const char *, const string & ); 203 bool ?==?( const char *, const string & ); 204 bool ?!=?( const char *, const string & ); 205 bool ?>? ( const char *, const string & ); 206 bool ?>=?( const char *, const string & ); 207 bool ?<=?( const char *, const string & ); 208 bool ?<? ( const char *, const string & ); 209 209 210 210 -
libcfa/src/enum.cfa
r2ca7fc2 r6abb6dc 11 11 // It is okay to overflow as overflow will be theoretically caught by the other bound 12 12 if ( i < fromInstance( lower ) || i > fromInstance( upper ) ) 13 abort( "call to fromInt has index %d outside enumeration range %d-%d",13 abort( "call to fromInt has index %d outside of enumeration range %d-%d.", 14 14 i, fromInstance( lower ), fromInstance( upper ) ); 15 15 return fromInt_unsafe( i ); … … 19 19 E upper = upperBound(); 20 20 if ( fromInstance( e ) >= fromInstance( upper ) ) 21 abort( "call to succ() exceeds enumeration upper bound of %d ", fromInstance( upper ) );21 abort( "call to succ() exceeds enumeration upper bound of %d.", fromInstance( upper ) ); 22 22 return succ_unsafe(e); 23 23 } … … 26 26 E lower = lowerBound(); 27 27 if ( fromInstance( e ) <= fromInstance(lower ) ) 28 abort( "call to pred() exceeds enumeration lower bound of %d ", fromInstance( lower ) );28 abort( "call to pred() exceeds enumeration lower bound of %d.", fromInstance( lower ) ); 29 29 return pred_unsafe( e ); 30 30 } 31 31 32 int Countof( __attribute__((unused)) E e) {32 int Countof( E ) { 33 33 E upper = upperBound(); 34 34 E lower = lowerBound(); -
libcfa/src/enum.hfa
r2ca7fc2 r6abb6dc 19 19 E succ( E e ); 20 20 E pred( E e ); 21 int Countof( E e);21 int Countof( E ); 22 22 } 23 23 -
libcfa/src/heap.cfa
r2ca7fc2 r6abb6dc 10 10 // Created On : Tue Dec 19 21:58:35 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Apr 7 21:54:29202413 // Update Count : 164 412 // Last Modified On : Wed Aug 7 10:14:47 2024 13 // Update Count : 1646 14 14 // 15 15 … … 582 582 __cfaabi_bits_print_buffer( STDERR_FILENO, helpText, sizeof(helpText), 583 583 "CFA warning (UNIX pid:%ld) : program terminating with %td(%#tx) bytes of storage allocated but not freed.\n" 584 "Possible cause is unfreed storage allocated by the program or system/library routines called from the program.\n",584 "Possible cause is mismatched allocation/deallocation calls (malloc/free), direct constructor call without a direct destructor call, or system/library routines not freeing storage.\n", 585 585 (long int)getpid(), allocUnfreed, allocUnfreed ); // always print the UNIX pid 586 586 } // if
Note:
See TracChangeset
for help on using the changeset viewer.