Changeset 893103c in rtems


Ignore:
Timestamp:
Jun 10, 1996, 8:49:08 PM (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
1e608b0f
Parents:
0f63c86
Message:

moved the time macros to pmacros.h.

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/psxtests/psx01/init.c

    r0f63c86 r893103c  
    1515#include <sched.h>
    1616
    17 #define TM_SUNDAY    0
    18 #define TM_MONDAY    1
    19 #define TM_TUESDAY   2
    20 #define TM_WEDNESDAY 3
    21 #define TM_THURSDAY  4
    22 #define TM_FRIDAY    5
    23 #define TM_SATURDAY  6
    24 
    25 #define TM_JANUARY     0
    26 #define TM_FEBRUARY    1
    27 #define TM_MARCH       2
    28 #define TM_APRIL       3
    29 #define TM_MAY         4
    30 #define TM_JUNE        5
    31 #define TM_JULY        6
    32 #define TM_AUGUST      7
    33 #define TM_SEPTEMBER   8
    34 #define TM_OCTOBER    10
    35 #define TM_NOVEMBER   12
    36 #define TM_DECEMBER   12
    37 
    38 
    39 #define build_time( TM, WEEKDAY, MON, DAY, YR, HR, MIN, SEC ) \
    40   { (TM)->tm_year = YR;  \
    41     (TM)->tm_mon  = MON; \
    42     (TM)->tm_mday = DAY; \
    43     (TM)->tm_wday  = WEEKDAY; \
    44     (TM)->tm_hour = HR;  \
    45     (TM)->tm_min  = MIN; \
    46     (TM)->tm_sec  = SEC; }
    4717
    4818void *POSIX_Init(
     
    152122  pthread_exit( NULL );
    153123
    154   /* just to satisfy compilers which think we did not return anything */
    155 
    156   return NULL;
     124  return NULL; /* just so the compiler thinks we returned something */
    157125}
  • c/src/tests/psxtests/psx01/system.h

    r0f63c86 r893103c  
    1717/* functions */
    1818
    19 #include <bsp.h>
    20 #include <pthread.h>
    21 #include <assert.h>
    22 #include <stdio.h>
     19#include <pmacros.h>
    2320#include <unistd.h>
    2421
  • c/src/tests/psxtests/psx01/task.c

    r0f63c86 r893103c  
    2626)
    2727{
    28   int seconds;
    2928  int status;
    3029
     
    4847  puts( "*** END OF POSIX TEST 1 ***" );
    4948  exit( 0 );
     49
     50  return NULL; /* just so the compiler thinks we returned something */
    5051}
  • testsuites/psxtests/psx01/init.c

    r0f63c86 r893103c  
    1515#include <sched.h>
    1616
    17 #define TM_SUNDAY    0
    18 #define TM_MONDAY    1
    19 #define TM_TUESDAY   2
    20 #define TM_WEDNESDAY 3
    21 #define TM_THURSDAY  4
    22 #define TM_FRIDAY    5
    23 #define TM_SATURDAY  6
    24 
    25 #define TM_JANUARY     0
    26 #define TM_FEBRUARY    1
    27 #define TM_MARCH       2
    28 #define TM_APRIL       3
    29 #define TM_MAY         4
    30 #define TM_JUNE        5
    31 #define TM_JULY        6
    32 #define TM_AUGUST      7
    33 #define TM_SEPTEMBER   8
    34 #define TM_OCTOBER    10
    35 #define TM_NOVEMBER   12
    36 #define TM_DECEMBER   12
    37 
    38 
    39 #define build_time( TM, WEEKDAY, MON, DAY, YR, HR, MIN, SEC ) \
    40   { (TM)->tm_year = YR;  \
    41     (TM)->tm_mon  = MON; \
    42     (TM)->tm_mday = DAY; \
    43     (TM)->tm_wday  = WEEKDAY; \
    44     (TM)->tm_hour = HR;  \
    45     (TM)->tm_min  = MIN; \
    46     (TM)->tm_sec  = SEC; }
    4717
    4818void *POSIX_Init(
     
    152122  pthread_exit( NULL );
    153123
    154   /* just to satisfy compilers which think we did not return anything */
    155 
    156   return NULL;
     124  return NULL; /* just so the compiler thinks we returned something */
    157125}
  • testsuites/psxtests/psx01/system.h

    r0f63c86 r893103c  
    1717/* functions */
    1818
    19 #include <bsp.h>
    20 #include <pthread.h>
    21 #include <assert.h>
    22 #include <stdio.h>
     19#include <pmacros.h>
    2320#include <unistd.h>
    2421
  • testsuites/psxtests/psx01/task.c

    r0f63c86 r893103c  
    2626)
    2727{
    28   int seconds;
    2928  int status;
    3029
     
    4847  puts( "*** END OF POSIX TEST 1 ***" );
    4948  exit( 0 );
     49
     50  return NULL; /* just so the compiler thinks we returned something */
    5051}
Note: See TracChangeset for help on using the changeset viewer.