Changeset 58b6d1b


Ignore:
Timestamp:
Aug 6, 2018, 4:33:35 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
524ed86
Parents:
73abe95
Message:

Fixed tests after headers change

Files:
40 edited
1 moved

Legend:

Unmodified
Added
Removed
  • TabularUnified libcfa/src/Makefile.am

    r73abe95 r58b6d1b  
    6767        bits/debug.hfa         \
    6868        bits/locks.hfa         \
    69         concurrency/invoke.hfa
     69        concurrency/invoke.h
    7070
    7171MOSTLYCLEANFILES = prelude.c
  • TabularUnified libcfa/src/Makefile.in

    r73abe95 r58b6d1b  
    343343AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@
    344344
     345#----------------------------------------------------------------------------------------------------------------
     346
    345347# not all platforms support concurrency, add option do disable it
    346 headers = fstream iostream iterator limits rational time stdlib common \
    347         containers/maybe containers/pair containers/result \
    348         containers/vector concurrency/coroutine concurrency/thread \
    349         concurrency/kernel concurrency/monitor concurrency/mutex
    350 libobjs = ${headers:=.o}
     348headers = fstream.hfa iostream.hfa iterator.hfa limits.hfa \
     349        rational.hfa time.hfa stdlib.hfa common.hfa \
     350        containers/maybe.hfa containers/pair.hfa containers/result.hfa \
     351        containers/vector.hfa concurrency/coroutine.hfa \
     352        concurrency/thread.hfa concurrency/kernel.hfa \
     353        concurrency/monitor.hfa concurrency/mutex.hfa
     354libobjs = ${headers:.hfa=.o}
    351355
    352356# not all platforms support concurrency, add option do disable it
    353357libsrc = prelude.c startup.cfa interpose.cfa bits/debug.cfa assert.cfa \
    354         exception.c virtual.c heap.cfa ${headers:=.cfa} \
     358        exception.c virtual.c heap.cfa ${headers:.hfa=.cfa} \
    355359        concurrency/CtxSwitch-@ARCHITECTURE@.S concurrency/alarm.cfa \
    356360        concurrency/invoke.c concurrency/preemption.cfa
     
    359363cfa_includedir = $(CFA_INCDIR)
    360364nobase_cfa_include_HEADERS = \
    361         ${headers}              \
    362         ${stdhdr}               \
    363         math                    \
    364         gmp                     \
    365         time_t.h                \
    366         bits/align.h            \
    367         bits/containers.h       \
    368         bits/defs.h             \
    369         bits/debug.h            \
    370         bits/locks.h            \
     365        ${headers}             \
     366        ${stdhdr}              \
     367        math.hfa               \
     368        gmp.hfa                \
     369        time_t.hfa             \
     370        bits/align.hfa         \
     371        bits/containers.hfa    \
     372        bits/defs.hfa          \
     373        bits/debug.hfa         \
     374        bits/locks.hfa         \
    371375        concurrency/invoke.h
    372376
    373 CLEANFILES = prelude.c
     377MOSTLYCLEANFILES = prelude.c
    374378all: all-am
    375379
     
    670674        fi
    671675mostlyclean-generic:
     676        -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
    672677
    673678clean-generic:
    674         -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
    675679
    676680distclean-generic:
     
    783787        $(am__mv) $$depbase.Tpo $$depbase.Po
    784788
    785 # extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing
    786 # SKULLDUGGERY in order to make sure this isn't called make the rule always fail but also create a rule for headers
    787 % : %.c
    788         echo "Dummy rule, should never be called"
    789         false
    790 
    791 # This rule should always match headers and since it has no prerequisite it will never be called
    792 $(addprefix $(srcdir)/,$(headers)):
    793         echo "Dummy rule, should never be called"
    794         false
    795 
    796 ${libobjs} : ${cfalib_DATA} # add dependency to cfa-cpp so all libraries are rebuilt with new translator
    797 
     789#----------------------------------------------------------------------------------------------------------------
     790# add dependency to cfa-cpp so all libraries are rebuilt with new translator
     791${libobjs} : ${cfalib_DATA}
     792
     793#----------------------------------------------------------------------------------------------------------------
    798794maintainer-clean-local:
    799795        -rm -rf ${CFA_INCDIR} ${CFA_LIBDIR}
  • TabularUnified libcfa/src/bits/signal.hfa

    r73abe95 r58b6d1b  
    2222#include <errno.h>
    2323#define __USE_GNU
    24 #include <signal.hfa>
     24#include <signal.h>
    2525#undef __USE_GNU
    2626#include <stdlib.h>
  • TabularUnified libcfa/src/common.cfa

    r73abe95 r58b6d1b  
    1 //                               -*- Mode: C -*- 
    2 // 
     1//                               -*- Mode: C -*-
     2//
    33// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
    44//
    55// The contents of this file are covered under the licence agreement in the
    66// file "LICENCE" distributed with Cforall.
    7 // 
    8 // common.c -- 
    9 // 
     7//
     8// common.c --
     9//
    1010// Author           : Peter A. Buhr
    1111// Created On       : Thu Jul 12 08:02:29 2018
     
    1313// Last Modified On : Thu Jul 12 08:38:47 2018
    1414// Update Count     : 3
    15 // 
     15//
    1616
    17 #include "common"
     17#include "common.hfa"
    1818#include <stdlib.h>                                     // div_t, *div
    1919
  • TabularUnified libcfa/src/concurrency/alarm.hfa

    r73abe95 r58b6d1b  
    2121#include <assert.h>
    2222
    23 #include "time"
     23#include "time.hfa"
    2424
    2525struct thread_desc;
  • TabularUnified libcfa/src/concurrency/coroutine.cfa

    r73abe95 r58b6d1b  
    1414//
    1515
    16 #include "coroutine"
     16#include "coroutine.hfa"
    1717
    1818extern "C" {
  • TabularUnified libcfa/src/concurrency/kernel.cfa

    r73abe95 r58b6d1b  
    2222#include <fenv.h>
    2323#include <sys/resource.h>
    24 #include <signal.hfa>
     24#include <signal.h>
    2525#include <unistd.h>
    2626}
    2727
    2828//CFA Includes
    29 #include "time"
     29#include "time.hfa"
    3030#include "kernel_private.hfa"
    3131#include "preemption.hfa"
  • TabularUnified libcfa/src/concurrency/kernel_private.hfa

    r73abe95 r58b6d1b  
    1616#pragma once
    1717
    18 #include "kernel"
    19 #include "thread"
     18#include "kernel.hfa"
     19#include "thread.hfa"
    2020
    2121#include "alarm.hfa"
  • TabularUnified libcfa/src/concurrency/monitor.cfa

    r73abe95 r58b6d1b  
    1414//
    1515
    16 #include "monitor"
     16#include "monitor.hfa"
    1717
    1818#include <stdlib.hfa>
     
    2121#include "kernel_private.hfa"
    2222
    23 #include "bits/algorithms.hfa"
     23#include "bits/algorithm.hfa"
    2424
    2525//-----------------------------------------------------------------------------
  • TabularUnified libcfa/src/concurrency/monitor.hfa

    r73abe95 r58b6d1b  
    2020#include <assert.h>
    2121#include "invoke.h"
    22 #include "stdlib"
     22#include "stdlib.hfa"
    2323
    2424trait is_monitor(dtype T) {
  • TabularUnified libcfa/src/concurrency/mutex.cfa

    r73abe95 r58b6d1b  
    1616//
    1717
    18 #include "mutex"
     18#include "mutex.hfa"
    1919
    2020#include "kernel_private.hfa"
  • TabularUnified libcfa/src/concurrency/mutex.hfa

    r73abe95 r58b6d1b  
    2020#include <stdbool.h>
    2121
    22 #include "bits/algorithms.hfa"
     22#include "bits/algorithm.hfa"
    2323#include "bits/locks.hfa"
    2424
  • TabularUnified libcfa/src/concurrency/thread.cfa

    r73abe95 r58b6d1b  
    1414//
    1515
    16 #include "thread"
     16#include "thread.hfa"
    1717
    1818#include "kernel_private.hfa"
  • TabularUnified libcfa/src/concurrency/thread.hfa

    r73abe95 r58b6d1b  
    1919#include "invoke.h"
    2020
    21 #include "coroutine"
    22 #include "kernel"
    23 #include "monitor"
     21#include "coroutine.hfa"
     22#include "kernel.hfa"
     23#include "monitor.hfa"
    2424
    2525//-----------------------------------------------------------------------------
  • TabularUnified libcfa/src/containers/maybe.cfa

    r73abe95 r58b6d1b  
    1414//
    1515
    16 #include <containers/maybe>
     16#include <containers/maybe.hfa>
    1717#include <assert.h>
    1818
  • TabularUnified libcfa/src/containers/pair.cfa

    r73abe95 r58b6d1b  
    1111//
    1212
    13 #include <containers/pair>
     13#include <containers/pair.hfa>
    1414
    15 forall(otype R, otype S 
     15forall(otype R, otype S
    1616        | { int ?==?(R, R); int ?<?(R, R); int ?<?(S, S); })
    1717int ?<?(pair(R, S) p, pair(R, S) q) {
     
    1919}
    2020
    21 forall(otype R, otype S 
     21forall(otype R, otype S
    2222        | { int ?==?(R, R); int ?<?(R, R); int ?<=?(S, S); })
    2323int ?<=?(pair(R, S) p, pair(R, S) q) {
     
    3535}
    3636
    37 forall(otype R, otype S 
     37forall(otype R, otype S
    3838        | { int ?==?(R, R); int ?>?(R, R); int ?>?(S, S); })
    3939int ?>?(pair(R, S) p, pair(R, S) q) {
     
    4141}
    4242
    43 forall(otype R, otype S 
     43forall(otype R, otype S
    4444        | { int ?==?(R, R); int ?>?(R, R); int ?>=?(S, S); })
    4545int ?>=?(pair(R, S) p, pair(R, S) q) {
  • TabularUnified libcfa/src/containers/result.cfa

    r73abe95 r58b6d1b  
    1414//
    1515
    16 #include <containers/result>
     16#include <containers/result.hfa>
    1717#include <assert.h>
    1818
  • TabularUnified libcfa/src/containers/vector.cfa

    r73abe95 r58b6d1b  
    1414//
    1515
    16 #include <containers/vector>
     16#include <containers/vector.hfa>
    1717
    1818#include <stdlib.hfa>
  • TabularUnified libcfa/src/fstream.cfa

    r73abe95 r58b6d1b  
    1414//
    1515
    16 #include "fstream"
     16#include "fstream.hfa"
    1717
    1818#include <stdio.h>                                                                              // vfprintf, vfscanf
  • TabularUnified libcfa/src/fstream.hfa

    r73abe95 r58b6d1b  
    1616#pragma once
    1717
    18 #include "iostream"
     18#include "iostream.hfa"
    1919
    2020enum { sepSize = 16 };
  • TabularUnified libcfa/src/heap.cfa

    r73abe95 r58b6d1b  
    2626#include "bits/locks.hfa"                                                                       // __spinlock_t
    2727#include "startup.hfa"                                                                  // STARTUP_PRIORITY_MEMORY
    28 #include "stdlib"                                                                               // bsearchl
     28#include "stdlib.hfa"                                                                           // bsearchl
    2929#include "malloc.h"
    3030
  • TabularUnified libcfa/src/interpose.cfa

    r73abe95 r58b6d1b  
    1818#include <unistd.h>                                                                             // _exit, getpid
    1919#define __USE_GNU
    20 #include <signal.hfa>
     20#include <signal.h>
    2121#undef __USE_GNU
    2222extern "C" {
  • TabularUnified libcfa/src/iostream.cfa

    r73abe95 r58b6d1b  
    1414//
    1515
    16 #include "iostream"
     16#include "iostream.hfa"
    1717
    1818extern "C" {
  • TabularUnified libcfa/src/iostream.hfa

    r73abe95 r58b6d1b  
    1616#pragma once
    1717
    18 #include "iterator"
     18#include "iterator.hfa"
    1919
    2020trait ostream( dtype ostype ) {
  • TabularUnified libcfa/src/iterator.cfa

    r73abe95 r58b6d1b  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // iterator.c -- 
     7// iterator.c --
    88//
    99// Author           : Richard C. Bilson
     
    1414//
    1515
    16 #include "iterator"
     16#include "iterator.hfa"
    1717
    1818forall( otype iterator_type, otype elt_type | iterator( iterator_type, elt_type ) )
  • TabularUnified libcfa/src/limits.cfa

    r73abe95 r58b6d1b  
    1 // 
     1//
    22// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
    33//
    44// The contents of this file are covered under the licence agreement in the
    55// file "LICENCE" distributed with Cforall.
    6 // 
    7 // limits.c -- 
    8 // 
     6//
     7// limits.c --
     8//
    99// Author           : Peter A. Buhr
    1010// Created On       : Wed Apr  6 18:06:52 2016
     
    1212// Last Modified On : Thu Mar  1 16:22:51 2018
    1313// Update Count     : 74
    14 // 
     14//
    1515
    1616#include <limits.h>
     
    1919#include <math.h>
    2020#include <complex.h>
    21 #include "limits"
     21#include "limits.hfa"
    2222
    2323// Integral Constants
  • TabularUnified libcfa/src/math.hfa

    r73abe95 r58b6d1b  
    350350//---------------------------------------
    351351
    352 #include "common"
     352#include "common.hfa"
    353353
    354354//---------------------------------------
  • TabularUnified libcfa/src/rational.cfa

    r73abe95 r58b6d1b  
    1414//
    1515
    16 #include "rational"
    17 #include "fstream"
    18 #include "stdlib"
     16#include "rational.hfa"
     17#include "fstream.hfa"
     18#include "stdlib.hfa"
    1919
    2020forall( otype RationalImpl | arithmetic( RationalImpl ) ) {
  • TabularUnified libcfa/src/rational.hfa

    r73abe95 r58b6d1b  
    1818#pragma once
    1919
    20 #include "iostream"
     20#include "iostream.hfa"
    2121
    2222trait scalar( otype T ) {
  • TabularUnified libcfa/src/stdlib.cfa

    r73abe95 r58b6d1b  
    1414//
    1515
    16 #include "stdlib"
     16#include "stdlib.hfa"
    1717
    1818//---------------------------------------
  • TabularUnified libcfa/src/stdlib.hfa

    r73abe95 r58b6d1b  
    251251//---------------------------------------
    252252
    253 #include "common"
     253#include "common.hfa"
    254254
    255255// Local Variables: //
  • TabularUnified libcfa/src/time.cfa

    r73abe95 r58b6d1b  
    1 // 
     1//
    22// Cforall Version 1.0.0 Copyright (C) 2018 University of Waterloo
    33//
    44// The contents of this file are covered under the licence agreement in the
    55// file "LICENCE" distributed with Cforall.
    6 // 
    7 // time.c -- 
    8 // 
     6//
     7// time.c --
     8//
    99// Author           : Peter A. Buhr
    1010// Created On       : Tue Mar 27 13:33:14 2018
     
    1212// Last Modified On : Sun May  6 22:26:00 2018
    1313// Update Count     : 37
    14 // 
     14//
    1515
    16 #include "time"
    17 #include "iostream"
     16#include "time.hfa"
     17#include "iostream.hfa"
    1818#include <stdio.h>                                                                              // snprintf
    1919#include <assert.h>
  • TabularUnified tests/.expect/fstream_test.txt

    r73abe95 r58b6d1b  
    22Vous avez entré -2
    33le nombre -2 est négatif
    4 Entrez trois nombres, s'il vous plaît: 
     4Entrez trois nombres, s'il vous plaît:
    55Vous avez entré i:2 j:3 k:4
  • TabularUnified tests/.expect/io1.txt

    r73abe95 r58b6d1b  
    88
    99closing delimiters
    10 1, x 2. x 3; x 4! x 5? x 6% x 7¢ x 8» x 9) x 10] x 11} x
     101, x 2. x 3; x 4! x 5? x 6% x 7 ¢ x 8 » x 9) x 10] x 11} x
    1111
    1212opening/closing delimiters
  • TabularUnified tests/Makefile.in

    r73abe95 r58b6d1b  
    307307fstream_test_SOURCES = fstream_test.c
    308308avl_test_SOURCES = avltree/avl_test.c avltree/avl0.c avltree/avl1.c avltree/avl2.c avltree/avl3.c avltree/avl4.c avltree/avl-private.c
    309 
    310 # SKULLDUGGERY like libcfa/Makefile.am prevent extensionless headers from being generated
    311 # however, here it is more complicated because it must match the dependencies based on how
    312 # they are generated by gcc
    313 headers = $(shell find $(top_srcdir)/libcfa/src -type f ! -name "*.*")
    314 headers_real = $(shell realpath --relative-to=$(top_srcdir)/libcfa/src $(headers))
    315 headers_deps = $(addprefix %/, $(headers_real))
    316309all: all-am
    317310
     
    618611.INTERMEDIATE: .validate .validate.c
    619612
     613#----------------------------------------------------------------------------------------------------------------
    620614all-local :
    621615        @+${TEST_PY} --debug=${debug} ${concurrent} ${quick_test}
     
    638632concurrency :
    639633        @+${TEST_PY} --debug=${debug} -Iconcurrent
    640 $(headers_deps) :
    641         echo "Dummy rule, should never be called"
    642 
    643 # %/stdlib:
    644 #       echo "Dummy rule, should never be called"
    645 
     634
     635#----------------------------------------------------------------------------------------------------------------
    646636# implicit rule so not all test require a rule
    647637% : %.c $(CC)
  • TabularUnified tests/coroutine/.expect/fmtLines.txt

    r73abe95 r58b6d1b  
    1 // /  / Cf  oral  l Ve  rsio 
    2 n 1.  0.0   Copy  righ  t (C 
    3 ) 20  17 U  nive  rsit  y of 
    4  Wat  erlo  o///  / Th  e co 
    5 nten  ts o  f th  is f  ile   
    6 are   cove  red   unde  r th 
    7 e li  cenc  e ag  reem  ent   
    8 in t  he//   fil  e "L  ICEN 
    9 CE"   dist  ribu  ted   with 
    10  Cfo  rall  .//   // f  mtLi 
    11 nes.  cc -  - //   //   Auth 
    12 or                 : P  eter 
    13  A.   Buhr  // C  reat  ed O 
    14 n           : Su  n Se  p 17 
    15  21:  56:1  5 20  17//   Las 
    16 t Mo  difi  ed B  y :   Pete 
    17 r A.   Buh  r//   Last   Mod 
    18 ifie  d On   : M  on S  ep 1 
    19 8 11  :35:  57 2  017/  / Up 
    20 date   Cou  nt       :   31/ 
    21 / #i  nclu  de <  fstr  eam> 
    22 #inc  lude   <co  rout  ine> 
    23 coro  utin  e Fo  rmat   {      c 
    24 har   ch;                                                                                       // 
    25  use  d fo  r co  mmun  icat 
    26 ion       int   g, b  ;                                                   
    27                                   // g  loba  l be  caus 
    28 e us  ed i  n de  stru  ctor 
    29 };vo  id ?  {}(   Form  at & 
    30  fmt   ) {        resu  me(   
    31 fmt   );                                                                                  // s 
    32 tart   cor  outi  ne}v  oid   
    33 ^?{}  ( Fo  rmat   & f  mt ) 
    34  {      if   ( f  mt.g   !=   
    35 0 ||   fmt  .b !  = 0   ) so 
    36 ut |   end  l;}v  oid   main 
    37 ( Fo  rmat   & f  mt )   {      f 
    38 or (   ;;   ) {                                                                   
    39         //   for   as m  any   char 
    40 acte  rs                  for   ( fm  t.g   
    41 = 0;   fmt  .g <   5;   fmt. 
    42 g +=   1 )   {            // g  roup 
    43 s of   5 b  lock  s                       for   
    44 ( fm  t.b   = 0;   fmt  .b < 
    45  4;   fmt.  b +=   1 )   {      / 
    46 / bl  ocks   of   4 ch  arac 
    47 ters                              for   ( ;;   ) { 
    48                                                         /  / fo  r ne  wlin 
    49 e ch  arac  ters                                        sus 
    50 pend  ();                                         if (   fmt 
    51 .ch   != '  \n'   ) br  eak; 
    52                 //   ign  ore   newl  ine         
    53                         }   //   for                            s  out   
    54 | fm  t.ch  ;                                                     // p 
    55 rint   cha  ract  er                    } / 
    56 / fo  r                   sout   | "    "; 
    57                                                                   // p  rint   blo 
    58 ck s  epar  ator                }   // f 
    59 or                sout   | e  ndl;                               
    60                                         //   prin  t gr  oup   
    61 sepa  rato  r   }   // f  or}   
    62 // m  ainv  oid   prt(   For 
    63 mat   & fm  t, c  har   ch ) 
    64  {      fm  t.ch   = c  h;   
    65   re  sume  ( fm  t );  } // 
    66  prt  int   main  () {          For 
    67 mat   fmt;      cha  r ch  ;    fo 
    68 r (   ;; )   {            sin   | ch 
    69 ;                                                                               /  / re  ad o 
    70 ne c  hara  cter          i  f (   
    71 eof(   sin   ) )   bre  ak;       
    72                                                 //   eof   ?              prt( 
    73  fmt  , ch   );   } //   for 
    74 } //   mai  n//   Loca  l Va 
    75 riab  les:   ///  / ta  b-wi 
    76 dth:   4 /  ///   comp  ile- 
    77 comm  and:   "cf  a fm  tLin 
    78 es.c  " //  // E  nd:   //
     1////   Cfo  rall   Ver  sion 
     2 1.0  .0 C  opyr  ight   (C) 
     3 201  7 Un  iver  sity   of   
     4Wate  rloo  ////   The   con 
     5tent  s of   thi  s fi  le a 
     6re c  over  ed u  nder   the 
     7 lic  ence   agr  eeme  nt i 
     8n th  e//   file   "LI  CENC 
     9E" d  istr  ibut  ed w  ith   
     10Cfor  all.  ////   fmt  Line 
     11s.cc   --/  ///   Auth  or   
     12             : P  eter   A.   
     13Buhr  // C  reat  ed O  n     
     14      : Su  n Se  p 17   21: 
     1556:1  5 20  17//   Las  t Mo 
     16difi  ed B  y :   Pete  r A. 
     17 Buh  r//   Last   Mod  ifie 
     18d On   : M  on S  ep 1  8 11 
     19:35:  57 2  017/  / Up  date 
     20 Cou  nt       :   31/  /#in 
     21clud  e <f  stre  am.h  fa># 
     22incl  ude   <cor  outi  ne.h 
     23fa>c  orou  tine   For  mat   
     24{       ch  ar c  h;                                                                             
     25        //   used   for   com  muni 
     26cati  on        i  nt g  , b;                             
     27                                                        /  / gl  obal   bec 
     28ause   use  d in   des  truc 
     29tor}  ;voi  d ?{  }( F  orma 
     30t &   fmt   ) {      r  esum 
     31e( f  mt )  ;                                                                           / 
     32/ st  art   coro  utin  e}vo 
     33id ^  ?{}(   For  mat   & fm 
     34t )   {      if   ( fm  t.g   
     35!= 0   ||   fmt.  b !=   0 ) 
     36 sou  t |   endl  ;}vo  id m 
     37ain(   For  mat   & fm  t )   
     38{       fo  r (   ;; )   {                                               
     39                                  // f  or a  s ma  ny c 
     40hara  cter  s           f  or (   fmt 
     41.g =   0;   fmt.  g <   5; f 
     42mt.g   +=   1 )   {             /  / gr 
     43oups   of   5 bl  ocks                          f 
     44or (   fmt  .b =   0;   fmt. 
     45b <   4; f  mt.b   +=   1 )   
     46{       //   blo  cks   of 4   cha 
     47ract  ers                               f  or (   ;;   
     48) {                                                     //   for   new 
     49line   cha  ract  ers                                     
     50susp  end(  );                                  i  f (   
     51fmt.  ch !  = '\  n' )   bre 
     52ak;             //   igno  re n  ewli 
     53ne                              }   // f  or                            so 
     54ut |   fmt  .ch;                                                        / 
     55/ pr  int   char  acte  r                         
     56} //   for                      s  out   | "   
     57 ";                                                             /  / pr  int   
     58bloc  k se  para  tor           } / 
     59/ fo  r         s  out   | en  dl;       
     60                                                                  // p  rint   gro 
     61up s  epar  ator        } /  / fo 
     62r} /  / ma  invo  id p  rt(   
     63Form  at &   fmt  , ch  ar c 
     64h )   {      fmt  .ch   = ch 
     65;      res  ume(   fmt   );} 
     66 //   prti  nt m  ain(  ) {       
     67Form  at f  mt;   char   ch; 
     68        for   ( ;  ; )   {              s  in | 
     69 ch;                                                                            //   rea 
     70d on  e ch  arac  ter       if 
     71 ( e  of(   sin   ) )   brea 
     72k;                                                      //   eof   ?            p 
     73rt(   fmt,   ch   );    }   //   
     74for}   //   main  // L  ocal 
     75 Var  iabl  es:   ////   tab 
     76-wid  th:   4 //  // c  ompi 
     77le-c  omma  nd:   "cfa   fmt 
     78Line  s.c"   ///  / En  d: / 
     79/
  • TabularUnified tests/fstream_test.c

    r73abe95 r58b6d1b  
    1818int main( void ) {
    1919        int nombre;
    20         sout | "Entrez un nombre, s'il vous plat:" | endl;
     20        sout | "Entrez un nombre, s'il vous plaît:" | endl;
    2121        sin  | nombre;
    22         sout | "Vous avez entr" | nombre | endl;
     22        sout | "Vous avez entré" | nombre | endl;
    2323        sout | "le nombre" | nombre | "est"
    24                  | (nombre > 0 ? "positif" : nombre == 0 ? "z�ro" : "n�gatif") | endl;
     24                 | (nombre > 0 ? "positif" : nombre == 0 ? "zéro" : "négatif") | endl;
    2525
    26         sout | "Entrez trois nombres, s'il vous plat: " | endl;
     26        sout | "Entrez trois nombres, s'il vous plaît: " | endl;
    2727        int i, j, k;
    2828        sin  | i | j | k;
    29         sout | "Vous avez entr" | "i:" | "" | i | "j:" | "" | j | "k:" | "" | k | endl;
     29        sout | "Vous avez entré" | "i:" | "" | i | "j:" | "" | j | "k:" | "" | k | endl;
    3030}
    3131
  • TabularUnified tests/io1.c

    r73abe95 r58b6d1b  
    3131                 | "x =" | 4
    3232                 | "x $" | 5
    33                  | "x " | 6
    34                  | "x " | 7
    35                  | "x " | 8
    36                  | "x " | 9
    37                  | "x " | 10
     33                 | "x £" | 6
     34                 | "x ¥" | 7
     35                 | "x ¡" | 8
     36                 | "x ¿" | 9
     37                 | "x «" | 10
    3838                 | endl | endl;
    3939
     
    4646                 | 5 | "? x"
    4747                 | 6 | "% x"
    48                  | 7 | " x"
    49                  | 8 | " x"
     48                 | 7 | "¢ x"
     49                 | 8 | "» x"
    5050                 | 9 | ") x"
    5151                 | 10 | "] x"
  • TabularUnified tests/maybe.c

    r73abe95 r58b6d1b  
    1515
    1616#include <assert.h>
    17 #include <containers/maybe>
     17#include <containers/maybe.hfa>
    1818
    1919void checkPredicates() {
  • TabularUnified tests/result.c

    r73abe95 r58b6d1b  
    1515
    1616#include <assert.h>
    17 #include <containers/result>
     17#include <containers/result.hfa>
    1818
    1919void checkPredicates() {
  • TabularUnified tests/time.c

    r73abe95 r58b6d1b  
    1414//
    1515
    16 #include "time"
     16#include "time.hfa"
    1717#include <fstream.hfa>
    1818
Note: See TracChangeset for help on using the changeset viewer.